/* Nordlicht Aerospace, Mission NL-3. Seitenstil.
   Engine-Klassen (.sc-*, [data-sc-*]) bleiben unangetastet. Hier stehen Marke,
   die feste Welt (Himmel, Rampe, Rakete), Telemetrie, Zeitleiste und Formular.
   Tinte (--sc-ink, --sc-ink-soft) schaltet flug.js je nach Himmelshelligkeit um. */
:root {
  --sc-canvas:     #EEF0F2;
  --sc-surface:    #12141C;
  --sc-ink:        #12151B;
  --sc-ink-soft:   #3A414D;
  --sc-accent:     #FF6A2B;
  --sc-accent-ink: #14100D;
  --sc-font-display: "Chakra Petch", system-ui, sans-serif;
  --sc-font-text:    "Red Hat Text", system-ui, sans-serif;
  --sc-font-mono:    "Red Hat Text", system-ui, sans-serif;
  --sc-shadow-color: 228 30% 6%;
  --akzent-hell: #B53A0B;          /* gleicher Ton, dunkler: für Text auf hellem Grund */
  --akzent-text: var(--akzent-hell);
  --raum: #07080D;
  --raum-ink: #ECEEF2;
  --raum-soft: #AEB4C2;
  --rh: 400px;                     /* Raketenhöhe, setzt flug.js */
}
html { background: var(--sc-canvas); scrollbar-color: color-mix(in oklab, var(--sc-ink) 30%, transparent) transparent; }
body { background: transparent; color: var(--sc-ink); }
body.ist-dunkel { --akzent-text: var(--sc-accent); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }

/* Anzeige-Schrift: technisch, eckig, aufrecht. Hell auf dunkel bekommt Laufweite. */
.sc-display {
  font-family: var(--sc-font-display); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.02;
  color: var(--sc-ink);
}
.sc-display--xl { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 6rem); font-weight: 700; line-height: .98; }
.sc-display--lg { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.6rem); }
body.ist-dunkel .sc-display { letter-spacing: -0.005em; }
.sc-body { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.58; }
body.ist-dunkel .sc-body { line-height: 1.64; letter-spacing: .008em; }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2.3rem, 1.3rem + 5.4vw, 3.2rem); }
  .sc-display--lg { font-size: clamp(1.75rem, 1.15rem + 3vw, 2.4rem); }
  .sc-body { font-size: 1.04rem; }
}

/* ---------- Die feste Welt ---------- */
.welt { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #ACBFDA; }
.himmel { position: absolute; inset: 0; background: linear-gradient(#ACBFDA, #EBD9CB); }
.sterne { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.erde {
  position: absolute; left: 50%; bottom: 0; width: max(150vw, 1500px); max-width: none; height: auto;
  translate: -50% 0; opacity: 0; will-change: transform, opacity; filter: brightness(.86) saturate(1.05);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
}
.wolken { position: absolute; left: 50%; top: 0; width: max(170vw, 1700px); max-width: none; height: auto; translate: -50% 0; will-change: transform; }
.wolken--fern { opacity: .9; }
.wolken--nah { width: max(240vw, 2400px); scale: -1 1; }
.rampe { position: absolute; inset: 0 0 auto 0; height: 100%; will-change: transform; }
.rampe img {
  position: absolute; max-width: none; height: 100%; width: auto; top: 0; left: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
}
.feuer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Die Rakete: ein Bild, in fünf Teile geschnitten ---------- */
.rakete {
  position: absolute; left: 0; top: 0;
  height: var(--rh); width: calc(var(--rh) * 225 / 2591);
  transform-origin: 50% 100%; will-change: transform;
}
.teil { position: absolute; left: 0; width: 100%; will-change: transform; }
.teil img { display: block; width: 100%; height: 100%; max-width: none; }
.verkleidung { top: 0; height: 22.231%; z-index: 4; }
.verkleidung--l { width: 49.78%; transform-origin: 0% 100%; }
.verkleidung--r { left: 49.78%; width: 50.22%; transform-origin: 100% 100%; }
.stufe2 { top: 22.231%; height: 15.824%; z-index: 2; }
.stufe1 { top: 38.055%; height: 61.945%; z-index: 3; transform-origin: 50% 60%; }
.duese {
  position: absolute; left: 50%; top: 96%; width: 46%; height: 24%; translate: -50% 0;
  background: linear-gradient(90deg, #3a3c40, #8d9096 30%, #55585e 60%, #26282b);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
/* Landebeine und Gitterflossen: gezeichnet, im Aufstieg eingeklappt. */
.beine { position: absolute; left: -75.56%; width: 251.1%; max-width: none; top: 62.31%; height: 44.86%; overflow: visible; z-index: -1; }
.bein path { fill: #2B2E34; }
.bein .bein__fuss { fill: #4A4E56; }
.flosse {
  position: absolute; top: 1.2%; width: 26%; height: 2.6%; opacity: 0;
  background: repeating-linear-gradient(90deg, #2B2E34 0 2px, #6c7079 2px 4px);
  border: 1px solid #2B2E34;
}
.flosse--l { right: 100%; transform-origin: 100% 50%; }
.flosse--r { left: 100%; transform-origin: 0% 50%; }

.satellit {
  position: absolute; z-index: 3;
  width: 274%; left: -87%; top: 7.55%; aspect-ratio: 1264 / 634;
  transform-origin: 50% 50%; will-change: transform, clip-path;
}
.satellit img { position: absolute; top: 0; height: 100%; max-width: none; }
.sat-panel--l { left: 0; width: 39.72%; transform-origin: 100% 50%; }
.sat-koerper { left: 39.72%; width: 21.91%; }
.sat-panel--r { left: 61.71%; width: 38.29%; transform-origin: 0% 50%; }

/* ---------- Telemetrie am Rumpf ---------- */
.telemetrie {
  position: fixed; left: 0; top: 0; z-index: 15; pointer-events: none;
  color: var(--sc-ink); opacity: 0; transition: opacity 240ms var(--sc-ease-out);
  font-variant-numeric: tabular-nums;
}
.telemetrie.ist-an { opacity: 1; }
.telemetrie__linie {
  position: absolute; left: 0; top: 0; width: var(--linie, 60px); height: 1px;
  background: currentColor; opacity: .55;
}
.telemetrie__linie::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.telemetrie__tafel {
  position: absolute; left: var(--linie, 60px); top: 0; translate: 10px -14px;
  display: grid; gap: 4px; min-width: 12.5rem;
}
.telemetrie__phase { font: 600 .82rem/1.2 var(--sc-font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-text); }
.telemetrie__zeit { font: 600 1.35rem/1.1 var(--sc-font-display); }
.telemetrie dl { margin: 6px 0 0; display: grid; gap: 3px; }
.telemetrie dl > div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 8px; align-items: baseline; }
.telemetrie dt { font-size: .82rem; color: var(--sc-ink-soft); }
.telemetrie dd { margin: 0; font-weight: 700; font-size: .95rem; }
.telemetrie__q dd { display: grid; gap: 4px; }
.telemetrie__q i { display: block; width: 7rem; height: 3px; background: color-mix(in oklab, var(--sc-ink) 18%, transparent); }
.telemetrie__q s { display: block; height: 100%; width: calc(var(--q, 0) * 100%); background: var(--sc-accent); }
.telemetrie__maxq {
  justify-self: start; margin-top: 6px; padding: 3px 8px 2px; border-radius: 3px;
  font: 700 .8rem/1.2 var(--sc-font-display); letter-spacing: .1em; text-transform: uppercase;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  opacity: 0; transition: opacity 160ms var(--sc-ease-out);
}
.telemetrie.ist-maxq .telemetrie__maxq { opacity: 1; }
.telemetrie.ist-links .telemetrie__linie { left: auto; right: 0; }
.telemetrie.ist-links .telemetrie__tafel { left: auto; right: var(--linie, 60px); translate: -10px -14px; text-align: right; }
.telemetrie.ist-links dl > div { grid-template-columns: 1fr auto; }
.telemetrie.ist-links .telemetrie__maxq, .telemetrie.ist-links .telemetrie__q dd { justify-self: end; justify-items: end; }

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--sc-gutter); pointer-events: none; color: var(--sc-ink);
}
.kopf a { pointer-events: auto; color: inherit; }
.wortmarke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.02rem/1 var(--sc-font-display); letter-spacing: .04em; text-transform: uppercase; }
.wortmarke span { font-weight: 700; }
.wortmarke__zusatz { font-style: normal; margin-left: -4px; }
@media (max-width: 420px) { .wortmarke__zusatz { display: none; } .kopf__link { white-space: nowrap; } }
.wortmarke svg { width: 16px; height: 22px; fill: currentColor; }
.wortmarke__flamme { fill: var(--sc-accent); }
.kopf__link {
  font-weight: 700; font-size: var(--sc-t-sm); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--sc-accent);
  transition: text-decoration-thickness 160ms var(--sc-ease-out);
}
.kopf__link:hover { text-decoration-thickness: 3px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 3px; cursor: pointer;
  font: 700 1rem/1 var(--sc-font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: var(--sc-ink); background: transparent; border: 1.5px solid currentColor;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.knopf:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .knopf--rand:hover { background: color-mix(in oklab, var(--sc-accent) 16%, transparent); }
}
/* Der volle Knopf: Flammen-Orange mit feinem Raster, über das ein Lichtstreif läuft. */
.knopf--voll {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--sc-accent-ink); background: var(--sc-accent); border-color: var(--sc-accent);
}
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .36) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
    repeating-linear-gradient(90deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 5px);
  animation: streif 4.8s var(--sc-ease-in-out) infinite;
}
@keyframes streif { 0%, 55% { background-position: -200% 0, 0 0, 0 0; } 100% { background-position: 200% 0, 0 0, 0 0; } }
@media (hover: hover) and (pointer: fine) { .knopf--voll:hover { background: #FF7D45; } }

/* ---------- Missionszeitleiste rechts ---------- */
.leiste {
  position: fixed; right: 0; top: 84px; bottom: 28px; z-index: 40;
  width: 13rem; color: var(--sc-ink);
}
.leiste__spur { position: absolute; right: 26px; top: 0; bottom: 0; width: 1px; background: color-mix(in oklab, currentColor 28%, transparent); }
.leiste__spur i { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--fuell, 0) * 100%); background: var(--sc-accent); }
.leiste__spur b {
  position: absolute; left: -5px; top: calc(var(--fuell, 0) * 100%); width: 11px; height: 11px; margin-top: -5px;
  background: var(--sc-accent); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.leiste.ist-rueck .leiste__spur b { rotate: 180deg; }
.leiste ol { list-style: none; margin: 0; padding: 0; }
.leiste li { position: absolute; right: 0; top: calc(var(--y, 0) * 100%); translate: 0 -50%; }
.leiste a {
  display: grid; justify-items: end; padding: 4px 40px 4px 8px; text-decoration: none; color: inherit;
  position: relative; opacity: .8; transition: opacity 160ms var(--sc-ease-out);
}
.leiste a::after { content: ""; position: absolute; right: 23px; top: 50%; width: 7px; height: 1px; background: currentColor; }
.leiste time { font: 500 .72rem/1.2 var(--sc-font-text); font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.leiste span { font: 600 .86rem/1.2 var(--sc-font-display); letter-spacing: .02em; }
.leiste a.ist-hier, .leiste a:hover { opacity: 1; }
.leiste a.ist-hier::after { width: 13px; right: 20px; background: var(--sc-accent); height: 2px; }
.leiste a.ist-vorbei span { text-decoration: line-through; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
@media (max-width: 1100px) {
  .leiste { width: 3rem; }
  .leiste a { padding-right: 32px; }
  .leiste time, .leiste span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .leiste a { min-width: 34px; min-height: 26px; }
  .leiste__spur { right: 18px; }
  .leiste a::after { right: 15px; }
  .leiste a.ist-hier::after { right: 12px; }
}
body.ist-angebot .leiste { opacity: .0; pointer-events: none; }
.leiste { transition: opacity 300ms var(--sc-ease-out); }
/* Im Dunkeln liegt die Leiste oft über der hellen Erde: ein schmales Band nur dort. */
.leiste::before {
  content: ""; position: absolute; inset: -84px 0 -28px auto; width: 16rem; z-index: -1; pointer-events: none;
  background: linear-gradient(to left, rgb(7 8 13 / .7), rgb(7 8 13 / .35) 55%, transparent);
  opacity: 0; transition: opacity 300ms var(--sc-ease-out);
}
body.ist-dunkel .leiste::before { opacity: 1; }
@media (max-width: 1100px) { .leiste::before { width: 4rem; } }

/* ---------- Rückflug-Text ---------- */
.rueckflug {
  position: fixed; left: var(--sc-gutter); top: clamp(5.5rem, 15vh, 9rem); z-index: 30;
  max-width: 30rem; color: var(--sc-ink); opacity: 0; pointer-events: none;
  transition: opacity 260ms var(--sc-ease-out);
}
body.ist-rueckkehr .rueckflug { opacity: 1; }
.rueckflug__titel { margin: 0; font: 700 clamp(2rem, 1.3rem + 2.6vw, 3.4rem)/1.02 var(--sc-font-display); }
.rueckflug__text { margin: 12px 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.55; max-width: 34ch; }
body.ist-rueckkehr .aufstieg, body.ist-rueckkehr .start__text, body.ist-rueckkehr .flug__text--trennung { visibility: hidden; }

/* ---------- Akte ---------- */
.buehne { background: transparent; }
.start__text {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(6rem, 18vh, 11rem);
  width: min(38rem, 44vw);
}
.start__text h1 { max-width: 11ch; }
.start__sub { margin-top: var(--sc-5); max-width: 34ch; }
.start__text .knopf { margin-top: var(--sc-6); }
.start__hinweis { margin: var(--sc-4) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

.zaehler {
  position: absolute; z-index: var(--sc-z-copy);
  right: calc(100vw - var(--rakete-x, 62vw) + 2.6rem); top: clamp(7rem, 24vh, 14rem);
  display: grid; justify-items: end; text-align: right; color: var(--sc-ink); font-variant-numeric: tabular-nums;
}
.zaehler__vor, .zaehler__nach { font: 600 .9rem/1.2 var(--sc-font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.zaehler__zahl { font: 700 clamp(5rem, 3rem + 7vw, 10rem)/.9 var(--sc-font-display); letter-spacing: -.03em; min-width: 2ch; }
.zaehler.ist-null .zaehler__zahl { color: var(--akzent-hell); }
.zaehler.ist-gelandet .zaehler__zahl { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); color: var(--sc-ink); }

.flug__text {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(5.5rem, 15vh, 9rem);
  width: min(34rem, calc(56vw - var(--sc-gutter)));
  display: grid;
}
.flug__text > * { grid-area: 1 / 1; }
.flug__text .sc-body { margin-top: var(--sc-4); max-width: 36ch; }
.flug__text .knopf { margin-top: var(--sc-6); }

.brennschluss { padding-block: clamp(3rem, 10vh, 6rem) clamp(5rem, 22vh, 12rem); position: relative; z-index: 2; }
.brennschluss__wort { width: fit-content; font-size: clamp(2.8rem, 1.4rem + 4.6vw, 6.2rem); font-weight: 700; letter-spacing: -.02em; }
.brennschluss__text { width: fit-content; margin-top: var(--sc-5); max-width: 40ch; }

/* ---------- Mitflugplätze (Schiene) ---------- */
.buehne--plaetze { display: flex; align-items: center; color: var(--raum-ink); }
.schiene { display: flex; gap: clamp(1rem, 2.4vw, 2rem); padding-inline: var(--sc-gutter) calc(var(--sc-gutter) + 4rem); align-items: stretch; }
.platz {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 clamp(17rem, 27vw, 23rem);
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 24px; border-radius: 6px;
  background: color-mix(in oklab, #151824 92%, transparent);
  border: 1px solid rgb(236 238 242 / .1);
  box-shadow: inset 0 1px 0 rgb(236 238 242 / .07), 0 18px 40px -20px rgb(0 0 0 / .8);
}
/* Messraster im Inneren jeder Karte, nach unten ausgeblendet. */
.platz::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(236 238 242 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(236 238 242 / .05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 85%);
}
.platz::after {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgb(255 106 43 / .09), transparent);
  animation: schimmer 11s var(--sc-ease-in-out) infinite alternate;
}
@keyframes schimmer { to { translate: -60% 50%; } }
.platz--kopf { flex-basis: clamp(19rem, 34vw, 30rem); background: none; border: 0; box-shadow: none; justify-content: center; padding-left: 0; }
.platz--kopf::before, .platz--kopf::after { display: none; }
.platz--kopf .sc-display, .platz .sc-display { color: var(--raum-ink); }
.platz--kopf .sc-body { margin-top: var(--sc-3); color: var(--raum-soft); }
.platz__massstab { margin: var(--sc-5) 0 0; display: flex; align-items: center; gap: 10px; font-size: var(--sc-t-sm); color: var(--raum-soft); }
.platz__massstab svg { width: 60px; height: 8px; stroke: var(--sc-accent); fill: none; stroke-width: 1.5; }
.platz__wuerfel { width: 100%; height: auto; aspect-ratio: 1; max-height: 11.5rem; margin-bottom: 4px; }
.platz__name { margin: 0; font: 700 2.4rem/1 var(--sc-font-display); color: var(--raum-ink); }
.platz__mass { margin: 0; font-weight: 700; color: var(--raum-ink); font-variant-numeric: tabular-nums; }
.platz__fuer { margin: 0; color: var(--raum-soft); line-height: 1.5; }
.platz__preis { margin: auto 0 0; padding-top: 12px; color: var(--raum-soft); font-size: var(--sc-t-sm); border-top: 1px solid rgb(236 238 242 / .12); }
.platz__preis span { display: block; font: 600 1.6rem/1.2 var(--sc-font-display); color: var(--raum-ink); font-variant-numeric: tabular-nums; }
.platz .knopf { color: var(--raum-ink); margin-top: 8px; }
.platz.ist-gewaehlt { border-color: var(--sc-accent); }
.platz--notiz { background: color-mix(in oklab, #1B1F2D 94%, transparent); }
.platz__titel { margin: 0; font: 600 1.4rem/1.2 var(--sc-font-display); color: var(--raum-ink); }
.platz--notiz ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.platz--notiz li { padding-left: 22px; position: relative; color: var(--raum-ink); line-height: 1.45; }
.platz--notiz li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--sc-accent); border-bottom: 2px solid var(--sc-accent); rotate: -45deg; translate: 0 -40%; }
.platz__klein { margin: auto 0 0; font-size: var(--sc-t-sm); color: var(--raum-soft); }
/* Würfel-Zeichnung (flug.js baut die Flächen) */
.w-oben { fill: #3A4152; } .w-links { fill: #262B38; } .w-rechts { fill: #1D212C; }
.w-kante { fill: none; stroke: #9AA3B6; stroke-width: 1.2; stroke-linejoin: round; }
.w-zelle { fill: #0E1530; stroke: #2E3956; stroke-width: .8; }
.w-schiene { fill: none; stroke: var(--sc-accent); stroke-width: 2; stroke-linecap: round; }

/* ---------- Anfrage ---------- */
.buehne--anfrage { color: var(--raum-ink); }
.bahn { position: absolute; inset: 0; z-index: 1; }
.bahn__bogen { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; overflow: visible; }
.bahn__bogen path { fill: none; stroke: var(--sc-accent); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; transition: d 600ms var(--sc-ease-out); }
.bahn__bogen circle { fill: #F4F1EC; filter: drop-shadow(0 0 6px rgb(255 106 43 / .8)); }
.anfrage__inhalt {
  position: absolute; z-index: var(--sc-z-copy); inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 5rem);
  align-content: start; padding: clamp(6rem, 15vh, 9rem) calc(var(--sc-gutter) + 2rem) 0 var(--sc-gutter);
}
.anfrage__kopf { align-self: start; }
.anfrage__kopf .sc-display { color: var(--raum-ink); }
.anfrage__kopf .sc-body { margin-top: var(--sc-5); max-width: 34ch; color: var(--raum-soft); }
.formular {
  position: relative; isolation: isolate; display: grid; gap: 16px;
  padding: 24px; border-radius: 6px;
  background: rgb(14 16 24 / .9); border: 1px solid rgb(236 238 242 / .12);
  box-shadow: inset 0 1px 0 rgb(236 238 242 / .08), 0 24px 60px -30px rgb(0 0 0 / .9);
}
.formular::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-image: radial-gradient(rgb(236 238 242 / .07) 1px, transparent 1.2px); background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.wahl { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wahl legend { width: 100%; margin-bottom: 8px; font-size: var(--sc-t-sm); font-weight: 700; color: var(--raum-ink); }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 3px;
  border: 1px solid rgb(236 238 242 / .28); color: var(--raum-ink); font-weight: 500; font-size: .95rem;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.wahl input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 700; }
.wahl input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .wahl label:hover span { border-color: var(--sc-accent); } }
.formular__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: var(--sc-t-sm); font-weight: 700; color: var(--raum-ink); }
.feld input {
  min-height: 46px; padding: 0 12px; border-radius: 3px; width: 100%;
  background: rgb(236 238 242 / .06); border: 1px solid rgb(236 238 242 / .3); color: var(--raum-ink);
  caret-color: var(--sc-accent);
}
.feld input:focus { border-color: var(--sc-accent); outline: none; }
.feld__fehler { color: #FF9A6E; font-size: .85rem; }
.formular__summe { margin: 0; color: var(--raum-ink); font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.formular .knopf { justify-self: start; }
.formular__hinweis { margin: 0; font-size: .88rem; color: var(--raum-soft); }
.formular.ist-gesendet .formular__hinweis { color: var(--raum-ink); }
.fuss {
  position: absolute; z-index: var(--sc-z-copy); left: var(--sc-gutter); right: var(--sc-gutter); bottom: 16px;
  font-size: .8rem; color: var(--raum-soft); text-shadow: 0 1px 8px rgb(7 8 13 / .9);
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .start__text { width: auto; right: calc(var(--sc-gutter) + 2.2rem); top: 5.2rem; }
  .start__text .knopf { margin-top: var(--sc-5); }
  .zaehler { left: var(--sc-gutter); right: auto; top: auto; bottom: 7svh; justify-items: start; text-align: left; }
  .zaehler__zahl { font-size: clamp(3.6rem, 2rem + 8vw, 5rem); }
  .flug__text { width: auto; right: calc(var(--sc-gutter) + 2.4rem); top: 5rem; }
  .rueckflug { right: calc(var(--sc-gutter) + 2.4rem); top: 5rem; }
  .anfrage__inhalt { grid-template-columns: 1fr; gap: 18px; padding: 4.6rem var(--sc-gutter) 0; overflow-y: auto; }
  .anfrage__kopf .sc-body { margin-top: var(--sc-3); }
  .anfrage__kopf .sc-display--xl { font-size: 2.2rem; }
  .formular { padding: 16px; gap: 12px; }
  .bahn__bogen { height: 40%; }
  .fuss { display: none; }
}
@media (max-width: 700px) {
  .telemetrie__tafel { min-width: 0; }
  .telemetrie__zeit { font-size: 1.05rem; }
  .telemetrie dl > div { grid-template-columns: 4.4rem 1fr; }
  .telemetrie dt, .telemetrie dd { font-size: .78rem; }
  .telemetrie__q i { width: 4.6rem; }
  .platz { flex-basis: min(78vw, 19rem); padding: 18px 18px 18px; }
  .platz--kopf { flex-basis: 82vw; }
  .platz__wuerfel { max-height: 8rem; }
  .wahl span { min-height: 38px; padding: 0 11px; font-size: .9rem; }
  .start__hinweis { font-size: .82rem; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .anfrage__kopf .sc-body { display: none; }
  .anfrage__kopf .sc-display--xl { font-size: 1.9rem; }
  .anfrage__inhalt { padding-top: 4.2rem; gap: 10px; }
  .wahl legend { margin-bottom: 4px; }
  .wahl span { min-height: 34px; }
  .feld input { min-height: 40px; }
  .formular { gap: 10px; padding: 14px; }
  .formular__summe { font-size: .9rem; }
  .knopf { min-height: 44px; }
}
@media (max-width: 380px) {
  .start__sub { font-size: .98rem; }
  .start__text .sc-display--xl { font-size: 2.15rem; }
  .flug__text .sc-display--lg { font-size: 1.65rem; }
  .flug__text .sc-body { font-size: .97rem; }
}

/* ---------- Reduced Motion: ruhiger, vollständiger Zustand ---------- */
@media (prefers-reduced-motion: reduce) {
  .knopf--voll::before, .platz::after { animation: none; }
  .bahn__bogen path { transition: none; }
}

/* ---------- Scrims nur dort, wo Schrift über der hellen Erde liegen kann ----------
   Geschwister bzw. Eltern der Cues, nie deren eigenes ::before (die Prüfung blendet Cues aus). */
.flug__text::before, .brennschluss .sc-wrap::before, .anfrage__inhalt::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, rgb(7 8 13 / .9), rgb(7 8 13 / .82) 55%, rgb(7 8 13 / .35) 80%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  opacity: 0; transition: opacity 300ms var(--sc-ease-out);
}
.flug__text::before { inset: -6rem -10rem -10rem calc(-1 * var(--sc-gutter)); }
.brennschluss .sc-wrap { position: relative; }
.brennschluss .sc-wrap::before { left: 0; top: -5rem; width: min(56rem, 70vw); height: calc(100% + 10rem); }
.anfrage__inhalt::before { left: -6rem; top: 2rem; width: min(46rem, 100vw); height: 26rem; opacity: 1; }
body.ist-erde .flug__text::before, body.ist-erde .brennschluss .sc-wrap::before { opacity: 1; }
.flug__text, .anfrage__inhalt { isolation: isolate; }

@media (max-width: 860px) {
  .brennschluss .sc-wrap::before {
    left: 0; top: -4rem; width: 100%; height: calc(100% + 8rem);
    background: linear-gradient(transparent, rgb(7 8 13 / .9) 22%, rgb(7 8 13 / .9) 78%, transparent);
  }
  .brennschluss__wort { font-size: 2.5rem; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .start__hinweis { display: none; }
  .start__sub { font-size: .95rem; margin-top: .9rem; }
}
/* Telemetrie über der hellen Erde: eine leise Tafel nur im Dunkeln */
.telemetrie__tafel { padding: 8px 10px; border-radius: 4px; transition: background-color 300ms var(--sc-ease-out); }
body.ist-dunkel .telemetrie__tafel { background: rgb(7 8 13 / .62); box-shadow: inset 0 1px 0 rgb(236 238 242 / .06); }
