/* Kev Jerome · Signalweg v2 — „Instrument, nicht Illusion"
   Eine Kamera, ein Lichtweg, eine Signalfarbe. Dekor wird Messtechnik:
   Haarlinien, Ticks, Mono-Labels. Farbe kommt aus dem Werk, nicht aus Effekten. */
:root {
  --bg: #05060A; --fg: #F2F4F7; --dim: #8A909C; --line: rgba(242, 244, 247, .14);
  --a: #3D7BFF; --rec: #FF3B30;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--a); outline-offset: 4px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.scroller { height: 1400vh; }
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; mix-blend-mode: screen; }
.endlight { position: fixed; inset: 0; opacity: 0; pointer-events: none; z-index: 4; background: radial-gradient(60% 60% at 50% 48%, rgba(150,175,235,.16) 0%, rgba(61,123,255,.06) 32%, rgba(5,6,10,0) 62%); }
.layer { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }

/* Anamorphotischer Streifen */
.flare { position: fixed; left: -10vw; right: -10vw; top: 0; height: 0; z-index: 3; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.flare::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(200, 214, 235, .35) 20%, rgba(200, 214, 235, 1) 50%, rgba(200, 214, 235, .35) 80%, transparent 100%); box-shadow: 0 0 8px rgba(200, 214, 235, .5); }
.flare i { display: none; }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-in { width: min(340px, 80vw); color: var(--dim); }
.b-title { margin: 0 0 18px; color: var(--fg); font-size: 12px; }
.boot ol { list-style: none; margin: 0 0 18px; padding: 0; min-height: 110px; line-height: 2.1; }
.boot li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); animation: line .24s var(--ease); }
.boot li b { font-weight: 500; color: var(--fg); }
.boot li.rec b { color: var(--rec); }
@keyframes line { from { opacity: 0; transform: translateY(4px); } }
.b-bar { height: 1px; background: var(--line); }
.b-bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .24s var(--ease); }

/* ---------- Kopf ---------- */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 8; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; pointer-events: none; color: var(--dim); }
.brand { color: var(--fg); }
.lang { display: flex; gap: 2px; pointer-events: auto; }
.lang button { font: inherit; letter-spacing: inherit; color: var(--dim); background: none; border: 0; padding: 6px 8px; cursor: pointer; transition: color .24s var(--ease); }
.lang button[aria-pressed="true"] { color: var(--fg); }

.hud { position: fixed; left: 28px; bottom: 26px; z-index: 7; color: var(--dim); display: flex; gap: 2.2em; pointer-events: none; opacity: 0; }
.hud b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.rec { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); margin-right: .8em; vertical-align: 1px; animation: rec 1s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }

/* ---------- Start ---------- */
.intro { position: fixed; left: 6vw; bottom: 10vh; z-index: 6; pointer-events: none; }
.intro::before { content: ''; position: absolute; z-index: -1; inset: -6vh -5vw -10vh -6vw; background: radial-gradient(ellipse at 20% 80%, rgba(5,6,10,.78), rgba(5,6,10,.35) 48%, transparent 75%); pointer-events: none; }
.intro h1 { margin: 0; font-weight: 600; font-variation-settings: "wdth" 90, "opsz" 96; font-size: clamp(3rem, 8.5vw, 8rem); line-height: .9; letter-spacing: -.035em; }
.intro p { margin: 2.6vh 0 0; color: var(--dim); display: flex; gap: 0; flex-wrap: wrap; }
.intro p i { font-style: normal; width: 24px; height: 1px; background: var(--line); margin: 0 14px; align-self: center; }
.hint { position: fixed; right: 28px; bottom: 26px; z-index: 6; color: var(--dim); pointer-events: none; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; white-space: nowrap; }
.hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--fg), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Navigation ---------- */
.nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 8; display: flex; flex-direction: column; gap: 22px; padding-right: 18px; }
.nav::before { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.nav .dot { position: absolute; right: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--a); top: 0; }
.nav button { font: inherit; background: none; border: 0; color: var(--dim); text-align: right; padding: 2px 0; cursor: pointer; transition: color .24s var(--ease); }
.nav button b { display: block; font: 500 9px/1 var(--mono); letter-spacing: .18em; color: rgba(242, 244, 247, .32); margin-bottom: 5px; }
.nav button span { font: 500 13px/1 var(--display); letter-spacing: -.005em; }
.nav button.on, .nav button:hover { color: var(--fg); }
.nav button.on b { color: var(--a); }

/* ---------- Stationen ---------- */
.panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; text-align: center; opacity: 0; pointer-events: none; width: min(92vw, 1100px); }
.panel.live { pointer-events: auto; }
.station { left: 56px; top: 150px; transform: none; text-align: left; width: min(560px, calc(100vw - 180px)); }
.station-kicker { display: flex; align-items: center; gap: 14px; color: var(--dim); }
.station-kicker::before { content: ""; width: 24px; height: 1px; background: var(--fg); opacity: .5; flex: 0 0 24px; }
.station h2 { margin: 18px 0 0; font-weight: 300; font-variation-settings: "wdth" 100, "opsz" 96; font-size: 76px; line-height: .95; letter-spacing: -.04em; }
.station h2 b { font-weight: 500; }
.station p { margin: 22px 0 0; color: var(--dim); font-size: 15px; line-height: 1.6; width: min(330px, 100%); }
.about h2 { font-size: 56px; }
.about p { width: min(460px, 100%); }
.facts-row { display: flex; gap: 28px; margin-top: 26px; }
.facts-row b { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts-row span { display: block; margin-top: 7px; font: 400 10px/1.5 var(--mono); color: var(--dim); }
.echo-tag { color: var(--dim); font-size: 9px; letter-spacing: .04em; white-space: normal; width: 220px; line-height: 1.6; }
.contact .station-kicker { justify-content: center; margin-bottom: 26px; }
.contact h2 { margin: 0; font-weight: 500; font-variation-settings: "wdth" 100, "opsz" 96; font-size: clamp(2.4rem, 6.5vw, 6.5rem); line-height: .95; letter-spacing: -.025em; color: var(--fg); }
.contact a.mail { display: inline-block; margin-top: 3.4vh; font-weight: 600; font-variation-settings: "wdth" 100; font-size: clamp(1.4rem, 3.6vw, 3.2rem); letter-spacing: -.02em; color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(242,244,247,.6); padding-bottom: 4px; }
.contact .links { margin: 3.4vh auto 0; padding-top: 2.6vh; border-top: 1px solid var(--line); width: min(560px, 86vw); display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.contact .links a { color: var(--fg); text-decoration: none; }
.contact .facts { margin-top: 2vh; color: var(--dim); }
.contact .legal { margin-top: 1vh; color: var(--dim); font-size: 10px; }
.contact .legal a { color: var(--dim); text-decoration: none; }
.contact .links a:hover, .contact .legal a:hover { color: var(--a); }

.progress { position: fixed; left: 56px; right: 56px; bottom: 74px; height: 1px; background: var(--line); z-index: 7; opacity: 0; pointer-events: none; }
.progress i { display: block; width: 0; height: 100%; background: var(--fg); }

/* 3D-verankerte Beschriftungen */
.tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; white-space: nowrap; opacity: 0; }
.role em { font-style: normal; display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: var(--dim); margin-bottom: 10px; }
.role em::before { content: ""; display: block; width: 24px; height: 1px; background: var(--fg); opacity: .5; margin-bottom: 10px; }
.role h3 { margin: 0; font-weight: 500; font-variation-settings: "wdth" 100, "opsz" 72; font-size: 48px; line-height: 1; letter-spacing: -.025em; }
.role p { margin: 12px 0 0; color: var(--dim); white-space: normal; width: 340px; line-height: 1.7; font-size: 13px; font-family: var(--display); text-transform: none; letter-spacing: 0; }
.wl { font-weight: 600; font-size: 18px; line-height: 1.1; letter-spacing: -.01em; }
.wl em { font-style: normal; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--dim); margin-right: 8px; vertical-align: 2px; }
.wl small { display: block; margin-top: 5px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.card { position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .24s var(--ease); padding: 12px 14px; background: rgba(5, 6, 10, .78); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.card.on { opacity: 1; }
.card b { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.card span { color: var(--dim); }
.card em { font-style: normal; color: var(--a); }

/* Video */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 10, .94); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.modal[hidden] { display: none; }
.modal .frame { width: min(92vw, calc(80vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal p { margin: 0; color: var(--dim); }
.modal .x { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }

.fallback { position: fixed; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; color: var(--dim); z-index: 60; background: var(--bg); }
.fallback a { color: var(--fg); }


@media (max-width: 760px) {
  .nav { right: 12px; gap: 16px; padding-right: 12px; }
  .nav button span { font-size: 11px; }
  .role h3 { font-size: 28px; } .role p { width: 240px; }
  .wl { font-size: 15px; }
  .hud span + span + span { display: none; }
  .intro { bottom: 13vh; }
  .intro p { flex-direction: column; gap: 6px; }
  .intro p i { display: none; }
  .hint { bottom: 3vh; }
  .station { left: 20px; top: 114px; width: calc(100vw - 40px); }
  .station-kicker { font-size: 9px; letter-spacing: .1em; gap: 12px; }
  .station h2 { font-size: 44px; }
  .about h2 { font-size: 36px; }
  .about p { font-size: 13px; line-height: 1.5; margin-top: 16px; width: min(330px, 100%); }
  .facts-row { gap: 18px; row-gap: 18px; margin-top: 18px; }
  .facts-row b { font-size: 20px; }
  .facts-row span { font-size: 9px; }
  .work { top: 90px; }
  .work h2 { font-size: 40px; }
  .work p { display: none; }
  .progress { left: 20px; right: 20px; bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hint::after, .rec { animation: none; } }

@media (max-width: 760px) { .hint { left: 30px; right: auto; transform: none; align-items: flex-start; } }

/* Handy: Navigation als kompakte Leiste unten statt Spalte über dem Inhalt */
@media (max-width: 760px) {
  .nav { top: auto; bottom: 86px; left: 20px; right: 20px; transform: none; flex-direction: row; justify-content: space-between; gap: 0; padding: 0; }
  .nav::before, .nav .dot { display: none; }
  .nav button { text-align: left; padding: 6px 0; }
  .nav button span { display: none; }
  .nav button b { font-size: 11px; margin: 0; color: rgba(242, 244, 247, .45); }
  .nav button.on b { color: var(--a); }
  .nav button.on b::after { content: attr(data-label); margin-left: 6px; }
}
