/* Die Anmeldeseite fuer unterwegs. Eigenstaendig: Sie laedt nichts aus
   dem Rest der Oberflaeche, weil der Rest erst nach der Anmeldung
   herausgeht.

   Seit dem 29.09.2026 im Zukunftsdesign von modernhosting.ch: Weltraum,
   Rakete mit Umlaufbahn, bewegtes Punktenetz, Verlauf Violett-Cyan-Mint.
   Hier steht keine Messzahl - die Markenfarben duerfen also frei
   leuchten, anders als im Panel.

   Eine einzige Schrift wird geladen: Rajdhani 700 fuer die Titel (SIL
   Open Font License, Lizenz in schrift/). Text und Kennzeilen nehmen die
   Systemschrift - vor der Anmeldung soll so wenig wie moeglich hinaus,
   und unterwegs zaehlt jedes Kilobyte. Fehlt auch Rajdhani, greift die
   Systemschrift; die Seite bleibt bedienbar.

   Bewegung nur aus weltraum.js (hoechstens 12 Bilder je Sekunde, still
   bei "Bewegung reduzieren", nachts, nach fuenf Minuten Ruhe und bei
   verstecktem Tab). Hier laeuft keine CSS-Endlosanimation. */

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/anmelden/schrift/rajdhani-700-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --grund:       #070a13;
  --grund-tief:  #04070e;
  --text:        #eef3ff;
  --text-2:      #a6b2ca;
  --beschriftung: #d3dcee;
  --leise:       #8794b0;
  --haarlinie:   rgba(255, 255, 255, .18);
  --violett:     #a492ff;
  --indigo:      #6550db;
  --cyan:        #69e1f5;
  --mint:        #9af5d4;
  --verlauf:     linear-gradient(105deg, var(--violett), var(--cyan) 65%, var(--mint));
  --verlauf-text: var(--verlauf);
  --knopf-verlauf: linear-gradient(105deg, #a492ff, #69e1f5 65%, #9af5d4);
  --karte-grund: linear-gradient(180deg, rgba(18, 27, 45, .94), rgba(10, 15, 27, .96));
  --karte-schatten: 0 30px 90px rgba(0, 0, 0, .5), 0 0 80px -30px rgba(113, 82, 218, .45);
  --feld:        rgba(4, 7, 14, .62);
  --feld-auto:   #0a111f;
  /* Feldrahmen mindestens 3:1 gegen die Karte (WCAG 1.4.11). */
  --feld-rand:   #6b7a99;
  --feld-rand-hover: #8391ad;
  --fokus:       #69e1f5;
  --fehler:      #ffb2c0;
  --ecke:        rgba(105, 225, 245, .62);
  --kante:       rgba(105, 225, 245, .72);

  --schrift: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --titel:   'Rajdhani', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:    ui-monospace, 'SFMono-Regular', 'Roboto Mono', Consolas, monospace;

  /* Fuer weltraum.js */
  --weltraum-stern:   #e4eaff;
  --weltraum-linie:   #a7b4f2;
  --weltraum-knoten:  #eef2ff;
  --weltraum-deckung: 1.15;
  --weltraum-dichte:  1.2;

  /* Die Rakete */
  --rumpf-dunkel: #526584;
  --rumpf-hell:   #eff8ff;
  --rumpf-mitte:  #b6c8dc;
  --glas:         #102d4d;
  --bahn:         rgba(255, 255, 255, .20);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --grund:       #eef2fb;
    --grund-tief:  #dfe5f5;
    --text:        #0f1e34;
    --text-2:      #3d5578;
    --beschriftung: #2d4262;
    --leise:       #56698a;
    --haarlinie:   rgba(28, 34, 90, .18);
    --violett:     #5b3fd6;
    --indigo:      #4a33b8;
    --cyan:        #0b7d99;
    --mint:        #0f8a6c;
    --verlauf-text: linear-gradient(105deg, #5b3fd6, #0b7d99 65%, #0f8a6c);
    --karte-grund: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(249, 250, 255, .95));
    --karte-schatten: 0 24px 70px rgba(40, 50, 120, .18), 0 0 80px -34px rgba(91, 63, 214, .35);
    --feld:        #ffffff;
    --feld-auto:   #ffffff;
    --feld-rand:   #7d8aa6;
    --feld-rand-hover: #5f6d8b;
    --fokus:       #0b6f88;
    --fehler:      #b4233c;
    --ecke:        rgba(11, 111, 136, .55);
    --kante:       rgba(91, 63, 214, .45);

    --weltraum-stern:   #5157a8;
    --weltraum-linie:   #5a55c7;
    --weltraum-knoten:  #4a3fc4;
    --weltraum-deckung: .75;
    --weltraum-dichte:  .6;

    --rumpf-dunkel: #5d6f8f;
    --rumpf-hell:   #ffffff;
    --rumpf-mitte:  #c3d0e2;
    --glas:         #12375c;
    --bahn:         rgba(40, 44, 120, .24);
  }
}

/* Erzwungen (Umschalter Automatisch/Hell/Dunkel): dieselben Regeln ohne Medienabfrage. */
:root[data-theme="light"] {
    color-scheme: light;
    --grund:       #eef2fb;
    --grund-tief:  #dfe5f5;
    --text:        #0f1e34;
    --text-2:      #3d5578;
    --beschriftung: #2d4262;
    --leise:       #56698a;
    --haarlinie:   rgba(28, 34, 90, .18);
    --violett:     #5b3fd6;
    --indigo:      #4a33b8;
    --cyan:        #0b7d99;
    --mint:        #0f8a6c;
    --verlauf-text: linear-gradient(105deg, #5b3fd6, #0b7d99 65%, #0f8a6c);
    --karte-grund: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(249, 250, 255, .95));
    --karte-schatten: 0 24px 70px rgba(40, 50, 120, .18), 0 0 80px -34px rgba(91, 63, 214, .35);
    --feld:        #ffffff;
    --feld-auto:   #ffffff;
    --feld-rand:   #7d8aa6;
    --feld-rand-hover: #5f6d8b;
    --fokus:       #0b6f88;
    --fehler:      #b4233c;
    --ecke:        rgba(11, 111, 136, .55);
    --kante:       rgba(91, 63, 214, .45);

    --weltraum-stern:   #5157a8;
    --weltraum-linie:   #5a55c7;
    --weltraum-knoten:  #4a3fc4;
    --weltraum-deckung: .75;
    --weltraum-dichte:  .6;

    --rumpf-dunkel: #5d6f8f;
    --rumpf-hell:   #ffffff;
    --rumpf-mitte:  #c3d0e2;
    --glas:         #12375c;
    --bahn:         rgba(40, 44, 120, .24);
  }


* { box-sizing: border-box; }

/* Die Wurzel schneidet selbst ab: Rakete, Nebel und Horizont ragen
   sonst am Handy seitlich hinaus und loesen Querscrollen aus. */
html {
  background: var(--grund);
  overflow-x: hidden;
  overflow-x: clip;
}

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--grund);
  color: var(--text);
  font: 400 16px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

[hidden] { display: none !important; }

::selection { background: var(--violett); color: var(--grund); }

/* --- Himmel ----------------------------------------------------------- */

.himmel {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Die Sterne malt weltraum.js. Fehlt es, bleibt Nebel und Horizont -
     ein Punktmuster aus CSS-Verlaeufen laege sichtbar im Raster. */
  background: var(--grund);
}

.nebel {
  position: absolute;
  border-radius: 50%;
}
.nebel-eins {
  top: -28vh;
  right: -24vw;
  width: 78vw;
  height: 92vh;
  background: radial-gradient(ellipse at center, rgba(52, 44, 130, .72),
                rgba(37, 32, 95, .3) 38%, transparent 66%);
  transform: rotate(-30deg);
}
.nebel-zwei {
  bottom: -32vh;
  left: -22vw;
  width: 64vw;
  height: 74vh;
  background: radial-gradient(ellipse at center, rgba(71, 206, 235, .12),
                rgba(101, 80, 219, .08) 42%, transparent 68%);
}

.himmel-sterne {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Der Horizont eines Planeten, von dem die Rakete gestartet ist. */
.horizont {
  position: absolute;
  top: calc(100% - 12vh);
  left: 36%;
  width: 300vmax;
  height: 300vmax;
  margin-left: -150vmax;
  border-top: 1px solid rgba(154, 245, 212, .5);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0, rgba(105, 225, 245, .18),
                rgba(26, 36, 72, .9) 5%, var(--grund-tief) 14%);
  box-shadow: 0 -6px 36px rgba(105, 225, 245, .18),
              0 -36px 140px rgba(164, 146, 255, .22);
}

html[data-weltraum-grund="nacht"] .himmel-sterne { opacity: .6; }

/* --- Seite ---------------------------------------------------------------- */

.seite {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  grid-template-rows: 1fr auto;
  grid-template-areas: "szene karte" "fuss fuss";
  align-items: center;
  column-gap: clamp(24px, 5vw, 72px);
  width: min(1120px, 100% - 48px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 0 0;
}

/* --- Szene mit der Rakete ------------------------------------------------ */

.szene {
  grid-area: szene;
  position: relative;
  min-width: 0;
}

.flugmarke {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 12px;
  color: var(--leise);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.kreuz { color: var(--cyan); font-size: 20px; line-height: 1; font-weight: 400; }
.trenner { color: var(--violett); }
.etappe { margin-left: auto; }

.buehne {
  position: relative;
  height: clamp(300px, 44vh, 430px);
}

.rakete {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 520 / 580;
  transform: translateX(-50%);
  overflow: visible;
}

.ton-rumpf-dunkel { stop-color: var(--rumpf-dunkel); }
.ton-rumpf-hell   { stop-color: var(--rumpf-hell); }
.ton-rumpf-mitte  { stop-color: var(--rumpf-mitte); }
.ton-violett      { stop-color: #a492ff; }
.ton-indigo       { stop-color: #6550db; }
.ton-weiss        { stop-color: #ffffff; }
.ton-cyan         { stop-color: #69e1f5; }
.ton-leer         { stop-color: #a492ff; stop-opacity: 0; }
.ton-glas         { stop-color: var(--glas); }
.ton-kurs         { stop-color: #69e1f5; stop-opacity: .9; }
.ton-kurs-ende    { stop-color: #a492ff; stop-opacity: .1; }

.bahn { fill: none; stroke: var(--bahn); stroke-width: 1; }
.bahn-weit { opacity: .55; }
.bahn-vorn { stroke-width: 1.3; }
.kurs {
  fill: none;
  stroke: url(#rakete-kurs);
  stroke-width: 1.6;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: .7;
}
.wolken { fill: #a492ff; opacity: .1; }
.strahl-hof { fill: url(#rakete-strahl); opacity: .3; }
.strahl { fill: url(#rakete-strahl); }
.rumpf { fill: url(#rakete-rumpf); }
.flosse, .nase { fill: url(#rakete-flosse); }
.naht { fill: none; stroke: var(--rumpf-dunkel); stroke-width: 2; }
.rahmen { fill: var(--rumpf-dunkel); stroke: var(--rumpf-hell); stroke-width: 3; }
.glas { fill: url(#rakete-fenster); }
.glanz { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; opacity: .65; }
.mittelflosse { fill: #6550db; }
.duese { fill: var(--rumpf-dunkel); }
.marke { fill: none; stroke: var(--rumpf-dunkel); stroke-width: 2; }
.satellit, .satellit-hof { fill: #69e1f5; }
.funken { fill: #69e1f5; stroke: #69e1f5; opacity: .5; }

.telemetrie {
  position: absolute;
  left: 12px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 14px;
  border-left: 1px solid var(--haarlinie);
  background: linear-gradient(90deg, rgba(13, 19, 34, .72), rgba(13, 19, 34, 0));
  color: var(--text-2);
  font: 500 11px/1.45 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lampe {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.leitsatz {
  margin: 20px 0 0 12px;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--text);
}
.leitsatz > span { display: block; width: fit-content; }

.verlauf {
  color: var(--cyan);
  padding-bottom: .06em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .verlauf {
    background: var(--verlauf-text);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* --- Karte ----------------------------------------------------------------- */

.karte {
  grid-area: karte;
  justify-self: end;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 420px;
  padding: 34px 32px 28px;
  border-radius: 20px;
  /* Oben eine Lichtkante, darunter die fast deckende Flaeche. */
  background:
    linear-gradient(90deg, transparent, var(--kante), transparent) 50% 0 / calc(100% - 56px) 1px no-repeat,
    var(--karte-grund);
  box-shadow: var(--karte-schatten), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Irisierender Rand, stehend - er bewegt sich nicht. */
.karte::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from 220deg,
    rgba(255, 255, 255, .1), #a492ff 8%, #69e1f5 16%, #9af5d4 21%,
    rgba(255, 255, 255, .1) 34%, rgba(255, 255, 255, .06) 70%,
    rgba(164, 146, 255, .35) 88%, rgba(255, 255, 255, .1));
  -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
          mask-composite: exclude;
  pointer-events: none;
}

/* Andock-Rahmen: vier Eckwinkel wie bei einer Zielerfassung. Mit dem
   Fokus im Formular ruecken sie naeher und leuchten staerker: die Karte
   "dockt an" (Idee von Codex). */
.karte::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(var(--ecke), var(--ecke)) left top / 20px 1px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) left top / 1px 20px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) right top / 20px 1px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) right top / 1px 20px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) left bottom / 20px 1px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) left bottom / 1px 20px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) right bottom / 20px 1px no-repeat,
    linear-gradient(var(--ecke), var(--ecke)) right bottom / 1px 20px no-repeat;
}

.kennung {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan);
  font: 500 11.5px/1.6 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kennung::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

h1 {
  margin: 0 0 6px;
  font-family: var(--titel);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.unter { margin: 0 0 24px; color: var(--text-2); font-size: 15.5px; }

.feld { display: block; margin-bottom: 16px; }

.feld span {
  display: block;
  margin-bottom: 7px;
  color: var(--beschriftung);
  font-size: 14px;
  font-weight: 500;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--feld-rand);
  border-radius: 10px;
  background: var(--feld);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s;
}
input:hover { border-color: var(--feld-rand-hover); }

/* Das Ausfuellen durch den Browser soll die Karte nicht gelb faerben. */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--feld-auto) inset;
          box-shadow: 0 0 0 100px var(--feld-auto) inset;
  caret-color: var(--text);
}

input:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 2px;
  border-color: var(--fokus);
}

#knopf {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--knopf-verlauf);
  color: #06091a;
  font: 600 16px/1.2 var(--schrift);
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(105, 225, 245, .55);
  transition: box-shadow .25s, transform .12s;
}
#knopf:hover { box-shadow: 0 0 36px rgba(105, 225, 245, .32); }
#knopf:active { transform: translateY(1px); }
#knopf:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

button:disabled, input:disabled { opacity: .6; cursor: default; }

.meldung {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 15px;
}
.meldung.fehler { color: var(--fehler); }

/* --- Fuss mit dem Schalter fuer die Bewegung --------------------------- */

.fuss {
  grid-area: fuss;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 18px 0 calc(10px + env(safe-area-inset-bottom));
}

/* Darstellung: Automatisch / Hell / Dunkel (anmelden.js). Dieselbe Wahl
   gilt nach der Anmeldung im Panel. */
.darstellung {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--haarlinie);
  border-radius: 999px;
}
.darstellung button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 600 .875rem/1 var(--schrift);
  cursor: pointer;
}
.darstellung button svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.darstellung button svg .fuell { fill: currentColor; }
.darstellung button:hover { color: var(--text); }
.darstellung button[aria-pressed="true"] {
  border-color: var(--haarlinie);
  background: var(--haarlinie);
  color: var(--text);
}
.darstellung button:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

.bewegung {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--haarlinie);
  border-radius: 999px;
  background: transparent;
  color: var(--leise);
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.bewegung:hover { color: var(--text-2); }
.bewegung::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.bewegung[aria-pressed="true"] { color: var(--text-2); }
.bewegung[aria-pressed="true"]::before { background: currentColor; }
.bewegung:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }

.karte:focus-within::after {
  inset: -7px;
  --ecke: var(--fokus);
}
@media (prefers-reduced-motion: no-preference) {
  .karte::after { transition: inset .25s ease; }
}

/* --- Hell ------------------------------------------------------------------ */

@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme="dark"])) .himmel {
    background: linear-gradient(170deg, #f6f8fe 0%, var(--grund) 55%, #e6ebf8 100%);
  }
  :where(:root:not([data-theme="dark"])) .nebel-eins {
    background: radial-gradient(ellipse at center, rgba(124, 100, 236, .24),
                  rgba(124, 100, 236, .10) 38%, transparent 66%);
  }
  :where(:root:not([data-theme="dark"])) .nebel-zwei {
    background: radial-gradient(ellipse at center, rgba(34, 169, 198, .12),
                  rgba(124, 100, 236, .07) 42%, transparent 68%);
  }
  :where(:root:not([data-theme="dark"])) .horizont {
    border-top-color: rgba(91, 63, 214, .38);
    background: radial-gradient(circle at 50% 0, rgba(124, 100, 236, .18),
                  #e3e7f6 6%, var(--grund-tief) 14%);
    box-shadow: 0 -6px 36px rgba(91, 63, 214, .12),
                0 -36px 140px rgba(124, 100, 236, .16);
  }
  :where(:root:not([data-theme="dark"])) .telemetrie {
    background: linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, 0));
  }
  :where(:root:not([data-theme="dark"])) .karte { box-shadow: var(--karte-schatten), inset 0 1px 0 rgba(255, 255, 255, .9); }
  :where(:root:not([data-theme="dark"])) .karte::before {
    background: conic-gradient(from 220deg,
      rgba(28, 34, 90, .12), #7c64ec 8%, #22a9c6 16%, #2fbf96 21%,
      rgba(28, 34, 90, .12) 34%, rgba(28, 34, 90, .08) 70%,
      rgba(91, 63, 214, .32) 88%, rgba(28, 34, 90, .12));
  }
  :where(:root:not([data-theme="dark"])) .kurs { opacity: .55; }
  :where(:root:not([data-theme="dark"])) .wolken { opacity: .12; }
  :where(:root:not([data-theme="dark"])) .funken { fill: #22a9c6; stroke: #22a9c6; }
}

/* Erzwungen (Umschalter Automatisch/Hell/Dunkel): dieselben Regeln ohne Medienabfrage. */
:where(:root[data-theme="light"]) .himmel {
    background: linear-gradient(170deg, #f6f8fe 0%, var(--grund) 55%, #e6ebf8 100%);
  }
  :where(:root[data-theme="light"]) .nebel-eins {
    background: radial-gradient(ellipse at center, rgba(124, 100, 236, .24),
                  rgba(124, 100, 236, .10) 38%, transparent 66%);
  }
  :where(:root[data-theme="light"]) .nebel-zwei {
    background: radial-gradient(ellipse at center, rgba(34, 169, 198, .12),
                  rgba(124, 100, 236, .07) 42%, transparent 68%);
  }
  :where(:root[data-theme="light"]) .horizont {
    border-top-color: rgba(91, 63, 214, .38);
    background: radial-gradient(circle at 50% 0, rgba(124, 100, 236, .18),
                  #e3e7f6 6%, var(--grund-tief) 14%);
    box-shadow: 0 -6px 36px rgba(91, 63, 214, .12),
                0 -36px 140px rgba(124, 100, 236, .16);
  }
  :where(:root[data-theme="light"]) .telemetrie {
    background: linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, 0));
  }
  :where(:root[data-theme="light"]) .karte { box-shadow: var(--karte-schatten), inset 0 1px 0 rgba(255, 255, 255, .9); }
  :where(:root[data-theme="light"]) .karte::before {
    background: conic-gradient(from 220deg,
      rgba(28, 34, 90, .12), #7c64ec 8%, #22a9c6 16%, #2fbf96 21%,
      rgba(28, 34, 90, .12) 34%, rgba(28, 34, 90, .08) 70%,
      rgba(91, 63, 214, .32) 88%, rgba(28, 34, 90, .12));
  }
  :where(:root[data-theme="light"]) .kurs { opacity: .55; }
  :where(:root[data-theme="light"]) .wolken { opacity: .12; }
  :where(:root[data-theme="light"]) .funken { fill: #22a9c6; stroke: #22a9c6; }


/* --- Schmal: Rakete ueber der Karte ------------------------------------- */

@media (max-width: 900px) {
  .seite {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "szene" "karte" "fuss";
    /* Oben beginnen statt mittig: sonst schiebt der freie Platz das
       Formular nach unten, unter die Tastatur. */
    align-content: start;
    justify-items: center;
    row-gap: 10px;
    width: min(460px, 100% - 32px);
    padding-top: 12px;
  }
  .szene { width: 100%; }
  .flugmarke { margin: 0 0 2px 4px; }
  /* Am Handy steht das Formular im Vordergrund: Die Buehne ist klein,
     damit das E-Mail-Feld auch mit eingeblendeter Tastatur frueh kommt
     (Codex, 29.09.2026). */
  .buehne { height: clamp(96px, 14vh, 140px); }
  .telemetrie, .kurs { display: none; }
  .leitsatz {
    margin: 2px 0 4px;
    text-align: center;
    font-size: clamp(26px, 7.4vw, 38px);
  }
  .leitsatz > span { display: inline; width: auto; }
  .karte { justify-self: stretch; max-width: none; padding: 28px 22px 22px; }
}

@media (max-width: 380px) {
  .karte { padding: 24px 18px 20px; }
  h1 { font-size: 34px; }
  .flugmarke .etappe { display: none; }
}

/* Niedrige Handys (etwa 375 x 667): der Leitsatz ist Zierde, das
   Formular nicht. */
@media (max-width: 900px) and (max-height: 720px) {
  .leitsatz { display: none; }
}

/* Handy quer: kein Platz fuer die Szene - nur die Karte. */
@media (max-height: 560px) and (orientation: landscape) {
  .szene { display: none; }
  .seite {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "karte" "fuss";
    grid-template-rows: auto auto;
    justify-items: center;
    width: min(460px, 100% - 32px);
  }
  .karte { justify-self: stretch; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  input, #knopf { transition: none; }
}

@media (forced-colors: active) {
  .verlauf {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
  .himmel, .szene { display: none; }
}

/* --- Anmeldung mit SSO (seit 12.10.2026) ------------------------------- */

.sso-block { margin-top: 18px; }
.sso-block[hidden] { display: none; }
.sso-oder { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--leise); font-size: 14px; }
.sso-oder::before, .sso-oder::after { content: ''; flex: 1; height: 1px; background: var(--haarlinie); }
.sso-knopf {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--feld);
  border: 1px solid var(--feld-rand);
  border-radius: 12px;
}
.sso-knopf:hover { border-color: var(--feld-rand-hover); }
.sso-knopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

@media (max-width: 349px) {
  .darstellung button svg { display: none; }
  .darstellung button { padding-inline: 11px; }
}
