/* Cypher News: Kino-Seite (Willkommen) und Preloader. Bewegung: motion.js (GSAP, ScrollTrigger, Lenis).
   Ohne JavaScript und bei reduzierter Bewegung steht alles als ruhige, lesbare Seite da. Richtung: DESIGN.md. */

/* ── Zustände der Seite: boot (Preloader), landing (öffentlich), app ── */
body.is-boot .shell, body.is-landing .shell { display: none; }
body.is-app .landing { display: none; }
body.is-landing #rainCanvas, body.is-boot #rainCanvas { z-index: 0; }
.landing { position: relative; z-index: 1; --lp: clamp(20px, 5vw, 64px); }

/* ── Preloader (nur mit JS; endet verlässlich, auch ohne Skript nach 6 s) ── */
.preloader { display: none; position: fixed; inset: 0; z-index: 400; background: #090706; color: #f4eee3; padding: calc(env(safe-area-inset-top) + 22px) var(--lp, 24px) calc(env(safe-area-inset-bottom) + 24px); flex-direction: column; justify-content: space-between; will-change: transform; }
.js .preloader { display: flex; animation: plFailsafe 0s linear 6s forwards; }
.preloader.gone { display: none !important; }
@keyframes plFailsafe { to { visibility: hidden; pointer-events: none; } }
.pl-top, .pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pl-tag { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: #a3988b; }
.pl-word { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 13vw, 170px); line-height: 1; letter-spacing: -.035em; display: flex; align-items: baseline; gap: .12em; white-space: nowrap; font-optical-sizing: auto; }
.pl-word .cursor, .l-term .cursor { width: .32em; height: .32em; background: var(--accent); display: inline-block; animation: cursor 1s steps(1) infinite; }
.pl-num { font-family: var(--serif); font-size: clamp(40px, 8vw, 84px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; min-width: 3.4ch; }
.pl-num small { font-size: .4em; color: #a3988b; margin-left: 4px; }
.pl-bar { flex: 1; height: 2px; background: #2a231c; position: relative; overflow: hidden; }
.pl-bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ── Kopfzeile ── */
.l-top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) var(--lp) 12px; background: linear-gradient(var(--bg), color-mix(in oklab, var(--bg) 0%, transparent)); pointer-events: none; }
.l-top > * { pointer-events: auto; }
.l-logo { font-family: var(--serif); font-weight: 620; font-size: 24px; letter-spacing: -.02em; line-height: 1; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; min-height: 44px; align-items: center; }
.l-logo .cursor { width: .36em; height: .36em; background: var(--accent); display: inline-block; animation: cursor 1.1s steps(1) infinite; }
.l-top-r { display: flex; align-items: center; gap: 8px; }
.l-theme { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--control); transition: transform .5s var(--ease), color .2s; }
.l-theme:active { transform: rotate(90deg) scale(.92); }
@media (hover: hover) { .l-theme:hover { color: var(--ink); } }
.l-pill, .l-btn { font-family: var(--sans); font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .18s var(--ease), background-color .2s; }
.l-pill { min-height: 44px; padding: 0 20px; font-size: 15px; }
.l-btn { min-height: 60px; padding: 0 30px 0 34px; font-size: 18px; }
.l-btn .ico { transition: transform .3s var(--ease); }
.l-pill:active, .l-btn:active { transform: scale(.96); }
@media (hover: hover) { .l-pill:hover, .l-btn:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); } .l-btn:hover .ico { transform: translateX(5px); } }

/* ── Hero ── */
.l-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--lp) 84px; overflow: clip; }
.l-glow { position: absolute; z-index: 0; width: 90vmax; height: 90vmax; right: -38vmax; top: -34vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), color-mix(in oklab, var(--accent) 9%, transparent) 55%, transparent); pointer-events: none; }
:root[data-theme="light"] .l-glow { opacity: .55; }
.l-clock { position: absolute; z-index: 0; right: calc(var(--lp) * .5); bottom: 7svh; font-family: var(--serif); font-weight: 300; font-size: clamp(110px, 21vw, 320px); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--ink) 12%, transparent); white-space: nowrap; user-select: none; pointer-events: none; font-variant-numeric: tabular-nums lining-nums; }
.l-hero-in { position: relative; z-index: 1; max-width: 1240px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.l-kick { color: var(--ink-2); }
.l-h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(46px, 13.4vw, 148px); line-height: .96; letter-spacing: -.04em; font-optical-sizing: auto; text-wrap: balance; }
.l-ln { display: block; }
.l-em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.l-term { font-family: var(--mono); font-size: 24px; line-height: 1; color: var(--ok); display: flex; align-items: center; gap: 8px; min-height: 28px; }
.l-term .pr { color: var(--accent-text); }
.l-lead { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.l-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 6px; }
.l-hero .restore { max-width: 520px; width: 100%; }
.l-noscript { color: var(--ink-2); font-size: 15px; border-left: 2px solid var(--accent); padding-left: 12px; }
.l-cue { position: absolute; z-index: 1; left: var(--lp); bottom: 26px; display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.l-cue i { width: 46px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.l-cue i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { transform: translateX(100%); } }
@media (max-width: 640px) { .l-cue { display: none; } .l-hero { padding-bottom: 56px; } .l-btn { width: 100%; } .l-actions { width: 100%; } }

/* ── Geteilter Text: Maske je Wort ── */
.sw-m { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.sw { display: inline-block; will-change: transform; }
.sw-s { display: inline; }

/* ── Manifest: Wörter werden beim Scrollen hell ── */
.l-manifest { padding: clamp(110px, 24svh, 260px) var(--lp); position: relative; background: var(--bg); }
.l-big { font-family: var(--serif); font-weight: 480; font-size: clamp(30px, 6vw, 84px); line-height: 1.08; letter-spacing: -.03em; max-width: 19em; font-optical-sizing: auto; text-wrap: pretty; }

/* ── Wie dein Drop entsteht: Karten-Stapel ── */
.l-how { padding: 0 var(--lp) clamp(80px, 14svh, 160px); background: var(--bg); position: relative; }
.l-sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 6svh, 64px); }
.l-h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(36px, 7vw, 96px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; font-optical-sizing: auto; }
.l-h2 em { color: var(--accent-text); font-weight: 400; }
.l-stack { position: relative; display: flex; flex-direction: column; gap: 16svh; padding-bottom: 8svh; }
.l-card { --n: 0; position: sticky; top: calc(76px + var(--n) * 16px); transform-origin: 50% 0; display: grid; gap: 22px; padding: 26px 22px 24px; border-radius: 28px; background: color-mix(in oklab, var(--surface) 92%, var(--accent)); border: 1px solid var(--line-strong); box-shadow: 0 -14px 40px color-mix(in oklab, var(--ink) 10%, transparent); overflow: clip; }
.l-card:nth-child(2) { --n: 1; background: color-mix(in oklab, var(--surface-2) 96%, var(--c-tech)); }
.l-card:nth-child(3) { --n: 2; background: color-mix(in oklab, var(--surface) 86%, var(--accent)); }
.l-no { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(64px, 11vw, 150px); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent-text); }
.l-card-copy h3 { font-family: var(--serif); font-weight: 580; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.l-card-copy p { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 900px) {
    .l-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'no viz' 'copy viz'; align-content: space-between; min-height: min(54svh, 480px); padding: 40px 44px; gap: 28px 40px; }
    .l-no { grid-area: no; } .l-card-copy { grid-area: copy; align-self: end; } .viz { grid-area: viz; }
}
.viz { align-self: center; }
.l-card:nth-child(3) .viz { align-self: end; }
.viz-src { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.viz-src span { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--ink); padding: 11px 16px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--control); background: color-mix(in oklab, var(--bg) 60%, transparent); }
.viz-src span:nth-child(3n+1) { color: var(--ok); }
.viz-pick { list-style: none; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-strong); }
.viz-pick li { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); line-height: 1.25; padding: 13px 0 12px 30px; border-bottom: 1px solid var(--line-strong); position: relative; }
.viz-pick li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; }
.viz-pick .x { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 1px; }
.viz-pick .x::before { box-shadow: inset 0 0 0 1.5px var(--dim); border-radius: 50%; }
.viz-pick .k { color: var(--ink); }
.viz-pick .k::before { background: var(--accent); }
.viz-drop { display: grid; gap: 8px; padding: 22px 22px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-strong); max-width: 420px; justify-self: start; width: 100%; }
.vd-no { font-family: var(--serif); font-weight: 500; font-size: 84px; line-height: .85; letter-spacing: -.05em; color: var(--accent-text); }
.vd-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-konzerte); }
.vd-t { font-family: var(--serif); font-weight: 580; font-size: 25px; line-height: 1.12; letter-spacing: -.015em; }
.vd-s { font-size: 13px; color: var(--dim); }

/* ── Rauschen wird Signal ── */
.l-signal { position: relative; background: var(--bg); }
.sig-pin { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 90px var(--lp); overflow: clip; text-align: center; }
.sig-noise { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px 22px; padding: 0 2vw; font-family: var(--mono); font-size: clamp(16px, 2.4vw, 21px); line-height: 1.15; color: var(--dim); opacity: .3; user-select: none; }
.sig-noise span { white-space: nowrap; }
.sig-noise .hit { color: var(--accent-text); }
.sig-copy { position: relative; z-index: 1; max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sig-copy::before { content: ''; position: absolute; z-index: -1; inset: -26% -22%; background: radial-gradient(closest-side, var(--bg) 62%, transparent); }
.sig-n { font-variant-numeric: tabular-nums lining-nums; color: var(--ink-2); }
.sig-sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 26px); color: var(--ink-2); }

/* ── Fakten ── */
.l-facts { display: grid; gap: 0; padding: clamp(48px, 10svh, 110px) var(--lp); background: var(--bg); position: relative; }
.l-facts article { padding: 26px 0 28px; border-top: 1px solid var(--line-strong); }
.l-facts h2 { font-family: var(--serif); font-weight: 580; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 10px; }
.l-facts p { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 900px) { .l-facts { grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px); } }

/* ── Abschluss und Fußzeile mit Enthüllung ── */
.l-final { padding: clamp(100px, 26svh, 280px) var(--lp); display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; background: var(--bg); position: relative; }
.l-h2-xl { font-size: clamp(44px, 10.5vw, 160px); max-width: 12em; }
.l-foot { position: relative; background: var(--surface); border-top: 1px solid var(--line-strong); overflow: clip; z-index: 0; }
.l-foot-in { padding: clamp(40px, 8svh, 90px) var(--lp) calc(env(safe-area-inset-bottom) + 28px); display: flex; flex-direction: column; gap: 30px; }
.l-foot-word { font-family: var(--serif); font-weight: 600; font-size: clamp(72px, 19.5vw, 330px); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--accent) 70%, transparent); white-space: nowrap; margin-left: -.04em; user-select: none; }
.l-foot-links { color: var(--dim); font-size: 13px; line-height: 1.7; }
.l-foot-links a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
    .preloader { display: none !important; }
    .l-cue i::after { animation: none; transform: none; }
}
@media (forced-colors: active) { .l-glow, .l-clock { display: none; } .l-btn, .l-pill { border: 1px solid ButtonText; } }

html:has(body.is-landing) { scroll-padding-top: 84px; }
