.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #fff3ea 0%, #f7f7f5 45%, #eef2f8 100%);
    background-attachment: fixed;
}

.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
}

.home-main .ad-wrap {
    max-width: 728px;
}

.home-hero {
    max-width: 640px;
    text-align: center;
}

.home-hero__pixel {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 2.5rem;
}

.home-hero__pixel span {
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
    animation: pixelFloat 4s ease-in-out infinite;
}

.home-hero__pixel span:nth-child(1) { background: #FF5733; animation-delay: 0s; }
.home-hero__pixel span:nth-child(2) { background: #33FF57; animation-delay: 0.3s; }
.home-hero__pixel span:nth-child(3) { background: #3357FF; animation-delay: 0.6s; }
.home-hero__pixel span:nth-child(4) { background: #FFD700; animation-delay: 0.9s; }
.home-hero__pixel span:nth-child(5) { background: #FF33A1; animation-delay: 1.2s; }

@keyframes pixelFloat {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(-6px); opacity: 1; }
}

.home-hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--text);
}

@media (max-width: 640px) {
    .home-hero h1 {
        white-space: pre-line;
    }
}

.home-hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
}

.home-hero__desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 0;
}

.home-hero .ad-wrap--intro {
    max-width: 100%;
    /* Abstand zu den Buttons kommt von .home-hero__actions —
       damit Text/Buttons nicht kleben, wenn der Slot leer/geblockt ist */
    margin: 1.5rem auto 0;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.home-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* ── Neueste Stories ────────────────────────────────────────────────── */

.latest-stories {
    width: 100%;
    max-width: 720px;
    margin: 3rem auto 1rem;
    padding: 0 0.5rem 2rem;
}

.latest-stories__inner {
    text-align: center;
}

.latest-stories h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.latest-stories__intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.latest-stories__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.latest-stories__card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, background 0.15s;
}

.latest-stories__card:hover {
    border-color: #d4d4d0;
    background: var(--hover);
}

.latest-stories__swatch {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.latest-stories__text {
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.latest-stories__original {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.latest-stories__original[hidden] {
    display: none;
}

.latest-stories__meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.latest-stories__empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem;
}

.latest-stories__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.latest-stories__cta {
    margin-top: 0;
}

@media (max-width: 480px) {
    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn {
        width: 100%;
    }
}

/* ── Intro Animation ────────────────────────────────────────────────── */

body.intro-active {
    overflow: hidden;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    opacity: 1;
    transition: opacity 0.65s ease;
    pointer-events: auto;
}

.intro-overlay.is-done {
    opacity: 0;
    pointer-events: none;
}

.intro-stage {
    position: relative;
    width: min(92vw, 720px);
    height: min(70vh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transition: transform 3.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-overlay.is-zooming .intro-stage {
    transform: scale(1.06);
}

.intro-pixels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-pixel {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.2) rotate(var(--px-rot, 0deg));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        opacity 0.55s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-pixel.is-visible {
    opacity: 0.95;
    transform: scale(var(--px-scale, 1)) rotate(var(--px-rot, 0deg));
}

.intro-line {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    text-align: center;
    margin: 0;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.intro-line.is-in {
    opacity: 1;
    transform: translateY(0);
}

.intro-line.is-out {
    opacity: 0;
    transform: translateY(-10px);
}

.intro-skip {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: var(--hint-bg);
    font-size: 0.78rem;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.intro-skip:hover {
    color: var(--text);
    border-color: #ccc;
}

@media (prefers-reduced-motion: reduce) {
    .intro-overlay {
        display: none !important;
    }
}


[data-theme="dark"] .home-page {
    background: linear-gradient(165deg, #1a1512 0%, #111111 45%, #12161c 100%);
    background-attachment: fixed;
}
