/* Stations-Awards – Grundlage für alle Seiten: Farben, Schrift, Schnee, Knöpfe. */

:root {
  --nacht: #0e1a33;
  --nacht-tief: #091225;
  --flaeche: #16264a;
  --flaeche-hell: #1e3260;
  --gold: #d4a84b;
  --gold-hell: #f2d58a;
  --gold-dunkel: #9c7426;
  --schnee: #f4f6fb;
  --nebel: #8fa3c7;
  --fehler: #f2a7a7;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --rand: 16px;
  --spalte: 34rem;
  --rund-klein: 12px;
  --rund-voll: 999px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(120% 70% at 50% 0%, var(--flaeche) 0%, var(--nacht) 55%, var(--nacht-tief) 100%) fixed;
  background-color: var(--nacht);
  color: var(--schnee);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 3px; }
h1:focus, h1:focus-visible { outline: none; }

/* ---------- Schnee ---------- */

.schnee, .schnee::before, .schnee::after {
  position: fixed;
  inset: -200px 0 0 0;
  pointer-events: none;
  z-index: 0;
}
.schnee {
  background-image:
    radial-gradient(2px 2px at 30px 40px, rgba(244, 246, 251, .55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 120px 90px, rgba(244, 246, 251, .4) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 170px 160px, rgba(244, 246, 251, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70px 180px, rgba(244, 246, 251, .45) 50%, transparent 51%);
  background-size: 200px 200px;
  animation: schneefall 28s linear infinite;
}
.schnee::before {
  content: "";
  background-image:
    radial-gradient(3px 3px at 60px 20px, rgba(244, 246, 251, .25) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 140px, rgba(244, 246, 251, .3) 50%, transparent 51%);
  background-size: 300px 300px;
  animation: schneefall-gross 40s linear infinite;
}
@keyframes schneefall { to { transform: translateY(200px); } }
@keyframes schneefall-gross { to { transform: translateY(300px); } }

/* ---------- Grundgerüst ---------- */

.buehne {
  position: relative;
  z-index: 1;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) var(--rand) calc(24px + env(safe-area-inset-bottom));
}

.bildschirm { display: flex; flex-direction: column; gap: 16px; }

.laden { color: var(--nebel); text-align: center; margin-top: 40vh; }

.gross-titel {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0;
  color: var(--gold-hell);
}

.unterzeile { margin: -8px 0 0; color: var(--nebel); font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
.einleitung { margin: 0; font-size: 1.1875rem; line-height: 1.45; max-width: 30ch; }
.klein { margin: 0; color: var(--nebel); font-size: .9375rem; max-width: 40ch; }
.hinweis { margin: 0; color: var(--nebel); }
.hinweis.fehler { color: var(--fehler); }


/* ---------- Knöpfe ---------- */

.knopf {
  appearance: none;
  border: 0;
  border-radius: var(--rund-voll);
  min-height: 52px;
  padding: 0 26px;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.knopf.haupt {
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  color: var(--nacht-tief);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px rgba(212, 168, 75, .25);
}
.knopf.haupt:active { transform: translateY(1px); }
.knopf.leise { background: transparent; color: var(--schnee); box-shadow: inset 0 0 0 1px rgba(244, 246, 251, .25); }

.knopf:disabled { opacity: .45; cursor: default; }

/* ---------- Verbindung ---------- */

.verbindung {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--rund-voll);
  background: var(--flaeche-hell);
  color: var(--schnee);
  font-size: .9375rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  white-space: nowrap;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.konfetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  .schnee, .schnee::before { animation: none; }
}
