/* =========================================================
   Landing — index.html
   Cinematic Full-Bleed-Hero: Portrait als Hintergrund,
   Wordmark-Logo zentral, Meta oben, Kategorien am unteren Rand.
   Nur diese Seite ist dramatisch dunkel — die Interior-Seiten
   liegen in Magazin-Rot / Cream.
   Typografie komplett in Inter (kein Italic-Serif).
   ========================================================= */

body.page-landing {
    --paper-arc:        #0a0a0b;
    --paper-arc-2:      #050506;
    --ink-arc:          #f3f1ec;
    --ink-arc-dim:      rgba(243, 241, 236, 0.72);
    --ink-arc-mute:     rgba(243, 241, 236, 0.46);
    --ink-arc-soft:     rgba(243, 241, 236, 0.22);
    --line-arc:         rgba(243, 241, 236, 0.10);
    --line-arc-strong:  rgba(243, 241, 236, 0.22);

    background: var(--paper);
    color: var(--ink);
}
/* Nav ist auf der Landing versteckt — Logo steht im Hero */
body.page-landing .nav__list,
body.page-landing .nav__logo,
body.page-landing .nav__burger { display: none; }
body.page-landing .nav__burger span { background: #f3f1ec; }
body.page-landing .nav.is-scrolled {
    background: rgba(10, 10, 11, 0.55);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    border-bottom-color: rgba(255,255,255,0.08);
}

.landing {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

/* Full-bleed Hero-Bild */
.landing__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: none;
}
.landing__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.04) brightness(0.78);
    transform: scale(1.04);
    transition: transform 6s var(--ease-out);
}
.landing.is-loaded .landing__bg img {
    transform: scale(1);
}

/* Sanfter Gradient oben & unten für Lesbarkeit */
.landing__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10,10,11,0.55) 0%,
            rgba(10,10,11,0.10) 22%,
            rgba(10,10,11,0.10) 60%,
            rgba(10,10,11,0.78) 100%);
    pointer-events: none;
}

/* Inhalt über dem Bild */
.landing__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    padding: calc(var(--nav-h) + 20px) clamp(28px, 5vw, 64px) clamp(24px, 4vh, 42px);
    color: var(--ink);
}

/* Meta oben: Jahr links, Ort rechts */
.landing__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}
.landing__meta-left {
    font-family: var(--f-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}
.landing__meta-right {
    font-family: var(--f-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

/* Zentrum: Wordmark-Logo + Subline */
.landing__center {
    align-self: center;
    justify-self: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 3vh, 28px);
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}
.landing__logo {
    width: 100%;
    max-width: min(78vw, 980px);
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35));
}
.landing__tagline {
    font-family: var(--f-sans);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

/* Kategorien am unteren Rand */
.landing__choices {
    display: flex;
    justify-content: center;
    gap: clamp(50px, 9vw, 140px);
    padding-top: clamp(40px, 6vh, 70px);
    padding-bottom: clamp(18px, 2.5vh, 28px);
}
/* Single-CTA Variante: nur ARCHIVE */
.landing__choices--single { gap: 0; }
.landing__choice--cta {
    flex-direction: column;
    gap: 14px;
}
.landing__choice--cta .landing__choice-num {
    font-size: 1.1rem;
    letter-spacing: 0;
    color: rgba(243,241,236,0.6);
    transition: transform 0.6s var(--ease-out), color 0.4s var(--ease);
}
.landing__choice--cta .landing__choice-name {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
    letter-spacing: 0.3em;
    font-weight: 600;
    padding-bottom: 8px;
    animation: landingCtaPulse 1.65s var(--ease) infinite;
    will-change: transform, opacity;
}
.landing__choice--hint {
    cursor: default;
    pointer-events: none;
}
.landing__scroll-link {
    cursor: pointer;
    pointer-events: auto;
}
.landing__choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    transition: opacity 0.4s var(--ease-out);
}
.landing__choice-num {
    font-family: var(--f-sans);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.36em;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}
.landing__choice-name {
    font-family: var(--f-sans);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding-bottom: 6px;
}
.landing__choice-name::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--ease-out);
}

@keyframes landingCtaPulse {
    0%, 100% {
        opacity: 0.62;
        transform: translateY(0) scale(1);
        text-shadow: 0 2px 18px rgba(0,0,0,0.65);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px) scale(1.035);
        text-shadow: 0 3px 24px rgba(255,255,255,0.34), 0 2px 22px rgba(0,0,0,0.85);
    }
}

/* Copy-Zeile ganz unten */
.landing__foot {
    text-align: center;
    font-family: var(--f-sans);
    font-size: clamp(0.6rem, 0.62vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}
.landing__foot a {
    color: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    transition: color 0.3s var(--ease);
}
.landing__foot-sep { margin: 0 7px; color: var(--line); }

/* =========================================================
   Archive Gateway Experiment
   ========================================================= */
.landing-gateway {
    position: relative;
    min-height: 112vh;
    background: #050506;
    color: #f3f1ec;
    overflow: clip;
}
.landing-gateway__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.landing-gateway__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 24% 50%, rgba(255, 32, 18, 0.22), rgba(255, 32, 18, 0.03) 36%, transparent 62%),
        radial-gradient(circle at 76% 50%, rgba(255, 32, 18, 0.22), rgba(255, 32, 18, 0.03) 36%, transparent 62%),
        linear-gradient(90deg, rgba(5,5,6,0.68), rgba(5,5,6,0.04) 26%, rgba(5,5,6,0.10) 50%, rgba(5,5,6,0.04) 74%, rgba(5,5,6,0.68)),
        linear-gradient(180deg, rgba(5,5,6,0.82), rgba(5,5,6,0.02) 34%, rgba(5,5,6,0.46));
    pointer-events: none;
}
.landing-gateway__car {
    position: absolute;
    left: 24%;
    top: 50%;
    z-index: 1;
    width: min(154vh, 1320px);
    max-width: none;
    opacity: 0.9;
    transform: translate3d(-50%, -50%, 0) rotate(90deg) scale(1.02);
    transition: transform 0.18s linear, opacity 0.18s linear;
    will-change: transform, opacity;
}
.landing-gateway__car img {
    width: 100%;
    height: auto;
    max-width: none;
    filter: saturate(1.2) contrast(1.08) brightness(0.9);
}
.landing-gateway__car--second {
    left: 76%;
    opacity: 0.9;
    transform: translate3d(-50%, -50%, 0) rotate(90deg) scale(1.02);
}
.landing-gateway__car--second img {
    filter: saturate(1.2) contrast(1.08) brightness(0.9);
    transform: scaleX(-1) rotate(180deg);
}
.landing-archive {
    position: relative;
    background: #0a0a0b;
    color: var(--ink-arc);
    margin-top: -12vh;
    padding-top: 0;
}
.landing-archive::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.93  0 0 0 0 0.89  0 0 0 0 0.80  0 0 0 0.32 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
    background-size: 220px 220px;
    opacity: 0.045;
}
.landing-archive__head {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(24px, 4vh, 44px) var(--pad) clamp(20px, 3vh, 40px);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(243, 241, 236, 0.48);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
body.page-landing .landing-archive .arc-grid {
    padding-top: 0;
}
body.page-landing .arc-counter {
    color: rgba(243, 241, 236, 0.7);
}

@media (hover: hover) and (pointer: fine) {
    .landing__choice--cta:hover .landing__choice-num {
        transform: translateY(6px);
        color: rgba(243,241,236,0.95);
    }
    .landing__scroll-link:hover .landing__choice-name::after { transform: scaleX(1); }
    .landing__choice:not(.landing__choice--hint):hover .landing__choice-name::after { transform: scaleX(1); }
    .landing__choice:not(.landing__choice--hint):hover { opacity: 1; }
    .landing__foot a:hover { color: rgba(243,241,236,0.85); }
}

@media (min-width: 768px) {
    body.page-landing {
        background: #0a0a0b;
        color: #f3f1ec;
    }
    .landing {
        background: #0a0a0b;
    }
    .landing__bg {
        display: block;
    }
    .landing__content {
        color: #f3f1ec;
    }
    .landing__meta-left {
        color: rgba(243,241,236,0.72);
    }
    .landing__meta-right {
        color: rgba(243,241,236,0.82);
    }
    .landing__tagline {
        color: rgba(243,241,236,0.72);
    }
    .landing__choice {
        color: #f3f1ec;
    }
    .landing__choice-num {
        color: rgba(243,241,236,0.5);
    }
    .landing__choice-name {
        color: #f3f1ec;
    }
    .landing__choice--cta .landing__choice-name {
        animation: landingCtaPulse 1.65s var(--ease) infinite;
    }
    .landing__choice-name::after {
        background: rgba(243,241,236,0.85);
    }
    .landing__foot {
        color: rgba(243,241,236,0.38);
    }
    .landing__foot-sep {
        color: rgba(243,241,236,0.3);
    }
}

@media (max-width: 767.98px) {
    html,
    body.page-landing {
        min-height: 100%;
        background: #0a0a0b;
        background-image: url("../images/HandyBackground.jpg");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    body.page-landing {
        overflow-x: hidden;
    }

    body.page-landing .page {
        min-height: 100dvh;
        animation: none;
    }

    body.page-landing .nav {
        display: none;
    }

    body.page-landing .cbe-settings-btn,
    body.page-landing .cbe-settings-panel {
        display: none;
    }

    .landing {
        min-height: 100dvh;
        background: #0a0a0b;
    }

    .landing__bg {
        display: block;
        background-image: url("../images/HandyBackground.jpg");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .landing__bg picture {
        display: none;
    }

    .landing__bg img {
        filter: grayscale(100%) contrast(1.04) brightness(0.62);
    }

    .landing__bg::after {
        background:
            linear-gradient(180deg,
                rgba(10,10,11,0.18) 0%,
                rgba(10,10,11,0.08) 28%,
                rgba(10,10,11,0.50) 50%,
                rgba(10,10,11,0.62) 64%,
                rgba(10,10,11,0.78) 100%),
            radial-gradient(circle at 50% 52%,
                rgba(0,0,0,0.62) 0%,
                rgba(0,0,0,0.42) 26%,
                rgba(0,0,0,0.00) 54%);
    }

    .landing__content {
        grid-template-rows: auto minmax(0, 1fr) auto;
        padding: calc(env(safe-area-inset-top, 0px) + 18px)
                 clamp(18px, 5vw, 28px)
                 calc(env(safe-area-inset-bottom, 0px) + 52px);
        color: #f3f1ec;
    }

    .landing__meta {
        justify-content: flex-end;
    }

    .landing__meta-left,
    .landing__meta-right { font-size: 0.78rem; letter-spacing: 0.22em; }
    .landing__logo {
        max-width: min(84vw, 430px);
        filter: drop-shadow(0 4px 26px rgba(0,0,0,0.72));
    }
    .landing__tagline,
    .landing__meta-right,
    .landing__choice-name {
        color: rgba(255,255,255,0.92);
        text-shadow: 0 2px 18px rgba(0,0,0,0.78);
    }
    html[data-theme="white"] body.page-landing .landing__logo {
        filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35));
    }
    .landing__center {
        align-self: center;
        gap: 14px;
        padding: 0;
        transform: translateY(7vh);
    }
    .landing__choices {
        gap: clamp(28px, 8vw, 60px);
        padding-top: 34px;
        padding-bottom: 0;
    }
    .landing__choice-name { font-size: 0.9rem; letter-spacing: 0.16em; }
    .landing__choice-num  { display: none; }
    .landing__foot { display: none; }
    .landing-gateway {
        min-height: 108vh;
    }
    .landing-gateway__car {
        left: 18%;
        width: min(118vh, 900px);
        opacity: 0.78;
    }
    .landing-gateway__car--second {
        left: 82%;
        opacity: 0.78;
    }
    .landing-archive__head {
        flex-direction: column;
        font-size: 0.62rem;
        letter-spacing: 0.2em;
        padding-top: clamp(18px, 3vh, 30px);
    }
    .landing__tagline {
        max-width: 84vw;
        font-size: 0.76rem;
        letter-spacing: 0.13em;
        line-height: 1.55;
    }

    /* Single-CTA (Enter the Archive) — auf Mobile etwas kompakter */
    .landing__choice--cta { gap: 10px; }
    .landing__choice--cta .landing__choice-name {
        font-size: 0.9rem;
        letter-spacing: 0.14em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing__choice--cta .landing__choice-name {
        animation: none;
    }
}

/* Sehr schmale Screens (iPhone SE etc.) — Footer-Linie soll wrappen können */
@media (max-width: 639.98px) {
    .landing__foot {
        line-height: 1.9;
    }
    .landing__foot-sep {
        margin: 0 6px;
    }
    .landing__meta-left,
    .landing__meta-right { font-size: 0.72rem; letter-spacing: 0.18em; }
}
