/* ============================================================================
   Dupis Adventskalender – gemeinsamer Rahmen
   ----------------------------------------------------------------------------
   Diese Datei enthält alles, was auf jeder Seite gleich aussieht: Kopfleiste,
   Bühne, Knöpfe, Karten, Schnee, Hinweise. Die einzelnen Türchen laden sie und
   ergänzen nur ihr eigenes Spiel.

   Zwei Regeln, die aus PRODUCT.md folgen und hier technisch verankert sind:
   1. Alles, was ein Kind bedient, ist mindestens 60 px groß  ->  --tap
   2. Bewegung ist verspielt, aber abschaltbar  ->  prefers-reduced-motion
   ========================================================================== */

/* ---------------------------------------------------------------- Schrift -- */
@font-face {
  font-family: "Dupi Sans";
  src: url("../public/assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- Variablen - */
:root {
  --navy: #062d78;
  --deep: #031a57;
  --blue: #1678f2;
  --sky: #78c7ff;
  --pale: #eaf7ff;
  --red: #ed4050;
  --red-dark: #b52737;
  --yellow: #ffcd42;
  --gold-dark: #d89521;
  --green: #2c9c5b;
  --green-dark: #1d6f3f;
  --ink: #082d69;

  /* Kleinste erlaubte Trefferfläche. Nie unterschreiten. */
  --tap: 60px;

  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --shell: min(1120px, calc(100% - 28px));

  /* Bühnenverlauf – wird pro Farbwelt überschrieben */
  --bg-top: #042268;
  --bg-mid: #0a5bc6;
  --bg-bottom: #78c7ff;
  --accent: #1678f2;

  font-family: "Dupi Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}

/* ----------------------------------------------------------- Farbwelten --- */
/* Jedes Türchen setzt eine davon per <body data-theme="..."> .              */
[data-theme="ice"]    { --bg-top:#0a4ea8; --bg-mid:#2b8ae4; --bg-bottom:#cbecff; --accent:#1678f2; }
[data-theme="night"]  { --bg-top:#020d33; --bg-mid:#0a2f77; --bg-bottom:#4f8fd6; --accent:#6fa8ff; }
[data-theme="forest"] { --bg-top:#03301f; --bg-mid:#11623c; --bg-bottom:#a8e6c0; --accent:#2c9c5b; }
[data-theme="candy"]  { --bg-top:#7a1030; --bg-mid:#d63a58; --bg-bottom:#ffd9e2; --accent:#ed4050; }
[data-theme="gold"]   { --bg-top:#4a2704; --bg-mid:#c98a12; --bg-bottom:#ffeab5; --accent:#d89521; }
[data-theme="rose"]   { --bg-top:#3d0c46; --bg-mid:#8e2f9e; --bg-bottom:#f2cdff; --accent:#a13cb4; }

/* ------------------------------------------------------------- Grundlagen - */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Wenn eine Rückmeldung oder ein Abschluss die Seite gerade lang genug
     macht, darf das Einblenden der vertikalen Scrollbar den Inhalt nicht
     seitlich verschieben. */
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  /* dvh folgt der ein- und ausblendenden Browserleiste auf Mobilgeräten.
     svh hält den Seitenrahmen beim Tippen dagegen konstant. */
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: linear-gradient(var(--bg-top) 0 12%, var(--bg-mid) 58%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
button, a, input, textarea, select { font: inherit; }

/* Touch-Hygiene: kein Doppeltipp-Zoom, kein Textmarkieren, kein iOS-Menü.
   Für Kinder mit unsicherer Motorik ist das kein Detail, sondern der
   Unterschied zwischen „es passiert etwas" und „das Handy zoomt weg". */
button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 90;
  padding: 12px 18px; border-radius: 0 0 14px 14px;
  background: #fff; color: var(--navy); font-weight: 850; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------ Seitengerüst */
.page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8px 0 calc(30px + env(safe-area-inset-bottom));
}

/* Sternenfeld oben, Schneehügel unten – reine Dekoration, nie interaktiv. */
.page::before, .page::after { content: ""; position: absolute; z-index: -2; pointer-events: none; }
.page::before {
  inset: 0 0 auto; height: 560px;
  background-image:
    radial-gradient(circle at 8% 28%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 16% 39%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 72% 15%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 89% 34%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 40% 20%, #fff 0 1px, transparent 2px);
  background-size: 130px 100px, 170px 160px, 190px 140px, 150px 120px, 100px 95px;
  opacity: .7;
}
.page::after {
  left: -5%; right: -5%; bottom: -140px; height: 400px; z-index: -1;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 60%, #fff 0 42%, #e3f5ff 43% 64%, transparent 65%);
}

.shell { width: var(--shell); margin: auto; }

/* --------------------------------------------------------------- Kopfleiste */
.topbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 22px;
  min-height: 106px; padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 7px 20px rgba(0, 18, 68, .32);
}
.topbar .brand { grid-column: 2; justify-self: center; width: min(265px, 100%); min-width: 0; line-height: 0; }
.topbar .brand img { width: 100%; height: 70px; object-fit: contain; mix-blend-mode: multiply; }

.topbar .nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 6px; }
.topbar .nav a {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  color: var(--navy); font-size: 16px; font-weight: 750;
  text-decoration: none; white-space: nowrap;
}
.topbar .nav b { font-size: 24px; font-weight: 500; line-height: 1; }
.topbar .nav a[aria-current="page"] { background: var(--pale); }

@media (hover: hover) and (pointer: fine) {
  .topbar .nav a:hover { background: var(--pale); }
}

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; padding: 30px 14px 14px; text-align: center; color: #fff; }

/* Lichterkette */
.lights {
  position: absolute; left: -2vw; right: -2vw; top: 6px;
  display: flex; justify-content: space-around; height: 40px;
  border-top: 2px solid #3b1f17; border-radius: 0 0 50% 50%;
  pointer-events: none;
}
.lights i {
  width: 13px; height: 18px; margin-top: 12px;
  border: 2px solid #fff6b6; border-radius: 50% 50% 55% 55%;
  background: #ff4b55; box-shadow: 0 0 12px 4px #ff4c55;
  animation: twinkle 2.4s ease-in-out infinite;
}
.lights i:nth-child(3n) { background: #28d8ed; box-shadow: 0 0 12px 4px #28d8ed; animation-delay: .4s; }
.lights i:nth-child(4n) { background: #ffd34b; box-shadow: 0 0 12px 4px #ffd34b; animation-delay: .8s; }
.lights i:nth-child(5n) { animation-delay: 1.2s; }

.door-badge {
  display: inline-block; margin: 0; padding: 4px 24px 7px;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(#f9585b, #d9293c);
  color: #fff; font-size: clamp(22px, 3.2vw, 34px); font-weight: 900; line-height: 1;
  text-shadow: 0 3px #a82134;
  box-shadow: inset 0 2px rgba(255, 255, 255, .4), 0 4px #9b1b2d;
  transform: rotate(-1.2deg);
}
.door-badge strong { -webkit-text-stroke: 2px var(--red-dark); paint-order: stroke fill; }

.hero h1 {
  margin: 12px auto 0; max-width: 15ch;
  color: #fff; font-size: clamp(40px, 6.6vw, 78px); font-weight: 900;
  letter-spacing: -2.6px; line-height: .95;
  text-shadow: 0 5px 0 var(--deep), 0 9px 12px rgba(0, 13, 61, .5);
}
.hero .subtitle {
  margin: 10px 0 0; color: var(--yellow);
  font-size: clamp(19px, 3vw, 32px); font-weight: 900;
  text-shadow: 0 3px rgba(4, 30, 80, .8);
}

/* Ton-Schalter und Zurück-Knopf sitzen frei in den Ecken des Hero. */
.hero-corner {
  position: absolute; top: 58px; z-index: 3;
  display: grid; place-items: center; gap: 1px;
  width: var(--tap); height: var(--tap);
  border: 0; border-radius: 20px;
  background: #fff; color: var(--navy);
  font-size: 12px; font-weight: 850; text-decoration: none;
  box-shadow: 0 4px 0 #c7deef;
}
.hero-corner b { font-size: 26px; line-height: .9; font-weight: 500; }
.hero-corner.left { left: 4px; }
.hero-corner.right { right: 4px; }
.hero-corner:active { translate: 0 3px; box-shadow: 0 1px 0 #c7deef; }

/* -------------------------------------------------------------- Spielbühne */
/* Der weiße Kasten, in dem das eigentliche Türchen stattfindet. */
.stage {
  position: relative;
  padding: 18px;
  border: 5px solid #d9f0ff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .8));
  box-shadow: 0 10px 0 rgba(3, 37, 105, .35), 0 15px 30px rgba(0, 24, 80, .3);
}
.stage.plain { background: #fff; }

/* Bühne mit fester Höhe für Szenen, in denen Figuren stehen oder fliegen. */
.scene {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-md);
  background: linear-gradient(#9bdaff, #ddf2ff 62%, #fff);
}
.scene > img.backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ------------------------------------------------------------------ Knöpfe */
/* .big ist der Standardknopf für Kinder: breit, hoch, unübersehbar. */
.big {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 76px; min-width: 76px; padding: 12px 30px;
  border: 0; border-radius: 999px;
  background: linear-gradient(#fb5b61, #e13243);
  color: #fff; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900;
  box-shadow: inset 0 2px rgba(255, 255, 255, .4), 0 6px 0 var(--red-dark), 0 9px 16px rgba(0, 32, 90, .25);
}
.big.blue  { background: linear-gradient(#3d9cff, #1166e5); box-shadow: inset 0 2px rgba(255,255,255,.4), 0 6px 0 #064cab, 0 9px 16px rgba(0,32,90,.25); }
.big.green { background: linear-gradient(#46c97c, #1f8c50); box-shadow: inset 0 2px rgba(255,255,255,.4), 0 6px 0 var(--green-dark), 0 9px 16px rgba(0,32,90,.25); }
.big.gold  { background: linear-gradient(#ffd964, #e8a413); color: var(--navy); box-shadow: inset 0 2px rgba(255,255,255,.5), 0 6px 0 var(--gold-dark), 0 9px 16px rgba(0,32,90,.25); }
.big.plum  { background: linear-gradient(#c163d4, #8e2f9e); box-shadow: inset 0 2px rgba(255,255,255,.4), 0 6px 0 #5f1c6b, 0 9px 16px rgba(0,32,90,.25); }
.big:active { translate: 0 5px; box-shadow: inset 0 2px rgba(255, 255, 255, .4), 0 1px 0 var(--red-dark); }
.big[disabled] { opacity: .45; cursor: default; translate: none; }

/* Sekundärer, ruhiger Knopf – Neustart, Zurücksetzen, Weiter. */
.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); min-width: 150px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 17px; font-weight: 900;
  box-shadow: 0 4px 0 #b3d7f3, 0 6px 13px rgba(0, 32, 90, .18);
}
.action.primary {
  background: linear-gradient(#fb5b61, #e13243); color: #fff;
  box-shadow: inset 0 2px rgba(255, 255, 255, .4), 0 4px 0 var(--red-dark), 0 6px 13px rgba(0, 32, 90, .18);
}
.action:active { translate: 0 3px; box-shadow: 0 1px 0 #b3d7f3; }
.action[disabled] { opacity: .45; cursor: default; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; }

/* -------------------------------------------------------- Auswahl-Kacheln */
/* Für alles, wo aus mehreren Bildern gewählt wird: Accessoires, Formen,
   Farben, Instrumente. Immer mit Häkchen, nie nur mit Farbe markiert. */
.tray { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tray.small { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }

.tile {
  position: relative;
  display: grid; grid-template-rows: 1fr auto; gap: 6px; place-items: center;
  min-height: 130px; padding: 10px 6px;
  border: 3px solid #e3ecf6; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.15;
  text-align: center;
  transition: border-color .15s ease, scale .12s ease-out;
}
.tile img { width: 100%; height: 78px; object-fit: contain; }
.tile .glyph { font-size: 44px; line-height: 1; }
.tile:active { scale: .96; }
.tile[aria-pressed="true"] {
  border-color: var(--blue); background: #f7fbff;
  box-shadow: 0 4px 12px rgba(14, 106, 220, .18);
}
/* Zustand doppelt kodiert: Rahmenfarbe UND Häkchen. */
.tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute; top: -12px; right: -10px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 24px;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--sky); }
}

/* ------------------------------------------------------------- Info-Karten */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.panel {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 5px 0 #b1d7f6, 0 8px 15px rgba(0, 35, 97, .18);
}
.panel h2 { margin: 0 0 12px; font-size: 19px; font-weight: 900; text-align: center; }

/* Drei-Schritte-Anleitung, bildlich. Text ist Beiwerk, Symbol trägt. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.steps .step { font-size: 13px; font-weight: 750; line-height: 1.2; }
.steps b {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px;
}
.steps i { display: block; height: 44px; font-size: 36px; font-style: normal; line-height: 1.2; }

/* Fortschrittsbalken */
.bar { height: 14px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #e7eef5; }
.bar > i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }

/* Statuszeile unter der Bühne.
   Sie steht je nach Scrollposition mal auf dem dunklen, mal auf dem hellen
   Ende des Seitenverlaufs. Weißer Text mit Schatten reicht dafür nicht – im
   Theme „ice" verschwindet er im hellen Blau. Deshalb bringt die Zeile ihren
   eigenen dunklen Grund mit und ist damit überall über 4.5:1. */
.message {
  width: fit-content; max-width: 100%;
  min-height: 30px; margin: 16px auto 0; padding: 10px 22px;
  border-radius: 999px;
  background: rgba(3, 26, 87, .82);
  color: #fff; font-size: 18px; font-weight: 850; text-align: center;
}
.message:empty { display: none; }
.message.done { color: var(--yellow); }

/* -------------------------------------------------------------------- Fuß */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 26px; padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .12);
  color: #eaf4ff; font-size: 14px; font-weight: 650;
}
.footer a { color: #fff; font-weight: 850; }
.footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.footer .footer-links a,
.footer-snow {
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 14px; font-weight: 850; text-decoration: none;
}
.footer-snow[aria-pressed="true"] { background: #fff; color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .footer .footer-links a:hover { background: rgba(255, 255, 255, .3); }
}

/* --------------------------------------------------------------- Schneefall */
.snow {
  position: fixed; z-index: 20; inset: 0;
  overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.snow.on { opacity: 1; }
.snow .flake {
  position: absolute; top: 0; left: var(--x);
  width: var(--size); height: var(--size);
  border-radius: 50%; background: #fff; opacity: 0;
  animation: fall var(--duration) linear var(--delay) infinite paused;
}
.snow.on .flake { animation-play-state: running; }

/* ------------------------------------------------------------------- Toast */
/* Kurze Rückmeldung für Begleitpersonen. Nie ein Overlay, nie blockierend. */
.toast {
  position: fixed; z-index: 40; left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 16px;
  background: var(--deep); color: #fff;
  font-size: 17px; font-weight: 800; text-align: center;
  box-shadow: 0 7px 20px rgba(4, 27, 75, .3);
  translate: -50% 130%; opacity: 0;
  transition: translate .28s ease, opacity .28s ease;
  pointer-events: none;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------------------------------------------------------------- Konfetti */
.confetti { position: fixed; z-index: 35; inset: 0; overflow: hidden; pointer-events: none; }
.confetti span {
  position: absolute; top: -20px; left: var(--x);
  width: 12px; height: 18px; border-radius: 3px;
  background: var(--c);
  animation: confetti-fall var(--duration) cubic-bezier(.3, .5, .6, 1) var(--delay) forwards;
}

/* ------------------------------------------------------------- Platzhalter */
/* Bilder, die noch nicht produziert sind, bekommen diesen Rahmen, damit im
   Test sofort sichtbar ist, was fehlt – ohne dass die Seite kaputt wirkt. */
img[data-placeholder="active"] {
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #eef5fd 0 10px, #e2edfa 10px 20px);
  outline: 2px dashed #9dc2ea; outline-offset: -2px;
}

/* -------------------------------------------------------------- Animationen */
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fall {
  0%        { transform: translate3d(0, -8vh, 0); opacity: 0; }
  9%, 91%   { opacity: var(--opacity); }
  100%      { transform: translate3d(var(--drift), 106vh, 0); opacity: 0; }
}
@keyframes confetti-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift), 105vh, 0) rotate(720deg); opacity: 0; }
}
@keyframes pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25%      { rotate: -6deg; }
  75%      { rotate: 6deg; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes shake {
  0%, 100% { translate: 0 0; }
  20%      { translate: -9px 4px; }
  40%      { translate: 8px -4px; }
  60%      { translate: -6px -3px; }
  80%      { translate: 6px 3px; }
}
.is-shaking { animation: shake .5s ease-in-out; }
.is-bobbing { animation: bob 2.4s ease-in-out infinite; }
.is-wiggling { animation: wiggle .5s ease-in-out; }

/* ------------------------------------------------------------ Kleine Geräte */
@media (max-width: 900px) {
  :root { --shell: calc(100% - 16px); }

  .topbar { grid-template-columns: 1fr; gap: 8px; min-height: auto; padding: 12px 16px; border-radius: var(--radius-md); }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .brand img { width: min(52vw, 210px); height: 54px; }
  /* Die Navigation bleibt erreichbar – sie ist der einzige Teil der Seite,
     der den Erwachsenen gehört. Sie rutscht nur in eine eigene Zeile. */
  .topbar .nav {
    grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 4px;
    padding-top: 4px; border-top: 1px solid #e4ecf6;
    overflow-x: auto; scrollbar-width: none;
  }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav a { font-size: 14px; padding: 0 10px; }

  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); letter-spacing: -1.6px; }
  .hero-corner { top: 70px; width: 56px; height: 56px; border-radius: 16px; font-size: 11px; }
  .hero-corner b { font-size: 22px; }
}

/* Auf schmalen Telefonen reicht die Breite nicht mehr für „Kalender" links,
   „Ton" rechts und eine lange Überschrift dazwischen – die Ecken legten sich
   über den Titel. Sie rücken deshalb in eine eigene Zeile über dem Türchen,
   statt zu schrumpfen: Verkleinern würde die Trefferfläche unter 60 px
   drücken, und das ist die eine Grenze, die nicht verhandelbar ist. */
@media (max-width: 560px) {
  .hero { padding-top: 92px; }
  .hero-corner { top: 12px; width: var(--tap); height: var(--tap); }
  .hero-corner.left { left: 8px; }
  .hero-corner.right { right: 8px; }

  .stage { padding: 12px; border-width: 3px; border-radius: var(--radius-md); }
  .scene { min-height: 320px; }
  .panels { grid-template-columns: 1fr; }
  .actions { gap: 10px; }
  .action { min-width: 0; flex: 1 1 140px; padding: 0 12px; font-size: 15px; }
  .big { min-height: var(--tap); padding: 10px 22px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------- Bewegung reduzieren -- */
/* Wer das im Betriebssystem einstellt, bekommt eine ruhige Seite. Die
   Bedienung bleibt vollständig – es entfällt nur die Bewegung. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .snow { display: none; }
}
