/* ORBIT · Mission 2099 — Tiefraum + Mondstaub, ein Signal: Zündorange. Unbounded · Manrope · JetBrains Mono. */
:root {
  --raum: #05060a; --raum-2: #0d1018; --staub: #e9e6df; --leise: #9a9aa6; --signal: #ff5a1f; --signal-hell: #ff7a45; --kuehl: #7fd4ff;
  --anzeige: 'Unbounded', system-ui, sans-serif; --text: 'Manrope', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --aus: cubic-bezier(.19, 1, .22, 1); --feder: cubic-bezier(.34, 1.56, .64, 1);
  --rand: clamp(20px, 5vw, 80px); --kopf-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--raum); color: var(--staub); font: 400 clamp(16px, .9vw + 10px, 19px)/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2 { font-family: var(--anzeige); font-weight: 600; margin: 0; letter-spacing: -.02em; line-height: .95; }
h2 em, h1 em { font-style: normal; font-weight: 300; color: var(--leise); }
p { margin: 0 0 1em; }
a { color: inherit; }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: #000; padding: 10px 16px; }
.sprung:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Bühne: ein Canvas für alles, darüber Feuer und Blitz */
.welt { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
html:not(.js) .welt { display: none; }
.rampe { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; will-change: opacity; }
/* Bühne in Bildgröße: deckt den Schirm wie background-size: cover, Anker 72 % / unten — die Rakete sitzt in Prozent darauf */
.rampe-buehne { position: absolute; bottom: 0; width: max(100vw, 177.78vh); aspect-ratio: 16 / 9; left: calc((100vw - max(100vw, 177.78vh)) * .72); --rx: 75.44%; will-change: transform; }
.rampe-leer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rakete-gruppe { position: absolute; left: var(--rx); top: 45.6%; height: 26.6%; translate: -50% 0; will-change: transform; }
.rakete { display: block; height: 100%; width: auto; position: relative; }
.strahl { position: absolute; left: 50%; top: 96%; width: 380%; height: 120%; translate: -50% 0; transform-origin: 50% 0; opacity: 0; mix-blend-mode: screen; filter: blur(1.5px);
  background: radial-gradient(40% 58% at 50% 0%, #fffdf2 0%, #ffe7a3 22%, #ff9a3c 48%, rgba(255, 90, 31, .35) 70%, transparent 86%); }
.flamme { position: absolute; left: var(--rx); top: 72%; width: 62%; aspect-ratio: 16 / 9; translate: -50% -62%; background: url(assets/flamme.webp) 50% 50% / contain no-repeat; mix-blend-mode: screen; opacity: 0; transform-origin: 50% 62%; }
html:not(.js) .rampe { position: absolute; height: 100vh; }
/* Begleitkamera beim Aufstieg: die Rakete in zwei Stufen (dasselbe Bild, oben/unten abgeschnitten) */
.begleit { position: fixed; z-index: 3; left: 68%; top: 50%; height: 64vh; aspect-ratio: 62 / 694; translate: -50% -50%; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.stufe { position: absolute; inset: 0; will-change: transform; }
.stufe img { display: block; width: 100%; height: 100%; }
.stufe-oben img { clip-path: inset(0 0 57.5% 0); }
.stufe-unten img { clip-path: inset(42.5% 0 0 0); }
.duese { position: absolute; left: 50%; top: 99%; width: 520%; height: 70%; translate: -50% 0; transform-origin: 50% 0; mix-blend-mode: screen; filter: blur(2px);
  background: radial-gradient(38% 60% at 50% 0%, #fffdf2 0%, #ffe7a3 20%, #ff9a3c 46%, rgba(255, 90, 31, .3) 70%, transparent 88%); }
.duese-oben { top: 42%; width: 360%; height: 34%; opacity: 0; }
.blitz { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: #fff; opacity: 0; }

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--kopf-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--rand);
  background: linear-gradient(rgba(5, 6, 10, .7), rgba(5, 6, 10, 0)); }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.logo span { font: 700 18px/1 var(--anzeige); letter-spacing: .08em; }
.logo i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--signal); }
.missionszeit { margin: 0; color: var(--leise); font-variant-numeric: tabular-nums; }
.knopf-klein { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(233, 230, 223, .3); background: rgba(5, 6, 10, .3); color: var(--staub);
  font: 500 13px/1 var(--text); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.knopf-klein[aria-pressed="true"] { border-color: var(--kuehl); color: var(--kuehl); }
.knopf-signal { background: var(--signal); border-color: var(--signal); color: #120400; font-weight: 600; }
.knopf { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid rgba(233, 230, 223, .35); display: inline-flex; align-items: center;
  font: 600 16px/1 var(--text); text-decoration: none; transition: transform .25s var(--feder), background .25s; }
.knopf:hover { transform: translateY(-2px); }
.knopf.knopf-signal:hover { background: var(--signal-hell); }

/* HUD: Telemetrie links unten, erst nach der Zündung */
.hud { position: fixed; right: var(--rand); bottom: 28px; text-align: right; z-index: 40; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .6s var(--aus); pointer-events: none; }
.hud.da { opacity: 1; }
.hud dl { margin: 0; display: grid; gap: 6px; }
.hud dl div { display: grid; grid-template-columns: 74px 120px; }
.hud dt { color: var(--leise); }
.hud dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--staub); }
.hud-skala { margin: 12px 0 0 auto; width: 194px; height: 2px; background: rgba(233, 230, 223, .15); }
.hud-skala i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }

/* Szenen */
main { position: relative; z-index: 10; }
.szene { position: relative; padding: 0 var(--rand); }
.start { height: 260vh; }
.start-text { position: absolute; top: 0; left: var(--rand); right: var(--rand); height: 100vh; display: grid; align-content: end; padding-bottom: 14vh; }
.kicker { color: var(--signal); margin-bottom: 18px; }
h1 { font-size: clamp(64px, 14vw, 240px); font-weight: 800; letter-spacing: -.04em; line-height: .84; }
.h1-zeile { display: block; }
.h1-zahl { color: transparent; -webkit-text-stroke: 1.5px var(--staub); }
.lead { max-width: 34ch; font-size: clamp(17px, 1.1vw + 10px, 22px); color: #cfccc4; margin-top: 22px; }
.countdown { position: fixed; inset: 0; z-index: 20; margin: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.cd-zahl { font: 700 clamp(160px, 34vw, 520px)/1 var(--anzeige); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--staub); text-shadow: 0 0 60px rgba(255, 90, 31, .25); }
.scroll-hinweis { position: absolute; top: calc(100vh - 56px); right: var(--rand); color: var(--leise); }
.zuendung { height: 140vh; display: grid; align-content: center; }
.riesig { font-size: clamp(64px, 13vw, 220px); font-weight: 800; letter-spacing: -.05em; text-align: center; }
.aufstieg { padding-top: 40vh; padding-bottom: 40vh; }
.log { max-width: 34rem; min-height: 120vh; display: grid; align-content: center; }
.log h2 { font-size: clamp(34px, 4vw, 64px); margin: 12px 0 22px; }
.log p { max-width: 36ch; color: #d6d3cb; }
.log-zeit { color: var(--signal); }
.log-satz { color: var(--staub) !important; font-weight: 600; }
.log-rechts { margin-left: auto; }
.horizont { height: 160vh; }
.horizont-text { position: sticky; top: 0; height: 100vh; display: grid; align-content: start; padding-top: 18vh; }
.gross { font-size: clamp(44px, 7.2vw, 128px); }
.orbit { padding-bottom: 20vh; }
.faehig { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faehig li { padding: 12px 0; border-top: 1px solid rgba(233, 230, 223, .14); color: #d6d3cb; }
.faehig b { color: var(--staub); }
.andocken { height: 220vh; }
.station { position: sticky; top: 0; height: 100vh; margin: 0 calc(var(--rand) * -1); background: center / contain no-repeat url(assets/station.webp); mix-blend-mode: screen; transform-origin: 50% 50%; will-change: transform; }
.fadenkreuz { position: sticky; top: calc(50vh - 60px); width: 120px; height: 120px; margin: -100vh auto 0; display: grid; place-items: center; pointer-events: none; }
.fadenkreuz i { position: absolute; inset: 0; border: 1px solid rgba(127, 212, 255, .7); border-radius: 50%; }
.fadenkreuz i + i { inset: 40px; border-color: var(--signal); }
.fk-abstand { position: absolute; top: 132px; color: var(--kuehl); white-space: nowrap; }
.andock-status { position: sticky; top: calc(100vh - 80px); text-align: center; color: var(--kuehl); margin-top: 60vh; }
.planer { position: relative; z-index: 10; padding: 16vh var(--rand) 10vh; background: linear-gradient(transparent, rgba(5, 6, 10, .9) 12%); }
.planer-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; max-width: 1300px; }
.planer-gruppe { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.planer-gruppe legend { color: var(--signal); margin-bottom: 12px; padding: 0; }
.chip { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(233, 230, 223, .2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { font: 600 16px/1.2 var(--text); }
.chip small { font-size: 13px; color: var(--leise); }
.chip:hover { border-color: rgba(233, 230, 223, .5); }
.chip:has(input:checked) { border-color: var(--signal); background: rgba(255, 90, 31, .1); }
.chip:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.briefing { grid-column: 1 / -1; padding: 28px; border: 1px solid rgba(127, 212, 255, .35); border-radius: 16px; background: rgba(13, 16, 24, .7); }
.briefing .mono:first-child { color: var(--kuehl); }
.briefing-code { font-size: clamp(20px, 2.4vw, 34px) !important; color: var(--staub); margin: 8px 0 12px; letter-spacing: .12em; }
.briefing-text { max-width: 60ch; color: #d6d3cb; }
.crew { min-height: 100vh; display: grid; align-content: center; justify-items: start; padding-bottom: 12vh; background: linear-gradient(transparent, rgba(5, 6, 10, .85) 30%); }
.crew-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* Fuß */
.fuss { position: relative; z-index: 10; background: var(--raum); padding: 40px var(--rand); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font-size: 13px; border-top: 1px solid rgba(233, 230, 223, .1); }
.fuss p { margin: 0; color: var(--leise); }
.signatur { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.signatur > span { color: #8f8d98; font-size: 12.5px; }
.marke { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 12.5px; border-radius: 999px; padding: 6px 13px; transition: background .2s, border-color .2s; }
.marke img { flex: none; border-radius: 3px; }
.marke span { font-weight: 800; letter-spacing: -.01em; }
.marke-webliq { background: #ffffff14; border: 1px solid #b6e50440; }
.marke-webliq:hover { background: #ffffff24; border-color: #b6e504; }
.marke-webliq span { color: #b6e504; }
.marke-otaku { background: #4b7bff1f; border: 1px solid #5bc8ff59; }
.marke-otaku:hover { background: #4b7bff33; border-color: #5bc8ff; }
.marke-otaku span { color: #7fd4ff; }

@media (max-width: 760px) {
  .planer-form { grid-template-columns: 1fr; }
  :root { --kopf-h: 56px; }
  .missionszeit { display: none; }
  .kopf .knopf-signal { display: none; }
  .hud { bottom: auto; top: calc(var(--kopf-h) + 4px); left: var(--rand); right: auto; text-align: left; }
  .hud dl div { grid-template-columns: auto; }
  .hud dl { grid-auto-flow: column; gap: 14px; }
  .hud dl div { grid-template-columns: auto; gap: 2px; }
  .hud-skala { display: none; }
  .log { min-height: 110vh; align-content: end; padding-bottom: 14vh; }
  .log > * { position: relative; }
  .log { text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 28px rgba(5, 6, 10, .95); }
  .scroll-hinweis { right: auto; left: var(--rand); }
  .begleit { left: 50%; height: 56vh; }
  .rampe-buehne { width: max(100vw, 62.5vh); aspect-ratio: 480 / 768; left: calc((100vw - max(100vw, 62.5vh)) * .5); --rx: 43.33%; }
  .flamme { width: 260%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .flamme, .blitz { display: none; }
  .begleit .duese { opacity: .8 !important; transform: none !important; }
}
.fadenkreuz.ok i { border-color: var(--signal); box-shadow: 0 0 24px rgba(255, 90, 31, .5); }
.fadenkreuz.ok .fk-abstand { color: var(--signal); }
.ohne-3d .welt { display: none; }
[hidden] { display: none !important; }
