/* ===== Reise-Version: Video als fixer Hintergrund über die ganze Seite ===== */
:root {
  --font-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --glass: rgba(7, 10, 14, 0.56);
  --glass-strong: rgba(7, 10, 14, 0.78);
  --glass-line: rgba(243, 246, 239, 0.09);
  --red: #ff5a5a;
}
html { scroll-behavior: auto; }
body { background: var(--bg); overflow-x: hidden; }
h1, h2, h3, .mega { font-stretch: 112%; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.sec h2, .hero-copy h1, .hero-copy h2 { font-weight: 800; letter-spacing: -0.035em; }

/* ---------- Bühne (fixer Canvas) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #05070A url("../poster.webp") center / cover no-repeat; }
#bg-canvas {
  position: absolute; inset: -2%; width: 104%; height: 104%; display: block;
  transform: translateZ(0);
  transition: filter 0.9s var(--ease);
  filter: none;
}
body.bg-focus #bg-canvas { filter: blur(5px) brightness(0.62) saturate(0.92); }
@media (max-width: 767px) { body.bg-focus #bg-canvas { filter: blur(9px) brightness(0.55); } }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5,7,10,.55) 0%, transparent 38%),
    linear-gradient(to bottom, rgba(5,7,10,.45) 0%, transparent 20%),
    radial-gradient(ellipse at center, transparent 50%, rgba(5,7,10,.5) 100%);
}
.stage-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}
.stage-mist { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 120% 70% at 50% 100%, rgba(190,255,120,.55), rgba(140,220,90,.18) 45%, transparent 75%); }
/* Blitz-Wischer über allem (ausser Nav) */
.wipe { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f4ffe6 35%, rgba(214,255,150,.85) 62%, rgba(182,255,59,.35) 100%); }

/* ---------- Hero ---------- */
#hero-sequence { height: 210vh; background: transparent; z-index: 2; }
#hero-sequence .hero-still { display: none; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.02; }

/* ---------- Split-Text ---------- */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-wi { display: inline-block; will-change: transform; }
.split-c { display: inline-block; will-change: transform, opacity; }
.split-word { display: inline-block; white-space: nowrap; }

/* ---------- Glas-Panels ---------- */
.sec { background: transparent !important; border-top: 0; padding: 16vh 1.25rem; z-index: 3; }
.sec:not(.hscroll) > .wrap {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  padding: clamp(1.6rem, 4.2vw, 4rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
.sec-cta { background: transparent !important; }
.stat { background: rgba(5,7,10,.55); }
.stats { background: rgba(182,255,59,.14); border-radius: 10px; overflow: hidden; }
.quiz, .calc { background: rgba(5,7,10,.35); }
.sector-panel { background: rgba(5,7,10,.3); }
.hscroll { overflow: visible; }
.hs-head { width: fit-content; max-width: min(46rem, calc(100% - 2.5rem)); margin-left: max(1.25rem, calc((100vw - 72rem) / 2)); padding: 1.6rem 2rem; border-radius: 18px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-line); }
.hs-head h2 { margin-bottom: .4rem; }
.tcard-in { background: linear-gradient(160deg, rgba(182,255,59,.1), rgba(7,10,14,.62) 45%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--glass-line); }
.foot { background: rgba(3,4,6,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 767px) {
  /* Mobil: weniger Backdrop-Filter (Leistung), dafür dichteres Glas – der Canvas ist ohnehin weichgezeichnet */
  .sec:not(.hscroll) > .wrap, .hs-head, .tcard-in { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-strong); }
  .sec { padding: 12vh .8rem; }
  .sec:not(.hscroll) > .wrap { border-radius: 18px; padding: 1.6rem 1.25rem; }
  .hs-head { margin-left: .8rem; padding: 1.3rem 1.25rem; }
}

/* ---------- Zwischenspiele (klare Bildmomente) ---------- */
.gap { position: relative; z-index: 3; height: 240vh; }
.gap-loesung { height: 190vh; }
.gap-finale { height: 170vh; }
.gap-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.25rem; }
.mega { font-family: var(--font-d); font-weight: 900; font-size: clamp(2.4rem, 7.2vw, 7rem); line-height: .98; letter-spacing: -.045em; max-width: 14ch; margin: .9rem auto 0; text-wrap: balance;
  text-shadow: 0 4px 40px rgba(5,7,10,.55); }
.mega-sm { font-size: clamp(2.1rem, 5.4vw, 5.2rem); max-width: 17ch; }
.gap .kicker { font-size: .8rem; }
.gap .btn { margin-top: 2rem; }
.countdown { position: absolute; left: 0; right: 0; bottom: 12vh; height: 6rem; pointer-events: none; }
.countdown span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-family: var(--font-d); font-weight: 900; font-size: 5.5rem; line-height: 1; color: var(--lime); opacity: 0; text-shadow: 0 0 40px rgba(182,255,59,.6); font-stretch: 125%; }
.countdown .go { font-size: 3.2rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.reticle { position: absolute; left: 50%; top: 50%; width: min(70vmin, 560px); aspect-ratio: 1; transform: translate(-50%,-50%); pointer-events: none; opacity: 0; }
.reticle svg { width: 100%; height: 100%; fill: none; stroke: var(--lime); stroke-width: .8; filter: drop-shadow(0 0 6px rgba(182,255,59,.7)); }
.reticle .r2 { stroke-dasharray: 4 6; }
.reticle-label { position: absolute; left: 50%; bottom: -1.8rem; transform: translateX(-50%); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--lime); white-space: nowrap; }
@media (max-width: 767px) { .gap { height: 200vh; } .gap-loesung, .gap-finale { height: 160vh; } .countdown span { font-size: 4rem; } }

/* ---------- Platzhalter-Slots ---------- */
.slots { margin-top: 2.6rem; }
.slot-kicker { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.slot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.slot { border: 1px dashed rgba(182,255,59,.35); border-radius: 14px; min-height: 9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.2rem; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(182,255,59,.035) 0 10px, transparent 10px 20px); color: var(--muted); font-size: .82rem; }
.slot-ico { font-family: var(--font-d); font-size: 2rem; color: var(--lime); line-height: 1; }
.slot-logos { grid-column: 1 / -1; min-height: 5rem; flex-direction: row; flex-wrap: wrap; justify-content: space-around; letter-spacing: .2em; }
@media (max-width: 600px) { .slot-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons mit Füll-Animation ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; transition: color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 0 0 rgba(182,255,59,0); }
.btn::before { content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%); background: #f6ffe8; z-index: -1; transition: width .55s var(--ease), height .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { width: 260%; height: 600%; }
.btn:hover { background: var(--lime); box-shadow: 0 10px 40px rgba(182,255,59,.35); }
.btn-ghost { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost::before { background: var(--lime); }
.btn-ghost:hover { color: #081000; background: transparent; }
.btn:active { transform: scale(.97); }
.yn button, .seg button, .chips button { position: relative; overflow: hidden; }
.yn button:active, .seg button:active, .chips button:active { transform: scale(.94); }
.link-btn { background: none; border: 0; color: var(--lime); font-size: .82rem; letter-spacing: .08em; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 0; }

/* ---------- Custom Cursor (nur Desktop) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; pointer-events: none; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(182,255,59,.6); display: flex; align-items: center; justify-content: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; }
.cursor-ring em { font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #081000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(182,255,59,.15); border-color: var(--lime); }
.cursor.is-label .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--lime); }
.cursor.is-label .cursor-ring em { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform-origin: center; scale: .85; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Ton-Schalter ---------- */
.nav-right { display: flex; align-items: center; gap: .8rem; pointer-events: auto; order: 3; }
.nav { gap: 1rem; }
.nav nav { margin-left: auto; }
.sound-toggle { display: inline-flex; align-items: center; gap: .55rem; background: rgba(7,10,14,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(243,246,239,.14); color: var(--text); border-radius: 999px; padding: .45rem .85rem .45rem .7rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s; }
.sound-toggle:hover { border-color: var(--lime); }
.sound-toggle[aria-pressed="true"] { border-color: rgba(182,255,59,.6); background: rgba(182,255,59,.08); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; width: 14px; }
.eq i { display: block; width: 2px; height: 3px; background: var(--lime); border-radius: 1px; transition: height .3s; }
.sound-toggle[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 900px) { .nav-right { margin-left: auto; } .sound-label { display: none; } .sound-toggle { padding: .5rem .6rem; } }

/* ---------- Kapitel-HUD ---------- */
.hud { position: fixed; right: 1.6rem; top: 50%; transform: translateY(-50%); z-index: 30; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s var(--ease); }
body.is-ready .hud { opacity: 1; }
.hud-time { font-family: var(--font-d); font-variant-numeric: tabular-nums; letter-spacing: .06em; margin-bottom: 1rem; text-align: right; color: var(--text); }
.hud-time b { color: var(--lime); font-weight: 700; margin: 0 .35em; display: inline-block; min-width: 2.6em; text-align: right; }
.hud ol { list-style: none; display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; }
.hud a { display: flex; align-items: center; gap: .6rem; flex-direction: row-reverse; }
.hud a i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(243,246,239,.4); transition: all .3s var(--ease); }
.hud a span { opacity: 0; transform: translateX(6px); transition: all .3s var(--ease); }
.hud a:hover span, .hud a.is-on span { opacity: 1; transform: none; }
.hud a.is-on { color: var(--text); }
.hud a.is-on i { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 10px var(--lime); transform: scale(1.4); }
.hud { display: none; }
@media (min-width: 1101px) { html.has-fine .hud { display: block; } }

/* ---------- Quiz: Spiel-Auflösung ---------- */
.ring { position: relative; }
.ring .burst { position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; pointer-events: none; }
.ring.is-scan svg { animation: scan 1s var(--ease); }
@keyframes scan { 0% { transform: rotate(-90deg); } 100% { transform: rotate(270deg); } }
.ring.is-pulse b { animation: pulse .5s var(--ease); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: var(--red); } 100% { transform: scale(1); } }
.quiz-steps { display: flex; gap: .35rem; }
.quiz-steps i { width: 22px; height: 4px; border-radius: 2px; background: rgba(243,246,239,.14); transition: background .3s; }
.quiz-steps i.ok { background: var(--lime); }
.quiz-steps i.leak { background: var(--red); }
.quiz-tier { font-family: var(--font-d); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1; color: var(--lime) !important; text-transform: uppercase; }
.quiz-tier.is-bad { color: var(--red) !important; }
.float-tag { position: absolute; pointer-events: none; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--red); text-transform: uppercase; white-space: nowrap; z-index: 5; }
.float-tag.ok { color: var(--lime); }
.quiz-q li { position: relative; }

/* ---------- Toast & Easter Egg ---------- */
.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(7,10,14,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(182,255,59,.5); color: var(--text); padding: .8rem 1.3rem; border-radius: 999px; font-size: .82rem; transition: opacity .4s var(--ease), transform .4s var(--ease); max-width: calc(100vw - 2rem); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.logo-mark { cursor: pointer; transition: transform .3s var(--ease); }
.logo-mark.is-hit { transform: rotate(45deg) scale(1.3); }

/* ---------- Preloader ---------- */
.preloader-mark { display: block; width: 14px; height: 14px; margin: 0 auto 1.2rem; background: var(--lime); box-shadow: 0 0 24px rgba(182,255,59,.7); animation: spin 2.4s var(--ease) infinite; }
@keyframes spin { 0% { transform: rotate(0); } 50% { transform: rotate(180deg) scale(.7); } 100% { transform: rotate(360deg); } }
.preloader-title { font-stretch: 112%; font-weight: 800; }

/* ---------- Reduced Motion ---------- */
body.is-reduced #hero-sequence { height: 100vh; height: 100svh; }
body.is-reduced .gap { height: auto; min-height: 80vh; }
body.is-reduced .gap-sticky { position: relative; min-height: 80vh; }
body.is-reduced .countdown, body.is-reduced .reticle, body.is-reduced .scroll-hint { display: none; }
body.is-reduced .hero-copy { opacity: 1 !important; pointer-events: auto !important; }
body.is-reduced #bg-canvas { transition: none; }
@media (prefers-reduced-motion: reduce) { .btn::before, .cursor-ring { transition: none; } .eq i { animation: none !important; } }
.quiz-steps { margin-top: .2rem; }
.quiz-tier { margin-top: .1rem; }
.copy-left { max-width: min(44rem, 88vw); }
.gap-sticky { overflow: hidden; }
main { overflow-x: clip; }
body.is-reduced .hs-track { flex-wrap: wrap; width: auto; padding-right: 1.5rem; }

/* Helle Momente (Blitz, Nebel): dunkler Schleier hinter dem grossen Text für Lesbarkeit */
.gap-sticky::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(5,7,10,.5), rgba(5,7,10,.18) 60%, transparent); pointer-events: none; z-index: -1; }
.gap-sticky { isolation: isolate; }
.gap-finale .gap-sticky::before { background: radial-gradient(closest-side, rgba(5,9,6,.62), rgba(5,9,6,.25) 60%, transparent); }
.gap-finale .kicker { color: #d9ff9e; }
