/* ==========================================================================
   Adventskalender 2026 der Familie Kircher – Gestaltung
   Tiefes Nachtblau (abgestimmt auf den Himmel des Baum-Aquarells) · Cremeweiß · gedecktes Gold
   ========================================================================== */

/* Webfonts (lokal, SIL Open Font License – Lizenztexte in fonts/) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Semi Condensed";
  src: url("../fonts/saira-semicondensed-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Semi Condensed";
  src: url("../fonts/saira-semicondensed-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Seite (dunkel) */
  /* Seite: Nachtblau aus dem Himmel der Illustration (Bildränder ca. #1d2d52–#24365d),
     etwas dunkler, damit der weiche Bildrand sanft in die Seite übergeht */
  --nacht: #0e1d44;
  --nacht-tief: #0a1534;
  --nacht-blau: #1b2f62;
  --text-hell: #ece4d4;
  --text-gedaempft: rgba(226, 218, 203, .72);
  --gold-gedeckt: #c9a45c;

  /* Weicher Randverlauf der Illustration in den Seitenhintergrund – wie bei der
     ursprünglichen Fassung: elliptische Vignette + Verläufe an allen vier Kanten
     (mask-composite: intersect). Je Bild abgestimmt, aktiv über .buehne / .buehne.is-handy.
     Desktop: sanft, lässt vor allem Schnee und Waldrand seitlich/unten auslaufen. */
  --bildmaske-desktop:
    radial-gradient(ellipse 56% 62% at 50% 50%, #000 74%, rgba(0,0,0,.6) 88%, transparent 100%),
    linear-gradient(to right, transparent 0, transparent 8%, rgba(0,0,0,.4) 12%, rgba(0,0,0,.85) 17%, #000 21%, #000 79%, rgba(0,0,0,.85) 83%, rgba(0,0,0,.4) 88%, transparent 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.1) 3%, rgba(0,0,0,.5) 8%, rgba(0,0,0,.9) 13%, #000 16%, #000 84%, rgba(0,0,0,.9) 87%, rgba(0,0,0,.5) 92%, rgba(0,0,0,.1) 97%, transparent 100%);
  /* Handy: kräftiger, damit die wolkige Papierkante des Bilds fließend verschwindet */
  --bildmaske-handy:
    radial-gradient(ellipse 64% 58% at 50% 50%, #000 72%, rgba(0,0,0,.65) 86%, transparent 100%),
    linear-gradient(to right, transparent 0, rgba(0,0,0,.12) 4%, rgba(0,0,0,.45) 9%, rgba(0,0,0,.85) 15%, #000 19%, #000 81%, rgba(0,0,0,.85) 85%, rgba(0,0,0,.45) 91%, rgba(0,0,0,.12) 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.1) 4%, rgba(0,0,0,.45) 8%, rgba(0,0,0,.85) 12%, #000 15%, #000 85%, rgba(0,0,0,.85) 88%, rgba(0,0,0,.45) 92%, rgba(0,0,0,.1) 96%, transparent 100%);

  /* Karte (hell) */
  --papier: #fbf1e7;
  --papier-hell: #fffaf3;
  --papier-tief: #f3e4d2;
  --nachtblau: #21305a;
  --blau: #495e8c;
  --blau-sanft: #7b8cb6;
  --gold: #b88d3c;
  --gold-hell: #e4c27a;
  --gold-glanz: #f6dfa6;
  --creme: #fbf4e6;
  --rot: #a3352f;
  --tanne: #4d6b55;

  /* Schriften:
     Überschriften Saira Semi Condensed, Fließtext Montserrat */
  --display: "Saira Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display); /* bisherige Verwendungen → Display-Schrift */

  --radius: 14px;
  --schatten-weich: 0 1px 2px rgba(35, 49, 73, .06), 0 12px 40px -12px rgba(35, 49, 73, .28);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text-hell);
  background-color: var(--nacht);
  /* Nachthimmel wie in den Aquarellen: oben tiefes Nachtblau, zur Bildmitte hin heller
     (Himmelsfarben der Bilder ca. #0c2753 → #1e3e74), dazu ein paar zarte Wolkenschleier.
     Fest stehend, damit der Himmel beim Scrollen ruhig bleibt. */
  background-image:
    radial-gradient(62% 46% at 50% 40%, rgba(48, 82, 150, .42), rgba(48, 82, 150, 0) 72%),
    radial-gradient(34% 8% at 17% 21%, rgba(96, 128, 190, .16), rgba(96, 128, 190, 0) 70%),
    radial-gradient(30% 7% at 84% 31%, rgba(96, 128, 190, .14), rgba(96, 128, 190, 0) 70%),
    radial-gradient(42% 9% at 64% 9%, rgba(80, 112, 178, .12), rgba(80, 112, 178, 0) 70%),
    radial-gradient(36% 8% at 26% 62%, rgba(80, 112, 178, .10), rgba(80, 112, 178, 0) 70%),
    linear-gradient(180deg, #0a1a40 0%, #102657 32%, #15305f 52%, #102352 76%, #0a1636 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Sterne auf dem Seitenhimmel (außerhalb des Bilds; per JavaScript verteilt).
   Liegen hinter allen Inhalten und scheinen im weich ausgeblendeten Bildrand durch. */
.sternenhimmel {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.himmelsstern {
  position: absolute;
  width: var(--g, 2px);
  height: var(--g, 2px);
  border-radius: 50%;
  background: #f4ecd2;
  box-shadow: 0 0 calc(var(--g, 2px) * 2) rgba(246, 230, 180, .55);
  opacity: var(--o, .6);
  animation: himmelsstern-funkeln var(--d, 5s) ease-in-out var(--v, 0s) infinite;
}
/* einige größere Sterne mit vier feinen Strahlen – wie die gemalten Sterne im Bild */
.himmelsstern--gross::before,
.himmelsstern--gross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--g) * 4.5);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 236, 196, .85), transparent);
  transform: translate(-50%, -50%);
}
.himmelsstern--gross::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes himmelsstern-funkeln {
  0%, 100% { opacity: var(--o, .6); }
  50% { opacity: calc(var(--o, .6) * .35); }
}
@media (prefers-reduced-motion: reduce) {
  .himmelsstern { animation: none; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--gold-gedeckt);
  color: var(--nacht);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Lichterkette am oberen Rand
   -------------------------------------------------------------------------- */
.lichterkette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px; /* nur Zeichenfläche (Lichtschein); die Kette selbst hängt höchstens ~60 px tief */
  overflow: hidden;
  pointer-events: none; /* blockiert keine Klicks */
  z-index: 2;
}
.lichterkette svg { display: block; }
.lichterkette__kabel {
  fill: none;
  stroke: rgba(176, 160, 128, .4);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lichterkette__fassung {
  stroke: rgba(176, 160, 128, .5);
  stroke-width: 1.2;
  stroke-linecap: round;
}
/* Grundlicht: ruhig und dauerhaft, je Lämpchen leicht unterschiedlich hell */
.lichterkette__schein,
.lichterkette__birne,
.lichterkette__kern {
  transform-box: fill-box;
  transform-origin: center;
}
.lichterkette__schein { opacity: var(--grund, .55); }
.lichterkette__birne { opacity: .9; }
.lichterkette__kern { fill: #fffdf5; opacity: 0; }

/* Funkelmoment (per JS einzeln ausgelöst): kurz deutlich heller mit größerem
   Lichtschein, danach kurz etwas dunkler, dann zurück zum Grundlicht.
   Der helle Teil dauert etwa 0,3–0,6 s (--blitz); nur Deckkraft und Skalierung. */
.lichterkette__lampe.is-funkelnd .lichterkette__schein { animation: lk-schein calc(var(--blitz, .45s) * 2.4) ease-out both; }
.lichterkette__lampe.is-funkelnd .lichterkette__birne  { animation: lk-birne  calc(var(--blitz, .45s) * 2.4) ease-out both; }
.lichterkette__lampe.is-funkelnd .lichterkette__kern   { animation: lk-kern   calc(var(--blitz, .45s) * 2.4) ease-out both; }
@keyframes lk-schein {
  0%   { opacity: var(--grund, .55); transform: scale(1); }
  18%  { opacity: 1; transform: scale(1.55); }
  45%  { opacity: calc(var(--grund, .55) * .72); transform: scale(.94); }
  100% { opacity: var(--grund, .55); transform: scale(1); }
}
@keyframes lk-birne {
  0%   { opacity: .9; transform: scale(1); }
  18%  { opacity: 1; transform: scale(1.2); }
  45%  { opacity: .72; transform: scale(.97); }
  100% { opacity: .9; transform: scale(1); }
}
@keyframes lk-kern {
  0%   { opacity: 0; }
  18%  { opacity: .95; }
  45%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 760px) {
  .lichterkette { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lichterkette__lampe.is-funkelnd .lichterkette__schein,
  .lichterkette__lampe.is-funkelnd .lichterkette__birne,
  .lichterkette__lampe.is-funkelnd .lichterkette__kern { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Kopfbereich: keine Überschrift mehr – nur ein schmaler Abstand für die
   Lichterkette, damit die Illustration möglichst groß wird. Der Titel
   „Adventskalender 2026“ steht unter dem Bild (.titel).
   -------------------------------------------------------------------------- */
.kopf {
  position: relative;
  z-index: 1;
  height: clamp(2.4rem, 4.4vh, 3rem);
}

/* Titel unter der Illustration */
.titel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: .35rem auto 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, .9vw + .55rem, 1.45rem);
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-hell);
}
.titel__jahr {
  color: var(--gold-gedeckt);
  background: linear-gradient(180deg, #dcbd7d 0%, #c49a4e 55%, #a77d36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.titel__linie {
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-gedeckt));
}
.titel__linie:last-child { background: linear-gradient(90deg, var(--gold-gedeckt), transparent); }

/* --------------------------------------------------------------------------
   Bühne: Illustration + Türchen
   -------------------------------------------------------------------------- */
.kalender {
  padding: 0 16px;
  outline: none;
}

.buehne {
  /* Randverlauf je Bild (siehe :root) */
  --bildmaske: var(--bildmaske-desktop);
  /* Platz unter der Illustration für Titel und Hinweiszeile */
  --platz-unten: 3.9rem;
  /* Mindestbreite: darunter wird lieber gescrollt als die Türchen zu verkleinern */
  --mindestbreite: 820px;

  position: relative;
  /* Die Illustration füllt die Fensterhöhe unterhalb der Überschrift
     (--kopf-hoehe wird per JavaScript gemessen). Das Seitenverhältnis bleibt
     über aspect-ratio exakt erhalten – nichts wird verzerrt oder beschnitten. */
  width: max(
    min(100%, var(--mindestbreite)),
    min(100%, 1760px, calc((100vh - var(--kopf-hoehe, 150px) - var(--platz-unten)) * var(--bild-b, 1448) / var(--bild-h, 1086)))
  );
  /* Seitenverhältnis des Hintergrundbilds (--bild-b/--bild-h setzt app.js aus js/config.js) */
  aspect-ratio: var(--bild-b, 1448) / var(--bild-h, 1086);
  margin: 0 auto;
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
}

.buehne__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* Ränder laufen weich in den dunklen Seitenhintergrund aus
     (siehe --bildmaske; gilt auch für die Klappen-Motive) */
  -webkit-mask-image: var(--bildmaske);
  -webkit-mask-composite: source-in;
  mask-image: var(--bildmaske);
  mask-composite: intersect;
  opacity: 0;
  transition: opacity .8s ease;
}
.buehne__bild.is-geladen { opacity: 1; }

/* Kater am Fuß des Baums: eigene, freigestellte Bildebenen (Positionen in js/config.js).
   Liegen über der Illustration, aber unter Schnee, Schmuck und Türchen; nicht anklickbar. */
.buehne__katzen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.buehne.is-geladen .buehne__katzen { opacity: 1; }
.katze {
  position: absolute;
  left: var(--x);
  bottom: calc(100% - var(--unten));
  width: var(--b);
  margin: 0;
}
.katze img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  /* an das Mondlicht der Nachtszene angepasst */
  filter: brightness(.86) saturate(.9) contrast(1.02) drop-shadow(0 .25cqw .5cqw rgba(8, 14, 32, .35));
  transition: filter 2.4s ease;
}
/* weicher Kontaktschatten im Schnee */
.katze::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 38, 72, .42), rgba(28, 38, 72, 0));
}
/* Heiligabend: das warme Baumlicht fällt auch auf die Kater */
.buehne.is-heiligabend .katze img {
  filter: brightness(.97) saturate(1) sepia(.08) drop-shadow(0 .25cqw .5cqw rgba(8, 14, 32, .3)) drop-shadow(0 0 1.2cqw rgba(255, 200, 120, .18));
}

.buehne__schnee {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.buehne__tuerchen {
  position: absolute;
  inset: 0;
  /* blendet gemeinsam mit der Illustration ein */
  opacity: 0;
  transition: opacity .8s ease;
}
.buehne.is-geladen .buehne__tuerchen { opacity: 1; }

/* --------------------------------------------------------------------------
   Türchen
   -------------------------------------------------------------------------- */
/* ton "dunkel" = Türchen auf hell leuchtendem Untergrund (Fenster, Eingang):
   dunkle Zahl mit warmem Lichthof, Rahmen in tiefem Gold */
.tuer {
  --rahmen: rgba(118, 82, 28, .85);
  --zahl: #19202e;
  --zahl-halo: 0 0 2px rgba(255, 238, 205, .9), 0 0 8px rgba(255, 226, 170, .75), 0 0 16px rgba(255, 220, 160, .45);

  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--b);
  height: var(--h);
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  /* Perspektive proportional zur Türbreite → gleiche Raumwirkung bei jeder Größe */
  perspective: calc(var(--bw, 8) * 6cqw);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ton "hell" = Türchen auf dunklem Untergrund (Nachthimmel, Fassade, Schnee):
   cremeweiße Zahl, champagnerfarbener, leicht transparenter Rahmen */
.tuer--hell {
  --rahmen: rgba(228, 204, 156, .6);
  --zahl: #efe6d3;
  --zahl-halo: 0 1px 2px rgba(5, 8, 14, .85), 0 0 10px rgba(5, 8, 14, .6), 0 0 18px rgba(5, 8, 14, .35);
}

/* Warmes Licht hinter dem Türchen */
.tuer__licht {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 238, 190, .95) 0%, rgba(246, 205, 120, .55) 45%, rgba(214, 160, 70, .18) 80%, transparent 100%);
  /* blendet am Bildrand genauso aus wie die Illustration */
  -webkit-mask-image: var(--bildmaske);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--bildmaske);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  opacity: 0;
  transition: opacity .5s ease, box-shadow .5s ease;
}

/* Der Türflügel (schwingt beim Öffnen auf) */
.tuer__fluegel {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.32, .72, .18, 1);
  will-change: transform;
}

/* Vorder- und Rückseite der Klappe */
.tuer__vorne,
.tuer__hinten {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: background-color .35s ease, box-shadow .45s ease;
}

/* Vorderseite: der passende Bildausschnitt (unsichtbar, solange das Türchen
   geschlossen ist – dann sieht man ohnehin die Illustration darunter) */
.tuer__motiv {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  /* dieselbe Randmaske wie die Illustration, deckungsgleich positioniert
     (mask-size/-position werden per JS wie background-size/-position gesetzt) */
  -webkit-mask-image: var(--bildmaske);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--bildmaske);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  opacity: 0;
  transition: opacity .12s ease;
}
/* leichte Abschattung, sobald die Klappe schräg steht */
.tuer__motiv::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(20, 28, 45, 0) 20%, rgba(20, 28, 45, .22));
  opacity: 0;
  transition: opacity .6s ease;
}

/* Rückseite: getöntes Aquarellpapier mit feiner Körnung */
.tuer__hinten {
  transform: rotateY(180deg);
  background-color: #ddd0bb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 20% 15%, rgba(255, 246, 228, .55), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(125, 142, 171, .28), transparent 65%),
    radial-gradient(70% 60% at 70% 20%, rgba(214, 170, 100, .18), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(150, 118, 62, .35),
    inset 0 0 10px rgba(92, 72, 44, .28);
}
.tuer--hell .tuer__hinten {
  background-color: #4d5669;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .17 0 0 0 0 .24 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 20% 15%, rgba(236, 228, 214, .5), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(52, 66, 92, .35), transparent 65%),
    radial-gradient(70% 60% at 75% 20%, rgba(214, 170, 100, .16), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(228, 194, 122, .35),
    inset 0 0 10px rgba(30, 40, 60, .35);
}

.tuer__rahmen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tuer__rahmen rect {
  fill: none;
  stroke: var(--rahmen);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke .3s ease, stroke-width .3s ease;
  filter: drop-shadow(0 0 1.5px rgba(255, 236, 200, .55));
}
.tuer--hell .tuer__rahmen rect { filter: drop-shadow(0 0 1.5px rgba(5, 8, 14, .6)); }

.tuer__zahl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(12px, calc(var(--fs) * 1.08), 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--zahl);
  text-shadow: var(--zahl-halo);
  transition: color .3s ease, transform .3s ease;
}

/* Hover & Tastaturfokus: dezenter goldener Schimmer */
.tuer:hover .tuer__vorne,
.tuer:focus-visible .tuer__vorne {
  background-color: rgba(255, 224, 160, .1);
  box-shadow:
    0 0 18px 2px rgba(232, 192, 112, .42),
    inset 0 0 16px rgba(255, 220, 150, .32);
}
.tuer:hover .tuer__rahmen rect,
.tuer:focus-visible .tuer__rahmen rect {
  stroke: #ecd29a;
  stroke-width: 1.8;
  animation: ameisen 1.2s linear infinite;
}
.tuer:hover .tuer__zahl,
.tuer:focus-visible .tuer__zahl { transform: scale(1.08); }

.tuer:focus-visible::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--gold-hell);
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(5, 8, 14, .7);
  pointer-events: none;
}

@keyframes ameisen { to { stroke-dashoffset: -18; } }

/* Öffnungsanimation */
.tuer.is-oeffnend { z-index: 5; }
.tuer.is-oeffnend .tuer__licht {
  opacity: 1;
  box-shadow: inset 2px 2px 8px rgba(70, 45, 15, .35);
}
.tuer.is-oeffnend .tuer__fluegel { transform: rotateY(-112deg); }
.tuer.is-oeffnend .tuer__motiv { opacity: 1; }
.tuer.is-oeffnend .tuer__motiv::after { opacity: 1; }
.tuer.is-oeffnend .tuer__vorne,
.tuer.is-oeffnend .tuer__hinten {
  box-shadow: 0 4px 14px -2px rgba(15, 22, 36, .4);
}
.tuer.is-oeffnend .tuer__hinten {
  box-shadow:
    inset 0 0 0 1px rgba(150, 118, 62, .35),
    inset 0 0 10px rgba(92, 72, 44, .28),
    0 4px 14px -2px rgba(15, 22, 36, .4);
}

/* Funkeln beim Öffnen */
.funke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-glanz);
  box-shadow: 0 0 6px 2px rgba(255, 220, 140, .9);
  pointer-events: none;
  animation: funke .8s ease-out forwards;
}
@keyframes funke {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* Bereits geöffnete Türchen: Klappe bleibt einen Spalt weit offen,
   dahinter schimmert warmes Licht */
.tuer.is-geoeffnet .tuer__licht {
  opacity: .85;
  box-shadow:
    inset 0 0 0 1px rgba(228, 194, 122, .75),
    inset 3px 2px 8px rgba(70, 45, 15, .45);
}
.tuer.is-geoeffnet:not(.is-oeffnend) .tuer__fluegel { transform: rotateY(-48deg); }
.tuer.is-geoeffnet .tuer__motiv { opacity: 1; }
.tuer.is-geoeffnet .tuer__motiv::after { opacity: 1; }
.tuer.is-geoeffnet:not(.is-oeffnend) .tuer__vorne {
  box-shadow: 3px 3px 9px -2px rgba(15, 22, 36, .5);
}
.tuer.is-geoeffnet .tuer__rahmen rect {
  stroke: var(--gold-hell);
  stroke-dasharray: 1 3.5;
  stroke-width: 1.8;
}
.tuer.is-geoeffnet .tuer__zahl {
  color: #6e4a12;
  text-shadow: 0 0 2px rgba(255, 240, 210, .95), 0 0 8px rgba(255, 230, 185, .8);
}
.tuer--hell.is-geoeffnet .tuer__zahl {
  color: #e6c886;
  text-shadow: 0 1px 2px rgba(5, 8, 14, .85), 0 0 9px rgba(5, 8, 14, .55);
}
.tuer.is-geoeffnet .tuer__vorne::after {
  content: "\2726";
  position: absolute;
  right: 6%;
  top: 4%;
  font-size: clamp(8px, calc(var(--fs) * .38), 16px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 4px rgba(255, 245, 220, .95);
}

/* Noch geschlossene Türchen: kleines Rütteln beim Anklicken */
.tuer.is-gesperrt .tuer__fluegel { animation: ruetteln .5s ease; }
@keyframes ruetteln {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-1deg); }
  40% { transform: translateX(3px) rotate(1deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* Das besondere Türchen 24 */
.tuer--besonders {
  --rahmen: rgba(110, 74, 20, .95);
}
.tuer--besonders .tuer__rahmen rect {
  stroke-width: 2;
  stroke-dasharray: 7 4;
}
.tuer--besonders .tuer__rahmen--innen {
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
}
.tuer--besonders .tuer__rahmen rect.innen {
  stroke-width: 1;
  stroke-dasharray: 2 3;
  stroke: var(--gold-hell);
}
.tuer--besonders .tuer__zahl {
  font-size: clamp(18px, var(--fs), 64px);
  grid-template-rows: auto auto;
  align-content: center;
  gap: .08em;
}
.tuer--besonders .tuer__zusatz {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .2em;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #2a2014;
}
.tuer--besonders .tuer__schimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  pointer-events: none;
}
.tuer--besonders .tuer__schimmer::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .55), transparent);
  transform: skewX(-12deg);
  animation: schimmer 6s ease-in-out 2s infinite;
}
@keyframes schimmer {
  0% { left: -60%; }
  30%, 100% { left: 130%; }
}
.tuer--besonders::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 6px;
  box-shadow: 0 0 22px 4px rgba(246, 210, 130, .35);
  pointer-events: none;
  animation: atmen 4s ease-in-out infinite;
}
@keyframes atmen {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Hinweis unter der Bühne
   -------------------------------------------------------------------------- */
.hinweis {
  margin: .3rem auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(226, 218, 203, .5);
}

/* --------------------------------------------------------------------------
   Mobile Übersicht (nur auf kleinen Bildschirmen sichtbar)
   -------------------------------------------------------------------------- */
.uebersicht {
  display: none;
  max-width: 560px;
  margin: 1.75rem auto 0;
}
.uebersicht__titel {
  margin: 0 0 .9rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-hell);
}
.uebersicht__raster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.mini {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(228, 204, 156, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-hell);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.mini:hover,
.mini:focus-visible {
  background: rgba(232, 192, 112, .1);
  border-color: rgba(236, 210, 154, .8);
  box-shadow: 0 0 14px rgba(232, 192, 112, .35);
  outline: none;
}
.mini:focus-visible { box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px var(--gold-gedeckt); }
.mini:active { transform: scale(.95); }
.mini.is-geoeffnet {
  border-style: solid;
  border-color: rgba(201, 164, 92, .7);
  background: radial-gradient(circle at 50% 60%, rgba(246, 205, 120, .28), rgba(201, 164, 92, .08) 75%);
  color: #ecd29a;
}
.mini.is-geoeffnet::after {
  content: "\2726";
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: .62rem;
  color: var(--gold-gedeckt);
}
.mini.is-zukunft {
  color: rgba(226, 218, 203, .4);
  border-color: rgba(226, 218, 203, .18);
  background: transparent;
}
.mini--besonders {
  border-width: 2px;
  border-style: double;
  border-color: var(--gold-gedeckt);
  box-shadow: 0 0 12px rgba(232, 192, 112, .3);
}
.mini.is-gesperrt { animation: ruetteln .5s ease; }
/* Öffnen über die Übersicht (Handy): die Kachel schwingt wie eine Klappe kurz auf und leuchtet */
.mini.is-oeffnend {
  z-index: 2;
  border-style: solid;
  border-color: var(--gold-hell);
  background: radial-gradient(circle at 50% 55%, rgba(255, 226, 160, .55), rgba(201, 164, 92, .12) 75%);
  color: #fff4d6;
  animation: mini-auf .68s cubic-bezier(.3, .7, .3, 1) both;
}
@keyframes mini-auf {
  0% { transform: none; box-shadow: 0 0 0 rgba(246, 205, 120, 0); }
  40% { transform: perspective(260px) rotateY(-34deg) scale(1.06); box-shadow: 0 0 24px rgba(246, 205, 120, .7); }
  100% { transform: perspective(260px) rotateY(0deg) scale(1); box-shadow: 0 0 16px rgba(246, 205, 120, .45); }
}

/* --------------------------------------------------------------------------
   Handy (bis 600 px) und Tablet im Hochformat (bis 834 px): Hochformat-Bild mit
   eigener Türchen-Anordnung über das ganze Bild. Muss zu handyAbfrage in
   js/config.js passen.
   -------------------------------------------------------------------------- */
@media (max-width: 600px), (max-width: 834px) and (orientation: portrait) {
  .kalender { padding: 0 10px; }
  .buehne {
    /* randlos über die ganze Breite (die 10 px Seitenabstand mitnutzen), auf
       Tablets höchstens so hoch wie das Fenster – immer zentriert und unverzerrt */
    --handy-b: min(100vw, calc((100vh - var(--kopf-hoehe, 40px) - var(--platz-unten)) * var(--bild-b) / var(--bild-h)));
    width: var(--handy-b);
    margin-left: calc(50% - var(--handy-b) / 2);
    margin-right: 0;
  }
  .buehne.is-handy { --bildmaske: var(--bildmaske-handy); }
  /* Türchen liegen auf dem Bild (über das ganze Bild verteilt, js/tuerchen.js →
     tuerchenHandy) – die Übersicht darunter wird hier nicht gebraucht */
  .kalender .uebersicht { display: none; }   /* spezifischer als die allgemeine Regel bis 760 px */
  .uebersicht__titel { font-size: 1.1rem; }
  .uebersicht__raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .mini { min-height: 64px; border-radius: 12px; font-size: 1.6rem; }
  .mini.is-geoeffnet::after { top: 4px; right: 7px; font-size: .75rem; }
}

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */
.fuss {
  padding: 2.5rem 16px 5rem;
  text-align: center;
  font-family: var(--sans);
  color: var(--text-gedaempft);
  font-size: .88rem;
  letter-spacing: .02em;
}
.fuss p { margin: 0; }
.fuss::before {
  content: "\2726";
  display: block;
  margin-bottom: .6rem;
  color: var(--gold-gedeckt);
}

/* --------------------------------------------------------------------------
   Karte (Dialog) für die Tagesüberraschung
   -------------------------------------------------------------------------- */
.karte {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nachtblau);
  overflow: visible;
}
.karte::backdrop {
  background: rgba(14, 26, 56, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.karte[open] .karte__innen { animation: karte-rein .5s cubic-bezier(.2, .8, .2, 1); }
.karte[open]::backdrop { animation: blende-rein .35s ease; }
.karte.is-schliessend .karte__innen { animation: karte-raus .22s ease forwards; }
.karte.is-schliessend::backdrop { animation: blende-raus .22s ease forwards; }

@keyframes karte-rein {
  from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-.6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes karte-raus { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes blende-rein { from { opacity: 0; } }
@keyframes blende-raus { to { opacity: 0; } }

.karte__innen {
  /* Abstand vom Kartenrand bis zum Inhalt (wie bisher); der Rahmen liegt 9px vom Rand */
  --karte-abstand: clamp(1.5rem, 4vw, 2.4rem);
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 9px;
  border-radius: var(--radius);
  background-color: var(--papier-hell);
  background-image:
    radial-gradient(500px 220px at 100% 0%, rgba(125, 142, 171, .16), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(228, 194, 122, .18), transparent 70%);
  box-shadow: 0 30px 80px -20px rgba(10, 16, 28, .6), 0 2px 6px rgba(10, 16, 28, .15);
}
/* Gestrichelter Innenrahmen: ein echtes Element um den gesamten Karteninhalt.
   Er wächst mit dem Inhalt (auch bei langen, scrollbaren Karten), ist ringsum
   durchgängig und braucht keine Höhenmessung per JavaScript. */
.karte__rahmen {
  box-sizing: border-box;
  min-height: 100%;
  padding: calc(var(--karte-abstand) - 10px);
  border: 1px dashed rgba(184, 141, 60, .55);
  border-radius: calc(var(--radius) - 5px);
}

.karte__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 49, 73, .06);
  color: var(--nachtblau);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.karte__x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.karte__x:hover { background: rgba(35, 49, 73, .12); transform: rotate(90deg); }
.karte__x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.karte__kopf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2.5rem;
}
.karte__zahl {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34466a, var(--nachtblau) 70%);
  box-shadow: inset 0 0 0 2px rgba(228, 194, 122, .8), inset 0 0 0 5px var(--nachtblau), inset 0 0 0 6px rgba(228, 194, 122, .45), 0 6px 16px -6px rgba(35, 49, 73, .6);
  color: var(--gold-glanz);
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
}
.karte__meta { display: flex; flex-direction: column; gap: .1rem; }
.karte__typ {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.karte__datum {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--blau);
}

.karte__titel {
  margin: 1.3rem 0 .8rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--nachtblau);
  text-wrap: balance;
}

.karte__inhalt {
  font-size: 1.04rem;
  color: #34425c;
}
.karte__inhalt p { margin: 0 0 .9rem; }

.karte__fuss {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.6rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--nachtblau);
  color: var(--creme);
  font: 600 .95rem/1 var(--sans);
  cursor: pointer;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.knopf:hover { background: #31425f; box-shadow: 0 4px 14px -4px rgba(35, 49, 73, .55); }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Gesperrte Karte */
.karte--gesperrt .karte__zahl {
  background: radial-gradient(circle at 35% 30%, #8a9ab5, #66789a 70%);
  color: var(--creme);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 6px 16px -6px rgba(35, 49, 73, .45);
}
.karte--gesperrt .karte__typ { color: var(--blau-sanft); }

/* Besondere Karte (Tag 24) */
.karte--besonders .karte__innen {
  background-image:
    radial-gradient(520px 260px at 50% -10%, rgba(228, 194, 122, .35), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(163, 53, 47, .08), transparent 70%);
}
.karte--besonders .karte__rahmen {
  padding: calc(var(--karte-abstand) - 10.5px);
  border: 1.5px solid rgba(184, 141, 60, .55);
  box-shadow: inset 0 0 0 4px var(--papier-hell), inset 0 0 0 5px rgba(184, 141, 60, .35);
}

/* ---- Typ A: Spruch ---- */
.spruch {
  position: relative;
  margin: .4rem 0 0;
  padding: .4rem 0 0 2.6rem;
  font-family: var(--sans);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
}
.spruch::before {
  content: "\201E";
  position: absolute;
  left: 0;
  top: -.9rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-hell);
  font-style: normal;
}
.spruch footer {
  margin-top: .8rem;
  font-size: .95rem;
  font-style: normal;
  color: var(--blau);
}

/* ---- Typ B: Quiz ---- */
.quiz__frage {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--nachtblau);
}
.quiz__antworten {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quiz__antwort {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  border: 1.5px solid rgba(75, 95, 128, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: var(--nachtblau);
  font: 500 1rem/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.quiz__antwort:hover:not(:disabled) {
  border-color: var(--gold);
  background: #fff8e8;
}
.quiz__antwort:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.quiz__antwort:active:not(:disabled) { transform: scale(.99); }
.quiz__antwort:disabled { cursor: default; }
.quiz__buchstabe {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(75, 95, 128, .1);
  font-family: var(--serif);
  font-weight: 700;
  color: var(--blau);
}
.quiz__antwort.is-richtig {
  border-color: #5d8a68;
  background: #eef5ee;
}
.quiz__antwort.is-richtig .quiz__buchstabe { background: #5d8a68; color: #fff; }
.quiz__antwort.is-falsch {
  border-color: #b4574f;
  background: #fbefec;
}
.quiz__antwort.is-falsch .quiz__buchstabe { background: #b4574f; color: #fff; }
.quiz__antwort.is-blass { opacity: .55; }

.quiz__rueckmeldung {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(228, 194, 122, .16);
  border-left: 3px solid var(--gold);
  animation: einblenden .4s ease;
}
.quiz__rueckmeldung strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.quiz__rueckmeldung p { margin: 0; }

@keyframes einblenden {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---- Typ C: Fun Fact ---- */
.fakt {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.fakt__symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(228, 194, 122, .22);
  color: var(--gold);
}
.fakt__symbol svg { width: 1.6rem; height: 1.6rem; }
.fakt__text p { margin: 0; }
.fakt__quelle {
  margin-top: .7rem !important;
  font-size: .85rem;
  color: var(--blau-sanft);
}

/* ---- Typ D: Überraschung (Geschenk) ---- */
.geschenk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.geschenk__anleitung { margin: 0 0 1rem; color: var(--blau); }
.geschenk__knopf {
  position: relative;
  width: 140px;
  height: 140px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.geschenk__knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.geschenk__knopf:disabled { cursor: default; }
.geschenk__knopf svg { width: 100%; height: 100%; overflow: visible; }
.geschenk__deckel {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.3, 1.6, .5, 1);
}
.geschenk__knopf.wackelt { animation: wackeln .45s ease; }
.geschenk__knopf.offen .geschenk__deckel { transform: translate(18px, -46px) rotate(24deg); }
.geschenk__knopf.offen .geschenk__licht { opacity: 1; }
.geschenk__licht { opacity: 0; transition: opacity .6s ease .15s; }

@keyframes wackeln {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg) scale(1.03); }
  45% { transform: rotate(6deg) scale(1.03); }
  70% { transform: rotate(-3deg); }
}

.geschenk__fortschritt {
  display: flex;
  gap: .4rem;
  margin-top: .7rem;
}
.geschenk__fortschritt span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(75, 95, 128, .2);
  transition: background-color .3s;
}
.geschenk__fortschritt span.an { background: var(--gold); }

.geschenk__botschaft {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--nachtblau);
  animation: einblenden .6s ease .35s both;
}

.konfetti {
  position: absolute;
  left: 50%;
  top: 45%;
  pointer-events: none;
  font-size: var(--g, 14px);
  line-height: 1;
  color: var(--f, var(--gold));
  animation: konfetti 1.4s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes konfetti {
  0% { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 0; }
}

/* ---- Gemeinsame Bausteine der interaktiven Türchen ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.aktion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.1rem;
}
.aktion[hidden] { display: none; }

/* zweite Knopfvariante (Wiederholen) – gleiche Form, zurückhaltender */
.knopf--zweit {
  background: transparent;
  color: var(--nachtblau);
  box-shadow: inset 0 0 0 1.5px rgba(35, 49, 73, .32);
}
.knopf--zweit:hover {
  background: rgba(228, 194, 122, .2);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
/* helle Variante auf dunklem Grund (Spielbereich) */
.knopf--hell {
  background: var(--creme);
  color: var(--nachtblau);
}
.knopf--hell:hover {
  background: #fff;
  box-shadow: 0 4px 18px -4px rgba(246, 223, 166, .6);
}
.knopf--hell:focus-visible { outline-color: var(--gold-hell); }
.knopf[aria-disabled="true"] { cursor: default; opacity: .7; }
.knopf[aria-disabled="true"]:hover { background: var(--nachtblau); box-shadow: none; }
.kopierfeld {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Türchen 1: Licht an, Advent! ---- */
.karte__inhalt .licht__gruss {
  margin: .2rem 0 0;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
}
.licht__buehne {
  position: relative;
  margin: 1.2rem 0 .2rem;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(130% 100% at 50% 0%, #283550 0%, #182133 60%, #121928 100%);
  box-shadow: inset 0 0 0 1px rgba(228, 194, 122, .22), 0 12px 26px -16px rgba(18, 25, 40, .7);
}
/* ein paar feine Sterne im Hintergrund */
.licht__buehne::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 78%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 22% 88%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.2px 1.2px at 47% 82%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 66% 90%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.2px 1.2px at 83% 72%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 94% 86%, rgba(255, 255, 255, .3), transparent);
}
/* warmer Gesamtschein, sobald das Licht an ist */
.licht__buehne::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 30%, rgba(246, 214, 150, .18), transparent 70%);
  opacity: 0;
  transition: opacity 2.6s ease .8s;
  pointer-events: none;
}
.licht__buehne.is-an::after { opacity: 1; }
.licht__buehne svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.licht__kabel {
  fill: none;
  stroke: #5a675f;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.licht__fassung { fill: #3c4a43; }
.licht__birne {
  fill: #4e5667;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: .6;
  transition: fill 1s ease;
}
.licht__glanz { fill: #fff; opacity: .16; transition: opacity 1s ease; }
.licht__schein { opacity: 0; }
/* nacheinander sanft aufleuchten (--i = Nummer des Lämpchens) */
.licht__buehne.is-an .licht__birne { fill: var(--farbe); transition-delay: calc(var(--i) * .28s); }
.licht__buehne.is-an .licht__glanz { opacity: .75; transition-delay: calc(var(--i) * .28s); }
.licht__buehne.is-an .licht__schein {
  animation:
    licht-an 1.3s ease-out calc(var(--i) * .28s) both,
    licht-atmen 6s ease-in-out calc(var(--i) * .69s + 1.3s) infinite;
}
@keyframes licht-an {
  0% { opacity: 0; }
  45% { opacity: 1; }
  62% { opacity: .74; }
  100% { opacity: .95; }
}
@keyframes licht-atmen {
  0%, 100% { opacity: .95; }
  50% { opacity: .74; }
}
.licht__schalter {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #8b93a3;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
  transition: background-color .4s, box-shadow .4s;
}
.knopf[aria-disabled="true"] .licht__schalter {
  background: var(--gold-hell);
  box-shadow: 0 0 8px 2px rgba(246, 214, 150, .7);
}
.karte__inhalt .licht__botschaft {
  margin: 1.3rem auto 0;
  max-width: 30em;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
}
.licht__botschaft:empty { display: none; }
.licht__botschaft.is-sichtbar { animation: einblenden .9s ease both; }

/* ---- Türchen 2: Welcher Weihnachtstyp sind Sie? ---- */
.karte__inhalt .typtest__hinweis {
  margin: .9rem 0 0;
  font-size: .86rem;
  color: var(--blau-sanft);
}
.typtest__ergebnis { animation: einblenden .5s ease both; }
.typtest__ergebnis[hidden] { display: none; }
.typtest__karte {
  margin: 0;
  padding: .6rem;
  border-radius: 16px;
  background: var(--papier);
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .3), 0 16px 30px -20px rgba(35, 49, 73, .5);
}
.typtest__bild {
  overflow: hidden;
  border-radius: 11px;
  aspect-ratio: 1448 / 1086;
  background: var(--papier-tief);
}
.typtest__bild img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .6s ease;
}
.typtest__bild img.is-geladen { opacity: 1; }
.typtest__text { padding: .95rem .7rem .45rem; }
.karte__inhalt .typtest__eyebrow {
  margin: 0 0 .15rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.typtest__titel {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--nachtblau);
  outline: none;
}
.karte__inhalt .typtest__text p:last-child { margin: 0; }

/* ---- Türchen 3: Der Weihnachts-Ausreden-Generator ---- */
.ausreden {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.karte__inhalt .ausreden__intro { align-self: stretch; margin: 0 0 .9rem; text-align: left; }
.ausrede {
  position: relative;
  width: min(30rem, 100%);
  min-height: 9.5rem;
  margin: .9rem 0 .2rem;
  padding: 1.9rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, #fbf3e6 70%, #f5e8d4 100%);
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .28), 0 16px 28px -20px rgba(35, 49, 73, .45);
}
/* gestrichelter Innenrand wie ein kleiner Zettel */
.ausrede::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(184, 141, 60, .45);
  border-radius: 10px;
  pointer-events: none;
}
.ausrede__schein {
  position: absolute;
  top: -1.05rem;
  left: 50%;
  width: 4.4rem;
  transform: translateX(-50%);
  color: var(--gold-hell);
  filter: drop-shadow(0 0 6px rgba(246, 210, 130, .75));
  animation: ausrede-schweben 4.5s ease-in-out infinite;
}
.ausrede__schein svg { display: block; width: 100%; height: auto; }
@keyframes ausrede-schweben {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
.karte__inhalt .ausrede__nummer {
  margin: 0 0 .45rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity .3s ease;
}
.karte__inhalt .ausrede__text {
  margin: 0;
  max-width: 24em;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--nachtblau);
  text-wrap: balance;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.ausrede__text.is-leer { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--blau-sanft); }
.ausrede__text.is-wechsel,
.ausrede__nummer.is-wechsel {
  opacity: 0;
  transform: translateY(4px) scale(.98);
  filter: blur(2px);
  transition-duration: .22s;
}

/* ---- Türchen 15: Weihnachten aus Katzensicht ---- */
.karte__inhalt .katzenrunde__text { margin: 0 0 .9rem; }
.katzenrunde__bild {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f6ead9;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .25), 0 14px 26px -18px rgba(35, 49, 73, .5);
}
.katzenrunde__bild img { display: block; width: 100%; height: auto; }
.katzenrunde__bild.is-fehlt img { display: none; }
/* sanfter, warmer Lichtschein auf den gewählten Kater (Rest leicht abgedunkelt) */
.katzenrunde__schein {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 30% 34% at var(--x, 50%) var(--y, 50%), rgba(255, 240, 205, .28) 0%, rgba(255, 240, 205, 0) 60%, rgba(60, 40, 30, .32) 100%);
}
.katzenrunde__bild.is-hell .katzenrunde__schein { opacity: 1; animation: krimi-licht .7s ease both; }
.karte__inhalt .katzenrunde__frage {
  margin: 1rem 0 .6rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--nachtblau);
}
.katzenrunde__auswahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.katzenrunde__wahl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-height: 48px;
  padding: .7rem .5rem .6rem;
  border: 1.5px solid rgba(75, 95, 128, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: 600 .95rem/1.25 var(--sans);
  min-width: 0;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.katzenrunde__name { min-width: 0; overflow-wrap: anywhere; }
.katzenrunde__wahl:hover { border-color: var(--gold); background: #fff8e8; }
.katzenrunde__wahl:active { transform: scale(.98); }
.katzenrunde__wahl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.katzenrunde__wahl[aria-pressed="true"] { border-color: var(--gold); background: #fff6e0; box-shadow: 0 0 0 1px var(--gold); }
.katzenrunde__pfote svg { display: block; width: 1.2rem; height: 1.2rem; color: rgba(184, 141, 60, .45); transition: color .3s, transform .3s; }
.katzenrunde__wahl.is-gehoert .katzenrunde__pfote svg { color: var(--gold); }
.katzenrunde__wahl[aria-pressed="true"] .katzenrunde__pfote svg { transform: rotate(-12deg) scale(1.1); }
.katzenrunde__aussage.is-neu { animation: einblenden .5s ease both; }
.karte__inhalt .katzenrunde__zitat {
  margin: 1rem 0 0;
  padding: .95rem 1.1rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  background: rgba(228, 194, 122, .14);
}
.karte__inhalt .katzenrunde__zitat-titel {
  margin: 0 0 .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.karte__inhalt .katzenrunde__zitat-text { margin: 0; font-size: 1.04rem; font-weight: 500; line-height: 1.5; color: var(--nachtblau); }
.karte__inhalt .katzenrunde__weiter { margin: .7rem 0 0; text-align: center; font-size: .86rem; color: var(--blau-sanft); }
.karte__inhalt .katzenrunde__weiter.is-fazit { font-weight: 600; color: var(--nachtblau); }
@media (max-width: 520px) {
  .katzenrunde__auswahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .katzenrunde__wahl { flex-direction: row; justify-content: flex-start; padding: .6rem .7rem; }
  .karte__inhalt .katzenrunde__zitat-titel { letter-spacing: .12em; }
}
@media (max-width: 360px) {
  .katzenrunde__wahl { flex-direction: column; justify-content: center; padding: .55rem .3rem; }
}

/* ---- (bisheriges Türchen 3: Plätzchen-Werbeagentur – derzeit nicht verwendet) ---- */
.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.karte__inhalt .slogan__intro { align-self: stretch; margin: 0 0 .5rem; text-align: left; }
.slogan__packung {
  position: relative;
  width: min(290px, 80%);
  margin: .3rem 0 0;
  container-type: inline-size;
  filter: drop-shadow(0 14px 16px rgba(35, 49, 73, .16));
}
.slogan__packung img { display: block; width: 100%; height: auto; }
/* Etikettfläche der Illustration (gemessen in % des Bildes) */
.slogan__etikett {
  position: absolute;
  left: 16%;
  width: 63%;
  top: 34%;
  height: 27.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2%;
}
.karte__inhalt .slogan__text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(10px, calc(7cqw * var(--skal, 1)), 21px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: .01em;
  color: #4b3324;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
  mix-blend-mode: multiply; /* wirkt wie auf das Papier gedruckt */
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.karte__inhalt .slogan__text.is-lang { font-size: clamp(10px, calc(6cqw * var(--skal, 1)), 18px); }
.slogan__text.is-leer { color: rgba(75, 51, 36, .42); font-weight: 500; }
.slogan__text.is-wechsel {
  opacity: 0;
  transform: translateY(4px) scale(.98);
  filter: blur(2px);
  transition-duration: .2s;
}
.slogan__packung.is-fehlt {
  aspect-ratio: 1157 / 1360;
  border-radius: 14px;
  background: var(--papier-tief);
  filter: none;
}
.slogan__packung.is-fehlt img { display: none; }

/* ---- Türchen 4: Schneeflockenjagd ---- */
.karte__inhalt .jagd__anleitung { margin: 0 0 1rem; }
.jagd__feld {
  position: relative;
  height: clamp(250px, 46vh, 330px);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 75% 22% at 22% 104%, #e8eef6 62%, rgba(232, 238, 246, 0) 66%),
    radial-gradient(ellipse 70% 20% at 82% 106%, #dfe7f1 62%, rgba(223, 231, 241, 0) 66%),
    radial-gradient(90% 60% at 50% 0%, rgba(125, 142, 171, .28), transparent 70%),
    linear-gradient(180deg, #1a2438 0%, #25344f 62%, #33466a 100%);
  box-shadow: inset 0 0 0 1px rgba(228, 194, 122, .22), 0 14px 28px -18px rgba(18, 25, 40, .8);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
.jagd__feld:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* zarter Hintergrundschnee (statisch) */
.jagd__feld::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.4px 1.4px at 18px 26px, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 74px 58px, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.6px 1.6px at 112px 18px, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1px 1px at 46px 92px, rgba(255, 255, 255, .3), transparent);
  background-size: 140px 110px;
  opacity: .8;
}
.jagd__fortschritt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, .08);
}
.jagd__balken {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-glanz));
  transform-origin: left center;
}
.jagd__anzeige {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: var(--creme);
}
.jagd__info {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(12, 17, 27, .45);
}
.jagd__label {
  font: 600 .64rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 223, 166, .85);
}
.jagd__wert {
  min-width: 1.3em;
  font: 600 1.15rem/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.jagd__flocken { position: absolute; inset: 0; z-index: 2; }
.jagd__flocke {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.jagd__flocke:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: -3px; }
.jagd__flocke-bild {
  display: block;
  width: var(--g, 32px);
  height: var(--g, 32px);
  filter: drop-shadow(0 0 4px rgba(205, 225, 255, .75));
  transition: color .2s;
}
.jagd__flocke-bild svg { display: block; width: 100%; height: 100%; }
.jagd__flocke:hover .jagd__flocke-bild { color: var(--gold-glanz); }
.jagd__flocke:disabled { cursor: default; }
.jagd__flocke.is-getroffen .jagd__flocke-bild {
  color: var(--gold-glanz);
  animation: flocke-weg .42s ease-out forwards;
}
.jagd__flocke.is-weg { animation: flocke-aus .4s ease forwards; }
@keyframes flocke-weg {
  to { scale: 1.7; opacity: 0; }
}
@keyframes flocke-aus { to { opacity: 0; } }
.jagd__plus {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  font: 600 1rem/1 var(--display);
  color: var(--gold-glanz);
  text-shadow: 0 0 8px rgba(246, 223, 166, .6);
  pointer-events: none;
  animation: plus-hoch .45s ease-out forwards;
}
@keyframes plus-hoch {
  from { opacity: 0; translate: 0 4px; }
  30% { opacity: 1; }
  to { opacity: 0; translate: 0 -20px; }
}
.jagd__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 2.6rem 1.2rem 1.2rem;
  text-align: center;
  color: var(--creme);
  background: radial-gradient(closest-side, rgba(12, 17, 27, .5), rgba(12, 17, 27, .18));
  animation: blende-rein .35s ease;
}
.jagd__overlay[hidden] { display: none; }
.jagd__symbol { width: 2.6rem; height: 2.6rem; color: #fff; filter: drop-shadow(0 0 6px rgba(205, 225, 255, .7)); }
.jagd__symbol svg { display: block; width: 100%; height: 100%; }
.karte__inhalt .jagd__overlay-text {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}
.karte__inhalt .jagd__ergebnis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin: 0;
}
.jagd__ergebnis-zahl {
  font: 600 3.2rem/1 var(--display);
  color: var(--gold-glanz);
  text-shadow: 0 0 18px rgba(246, 223, 166, .35);
}
.jagd__ergebnis-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 244, 230, .82);
}
.karte__inhalt .jagd__kommentar {
  max-width: 22em;
  margin: 0 0 .3rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--creme);
}

/* ---- Türchen 5: Winterfarbpaletten ---- */
.karte__inhalt .palette__intro { margin: 0 0 1rem; }
.palette__auswahl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.palette__wahl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding: .6rem .65rem .7rem;
  border: 1.5px solid rgba(75, 95, 128, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: var(--nachtblau);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.palette__wahl:hover { border-color: var(--gold); background: #fff8e8; }
.palette__wahl:active { transform: scale(.99); }
.palette__wahl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.palette__wahl[aria-pressed="true"] {
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: 0 0 0 1px var(--gold), 0 10px 20px -14px rgba(35, 49, 73, .55);
}
.palette__streifen {
  display: flex;
  width: 100%;
  height: 26px;
  margin-bottom: .3rem;
  border-radius: 7px;
  overflow: hidden;
}
.palette__streifen span { flex: 1; box-shadow: inset 0 0 0 .5px rgba(35, 49, 73, .12); }
.palette__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
}
.palette__stimmung { font-size: .74rem; line-height: 1.35; color: var(--blau); }

.palette__anzeige { margin-top: 1.3rem; }
.palette__anzeige:empty { display: none; }
.palette__anzeige.is-neu { animation: einblenden .45s ease both; }
.palette__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem .8rem;
  margin-bottom: .8rem;
}
.palette__titel {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--nachtblau);
}
.karte__inhalt .palette__stimmung-gross { margin: 0; font-size: .9rem; color: var(--blau); }
.palette__farben {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.palette__farbe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  text-align: center;
}
.palette__feld {
  display: block;
  width: 100%;
  height: clamp(84px, 18vw, 120px);
  border-radius: 12px;
  /* leichter Aquarell-Schimmer über der Farbe */
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .2), transparent 58%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, .06), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(35, 49, 73, .1), 0 12px 22px -16px rgba(35, 49, 73, .65);
}
.palette__farbname { font-size: .86rem; font-weight: 600; color: var(--nachtblau); }
.palette__code-zeile { position: relative; display: inline-flex; }
.palette__code {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: .35rem .7rem;
  border: 1px dashed rgba(184, 141, 60, .65);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--nachtblau);
  font: 600 .84rem/1 var(--sans);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  cursor: copy;
  transition: background-color .2s, border-color .2s;
}
.palette__code:hover { border-style: solid; border-color: var(--gold); background: #fff8e8; }
.palette__code-text { -webkit-user-select: text; user-select: text; }
.palette__code:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.palette__kopier-symbol svg { display: block; width: .95rem; height: .95rem; color: var(--gold); }
.palette__kopiert {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: .28rem .6rem;
  border-radius: 6px;
  background: var(--nachtblau);
  color: var(--creme);
  font: 600 .72rem/1.2 var(--sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  translate: 0 4px;
  transition: opacity .2s ease, translate .2s ease;
}
.palette__kopiert.is-sichtbar { opacity: 1; translate: 0 0; }

@media (max-width: 480px) {
  .palette__auswahl { grid-template-columns: 1fr; }
  .palette__wahl {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: .8rem;
    align-items: center;
  }
  .palette__streifen { grid-row: span 2; height: 38px; margin: 0; }
  .palette__farben { grid-template-columns: 1fr; gap: .7rem; }
  .palette__farbe {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: .9rem;
    row-gap: .3rem;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .palette__feld { grid-row: span 2; height: 72px; }
  .palette__kopiert { left: auto; right: auto; transform: none; left: calc(100% + 8px); bottom: 50%; translate: -4px 50%; }
  .palette__kopiert.is-sichtbar { translate: 0 50%; }
}

/* ---- Gemeinsam für Türchen 6–10 ---- */
.knopf__symbol svg { display: block; width: 1.05rem; height: 1.05rem; }
/* breitere Karte für das Suchbild (Türchen 7): so groß, wie die Fensterhöhe es erlaubt */
.karte.karte--breit {
  width: min(calc(100vw - 32px), max(560px, min(900px, calc((100dvh - 360px) * 1.5 + 78px))));
}
/* Quiz-Ergänzungen: kurze Auswahl-Animation, „sanfte“ Variante ohne Rot */
.quiz__antwort.is-gewaehlt { animation: auswahl .45s ease; }
@keyframes auswahl {
  40% { transform: scale(1.025); }
}
.quiz--sanft .quiz__antwort.is-falsch {
  border-color: rgba(75, 95, 128, .45);
  background: rgba(125, 142, 171, .1);
}
.quiz--sanft .quiz__antwort.is-falsch .quiz__buchstabe { background: var(--blau-sanft); color: #fff; }
.quiz--sanft .quiz__antwort.is-richtig {
  border-color: var(--gold);
  background: #fff6e0;
  box-shadow: 0 0 0 1px var(--gold);
}
.quiz--sanft .quiz__antwort.is-richtig .quiz__buchstabe { background: var(--gold); color: #fff; }
.quiz--sanft .quiz__antwort.is-richtig.is-gewaehlt { animation: auswahl .45s ease, gold-puls 1.3s ease-out; }
@keyframes gold-puls {
  from { box-shadow: 0 0 0 1px var(--gold), 0 0 0 0 rgba(228, 194, 122, .75); }
  to { box-shadow: 0 0 0 1px var(--gold), 0 0 0 16px rgba(228, 194, 122, 0); }
}
.quiz__deko { display: block; width: 2.1rem; margin: -.2rem auto .7rem; color: var(--blau-sanft); opacity: .85; }
.quiz__deko svg { display: block; width: 100%; height: auto; }
.karte__inhalt .quiz__loesung { margin: .35rem 0 .45rem; font-weight: 600; color: var(--nachtblau); }

/* ---- Türchen 6: Nikolausstiefel und Rezeptkarte ---- */
.karte__inhalt .nikolaus__text { margin: 0 0 .5rem; }
.nikolaus__buehne {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nikolaus__stiefel {
  position: relative;
  width: min(250px, 66%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 14px 14px rgba(35, 49, 73, .16));
  transition: width .7s cubic-bezier(.3, .8, .3, 1);
  -webkit-tap-highlight-color: transparent;
}
.nikolaus__stiefel img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 92%;
  transition: transform .25s ease;
}
.nikolaus__stiefel:hover img { transform: rotate(-2deg) translateY(-3px); }
.nikolaus__stiefel:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 14px; }
/* kleiner Wink in Abständen: „Klick mich“ */
.nikolaus:not(.is-offen) .nikolaus__stiefel img { animation: stiefel-wink 4.5s ease-in-out 1.5s infinite; }
@keyframes stiefel-wink {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-3deg); }
  92% { transform: rotate(2.2deg); }
  96% { transform: rotate(-1deg); }
}
.nikolaus.is-offen .nikolaus__stiefel { width: min(150px, 40%); cursor: default; }
.nikolaus.is-offen .nikolaus__stiefel img { animation: wackeln .5s ease; }
.nikolaus.is-offen .nikolaus__stiefel:hover img { transform: none; }
/* Papierrolle, die aus dem Stiefel nach oben steigt */
.nikolaus__rolle {
  position: absolute;
  left: 56%;
  top: 6%;
  width: 26%;
  height: 7%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf0 0%, #f2e3c6 50%, #d8c194 100%);
  box-shadow: 0 4px 8px -3px rgba(92, 72, 44, .45), inset 0 1px 0 rgba(255, 255, 255, .8);
  opacity: 0;
  transform: rotate(-38deg);
  pointer-events: none;
}
.nikolaus.is-offen .nikolaus__rolle { animation: rolle-raus .9s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes rolle-raus {
  0% { opacity: 0; transform: translateY(40%) rotate(-38deg); }
  25% { opacity: 1; }
  70% { opacity: 1; transform: translate(-20%, -260%) rotate(-8deg) scale(1.05); }
  100% { opacity: 0; transform: translate(-25%, -330%) rotate(0deg) scale(.95); }
}
.karte__inhalt .nikolaus__hinweis {
  margin: .6rem 0 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.nikolaus.is-offen .nikolaus__hinweis { display: none; }
.nikolaus.is-offen .aktion { animation: einblenden .5s ease .9s both; }

.rezept { position: relative; margin: 1.3rem 0 0; outline: none; }
.rezept[hidden] { display: none; }
.rezept__papier {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 6px;
  color: #3a3026;
  background-color: #fbf3e4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% 0%, rgba(255, 251, 242, .9), transparent 70%),
    radial-gradient(90% 60% at 100% 100%, rgba(214, 170, 100, .14), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(184, 141, 60, .5),
    inset 0 0 0 5px #fbf3e4,
    inset 0 0 0 6px rgba(184, 141, 60, .28),
    0 18px 34px -22px rgba(35, 49, 73, .6),
    0 2px 4px rgba(92, 72, 44, .08);
}
/* Entrollen: Papier wird von oben nach unten sichtbar, die Rolle wandert mit */
.rezept.is-entrollt .rezept__papier { animation: entrollen 1.15s cubic-bezier(.25, .8, .3, 1) both; }
@keyframes entrollen {
  from { clip-path: inset(0 0 100% 0 round 6px); }
  to { clip-path: inset(0 0 0 0 round 6px); }
}
.rezept__walze {
  position: absolute;
  left: -6px;
  right: -6px;
  top: -7px;
  z-index: 2;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf0 0%, #f2e3c6 45%, #d4bd92 100%);
  box-shadow: 0 5px 9px -3px rgba(92, 72, 44, .4), inset 0 1px 0 rgba(255, 255, 255, .85);
  opacity: 0;
  pointer-events: none;
}
.rezept.is-entrollt .rezept__walze { animation: walze 1.15s cubic-bezier(.25, .8, .3, 1) both; }
@keyframes walze {
  0% { top: -7px; opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 9px); opacity: 0; }
}
.rezept .rezept__eyebrow {
  margin: 0 0 .25rem;
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.rezept__titel {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.12;
  color: #7a2e27;
  text-wrap: balance;
}
.rezept .rezept__untertitel { margin: .3rem 0 0; text-align: center; font-weight: 500; color: #6b5a48; }
.rezept__zier { display: block; width: 150px; margin: .8rem auto .9rem; color: var(--gold); }
.rezept__zier svg { display: block; width: 100%; height: auto; }
.rezept__zier--unten { margin: 1.1rem auto .7rem; }
.rezept__eckdaten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding: .7rem .4rem;
  border-top: 1px dashed rgba(184, 141, 60, .5);
  border-bottom: 1px dashed rgba(184, 141, 60, .5);
  text-align: center;
}
.rezept__eckdaten dt {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.rezept__eckdaten dd { margin: .15rem 0 0; font-size: .86rem; font-weight: 500; line-height: 1.3; }
.rezept__spalten {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 1.4rem;
}
.rezept h4 {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #7a2e27;
}
.rezept ul, .rezept ol { margin: 0; padding: 0; list-style: none; }
.rezept ul li {
  position: relative;
  padding: .24rem 0 .24rem 1.1rem;
  border-bottom: 1px dotted rgba(184, 141, 60, .4);
  font-size: .93rem;
  line-height: 1.35;
}
.rezept ul li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: .36rem;
  font-size: .6rem;
  color: var(--gold);
}
.rezept ol { counter-reset: schritt; }
.rezept ol li {
  position: relative;
  padding: 0 0 .6rem 2rem;
  counter-increment: schritt;
  font-size: .93rem;
  line-height: 1.5;
}
.rezept ol li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: .05rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(228, 194, 122, .28);
  color: #7a2e27;
  font: 600 .8rem/1 var(--display);
}
.rezept .rezept__gruss { margin: 0; text-align: center; font-size: .95rem; font-weight: 500; color: #5a4a3a; }
/* Hinweis unter dem Rezept (z. B. Türchen 24) */
.rezept .rezept__hinweis {
  margin: 1rem 0 0;
  padding: .75rem .95rem;
  border-left: 3px solid rgba(184, 141, 60, .55);
  border-radius: 0 8px 8px 0;
  background: rgba(228, 194, 122, .14);
  font-size: .9rem;
  line-height: 1.55;
  color: #5a4a3a;
}
@media (max-width: 520px) {
  .rezept__papier { padding: 1.3rem 1.05rem 1.1rem; }
  .rezept__spalten { grid-template-columns: 1fr; gap: 1rem; }
  .rezept__eckdaten { grid-template-columns: 1fr; gap: .3rem; text-align: left; }
  .rezept__eckdaten div { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
  .rezept__eckdaten dd { margin: 0; text-align: right; }
}
.druck { display: none; }

/* ---- Türchen 7: Sternensuche ---- */
.karte__inhalt .suche__text { margin: 0 0 .9rem; }
.suche__bild {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1b2436;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .3), 0 16px 30px -18px rgba(18, 25, 40, .7);
}
.suche__bild img { display: block; width: 100%; height: auto; }
.suche__bild.is-fehlt img { visibility: hidden; }
/* unsichtbare, großzügige Trefferfläche über jedem eingezeichneten Stern */
.suche__stern {
  position: absolute;
  width: clamp(44px, 7.5%, 70px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.suche__stern:focus-visible { outline: 2px solid var(--gold-glanz); outline-offset: 2px; }
.suche__stern::before,
.suche__stern::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.suche__stern::before {
  inset: -10%;
  background: radial-gradient(circle, rgba(255, 238, 186, .95) 0%, rgba(246, 214, 150, .5) 32%, rgba(246, 214, 150, 0) 70%);
  transform: scale(.4);
}
.suche__stern::after {
  inset: 16%;
  border: 2px solid rgba(246, 223, 166, .95);
  box-shadow: 0 0 10px rgba(246, 214, 150, .8), inset 0 0 8px rgba(246, 214, 150, .45);
  transform: scale(1.4);
}
.suche__stern.is-gefunden { cursor: default; }
.suche__stern.is-gefunden::before { animation: stern-glanz 1.2s ease-out forwards; }
.suche__stern.is-gefunden::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity .5s ease .25s, transform .6s cubic-bezier(.3, 1.4, .5, 1) .25s;
}
@keyframes stern-glanz {
  0% { opacity: 0; transform: scale(.4); }
  30% { opacity: 1; transform: scale(1.4); }
  100% { opacity: .5; transform: scale(.9); }
}
.suche__stand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .8rem;
}
.karte__inhalt .suche__stand-text { margin: 0; font-size: .92rem; font-weight: 600; color: var(--blau); }
.suche__punkte { display: inline-flex; gap: .2rem; }
.suche__punkt svg { display: block; width: 1.05rem; height: 1.05rem; fill: rgba(75, 95, 128, .22); transition: fill .4s; }
.suche__punkt.is-an svg { fill: var(--gold); filter: drop-shadow(0 0 3px rgba(228, 194, 122, .8)); }
.karte__inhalt .suche__geschafft {
  margin: .6rem auto 0;
  max-width: 32em;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--nachtblau);
  outline: none;
  animation: einblenden .6s ease both;
}
.suche__geschafft[hidden] { display: none; }

/* ---- Türchen 9: Emojirätsel ---- */
.karte__inhalt .emoji__text { margin: 0 0 1rem; }
.emoji__buehne { position: relative; transition: opacity .25s ease, transform .25s ease; }
.emoji__buehne.is-weg { opacity: 0; transform: translateY(6px); }
.karte__inhalt .emoji__stand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.emoji__stand-punkte { display: inline-flex; gap: .3rem; }
.emoji__stand-punkte span { width: 18px; height: 4px; border-radius: 2px; background: rgba(75, 95, 128, .2); }
.emoji__stand-punkte .is-fertig { background: var(--gold-hell); }
.emoji__stand-punkte .is-aktiv { background: var(--gold); }
.karte__inhalt .emoji__zeichen {
  margin: .2rem 0 1.1rem;
  padding: .9rem .5rem;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, #fffaf0, rgba(243, 228, 210, .65));
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .25);
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: .12em;
}
.karte__inhalt .emoji__zeichen.emoji__zeichen--klein {
  margin-bottom: .8rem;
  padding: .6rem;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  letter-spacing: .05em;
}
.emoji__rueckmeldung .aktion { margin-top: .9rem; }
.karte__inhalt .emoji__abschluss {
  margin: .4rem auto 0;
  max-width: 22em;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--nachtblau);
  outline: none;
  animation: einblenden .6s ease both;
}

/* ---- Türchen 10: Schneekugel ---- */
.kugel { display: flex; flex-direction: column; align-items: center; }
.kugel__figur {
  position: relative;
  width: min(330px, 78%);
  margin: .2rem 0 0;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 18px 18px rgba(35, 49, 73, .18));
}
.kugel__figur img { display: block; width: 100%; height: auto; }
.kugel__schnee {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.kugel__figur.is-schuetteln { animation: kugel-schuetteln 1.25s cubic-bezier(.36, .07, .19, .97); }
@keyframes kugel-schuetteln {
  0% { transform: rotate(0); }
  12% { transform: rotate(-4deg) translateX(-3px); }
  28% { transform: rotate(3.4deg) translateX(3px); }
  44% { transform: rotate(-2.4deg) translateX(-2px); }
  60% { transform: rotate(1.5deg) translateX(1px); }
  76% { transform: rotate(-.7deg); }
  100% { transform: rotate(0); }
}
.kugel .aktion { margin-top: .9rem; }
.karte__inhalt .kugel__botschaft {
  margin: 1rem auto 0;
  max-width: 28em;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
}
.kugel__botschaft:empty { display: none; }
.kugel__botschaft.is-sichtbar { animation: einblenden 1s ease both; }

/* ---- Türchen 11: Weihnachts-Memory ---- */
.karte__inhalt .memory__text { margin: 0 0 1rem; }
.memory__raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.45rem, 2vw, .8rem);
  max-width: 470px;
  margin: 0 auto;
  perspective: 900px;
}
.memory__karte {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.memory__karte:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.memory__fluegel {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3, .7, .3, 1);
  will-change: transform;
}
.memory__karte:not(.is-offen):not(.is-gefunden):hover .memory__fluegel { transform: translateY(-3px); }
.memory__karte.is-offen .memory__fluegel,
.memory__karte.is-gefunden .memory__fluegel { transform: rotateY(180deg); }
.memory__rueck,
.memory__vorn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.memory__rueck {
  background: radial-gradient(120% 90% at 30% 18%, #2d3c59, #1a2335 72%);
  box-shadow:
    inset 0 0 0 1px rgba(228, 194, 122, .7),
    inset 0 0 0 4px #1c2638,
    inset 0 0 0 5px rgba(228, 194, 122, .3),
    0 6px 14px -8px rgba(18, 25, 40, .7);
  color: var(--gold-hell);
}
.memory__rueck svg { width: 30%; height: auto; fill: currentColor; filter: drop-shadow(0 0 4px rgba(228, 194, 122, .45)); }
.memory__vorn {
  padding: 9%;
  transform: rotateY(180deg);
  background: radial-gradient(120% 90% at 50% 20%, #fffaf2, var(--papier) 70%);
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .45), 0 6px 14px -8px rgba(35, 49, 73, .45);
}
.memory__vorn img { display: block; width: 100%; height: 100%; object-fit: contain; }
.memory__karte.is-gefunden { cursor: default; }
.memory__karte.is-gefunden .memory__vorn {
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 6px 14px -8px rgba(35, 49, 73, .45);
  animation: memory-treffer 1.1s ease-out;
}
@keyframes memory-treffer {
  0% { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 0 rgba(246, 214, 150, .95), inset 0 0 26px rgba(246, 214, 150, .7); }
  100% { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 16px rgba(246, 214, 150, 0), inset 0 0 0 rgba(246, 214, 150, 0); }
}
.karte__inhalt .memory__stand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin: .9rem 0 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--blau);
}
.memory__punkt { width: 8px; height: 8px; border-radius: 50%; background: rgba(75, 95, 128, .2); }
.memory__punkt:last-of-type { margin-right: .35rem; }
.memory__punkt.is-an { background: var(--gold); box-shadow: 0 0 5px rgba(228, 194, 122, .8); }
.memory__abschluss { position: relative; margin-top: 1rem; text-align: center; }
.memory__abschluss[hidden] { display: none; }
.karte__inhalt .memory__geschafft {
  margin: 0 auto;
  max-width: 28em;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
  animation: einblenden .7s ease both;
}

/* ---- Türchen 12: Was bedeutet eigentlich Advent? ---- */
.advent__papier {
  position: relative;
  padding: 2rem 1.4rem 1.8rem;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf2, #fbf1e4);
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .35), 0 14px 28px -20px rgba(35, 49, 73, .5);
}
.advent__stern { display: block; width: 1.3rem; margin: 0 auto .9rem; color: var(--gold); }
.advent__stern svg { display: block; width: 100%; height: auto; fill: currentColor; }
.karte__inhalt .advent__frage {
  max-width: 24em;
  margin: 0 auto;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--nachtblau);
}
.advent__latein { font-style: normal; font-weight: 600; letter-spacing: .03em; color: var(--gold); }
.advent__aufloesung { margin-top: 1.3rem; outline: none; }
.advent__aufloesung[hidden] { display: none; }
.advent__linie {
  display: block;
  width: 96px;
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.advent__aufloesung.is-sichtbar .advent__linie { animation: linie-auf 1.2s ease both; }
@keyframes linie-auf {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
.karte__inhalt .advent__wort {
  margin: 0;
  padding-left: .14em; /* gleicht den Buchstabenabstand am Ende aus */
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nachtblau);
}
.advent__aufloesung.is-sichtbar .advent__wort { animation: wort-auf 1.9s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes wort-auf {
  from { opacity: 0; letter-spacing: .4em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: .14em; filter: blur(0); }
}
.karte__inhalt .advent__nachsatz { max-width: 24em; margin: .9rem auto 0; color: #34425c; }
.advent__aufloesung.is-sichtbar .advent__nachsatz { animation: einblenden 1s ease 1.6s both; }

/* ---- Türchen 13: Der große Plätzchenkrimi ---- */
.karte__inhalt .krimi__text { margin: 0 0 .9rem; }
.krimi__bild {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f6ead9;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .25), 0 14px 26px -18px rgba(35, 49, 73, .5);
}
.krimi__bild img { display: block; width: 100%; height: auto; }
/* Lichtkegel auf die befragte Person */
.krimi__licht {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 24% 58% at var(--x, 50%) 45%, rgba(255, 244, 214, .08) 0%, rgba(255, 244, 214, 0) 55%, rgba(28, 32, 46, .36) 100%);
}
.krimi__bild.is-verhoer .krimi__licht { opacity: 1; animation: krimi-licht .6s ease both; }
@keyframes krimi-licht { from { opacity: 0; } to { opacity: 1; } }
.karte__inhalt .krimi__frage {
  margin: 1rem 0 .6rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--nachtblau);
}
.krimi__auswahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.krimi__wahl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-height: 48px;
  padding: .7rem .5rem .6rem;
  border: 1.5px solid rgba(75, 95, 128, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: 600 .92rem/1.25 var(--sans);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.krimi__wahl:hover { border-color: var(--gold); background: #fff8e8; }
.krimi__wahl:active { transform: scale(.99); }
.krimi__wahl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.krimi__wahl[aria-pressed="true"] { border-color: var(--gold); background: #fff6e0; box-shadow: 0 0 0 1px var(--gold); }
.krimi__lupe svg { display: block; width: 1.25rem; height: 1.25rem; color: var(--gold); }
.krimi__befragt {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blau-sanft);
  opacity: 0;
}
.krimi__wahl.is-befragt .krimi__befragt { opacity: 1; }
.krimi__aufloesung.is-neu { animation: einblenden .5s ease both; }
.krimi__akte {
  margin-top: 1rem;
  padding: .95rem 1.1rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  background: rgba(228, 194, 122, .14);
}
.karte__inhalt .krimi__akte-titel {
  margin: 0 0 .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.karte__inhalt .krimi__akte-text { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.5; color: var(--nachtblau); }
.karte__inhalt .krimi__weiter { margin: .7rem 0 0; text-align: center; font-size: .86rem; color: var(--blau-sanft); }
.karte__inhalt .krimi__weiter.is-fazit { font-weight: 600; color: var(--nachtblau); }
@media (max-width: 480px) {
  .krimi__auswahl { grid-template-columns: 1fr; }
  .krimi__wahl { flex-direction: row; justify-content: flex-start; padding: .6rem .9rem; text-align: left; }
  .krimi__befragt { margin-left: auto; }
}

/* ---- Türchen 14: Zehn Sekunden Gemütlichkeit ---- */
.pause { display: flex; flex-direction: column; align-items: center; }
.karte__inhalt .pause__text { align-self: stretch; margin: 0 0 .3rem; text-align: center; }
.pause__figur { position: relative; width: min(440px, 100%); }
.pause__figur img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* warmer Kerzenschein hinter der Illustration */
.pause__schein {
  position: absolute;
  z-index: 0;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 120, .34) 0%, rgba(255, 206, 120, .12) 38%, rgba(255, 206, 120, 0) 70%);
  opacity: .45;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}
/* zarter Dampf über der Tasse (eigene SVG-Ebene, im Bild selbst ist kein Dampf gemalt) */
.pause__dampf {
  position: absolute;
  z-index: 2;
  width: 27%;
  opacity: .55;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 1.5s ease;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 14%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 14%, #000 55%, transparent 100%);
}
.pause__dampf svg { display: block; width: 100%; height: auto; overflow: visible; }
.pause__wolke { transform-box: fill-box; transform-origin: 50% 100%; }
.pause.is-ruhe .pause__dampf { opacity: 1; }
/* Dampf passend zur Zehn-Sekunden-Pause (--pause-dauer, per JS gesetzt): zwei Schwaden
   im halben Takt versetzt, damit durchgehend Dampf aufsteigt; der letzte Zug endet mit der Pause */
.pause.is-ruhe .pause__wolke--1 { animation: dampf-wehen calc(var(--pause-dauer, 10s) / 2) ease-in-out infinite; }
.pause.is-ruhe .pause__wolke--2 { animation: dampf-wehen calc(var(--pause-dauer, 10s) / 2) ease-in-out calc(var(--pause-dauer, 10s) / -4) infinite; }
.pause.is-ruhe .pause__wolke--3 { animation: dampf-hauch var(--pause-dauer, 10s) ease-in-out infinite; }
/* langsam aufsteigend, leicht wiegend – wie warme Luft */
@keyframes dampf-wehen {
  0% { opacity: 0; transform: translate(0, 8%) scale(.94, .9); }
  30% { opacity: .9; }
  60% { opacity: .75; transform: translate(5%, -4%) scale(1.04, 1.02) skewX(-4deg); }
  100% { opacity: 0; transform: translate(-4%, -16%) scale(1.12, 1.1) skewX(3deg); }
}
@keyframes dampf-hauch {
  0%, 100% { opacity: .35; transform: translate(0, 2%) scale(1); }
  50% { opacity: .6; transform: translate(-3%, -6%) scale(1.08, 1.05); }
}
/* leicht flackerndes Licht über der gemalten Flamme */
.pause__flamme {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 1s ease;
}
.pause__flamme svg { display: block; width: 100%; height: 100%; transform-origin: 50% 92%; }
.pause.is-ruhe .pause__flamme { opacity: .75; animation: flamme-glimmen 2.3s ease-in-out infinite; }
.pause.is-ruhe .pause__flamme svg { animation: flamme-flackern 1.7s ease-in-out infinite; }
.pause.is-ruhe .pause__schein { opacity: 1; animation: schein-flackern 2.9s ease-in-out infinite; }
@keyframes flamme-flackern {
  0%, 100% { transform: scaleY(1) skewX(0); }
  20% { transform: scaleY(1.05) skewX(-2.5deg); }
  45% { transform: scaleY(.95) skewX(1.5deg); }
  63% { transform: scaleY(1.03) skewX(2.5deg); }
  80% { transform: scaleY(.98) skewX(-1deg); }
}
@keyframes flamme-glimmen {
  0%, 100% { opacity: .75; }
  30% { opacity: .55; }
  52% { opacity: .85; }
  74% { opacity: .62; }
}
@keyframes schein-flackern {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  35% { opacity: .82; transform: translate(-50%, -50%) scale(.96); }
  60% { opacity: .95; transform: translate(-50%, -50%) scale(1.03); }
}
.pause__linie {
  display: block;
  width: min(220px, 60%);
  height: 2px;
  margin: .9rem auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(184, 141, 60, .18);
  opacity: 0;
  transition: opacity .6s ease;
}
.pause__linie span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-hell), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}
.pause.is-ruhe .pause__linie { opacity: 1; }
.karte__inhalt .pause__hinweis {
  height: 0;
  margin: 0;
  overflow: hidden;
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--blau-sanft);
  opacity: 0;
  outline: none;
  transition: opacity .8s ease;
}
.karte__inhalt .pause.is-ruhe .pause__hinweis { height: auto; margin-top: .6rem; opacity: 1; }
.karte__inhalt .pause__botschaft {
  max-width: 28em;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
}
.pause__botschaft:empty { display: none; }
.pause__botschaft.is-sichtbar { animation: einblenden 1.1s ease both; }

/* ---- Türchen 15: Cookies mal anders ---- */
.browser {
  max-width: 440px;
  margin: .2rem auto 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 0 0 1px rgba(35, 49, 73, .12), 0 18px 34px -22px rgba(35, 49, 73, .55);
}
.browser__leiste {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid rgba(35, 49, 73, .08);
  background: #efe6d8;
}
.browser__punkte { display: inline-flex; gap: .35rem; }
.browser__punkte span { width: 9px; height: 9px; border-radius: 50%; background: #d9a297; }
.browser__punkte span:nth-child(2) { background: #e3c785; }
.browser__punkte span:nth-child(3) { background: #a9c09d; }
.browser__adresse {
  flex: 1;
  overflow: hidden;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--blau);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser__seite { padding: 1.3rem 1.2rem 1.5rem; text-align: center; transition: opacity .24s ease, transform .24s ease; }
.browser__seite.is-weg { opacity: 0; transform: translateY(6px); }
.karte__inhalt .browser__hinweis {
  margin: 0 0 1rem;
  padding: .45rem .7rem;
  border-radius: 8px;
  background: rgba(228, 194, 122, .16);
  font-size: .78rem;
  color: var(--blau);
}
.browser__keks { display: block; width: 60px; margin: 0 auto .6rem; }
.browser__keks svg { display: block; width: 100%; height: auto; }
.karte__inhalt .browser__frage {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--nachtblau);
}
.browser__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.karte__inhalt .browser__rueckmeldung {
  margin: 0 0 .7rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--nachtblau);
  outline: none;
  animation: einblenden .5s ease both;
}
.browser__cookie {
  width: min(260px, 74%);
  margin: 0 auto;
  filter: drop-shadow(0 12px 14px rgba(92, 62, 30, .22));
  animation: keks-rein .8s cubic-bezier(.3, 1.3, .5, 1) .15s both;
}
.browser__cookie img { display: block; width: 100%; height: auto; }
@keyframes keks-rein {
  from { opacity: 0; transform: scale(.82) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}
.karte__inhalt .browser__botschaft {
  margin: .8rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--nachtblau);
  animation: einblenden .6s ease .6s both;
}

/* ---- Türchen 16: Buchstabensalat ---- */
.karte__inhalt .salat__text { margin: 0 0 1.1rem; }
.salat__zeile,
.salat__auswahl {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(.25rem, 1.2vw, .45rem);
  max-width: 470px;
  margin: 0 auto;
}
.salat__auswahl { margin-top: 1.1rem; }
.salat__platz,
.salat__kaertchen {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
  font: 600 clamp(1.1rem, 4.6vw, 1.55rem)/1 var(--display);
  color: var(--nachtblau);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, opacity .2s, transform .15s, box-shadow .2s;
}
.salat__platz {
  border: 1.5px dashed rgba(184, 141, 60, .55);
  background: rgba(255, 255, 255, .45);
}
.salat__platz.is-belegt {
  border-style: solid;
  border-color: rgba(184, 141, 60, .75);
  background: #fff6e0;
  animation: auswahl .3s ease;
}
.salat__platz[aria-disabled="true"] { cursor: default; }
.salat__kaertchen {
  border: 1.5px solid rgba(184, 141, 60, .5);
  background: linear-gradient(180deg, #fffaf2, var(--papier));
  box-shadow: 0 3px 8px -4px rgba(35, 49, 73, .35);
}
.salat__kaertchen:hover:not([aria-disabled="true"]) { border-color: var(--gold); transform: translateY(-2px); }
.salat__kaertchen.is-benutzt { opacity: .28; box-shadow: none; transform: none; }
.salat__kaertchen[aria-disabled="true"] { cursor: default; }
.salat__platz:focus-visible,
.salat__kaertchen:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.salat__zeile.is-falsch { animation: ruetteln .45s ease; }
.salat__zeile.is-geloest .salat__platz {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff3d4, #f6dfa6);
  animation: salat-welle .7s ease both;
}
.salat__zeile.is-geloest .salat__platz:nth-child(2) { animation-delay: .06s; }
.salat__zeile.is-geloest .salat__platz:nth-child(3) { animation-delay: .12s; }
.salat__zeile.is-geloest .salat__platz:nth-child(4) { animation-delay: .18s; }
.salat__zeile.is-geloest .salat__platz:nth-child(5) { animation-delay: .24s; }
.salat__zeile.is-geloest .salat__platz:nth-child(6) { animation-delay: .3s; }
.salat__zeile.is-geloest .salat__platz:nth-child(7) { animation-delay: .36s; }
.salat__zeile.is-geloest .salat__platz:nth-child(8) { animation-delay: .42s; }
.salat__zeile.is-geloest .salat__platz:nth-child(9) { animation-delay: .48s; }
@keyframes salat-welle {
  0% { transform: translateY(0); }
  40% { transform: translateY(-6px); box-shadow: 0 6px 14px -6px rgba(184, 141, 60, .7); }
  100% { transform: translateY(0); }
}
.salat.is-geloest .salat__auswahl { opacity: .5; }
.salat__status:empty { display: none; }
.salat__status { margin-top: 1rem; text-align: center; animation: einblenden .4s ease both; }
.karte__inhalt .salat__meldung { margin: 0; font-weight: 600; color: var(--nachtblau); }
.karte__inhalt .salat__meldung--richtig { font-size: 1.05rem; }
.karte__inhalt .salat__korrektur { margin: .35rem 0 0; font-size: .88rem; color: var(--blau); }
.karte__inhalt .salat__tipp {
  max-width: 30em;
  margin: .8rem auto 0;
  padding: .6rem .9rem;
  border-radius: 10px;
  background: rgba(228, 194, 122, .16);
  text-align: center;
  font-size: .95rem;
  color: var(--nachtblau);
  animation: einblenden .4s ease both;
}
.salat__tipp[hidden] { display: none; }
.salat__belohnung {
  width: min(190px, 52%);
  margin: .8rem auto 0;
  filter: drop-shadow(0 10px 12px rgba(92, 62, 30, .2));
  animation: keks-rein .8s cubic-bezier(.3, 1.3, .5, 1) .2s both;
}
.salat__belohnung[hidden] { display: none; }
.salat__belohnung img { display: block; width: 100%; height: auto; }

/* ---- Türchen 17: Weihnachtskarte ---- */
.karte__inhalt .gruss__intro { margin: 0 0 1rem; }
.gruss__schritt {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.2rem 0 .6rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nachtblau);
}
.gruss__schritt span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--nachtblau);
  color: var(--gold-glanz);
  font-size: .9rem;
}
.gruss__motive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.gruss__motiv,
.gruss__text {
  border: 1.5px solid rgba(75, 95, 128, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.gruss__motiv { display: flex; flex-direction: column; gap: .35rem; padding: .35rem .35rem .5rem; font-size: .8rem; font-weight: 600; line-height: 1.25; }
.gruss__motiv img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.gruss__motiv span { padding: 0 .2rem; }
.gruss__texte { display: grid; gap: .5rem; }
.gruss__text { display: flex; flex-direction: column; gap: .2rem; padding: .65rem .9rem; }
.gruss__text-name { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.gruss__text-inhalt { font-size: .92rem; line-height: 1.45; }
.gruss__motiv:hover,
.gruss__text:hover { border-color: var(--gold); background: #fff8e8; }
.gruss__motiv:focus-visible,
.gruss__text:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gruss__motiv[aria-pressed="true"],
.gruss__text[aria-pressed="true"] { border-color: var(--gold); background: #fff6e0; box-shadow: 0 0 0 1px var(--gold); }
.gruss__vorschau { position: relative; display: grid; place-items: center; min-height: 120px; }
.gruss__vorschau.is-laedt { opacity: .6; }
.gruss__vorschau.is-neu .gruss__canvas { animation: einblenden .5s ease both; }
.karte__inhalt .gruss__platzhalter {
  width: 100%;
  margin: 0;
  padding: 1.6rem 1rem;
  border: 1.5px dashed rgba(184, 141, 60, .45);
  border-radius: 12px;
  text-align: center;
  font-size: .92rem;
  color: var(--blau-sanft);
}
.gruss__platzhalter[hidden] { display: none; }
.gruss__canvas {
  display: block;
  width: min(520px, 100%);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 34px -18px rgba(35, 49, 73, .6), 0 2px 6px rgba(35, 49, 73, .12);
}
.gruss__canvas[hidden] { display: none; }
.karte__inhalt .gruss__meldung { margin: .6rem 0 0; text-align: center; font-size: .9rem; color: var(--rot); }
.gruss__meldung:empty { display: none; }
/* Handy: jedes Motiv in einer eigenen Zeile – Bild links (vollständig, 3:2), Name rechts */
@media (max-width: 600px) {
  .gruss__motive { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .gruss__motiv {
    flex-direction: row;
    align-items: center;
    gap: .8rem;
    min-height: 64px;
    padding: .45rem .8rem .45rem .45rem;
    font-size: .95rem;
  }
  .gruss__motiv img { flex: 0 0 46%; width: 46%; min-width: 0; }
  .gruss__motiv span { flex: 1 1 auto; min-width: 0; }
}

/* ---- Türchen 18: Advents-Bingo ---- */
.karte__inhalt .bingo__intro { margin: 0 0 1rem; }
.bingo__raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.4rem, 1.8vw, .65rem);
  max-width: 440px;
  margin: 0 auto;
}
.bingo__feld {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  aspect-ratio: 1;
  min-height: 0;
  padding: .4rem;
  border: 1.5px solid rgba(184, 141, 60, .4);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, var(--papier));
  color: var(--nachtblau);
  font: 600 clamp(.66rem, 2.6vw, .82rem)/1.2 var(--sans);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .15s;
}
.bingo__emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1;
  transition: transform .3s ease;
}
.bingo__text { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.bingo__feld:hover { border-color: var(--gold); }
.bingo__feld:active { transform: scale(.98); }
.bingo__feld:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bingo__feld[aria-pressed="true"] {
  border-color: #7f9a74;
  background: linear-gradient(180deg, #eef4e8, #dfe9d6);
  box-shadow: inset 0 0 0 1px rgba(127, 154, 116, .5);
}
.bingo__feld[aria-pressed="true"] .bingo__emoji { transform: scale(1.08); }
.bingo__feld.is-reihe { animation: bingo-gold 1.8s ease; }
@keyframes bingo-gold {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(127, 154, 116, .5); }
  25%, 70% {
    border-color: var(--gold);
    background: linear-gradient(180deg, #fff3d4, #f6dfa6);
    box-shadow: 0 0 0 2px rgba(228, 194, 122, .6), 0 0 18px rgba(228, 194, 122, .7);
  }
}
.bingo__fuss { position: relative; min-height: 3.2rem; margin-top: 1rem; text-align: center; }
.karte__inhalt .bingo__meldung {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 600;
  color: var(--nachtblau);
}
.bingo__meldung:empty { display: none; }
.bingo__meldung.is-sichtbar { animation: einblenden .5s ease both; }
.karte__inhalt .bingo__anregung { margin: 0; font-size: .86rem; color: var(--blau-sanft); }
.bingo__anregung[hidden] { display: none; }

/* ---- Türchen 19: Ein Himmel voller Wünsche ---- */
.himmel__bild {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1626;
  cursor: crosshair;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .3), 0 16px 30px -18px rgba(18, 25, 40, .7);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.himmel__bild.is-voll { cursor: default; }
.himmel__bild img { display: block; width: 100%; height: auto; }
.himmel__sterne { position: absolute; inset: 0; pointer-events: none; }
.himmel__stern {
  position: absolute;
  width: clamp(14px, 2.6%, 24px);
  aspect-ratio: 1;
  color: #ffe2a0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px rgba(255, 214, 140, .95)) drop-shadow(0 0 10px rgba(255, 196, 110, .55));
  animation: stern-entsteht 1s cubic-bezier(.3, 1.5, .5, 1) both;
}
.himmel__stern svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.himmel__stern::before {
  content: "";
  position: absolute;
  inset: -90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 160, .5) 0%, rgba(255, 226, 160, 0) 65%);
  opacity: 0;
  animation: stern-aufleuchten 1.4s ease-out both;
}
@keyframes stern-entsteht {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-30deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.35) rotate(8deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
@keyframes stern-aufleuchten {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; transform: scale(1.2); }
  100% { opacity: .35; transform: scale(1); }
}
/* nach dem fünften Stern: sanftes, versetztes Funkeln */
.himmel__bild.is-funkeln .himmel__stern { animation: stern-funkeln var(--dauer, 3s) ease-in-out var(--verz, 0s) infinite; }
@keyframes stern-funkeln {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  45% { opacity: .7; transform: translate(-50%, -50%) scale(.82); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}
.himmel__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 50% 20%, rgba(255, 220, 150, .1), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.5s ease;
}
.himmel__bild.is-funkeln::after { opacity: 1; }
.himmel__leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem 1rem;
  margin-top: .7rem;
}
.karte__inhalt .himmel__hinweis { margin: 0; font-size: .95rem; color: var(--nachtblau); }
.karte__inhalt .himmel__stand { margin: 0; font-size: .82rem; font-weight: 600; color: var(--gold); }
.karte__inhalt .himmel__botschaft {
  max-width: 30em;
  margin: .9rem auto 0;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
  animation: einblenden 1s ease both;
}
.himmel__botschaft[hidden] { display: none; }
.himmel .aktion .knopf[hidden] { display: none; }
.himmel .knopf__symbol svg { fill: var(--gold); }

/* ---- Türchen 20: Bastelanleitung ---- */
.bastel__titelbild { width: min(200px, 48%); margin: 0 auto .6rem; filter: drop-shadow(0 12px 14px rgba(92, 62, 30, .2)); }
.bastel__titelbild img { display: block; width: 100%; height: auto; }
.karte__inhalt .bastel__intro { margin: 0 0 1rem; text-align: center; }
.bastel__material {
  margin: 0 0 1.2rem;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  background: rgba(228, 194, 122, .14);
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .25);
}
.bastel__material h3,
.bastel-druck h2 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nachtblau);
}
.bastel__material ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; margin: 0; padding: 0; list-style: none; }
.bastel__material li { position: relative; padding-left: 1rem; font-size: .9rem; }
.bastel__material li::before { content: "\2726"; position: absolute; left: 0; top: .1rem; font-size: .6rem; color: var(--gold); }
.bastel__anleitung {
  padding: 1rem 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf2, var(--papier));
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .35), 0 12px 26px -20px rgba(35, 49, 73, .5);
}
.bastel__kopf { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.bastel__punkte { display: inline-flex; gap: .3rem; }
.bastel__punkte span { width: 18px; height: 4px; border-radius: 2px; background: rgba(75, 95, 128, .2); }
.bastel__punkte .is-fertig { background: var(--gold-hell); }
.bastel__punkte .is-aktiv { background: var(--gold); }
.karte__inhalt .bastel__stand { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; color: var(--blau-sanft); text-align: right; }
.bastel__schritt { transition: opacity .22s ease, transform .22s ease; }
.bastel__schritt.is-weg { opacity: 0; transform: translateX(-8px); }
.karte__inhalt .bastel__nummer {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.bastel__nummer span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--nachtblau);
  color: var(--gold-glanz);
  font: 600 .95rem/1 var(--display);
  letter-spacing: 0;
}
.bastel__titel { margin: .35rem 0 .5rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--nachtblau); }
.bastel__bild {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(190px, 34vh, 270px);
}
.bastel__bild img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bastel__bild--pfeil { height: clamp(150px, 26vh, 210px); align-items: flex-end; }
.bastel__pfeil { width: min(100%, 420px); margin: .1rem auto 0; color: var(--gold); }
.bastel__pfeil svg { display: block; width: 100%; height: auto; overflow: visible; }
.bastel__pfeil-bahn {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  animation: pfeil-fliessen 1.4s linear infinite;
}
@keyframes pfeil-fliessen { to { stroke-dashoffset: -28; } }
/* Übergang Fächer → fertiger Stern */
.bastel__faecher {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: faecher-weg 1.3s ease .35s both;
}
@keyframes faecher-weg {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.9) translateY(-6%); }
}
.bastel__bild.is-entfalten img:not(.bastel__faecher) { animation: stern-entfalten 1.5s cubic-bezier(.3, .8, .3, 1) .45s both; }
@keyframes stern-entfalten {
  0% { opacity: 0; transform: scale(.7) rotate(-22deg); clip-path: circle(18% at 50% 50%); }
  100% { opacity: 1; transform: none; clip-path: circle(75% at 50% 50%); }
}
.karte__inhalt .bastel__text { margin: .7rem 0 0; font-size: .98rem; line-height: 1.55; }
.bastel__nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.bastel__nav .knopf:disabled { opacity: .4; cursor: default; box-shadow: none; }
.bastel__nav .knopf--zweit:disabled:hover { background: transparent; }
.bastel__nav .knopf:not(.knopf--zweit):disabled:hover { background: var(--nachtblau); }
@media (max-width: 480px) {
  .bastel__material ul { grid-template-columns: 1fr; }
  .bastel__anleitung { padding: .8rem .75rem .9rem; }
}

/* ---- Türchen 21: Lichter-Merkspiel ---- */
.karte__inhalt .simon__text { margin: 0 0 1rem; }
.simon__buehne {
  padding: .4rem .4rem .2rem;
  border-radius: 14px;
  background: radial-gradient(130% 100% at 50% 0%, #283550 0%, #182133 60%, #121928 100%);
  box-shadow: inset 0 0 0 1px rgba(228, 194, 122, .22), 0 12px 26px -16px rgba(18, 25, 40, .7);
}
.simon__kette { position: relative; aspect-ratio: 400 / 230; outline: none; }
.simon__kabel { position: absolute; inset: 0; width: 100%; height: 100%; }
.simon__kabel path { fill: none; stroke: #5a675f; stroke-width: 2; stroke-linecap: round; }
.simon__lampe {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  width: 19%;
  padding: 0 0 .2rem;
  border: 0;
  border-radius: 12px;
  background: none;
  transform: translate(-50%, -6%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.simon__lampe:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
.simon__birne { display: block; width: 46%; }
.simon__birne svg { display: block; width: 100%; height: auto; overflow: visible; transition: filter .25s ease, transform .25s ease; }
.simon__fassung { fill: #3c4a43; }
.simon__glas { fill: var(--farbe); opacity: .32; transition: opacity .25s ease; }
.simon__glanz { fill: #fff; opacity: .18; }
.simon__name {
  font: 600 clamp(.6rem, 2.2vw, .74rem)/1.1 var(--sans);
  letter-spacing: .04em;
  color: rgba(251, 244, 230, .75);
  white-space: nowrap;
}
.simon__lampe:hover:not([aria-disabled="true"]) .simon__glas { opacity: .55; }
.simon__kette.is-gesperrt .simon__lampe { cursor: default; }
.simon__lampe.is-an .simon__glas,
.simon__lampe.is-alle .simon__glas { opacity: 1; }
.simon__lampe.is-an .simon__birne svg,
.simon__lampe.is-alle .simon__birne svg {
  filter: drop-shadow(0 0 6px var(--farbe)) drop-shadow(0 0 16px var(--farbe));
  transform: scale(1.08);
}
.simon__lampe.is-an .simon__name { color: #fff; }
.simon__lampe.is-alle .simon__birne svg { animation: simon-strahlen 2.4s ease-in-out infinite; }
@keyframes simon-strahlen {
  0%, 100% { filter: drop-shadow(0 0 6px var(--farbe)) drop-shadow(0 0 16px var(--farbe)); }
  50% { filter: drop-shadow(0 0 4px var(--farbe)) drop-shadow(0 0 9px var(--farbe)); }
}
.simon__leiste { position: relative; margin-top: .8rem; text-align: center; }
.karte__inhalt .simon__runde {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.karte__inhalt .simon__status { min-height: 1.5em; margin: .3rem 0 0; font-weight: 600; color: var(--nachtblau); }
.simon.is-gewonnen .simon__status { font-family: var(--display); font-size: 1.25rem; }

/* ---- Türchen 22: Wunschkarte ---- */
.karte__inhalt .wunsch__text { margin: 0 0 1rem; }
.wunsch__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.wunsch__karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 92px;
  padding: .7rem .4rem;
  border: 1.5px solid rgba(184, 141, 60, .35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, var(--papier));
  color: var(--nachtblau);
  font: 600 .95rem/1.2 var(--sans);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, opacity .2s, transform .15s;
}
.wunsch__emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.7rem; line-height: 1; }
.wunsch__karte:hover { border-color: var(--gold); }
.wunsch__karte:active { transform: scale(.98); }
.wunsch__karte:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wunsch__karte[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff6e0, #f8e6bd);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 18px -12px rgba(184, 141, 60, .8);
}
.wunsch__karte.is-gesperrt { opacity: .5; }
.karte__inhalt .wunsch__stand { margin: .8rem 0 0; text-align: center; font-size: .88rem; font-weight: 600; color: var(--blau); }
.wunsch__auswahl[hidden],
.wunsch__ergebnis[hidden] { display: none; }
.wunsch__ergebnis.is-neu { animation: einblenden .5s ease both; }
.wunsch__vorschau { display: grid; place-items: center; }
.wunsch__canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 34px -18px rgba(35, 49, 73, .6), 0 2px 6px rgba(35, 49, 73, .12);
}
.knopf:disabled { opacity: .45; cursor: default; box-shadow: none; }
.knopf:not(.knopf--zweit):disabled:hover { background: var(--nachtblau); }
@media (max-width: 420px) {
  .wunsch__raster { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Türchen 23: Schnell verpacken ---- */
.karte__inhalt .letztes__intro { margin: 0 0 .9rem; text-align: center; font-weight: 500; }
.verpacken__buehne {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
}
.verpacken__vorher,
.verpacken__nachher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(92, 40, 30, .14));
}
.verpacken__nachher { inset: 2% 0; height: 96%; opacity: 0; transform: scale(.85); }
/* Phase 1: das Material verschwindet in der Wolke */
.verpacken__buehne.is-chaos .verpacken__vorher { animation: material-weg .6s ease-in forwards; }
@keyframes material-weg {
  0% { transform: none; opacity: 1; }
  25% { transform: translateX(-2%) rotate(-2deg); }
  45% { transform: translateX(2%) rotate(2deg) scale(.95); opacity: 1; }
  100% { transform: scale(.45) rotate(-8deg); opacity: 0; filter: blur(4px); }
}
/* Phase 2: Comic-Staubwolke im Aquarellton */
.verpacken__wolke {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  aspect-ratio: 300 / 230;
  transform: translateY(-50%) scale(.2);
  opacity: 0;
  pointer-events: none;
}
.verpacken__wolke svg { display: block; width: 100%; height: 100%; overflow: visible; }
.verpacken__buehne.is-chaos .verpacken__wolke {
  animation: wolke-rein .45s cubic-bezier(.3, 1.5, .5, 1) .15s both, wolke-wirbeln .9s ease-in-out .6s infinite;
}
@keyframes wolke-rein {
  from { opacity: 0; transform: translateY(-50%) scale(.2); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes wolke-wirbeln {
  0%, 100% { opacity: 1; transform: translateY(-50%) rotate(0) scale(1); }
  25% { transform: translateY(-51%) translateX(-1.5%) rotate(-3deg) scale(1.03); }
  50% { transform: translateY(-49%) rotate(2deg) scale(.98); }
  75% { transform: translateY(-50%) translateX(1.5%) rotate(-1deg) scale(1.02); }
}
.verpacken__buehne.is-chaos.is-aufloesen .verpacken__wolke { animation: wolke-weg .65s ease-out forwards; }
@keyframes wolke-weg {
  from { opacity: 1; transform: translateY(-50%) scale(1); }
  to { opacity: 0; transform: translateY(-50%) scale(1.3); filter: blur(6px); }
}
.chaos__puff { transform-box: fill-box; transform-origin: center; }
.verpacken__buehne.is-chaos .chaos__puff { animation: puff-brodeln .5s ease-in-out infinite alternate; }
.verpacken__buehne.is-chaos .chaos__puff:nth-child(2n) { animation-duration: .62s; animation-delay: -.2s; }
.verpacken__buehne.is-chaos .chaos__puff:nth-child(3n) { animation-duration: .44s; animation-delay: -.35s; }
@keyframes puff-brodeln {
  from { transform: scale(.9); }
  to { transform: scale(1.08); }
}
.verpacken__buehne.is-chaos .chaos__linien { animation: linien-zucken .36s steps(2) infinite; }
@keyframes linien-zucken {
  0% { opacity: .55; }
  50% { opacity: .2; }
}
.chaos__sternchen path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.verpacken__buehne.is-chaos .chaos__sternchen path { animation: sternchen-blitz .7s ease-in-out infinite; }
.verpacken__buehne.is-chaos .chaos__sternchen path:nth-child(2) { animation-delay: .25s; }
.verpacken__buehne.is-chaos .chaos__sternchen path:nth-child(3) { animation-delay: .48s; }
@keyframes sternchen-blitz {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0); }
  40% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}
/* herausfliegende Teile: Papierschnipsel, Bandreste, Funken */
.verpacken__teile { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.verpacken__schnipsel,
.verpacken__band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--g, 14px);
  height: var(--g, 14px);
  margin: calc(var(--g, 14px) / -2) 0 0 calc(var(--g, 14px) / -2);
  animation: teil-flug 1.2s cubic-bezier(.2, .7, .3, 1) forwards;
}
.verpacken__schnipsel {
  background:
    radial-gradient(circle at 48% 46%, #f3d27a 0 11%, transparent 13%),
    linear-gradient(135deg, #cf5146, #a8332c);
  box-shadow: inset 0 0 3px rgba(80, 10, 10, .25);
}
.verpacken__band svg { display: block; width: 100%; height: 100%; }
@keyframes teil-flug {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--dx) * .75), calc(var(--dy) * .8)) rotate(calc(var(--rot) * .6)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 34px)) rotate(var(--rot)) scale(.9); }
}
.verpacken__funke { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; animation-duration: 1s; }
/* Phase 3: das fertige Geschenk erscheint */
.verpacken__buehne.is-fertig .verpacken__vorher { opacity: 0; visibility: hidden; }
.verpacken__buehne.is-fertig .verpacken__nachher { opacity: 1; transform: none; animation: geschenk-pop .75s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes geschenk-pop {
  0% { opacity: 0; transform: scale(.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}
.letztes__botschaft[hidden] { display: none; }
.letztes__botschaft { margin-top: 1rem; text-align: center; outline: none; animation: einblenden .8s ease both; }
.karte__inhalt .letztes__text { max-width: 30em; margin: 0 auto; font-size: 1.04rem; font-weight: 500; line-height: 1.55; color: var(--nachtblau); }
.karte__inhalt .letztes__nachsatz {
  margin: .7rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---- Türchen 24: Finale auf der Hauptseite (nur während Türchen 24) ---- */
.finale__glanz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-mask-image: var(--bildmaske);
  -webkit-mask-composite: source-in;
  mask-image: var(--bildmaske);
  mask-composite: intersect;
  filter: url(#finale-warm);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.buehne.is-heiligabend .finale__glanz { opacity: .8; transition-delay: .2s; }
.finale__waerme {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 46% at 50% 50%, rgba(255, 200, 120, .2), transparent 72%),
    radial-gradient(10% 9% at 50% 5%, rgba(255, 214, 140, .22), transparent 75%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 3s ease .4s;
}
.buehne.is-heiligabend .finale__waerme { opacity: 1; }
.finale__lichter { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.buehne.is-heiligabend .finale__lichter { opacity: 1; }
/* Lichterketten: warmes Grundleuchten mit sanftem, versetztem Glitzern */
.finale__licht {
  position: absolute;
  width: calc(.9cqw * var(--groesse, 1));
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, rgba(255, 214, 130, .85) 30%, rgba(255, 196, 100, 0) 70%);
  transform: translate(-50%, -50%);
  opacity: .4;
  animation: finale-funkeln var(--dauer, 2.4s) ease-in-out var(--verz, 0s) infinite;
}
/* Klassen mit Präfix „schmuck-“, damit nichts mit Türchen-Inhalten kollidiert
   (z. B. .kugel = Schneekugel in Türchen 10). */
/* ---- Baumschmuck an Heiligabend (eigene Ebenen über der unveränderten Illustration) ----
   Ohne .is-auftritt (z. B. nach dem Neuladen) ist alles sofort da; mit .is-auftritt
   erscheint es nacheinander (Zeiten: --verz, berechnet in app.js / SCHMUCK_ZEIT).
   Animiert werden nur opacity/transform – das bleibt auch auf dem Smartphone flüssig. */
.schmuck__draehte {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.schmuck__draht {
  fill: none;
  stroke: rgba(36, 44, 30, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.schmuck-birne,
.schmuck-kugel,
.schmuck-stern {
  position: absolute;
  display: block;
  pointer-events: none;
}
/* Lämpchen: warmer Schein (::before, glimmt) + heller Kern (::after) */
.schmuck-birne {
  width: var(--groesse, 2cqw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.schmuck-birne::before,
.schmuck-birne::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.schmuck-birne::before {
  inset: 0;
  background: radial-gradient(circle, rgba(255, 246, 220, .95) 0%, rgba(255, 217, 143, .75) 26%, rgba(255, 190, 100, 0) 70%);
  animation: birne-glimmen var(--dauer, 3s) ease-in-out var(--versatz, 0s) infinite;
}
.schmuck-birne::after {
  inset: 38%;
  background: radial-gradient(circle, #fffbea 0%, #ffe6a6 55%, rgba(255, 214, 140, .4) 100%);
}
@keyframes birne-glimmen {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
/* Kugeln */
.schmuck-kugel { transform: translate(-50%, -64.86%); } /* Kugelmitte genau auf (x, y) */
.schmuck-kugel svg { display: block; width: 100%; height: auto; overflow: visible; }
.schmuck-kugel__faden { stroke: rgba(226, 196, 130, .6); stroke-width: .7; }
.schmuck-kugel__kappe { fill: #c9a14f; }
.schmuck-kugel__rand { stroke: rgba(60, 30, 20, .25); stroke-width: 1.2; }
.schmuck-kugel__glanz { fill: rgba(255, 252, 240, .55); }
/* Stern */
.schmuck-stern { aspect-ratio: 1; transform: translate(-50%, -50%); }
.schmuck-stern > * { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.schmuck-stern__hof {
  inset: -10%;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 180, .55) 0%, rgba(255, 210, 130, .25) 32%, rgba(255, 200, 110, 0) 66%);
  animation: stern-hof 4.8s ease-in-out infinite;
}
.schmuck-stern__strahlen { fill: rgba(255, 238, 190, .55); animation: stern-strahlen 6s ease-in-out infinite; }
.schmuck-stern__glut { fill: #ffd98a; opacity: .8; }
.schmuck-stern__form path { stroke: rgba(255, 246, 214, .7); stroke-width: .35; stroke-linejoin: round; }
@keyframes stern-hof {
  0%, 100% { opacity: .7; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes stern-strahlen {
  0%, 100% { opacity: .35; transform: rotate(0deg) scale(.95); }
  50% { opacity: .75; transform: rotate(8deg) scale(1.08); }
}
/* Funkeln über dem Baum */
.schmuck__funkeln { position: absolute; inset: 0; }

/* Auftritt: Lichter → Kugeln → Stern → Funkeln (weich, nacheinander) */
.schmuck.is-auftritt .schmuck__draht { animation: schmuck-ein .8s ease var(--verz, 0s) both; }
.schmuck.is-auftritt .schmuck-birne { animation: birne-an 1s ease-out var(--verz, 0s) both; }
.schmuck.is-auftritt .schmuck-kugel { animation: kugel-an 1.5s cubic-bezier(.3, 1.4, .5, 1) var(--verz, 0s) both; }
.schmuck.is-auftritt .schmuck-stern { animation: stern-auftritt 2s cubic-bezier(.22, 1.2, .36, 1) var(--verz, 0s) both; }
.schmuck.is-auftritt .schmuck__funkeln { animation: schmuck-ein 1.6s ease var(--verz, 0s) both; }
/* festliches Aufleuchten nach dem Stern (auch beim erneuten Öffnen von Türchen 24) */
.schmuck.is-auftritt .schmuck-birne::after,
.schmuck.is-nachfunkeln .schmuck-birne::after { animation: birne-festlich 1.8s ease-in-out calc(var(--festlich, 5.6s) + var(--verz, 0s) * .25) 1 both; }
.schmuck.is-nachfunkeln { --festlich: .3s; }
.schmuck.is-auftritt .schmuck-stern__glut,
.schmuck.is-nachfunkeln .schmuck-stern__glut { animation: stern-glut 2.2s ease-in-out var(--festlich, 5.6s) 1 both; }
@keyframes schmuck-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes birne-an {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes kugel-an {
  0% { opacity: 0; transform: translate(-50%, -64.86%) translateY(-1cqw) scale(.6); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -64.86%); }
}
@keyframes stern-auftritt {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-24deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes birne-festlich {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.9); opacity: 1; }
}
@keyframes stern-glut {
  0%, 100% { opacity: .8; transform: scale(1); }
  45% { opacity: 1; transform: scale(1.5); }
}

/* Im Heiligabend-Zustand treten die Türchen leicht zurück – beim Zeigen/Fokussieren wieder voll sichtbar */
.buehne.is-heiligabend .tuer { opacity: .62; transition: opacity .5s ease; }
.buehne.is-heiligabend .tuer:hover,
.buehne.is-heiligabend .tuer:focus-visible,
.buehne.is-heiligabend .tuer.is-oeffnend { opacity: 1; }
.finale__licht::before {
  content: "";
  position: absolute;
  inset: -110%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 236, 190, .7) 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 236, 190, .7) 50%, transparent 54%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}
@keyframes finale-funkeln {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.7); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  65% { opacity: .7; transform: translate(-50%, -50%) scale(.95); }
}
.finale__gruss {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.4%;
  z-index: 4;
  margin: 0;
  /* „Frohe“ links und „Weihnachten!“ rechts – in der Mitte leuchtet der Stern */
  display: grid;
  grid-template-columns: 1fr var(--gruss-luecke, 15cqw) 1fr;
  align-items: center;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(.8rem, 3.7cqw, 3.4rem);
  /* Lage und Lücke richten sich nach dem Stern (gesetzt in app.js, je Bild) */
  top: var(--gruss-y, 2.4%);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
  background: linear-gradient(180deg, #fff3d1, #e4c27a 60%, #c99b45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(8, 10, 18, .85)) drop-shadow(0 0 14px rgba(255, 210, 130, .4));
  opacity: 0;
  transition: opacity 1.2s ease, letter-spacing 1.8s ease;
}
.finale__gruss span:first-child { grid-column: 1; justify-self: end; }
.finale__gruss span:last-child { grid-column: 3; justify-self: start; }
.buehne.is-finale .finale__gruss { opacity: 1; letter-spacing: .12em; transition-delay: 4.6s; }
.buehne.is-finale .finale__gruss.is-sofort { transition-delay: .6s; }
.finale__gruss { z-index: 30; }
/* während des Finales treten die Türchenrahmen zurück, damit der Baum strahlt */
.buehne.is-finale .buehne__tuerchen { opacity: .28; transition: opacity 1.2s ease; }

/* ---- Türchen 24: Weihnachtsgruß und Rezept ---- */
.karte__inhalt .finale__text { margin: 0 auto .6rem; max-width: 30em; text-align: center; font-size: 1.06rem; font-weight: 500; color: var(--nachtblau); }
.finale__drink {
  width: min(210px, 52%);
  margin: .2rem auto .9rem;
  filter: drop-shadow(0 14px 16px rgba(92, 30, 30, .2));
  animation: einblenden .9s ease .2s both;
}
.finale__drink img { display: block; width: 100%; height: auto; }
.spritz__tabs {
  display: flex;
  justify-content: center;
  gap: .3rem;
  width: fit-content;
  margin: 0 auto .9rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(35, 49, 73, .07);
}
.spritz__tab {
  min-height: 40px;
  padding: .45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nachtblau);
  font: 600 .9rem/1 var(--sans);
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.spritz__tab:hover { background: rgba(228, 194, 122, .25); }
.spritz__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spritz__tab[aria-selected="true"] { background: var(--nachtblau); color: var(--gold-glanz); box-shadow: 0 4px 12px -6px rgba(35, 49, 73, .6); }
.spritz__panel { outline: none; transition: opacity .2s ease; }
.spritz__panel.is-weg { opacity: 0; }
.spritz__panel .rezept { margin-top: 0; }
.rezept--spritz .rezept__spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* schmale Ansichten: großzügiger und einfacher */
@media (max-width: 520px) {
  .rezept--spritz .rezept__spalten { grid-template-columns: 1fr; gap: 1.3rem; }
  .rezept--spritz .rezept__papier { padding: 1.4rem 1.15rem 1.2rem; }
  .rezept--spritz .rezept__eckdaten { grid-template-columns: 1fr 1fr; gap: .4rem; text-align: center; }
  .rezept--spritz .rezept__eckdaten div { display: block; }
  .rezept--spritz .rezept__eckdaten dd { text-align: center; }
  .rezept--spritz ul li { padding: .38rem 0 .38rem 1.1rem; font-size: .97rem; }
  .rezept--spritz ol li { padding-bottom: .75rem; font-size: .97rem; }
  .spritz__tabs { width: 100%; }
  .spritz__tab { flex: 1; }
}
.finale__abschluss-sterne { display: flex; justify-content: center; gap: .9rem; margin: 1.4rem 0 .4rem; color: var(--gold); }
.finale__abschluss-sterne span { display: block; width: 1rem; animation: abschluss-stern 3.2s ease-in-out infinite; }
.finale__abschluss-sterne span:nth-child(2) { width: 1.35rem; animation-delay: .8s; }
.finale__abschluss-sterne span:nth-child(3) { animation-delay: 1.6s; }
.finale__abschluss-sterne svg { display: block; width: 100%; height: auto; fill: currentColor; }
@keyframes abschluss-stern {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(228, 194, 122, .8)); }
}
.karte__inhalt .finale__abschluss {
  max-width: 30em;
  margin: 0 auto;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--nachtblau);
}

/* ---- Reduzierte Bewegung: keine Staffelung, keine Weichzeichner ---- */
@media (prefers-reduced-motion: reduce) {
  .licht__buehne.is-an *,
  .licht__buehne.is-an::after { animation-delay: 0s !important; transition-delay: 0s !important; }
  .licht__birne,
  .licht__glanz,
  .licht__buehne::after { transition: none !important; }
  .slogan__text.is-wechsel { filter: none; transform: none; }
  .ausrede__text.is-wechsel, .ausrede__nummer.is-wechsel { filter: none; transform: none; }
  .ausrede__schein { animation: none; }
  /* Heiligabend-Zustand: ruhiges, statisches Leuchten */
  .finale__licht,
  .schmuck-birne::before,
  .schmuck-stern__hof,
  .schmuck-stern__strahlen { animation: none !important; opacity: .85; }
  /* Türchen 21: Lichtwechsel ohne Vergrößern */
  .simon__lampe.is-an .simon__birne svg,
  .simon__lampe.is-alle .simon__birne svg { transform: none; }
  /* Türchen 14: statische Darstellung (Dampf, Schein und Flamme ohne Bewegung) */
  .pause__linie { display: none; }
  .pause.is-ruhe .pause__flamme { opacity: .6; }
  .advent__wort { filter: none !important; }
}

/* ---- Platzhalter / gesperrt ---- */
.platzhalter {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(125, 142, 171, .1);
  color: var(--blau);
}
.platzhalter svg { flex: none; width: 2.2rem; height: 2.2rem; color: var(--gold); }
.platzhalter p { margin: 0; }

/* --------------------------------------------------------------------------
   Hinweis Vorschaumodus
   -------------------------------------------------------------------------- */
.vorschau {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  max-width: calc(100vw - 32px);
  padding: .55rem .6rem .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 194, 122, .22);
  background: rgba(16, 27, 56, .92);
  color: var(--creme);
  font-size: .82rem;
  box-shadow: 0 8px 24px -8px rgba(6, 12, 30, .5);
}
.vorschau[hidden] { display: none; }
/* Auf großen Bildschirmen kompakt oben rechts, damit nichts vom Motiv verdeckt wird */
@media (min-width: 761px) {
  .vorschau {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    padding: .35rem .4rem .35rem .8rem;
    font-size: .76rem;
    opacity: .9;
  }
  .vorschau__info { display: none; }
}
.vorschau__punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-hell);
  box-shadow: 0 0 0 0 rgba(228, 194, 122, .7);
  animation: pulsieren 2s infinite;
}
@keyframes pulsieren {
  70% { box-shadow: 0 0 0 8px rgba(228, 194, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 194, 122, 0); }
}
.vorschau__knopf {
  padding: .35rem .8rem;
  border: 1px solid rgba(228, 194, 122, .5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-glanz);
  font: 600 .78rem/1.2 var(--sans);
  cursor: pointer;
}
.vorschau__knopf:hover { background: rgba(228, 194, 122, .15); }
.vorschau__knopf:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; }

/* Positionshilfe für die Türchenplatzierung */
.positionshilfe {
  position: absolute;
  z-index: 20;
  padding: .25rem .5rem;
  border-radius: 6px;
  background: rgba(35, 49, 73, .9);
  color: #fff;
  font: 600 12px/1.3 ui-monospace, Consolas, monospace;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(12px, 12px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .uebersicht { display: block; }
  .hinweis { font-size: .9rem; }
  .tuer__rahmen rect { stroke-width: 1.1; stroke-dasharray: 3 2.5; }
  .tuer.is-geoeffnet .tuer__vorne::after { display: none; }
  .kalender { padding: 0 10px; }
}

@media (max-width: 480px) {
  .titel { gap: .6rem; letter-spacing: .1em; }
  .titel__linie { width: 1.25rem; }
}

@media (max-width: 420px) {
  .karte__zahl { width: 3.6rem; height: 3.6rem; font-size: 1.7rem; }
  .vorschau { border-radius: 14px; font-size: .74rem; }
}

@media (hover: none) {
  .tuer:hover .tuer__rahmen rect { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Druckansicht für das Rezept (Türchen 6, Knopf „Rezept drucken“)
   Nur aktiv, wenn <html> die Klasse .druckt-rezept trägt: dann wird
   ausschließlich die Rezeptkarte gedruckt, nicht die Kalenderseite.
   -------------------------------------------------------------------------- */
@media print {
  html.druckt-rezept,
  html.druckt-rezept body,
  html.druckt,
  html.druckt body {
    background: #fff !important;
    color: #222;
  }
  html.druckt-rezept body > *:not(.druck),
  html.druckt-rezept dialog,
  html.druckt body > *:not(.druck),
  html.druckt dialog { display: none !important; }
  html.druckt-rezept .druck,
  html.druckt .druck { display: block !important; }

  /* Weihnachtskarte (Türchen 17): die fertige Karte als Bild, mittig auf der Seite */
  .druck--karte .druck-karte { padding-top: 8mm; text-align: center; }
  .druck--karte img { display: block; width: 150mm; max-width: 100%; height: auto; margin: 0 auto; }
  .druck--quer img { width: 180mm; }

  /* Bastelanleitung (Türchen 20): helle, platzsparende Gesamtansicht */
  .bastel-druck { max-width: 180mm; margin: 0 auto; font-family: var(--sans); font-size: 10.5pt; line-height: 1.45; color: #222; }
  .bastel-druck h1 { margin: 0 0 2mm; font-family: var(--display); font-size: 22pt; font-weight: 600; color: #21305a; }
  .bastel-druck h2 { margin: 5mm 0 2mm; font-size: 13pt; color: #21305a; }
  .bastel-druck__intro { margin: 0; }
  .bastel-druck__material { margin: 0; padding-left: 5mm; columns: 2; }
  .bastel-druck__schritt {
    display: grid;
    grid-template-columns: 58mm 1fr;
    gap: 6mm;
    align-items: center;
    padding: 3.5mm 0;
    border-top: .3mm solid #e2cf9f;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .bastel-druck__bild { display: flex; align-items: center; justify-content: center; height: 42mm; }
  .bastel-druck__bild img { display: block; max-width: 58mm; max-height: 42mm; width: auto; height: auto; object-fit: contain; }
  .bastel-druck h3 { margin: 0 0 1.5mm; font-family: var(--display); font-size: 12pt; font-weight: 600; color: #7a2e27; }
  .bastel-druck__text p { margin: 0; }
  .bastel-druck__gruss { margin: 5mm 0 0; text-align: center; font-size: 9.5pt; color: #6b5a48; }
  .rezept--druck {
    max-width: 175mm;
    margin: 0 auto;
    font-family: var(--sans);
    color: #2b2620;
  }
  .rezept--druck .rezept__papier {
    padding: 10mm 12mm 8mm;
    border: 1px solid #c9a45c;
    border-radius: 4mm;
    background: #fff;
    box-shadow: none;
    clip-path: none;
    animation: none;
  }
  .rezept--druck .rezept__spalten { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
  .rezept--druck .rezept__eckdaten { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .rezept--druck .rezept__eckdaten div { display: block; }
  .rezept--druck .rezept__eckdaten dd { text-align: center; }
  .rezept--druck li { break-inside: avoid; }
  .rezept--druck * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   Überarbeitung Ende November 2026: Türchen 8, 9, 13, 14, 15, 24
   ========================================================================== */

/* etwas breitere Karte für die Spiele mit großer Spielfläche (Türchen 8 und 15) */
.karte.karte--mittel { width: min(720px, calc(100vw - 32px)); }

/* ---- Türchen 8: Zieh den Schneemann an! ---- */
.schneemann { container-type: inline-size; }
.karte__inhalt .schneemann__text { margin: 0 0 .9rem; }
.schneemann__spiel { display: grid; gap: .9rem; }
/* schmal: Schneemann bleibt beim Scrollen durch die Auswahl oben sichtbar */
.schneemann__links {
  position: sticky;
  top: -9px;   /* Innenabstand des Scrollbereichs (.karte__innen) */
  z-index: 3;
  /* bis an den gestrichelten Rahmen, ohne ihn zu verdecken */
  margin: 0 calc(10px - var(--karte-abstand));
  padding: .4rem calc(var(--karte-abstand) - 10px) .6rem;
  background: linear-gradient(var(--papier-hell) 85%, rgba(255, 250, 243, 0));
}
.schneemann__flaeche {
  position: relative;
  width: min(250px, 70%);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 16% at 50% 99%, #fff 0%, #f2f6fb 60%, rgba(242, 246, 251, 0) 100%),
    radial-gradient(ellipse 80% 60% at 50% 30%, #eef3fa 0%, #e2eaf5 70%, #d8e2f0 100%);
  box-shadow: 0 0 0 1px rgba(123, 140, 182, .22), 0 14px 26px -18px rgba(35, 49, 73, .5);
  user-select: none;
  -webkit-user-select: none;
}
.schneemann__flaeche::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255, 236, 190, .45), rgba(255, 236, 190, 0) 70%);
}
.schneemann__flaeche.is-fertig::after { animation: schneemann-glanz 1.8s ease both; }
@keyframes schneemann-glanz { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .35; } }
.schneemann__teil {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.schneemann__teil:not(.schneemann__koerper) {
  opacity: 0;
  transform: translateY(-6%) scale(.92);
  transition: opacity .28s ease, transform .4s cubic-bezier(.3, 1.45, .55, 1);
}
.schneemann__teil.is-an { opacity: 1; transform: none; }
.schneemann__teil.is-neu { animation: schneemann-plopp .45s cubic-bezier(.3, 1.45, .55, 1); }
@keyframes schneemann-plopp { from { transform: translateY(-10%) scale(.85); } to { transform: none; } }
.schneemann__flaeche.is-fertig .schneemann__teil { animation: schneemann-freu .9s ease-in-out .1s; }
@keyframes schneemann-freu {
  0%, 100% { translate: 0 0; }
  30% { translate: 0 -3%; }
  55% { translate: 0 0; }
  75% { translate: 0 -1.2%; }
}
.karte__inhalt .schneemann__hinweis { margin: 0 0 .6rem; text-align: center; font-size: .86rem; color: var(--blau-sanft); }
.schneemann__auswahl { display: grid; gap: .75rem; }
.karte__inhalt .schneemann__reihentitel {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.schneemann__optionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.schneemann__option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-width: 0;
  min-height: 92px;
  padding: .55rem .3rem .5rem;
  border: 1.5px solid rgba(75, 95, 128, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: 600 .84rem/1.2 var(--sans);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.schneemann__option:hover { border-color: var(--gold); background: #fff8e8; }
.schneemann__option:active { transform: scale(.97); }
.schneemann__option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.schneemann__option[aria-pressed="true"] { border-color: var(--gold); background: #fff3da; box-shadow: 0 0 0 1px var(--gold); }
/* Häkchen am gewählten Teil */
.schneemann__option[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.schneemann__vorschau { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; }
.schneemann__vorschau img { display: block; max-width: 80%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.schneemann__name { min-width: 0; overflow-wrap: break-word; hyphens: manual; }
.karte__inhalt .schneemann__abschluss {
  max-width: 30em;
  margin: 1rem auto 0;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: rgba(228, 194, 122, .16);
  text-align: center;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
}
.schneemann__abschluss[hidden] { display: none; }
.schneemann__abschluss.is-neu { animation: einblenden .6s ease both; }
/* breit genug: Schneemann links, Auswahl rechts */
@container (min-width: 540px) {
  .schneemann__spiel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1.2rem; }
  .schneemann__links { top: 0; margin: 0; padding: 0; background: none; }
  .schneemann__flaeche { width: 100%; }
  .karte__inhalt .schneemann__hinweis { text-align: left; }
}
@media (max-width: 360px) {
  .schneemann__optionen { gap: .35rem; }
  .schneemann__option { min-height: 84px; font-size: .78rem; }
}

/* ---- Türchen 9: Die Weihnachts-Notfall-Hotline ---- */
.karte__inhalt .hotline__text { margin: 0 0 .4rem; }
.hotline__telefon { position: relative; width: min(230px, 62%); margin: 0 auto .5rem; }
.hotline__telefon img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform-origin: 50% 88%; }
.hotline__telefon.is-klingelt img { animation: telefon-klingeln 1.2s ease-in-out .15s 2; }
@keyframes telefon-klingeln {
  0%, 52%, 100% { transform: none; }
  6% { transform: rotate(-4deg) translateY(-2%); }
  12% { transform: rotate(4deg) translateY(-2%); }
  18% { transform: rotate(-3.5deg) translateY(-2%); }
  24% { transform: rotate(3.5deg) translateY(-1%); }
  30% { transform: rotate(-2deg); }
  36% { transform: rotate(1.5deg); }
  42% { transform: none; }
}
/* kleine Klingel-Bögen links und rechts vom Hörer */
.hotline__wellen { position: absolute; top: 4%; width: 18%; aspect-ratio: 1; opacity: 0; pointer-events: none; }
.hotline__wellen--links { left: -12%; }
.hotline__wellen--rechts { right: -12%; transform: scaleX(-1); }
.hotline__wellen span {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-left-color: var(--rot);
  border-radius: 50%;
  opacity: .7;
}
.hotline__wellen span + span { inset: 22%; opacity: .9; }
.hotline__telefon.is-klingelt .hotline__wellen { animation: telefon-wellen 1.2s ease-in-out .15s 2; }
@keyframes telefon-wellen { 0%, 50%, 100% { opacity: 0; } 10%, 40% { opacity: 1; } }
.hotline__gespraech { max-width: 32em; margin: 0 auto; }
.hotline__fall { animation: einblenden .45s ease both; }
.karte__inhalt .hotline__anruf { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 0 0 .7rem; text-align: center; outline: none; }
.hotline__nr { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rot); }
.hotline__titel { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--nachtblau); }
.hotline__blase {
  position: relative;
  margin: 0 0 .8rem;
  padding: .85rem 1.05rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.karte__inhalt .hotline__blase--anrufer {
  margin-right: 1.2rem;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(75, 95, 128, .18), 0 8px 18px -12px rgba(35, 49, 73, .4);
  font-weight: 500;
  color: var(--nachtblau);
}
.hotline__antworten { display: grid; gap: .55rem; }
.hotline__wahl {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 56px;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(75, 95, 128, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: 500 1rem/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.hotline__wahl:hover { border-color: var(--gold); background: #fff8e8; }
.hotline__wahl:active { transform: scale(.99); }
.hotline__wahl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hotline__wahl[aria-pressed="true"] { border-color: var(--gold); background: #fff3da; box-shadow: 0 0 0 1px var(--gold); }
.hotline__buchstabe {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(163, 53, 47, .1);
  color: var(--rot);
  font: 700 .9rem/1 var(--sans);
}
.hotline__wahl[aria-pressed="true"] .hotline__buchstabe { background: var(--rot); color: #fff; }
.hotline__kommentar.is-neu { animation: einblenden .45s ease both; }
.hotline__blase--hotline {
  margin: .9rem 0 0 1.2rem;
  border-radius: 16px 16px 4px 16px;
  background: rgba(163, 53, 47, .08);
  box-shadow: inset 0 0 0 1px rgba(163, 53, 47, .18);
}
.karte__inhalt .hotline__blase--hotline p { margin: 0; font-weight: 500; color: var(--nachtblau); }
.hotline__wer { display: block; margin-bottom: .25rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rot); }
.hotline__ende { text-align: center; animation: einblenden .5s ease both; }
.hotline__haken { display: block; width: 1.8rem; margin: .4rem auto .5rem; color: var(--gold); }
.hotline__haken svg { display: block; width: 100%; height: auto; }
.karte__inhalt .hotline__ende-titel { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: var(--nachtblau); outline: none; }
.karte__inhalt .hotline__ende-text { margin: 0 auto; max-width: 28em; font-size: 1.04rem; line-height: 1.55; color: #34425c; }
@media (max-width: 420px) {
  .karte__inhalt .hotline__blase--anrufer { margin-right: 0; }
  .hotline__blase--hotline { margin-left: 0; }
}

/* ---- Türchen 13: Ein Licht nach dem anderen ---- */
.karte__inhalt .geschichte__intro { margin: 0 0 .9rem; }
.geschichte__bild {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f8ede2;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .25), 0 14px 26px -18px rgba(35, 49, 73, .5);
}
.geschichte__bild img { display: block; width: 100%; height: auto; }
/* sanftes Flackern über den drei brennenden Kerzen */
.geschichte__schein {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 180, .55) 0%, rgba(255, 210, 130, .22) 40%, rgba(255, 210, 130, 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: kranz-flackern 2.7s ease-in-out infinite;
}
@keyframes kranz-flackern {
  0%, 100% { opacity: .55; transform: scale(.94); }
  30% { opacity: .95; transform: scale(1.04); }
  55% { opacity: .7; transform: scale(.98); }
  75% { opacity: 1; transform: scale(1.06); }
}
.geschichte__papier {
  margin-top: 1rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, #fbf1e4);
  box-shadow: inset 0 0 0 1px rgba(184, 141, 60, .35), 0 14px 28px -20px rgba(35, 49, 73, .5);
}
.geschichte__fortschritt { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: .7rem; }
.geschichte__punkte { display: flex; gap: .35rem; }
.geschichte__punkte span { width: 9px; height: 9px; border-radius: 50%; background: rgba(75, 95, 128, .2); transition: background-color .4s, box-shadow .4s; }
.geschichte__punkte span.is-an { background: var(--gold); box-shadow: 0 0 6px rgba(228, 194, 122, .9); }
.karte__inhalt .geschichte__zaehler { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--blau-sanft); }
.geschichte__blatt { outline: none; transition: opacity .26s ease, transform .26s ease; }
.geschichte__blatt.is-weg { opacity: 0; transform: translateY(6px); }
.karte__inhalt .geschichte__titel { margin: 0 0 .6rem; text-align: center; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--nachtblau); }
.karte__inhalt .geschichte__text { max-width: 34em; margin: 0 auto; font-size: 1.05rem; line-height: 1.65; color: #2f3b55; }
.karte__inhalt .geschichte__gruss {
  max-width: 30em;
  margin: 1.1rem auto 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(184, 141, 60, .55);
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--nachtblau);
}
.geschichte__stern { display: block; width: 1.2rem; margin: 0 auto .5rem; color: var(--gold); }
.geschichte__stern svg { display: block; width: 100%; height: auto; fill: currentColor; }
.geschichte__navigation { display: flex; justify-content: center; gap: .7rem; margin-top: 1.3rem; }
.knopf.geschichte__knopf { flex: 1 1 0; max-width: 15rem; min-height: 52px; padding: .8rem .9rem; font-size: 1.02rem; }
.geschichte__knopf span[aria-hidden] { font-size: 1.35rem; line-height: .7; }
.knopf.geschichte__knopf:disabled { opacity: .35; cursor: default; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(35, 49, 73, .25); }

/* ---- Türchen 14: Montagsgruß nach den zehn Sekunden ---- */
.karte__inhalt .pause__gruss {
  max-width: 28em;
  margin: .5rem auto 0;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #34425c;
}
.pause__gruss:empty { display: none; }
.pause__gruss.is-sichtbar { animation: einblenden 1.1s ease .5s both; }

/* ---- Türchen 15: Das große Katzen-Weihnachtspuzzle ---- */
.karte__inhalt .puzzle__text { margin: 0 0 .8rem; }
.puzzle__stufen { display: flex; justify-content: center; gap: .5rem; margin: 0 0 .7rem; }
.puzzle__stufe {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 7.5rem;
  min-height: 48px;
  padding: .45rem 1rem;
  border: 1.5px solid rgba(75, 95, 128, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--nachtblau);
  font: 600 .95rem/1.2 var(--sans);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.puzzle__stufe-zahl { font-size: .72rem; font-weight: 500; color: var(--blau-sanft); }
.puzzle__stufe:hover { border-color: var(--gold); background: #fff8e8; }
.puzzle__stufe:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.puzzle__stufe[aria-pressed="true"] { border-color: var(--gold); background: #fff3da; box-shadow: 0 0 0 1px var(--gold); }
.karte__inhalt .puzzle__anleitung { margin: 0 0 .7rem; text-align: center; font-size: .88rem; color: var(--blau-sanft); }
.puzzle__rahmen {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f6ead9;
  box-shadow: 0 0 0 1px rgba(184, 141, 60, .3), 0 14px 26px -18px rgba(35, 49, 73, .5);
  transition: box-shadow .8s ease;
}
.puzzle__brett { display: grid; width: 100%; user-select: none; -webkit-user-select: none; }
.puzzle__teil {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #f6ead9;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, filter .25s ease;
}
.puzzle__teil.is-richtig { box-shadow: none; }
.puzzle__teil:hover { filter: brightness(1.05); }
.puzzle__teil:focus-visible { z-index: 3; outline: 3px solid var(--gold); outline-offset: -3px; }
.puzzle__teil.is-gewaehlt {
  z-index: 2;
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 4px var(--gold-hell), inset 0 0 0 6px rgba(35, 49, 73, .35);
  animation: puzzle-puls 1.4s ease-in-out infinite;
}
@keyframes puzzle-puls { 50% { filter: brightness(1.2); } }
.puzzle__teil.is-ziel { z-index: 2; filter: brightness(1.12); box-shadow: inset 0 0 0 4px rgba(228, 194, 122, .95); }
.puzzle__teil.is-gezogen { z-index: 5; cursor: grabbing; box-shadow: 0 14px 26px -8px rgba(10, 16, 28, .55), inset 0 0 0 2px var(--gold-hell); }
.puzzle__vorlage,
.puzzle__fertig {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.puzzle__rahmen.is-vorlage .puzzle__vorlage { opacity: 1; }
.puzzle__rahmen.is-geloest .puzzle__teil { box-shadow: none; }
.puzzle__rahmen.is-geloest .puzzle__fertig { opacity: 1; pointer-events: auto; transition-duration: .9s; transition-delay: .2s; }
.puzzle__rahmen.is-geloest { box-shadow: 0 0 0 2px var(--gold-hell), 0 0 28px rgba(228, 194, 122, .55), 0 14px 26px -18px rgba(35, 49, 73, .5); }
.karte__inhalt .puzzle__abschluss {
  max-width: 30em;
  margin: 1rem auto 0;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: rgba(228, 194, 122, .16);
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nachtblau);
  outline: none;
}
.puzzle__abschluss[hidden] { display: none; }
.puzzle__abschluss.is-neu { animation: einblenden .7s ease both; }
.puzzle .knopf:disabled { opacity: .4; cursor: default; }

/* ---- Türchen 24: Abschlussgruß ---- */
.karte__inhalt .finale__abschluss-titel {
  margin: 0 0 .5rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--rot);
}
.karte__inhalt .finale__abschluss p { margin: 0 0 .6rem; }
.karte__inhalt .finale__abschluss p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .schneemann__teil:not(.schneemann__koerper),
  .puzzle__teil,
  .geschichte__blatt { transition: none; }
  .geschichte__schein,
  .puzzle__teil.is-gewaehlt,
  .schneemann__flaeche.is-fertig .schneemann__teil { animation: none; }
}
