/* ── Schriften (selbst gehostet, SIL Open Font License) ─────────────────── */
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/dancing-script.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --nacht: #1a0610;
  --wein: #4a0f24;
  --rot: #b3263e;
  --rosa: #f4a7b9;
  --gold: #e9c46a;
  --gold-hell: #f8e3a3;
  --tanne: #1f4d3a;
  --creme: #fff5ea;
  --papier: #fbf3e4;
  --tinte: #3b1d22;
  --script: "Dancing Script", "Segoe Script", cursive;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --schatten: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--creme);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(233, 196, 106, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 100%, rgba(179, 38, 62, 0.35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(31, 77, 58, 0.45), transparent 70%),
    linear-gradient(180deg, var(--wein) 0%, var(--nacht) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: calc(2.2rem + env(safe-area-inset-top)) 1rem calc(3rem + env(safe-area-inset-bottom));
}

h1 {
  font-family: var(--script);
  font-weight: 700;
  color: var(--gold-hell);
  text-shadow: 0 0 18px rgba(233, 196, 106, 0.45), 0 2px 0 rgba(0, 0, 0, 0.3);
  margin: 0.2em 0;
  line-height: 1.1;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.unterzeile {
  font-style: italic;
  color: var(--rosa);
  font-size: 1.25rem;
  margin: 0.2em 0 1em;
}

.puls {
  display: inline-block;
  animation: puls 1.3s ease-in-out infinite;
}

@keyframes puls {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* ── Schnee & Lichterkette ─────────────────────────────────────────────── */
#schnee {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#schnee span {
  position: absolute;
  top: -5vh;
  color: #fff;
  animation: fallen linear infinite;
}

@keyframes fallen {
  to { transform: translate3d(4vw, 110vh, 0) rotate(240deg); }
}

.lichterkette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle 5px at 12px 12px, #ffd36b 60%, transparent 70%) 0 0 / 96px 22px,
    radial-gradient(circle 5px at 36px 15px, #ff6b8a 60%, transparent 70%) 0 0 / 96px 22px,
    radial-gradient(circle 5px at 60px 12px, #9be3a8 60%, transparent 70%) 0 0 / 96px 22px,
    radial-gradient(circle 5px at 84px 15px, #ffb3c6 60%, transparent 70%) 0 0 / 96px 22px;
  filter: drop-shadow(0 0 6px rgba(255, 211, 107, 0.8));
  animation: funkeln 2.4s ease-in-out infinite alternate;
}

.lichterkette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48px 10px at 48px 0, transparent 92%, rgba(40, 20, 10, 0.8) 94%, transparent 100%) 0 0 / 96px 22px;
}

@keyframes funkeln {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

/* ── Knöpfe ────────────────────────────────────────────────────────────── */
.knopf {
  border: 1px solid rgba(248, 227, 163, 0.6);
  background: linear-gradient(180deg, #c7344c, #8c1830);
  color: var(--creme);
  padding: 0.65em 1.6em;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(179, 38, 62, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.knopf:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(179, 38, 62, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.knopf:active {
  transform: scale(0.97);
}

.knopf.gross {
  font-family: var(--script);
  font-size: 1.9rem;
  padding: 0.4em 1.6em;
}

.knopf.leise {
  background: rgba(255, 245, 234, 0.08);
  box-shadow: none;
}

/* ── Countdown ─────────────────────────────────────────────────────────── */
.countdown {
  min-height: calc(100dvh - 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.countdown .liebe {
  font-size: clamp(2.8rem, 11vw, 5.5rem);
}

.zeit {
  display: flex;
  gap: clamp(0.4rem, 2vw, 1rem);
  margin-bottom: 2.2rem;
}

.zeit-feld {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(4.2rem, 19vw, 6.5rem);
  padding: 0.7rem 0.4rem 0.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 245, 234, 0.1), rgba(255, 245, 234, 0.03));
  border: 1px solid rgba(233, 196, 106, 0.35);
  box-shadow: var(--schatten);
}

.zeit-feld .zahl {
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-hell);
  font-variant-numeric: tabular-nums;
}

.zeit-feld .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rosa);
}

/* ── WIRKLICH ──────────────────────────────────────────────────────────── */
.wirklich {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(179, 38, 62, 0.92), rgba(26, 6, 16, 0.97) 75%);
  animation: einblenden 0.3s ease;
  overflow: hidden;
}

.wirklich-wort {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.85;
  color: var(--creme);
  text-shadow: 0 0 40px rgba(255, 167, 185, 0.9), 0 0 90px rgba(233, 196, 106, 0.6);
  animation: knall 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  letter-spacing: -0.02em;
}

.wirklich-wort span { display: block; }

.wirklich.dahinter ~ .wirklich:not(.dahinter) {
  background: radial-gradient(circle at 50% 45%, rgba(179, 38, 62, 0.55), rgba(26, 6, 16, 0.82) 80%);
}

/* Rekursion: ältere Ebenen rutschen als Tunnel nach hinten */
.wirklich.dahinter {
  pointer-events: none;
  transform: scale(calc(1 - var(--tiefe) * 0.13)) rotate(calc(var(--tiefe) * -5deg));
  filter: brightness(calc(1 - var(--tiefe) * 0.14));
  border-radius: 28px;
  box-shadow: 0 0 0 2px rgba(233, 196, 106, 0.5), 0 0 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), filter 0.6s;
  animation: none;
}

.wirklich .ebene {
  position: absolute;
  top: calc(1.4rem + env(safe-area-inset-top));
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rosa);
}

.effekt-beben span { animation: beben 0.14s 0.7s linear infinite; }

.effekt-herzen { color: var(--rosa); }
.effekt-herzen span { animation: puls 1.1s 0.7s ease-in-out infinite; }

.tapete {
  position: absolute;
  inset: -50%;
  transform: rotate(-18deg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  word-break: break-all;
  color: rgba(255, 245, 234, 0.07);
  pointer-events: none;
  animation: tapete-laufen 30s linear infinite;
}

@keyframes tapete-laufen {
  to { transform: rotate(-18deg) translateY(-20%); }
}

.overlay-blitz { animation: blitz 0.5s ease 3; }

@keyframes blitz {
  0%, 100% { background-color: transparent; }
  30% { background-color: rgba(255, 245, 234, 0.85); }
}

.effekt-drehen { animation: knall 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both, drehen-voll 1.2s 0.2s ease-in-out; color: var(--gold-hell); }

@keyframes drehen-voll {
  from { transform: rotate(0); }
  to { transform: rotate(720deg); }
}

.effekt-riesig { color: var(--gold-hell); }
.effekt-riesig span { animation: riesig-puls 1.6s 0.7s ease-in-out infinite; }

@keyframes riesig-puls {
  50% { transform: scale(1.12); text-shadow: 0 0 80px rgba(248, 227, 163, 1); }
}

.effekt-regenbogen span {
  background: linear-gradient(90deg, #f8e3a3, #f4a7b9, #fff5ea, #e9c46a, #f4a7b9);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: schimmern 3s linear infinite;
}

@keyframes schimmern {
  to { background-position: 300% 0; }
}

.wirklich .unterzeile {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  color: var(--creme);
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

@keyframes knall {
  from { transform: scale(0.1) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes beben {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
}

@keyframes einblenden {
  from { opacity: 0; }
}

/* ── Herzregen & Toast ─────────────────────────────────────────────────── */
.herz-regen {
  position: fixed;
  top: -3rem;
  z-index: 60;
  pointer-events: none;
  animation: herzfall linear forwards;
}

@keyframes herzfall {
  0% { transform: translateY(0) rotate(-15deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(25deg); opacity: 0.8; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(92vw, 30rem);
  padding: 0.75rem 1.3rem;
  border-radius: 14px;
  background: var(--papier);
  color: var(--tinte);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--schatten);
  animation: hochkommen 0.3s ease;
}

@keyframes hochkommen {
  from { transform: translate(-50%, 1rem); opacity: 0; }
}

/* ── Kalender ──────────────────────────────────────────────────────────── */
.kalender header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.kalender h1 {
  font-size: clamp(3rem, 12vw, 5rem);
}

.gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 0.9rem);
  padding: clamp(0.7rem, 2.5vw, 1.3rem);
  border-radius: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #5a1229, #2b0815);
  border: 2px solid rgba(233, 196, 106, 0.45);
  box-shadow: var(--schatten), inset 0 0 40px rgba(0, 0, 0, 0.4);
  perspective: 900px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gitter {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tuer {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #1a0610;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.tuer .innen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.4rem, 6vw, 2rem);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(244, 167, 185, 0.25), transparent 70%);
}

.tuer .fluegel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid rgba(233, 196, 106, 0.7);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1), box-shadow 0.3s;
  backface-visibility: hidden;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Geschenkpapier-Muster */
.farbe-0 .fluegel { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 2px, transparent 3px) 0 0 / 16px 16px, linear-gradient(145deg, #c53048, #8c1830); }
.farbe-1 .fluegel { background: repeating-linear-gradient(135deg, rgba(233, 196, 106, 0.12) 0 4px, transparent 4px 12px), linear-gradient(145deg, #2c6a50, #173d2d); }
.farbe-2 .fluegel { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1.5px, transparent 2.5px) 0 0 / 12px 12px, linear-gradient(145deg, #9c2a5c, #5e1338); }
.farbe-3 .fluegel { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 14px), linear-gradient(145deg, #e0b25a, #a77a2c); }

.farbe-3 .nummer { color: #4a0f24; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }

.tuer .nummer {
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  color: var(--gold-hell);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tuer.letzte .fluegel {
  border-width: 2.5px;
  border-color: var(--gold);
}

.tuer.letzte .fluegel::after {
  content: "🎀";
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  font-size: 1.3rem;
}

.tuer.jahrestag .fluegel {
  border-width: 2.5px;
  border-color: var(--gold-hell);
}

.tuer.jahrestag .fluegel::after {
  content: "1 Jahr ♥";
  position: absolute;
  bottom: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--wein);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.7rem;
  white-space: nowrap;
}

.tuer:not(.gesperrt):not(.offen):hover .fluegel {
  transform: rotateY(-14deg);
}

.tuer.heute .fluegel {
  animation: leuchten 1.8s ease-in-out infinite;
}

@keyframes leuchten {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 227, 163, 0.7), 0 4px 10px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 22px 6px rgba(248, 227, 163, 0.75), 0 4px 10px rgba(0, 0, 0, 0.35); }
}

.tuer.offen .fluegel,
.tuer.oeffnet .fluegel {
  transform: rotateY(-105deg);
  box-shadow: none;
}

.tuer.offen .fluegel {
  opacity: 0.35;
}

.tuer.gesperrt .fluegel {
  filter: saturate(0.75) brightness(0.85);
}

.tuer.wackeln {
  animation: wackeln 0.45s ease;
}

@keyframes wackeln {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.fusszeile {
  text-align: center;
  font-style: italic;
  color: var(--rosa);
  margin-top: 1.3rem;
}

/* ── Türchen-Seite ─────────────────────────────────────────────────────── */
.seite {
  text-align: center;
  animation: einblenden 0.5s ease;
}

.seite h1 {
  font-size: clamp(2.4rem, 9vw, 3.8rem);
  margin-bottom: 1rem;
}

.zurueck {
  display: inline-block;
  color: var(--gold-hell);
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(233, 196, 106, 0.4);
  border-radius: 999px;
  background: rgba(255, 245, 234, 0.06);
}

.tag-nr {
  margin: 1.2rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  color: var(--rosa);
}

.tuer-inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tipp {
  font-style: italic;
  color: var(--gold-hell);
  margin: 0;
}

/* Polaroid */
.polaroid {
  margin: 0.5rem auto;
  padding: 0.8rem 0.8rem 1rem;
  max-width: min(100%, 30rem);
  background: var(--papier);
  color: var(--tinte);
  border-radius: 4px;
  box-shadow: var(--schatten);
  transform: rotate(-2deg);
  animation: reinflattern 0.8s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.polaroid.klein {
  max-width: 18rem;
  transform: rotate(2deg);
  margin-bottom: 1.2rem;
}

.polaroid .foto {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid figcaption {
  font-family: var(--script);
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  line-height: 1.25;
  padding: 0.8rem 0.3rem 0;
}

@keyframes reinflattern {
  from { transform: translateY(30px) rotate(-12deg) scale(0.9); opacity: 0; }
}

.bild-platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: repeating-linear-gradient(45deg, #efe2cc 0 12px, #f6ecdb 12px 24px);
  color: #7a5a4a;
  font-size: 1rem;
}

.bild-platzhalter code {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Brief */
.brief {
  max-width: 34rem;
  padding: 2rem 1.6rem 1.6rem;
  text-align: left;
  color: var(--tinte);
  background:
    repeating-linear-gradient(180deg, transparent 0 2.05rem, rgba(179, 38, 62, 0.12) 2.05rem 2.1rem),
    var(--papier);
  border-radius: 6px;
  box-shadow: var(--schatten);
  font-size: 1.3rem;
  animation: reinflattern 0.8s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.brief p {
  margin: 0 0 0.9rem;
}

.brief .unterschrift {
  font-family: var(--script);
  font-size: 1.9rem;
  text-align: right;
  color: var(--rot);
  margin: 0;
}

/* Liebesnachricht nach einem Spiel */
.nachricht {
  position: relative;
  max-width: 32rem;
  margin: 2rem auto 0;
  padding: 1.8rem 1.5rem 1.4rem;
  background: var(--papier);
  color: var(--tinte);
  border-radius: 8px;
  border-top: 5px solid var(--rot);
  box-shadow: var(--schatten);
  font-family: var(--script);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: 1.3;
  animation: reinflattern 0.8s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.nachricht p {
  margin: 0;
}

.nachricht-herz {
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
}

/* ── Wordle ────────────────────────────────────────────────────────────── */
.wordle-gitter {
  display: grid;
  gap: 6px;
}

.wordle-reihe {
  display: grid;
  grid-template-columns: repeat(var(--spalten), minmax(0, 3.3rem));
  gap: 6px;
  justify-content: center;
}

.wordle-zelle {
  aspect-ratio: 1;
  width: min(3.3rem, calc((100vw - 3rem) / var(--spalten) - 6px));
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  border: 2px solid rgba(255, 245, 234, 0.25);
  border-radius: 8px;
  background: rgba(255, 245, 234, 0.04);
}

.wordle-zelle.voll {
  border-color: rgba(248, 227, 163, 0.7);
  animation: tippen 0.1s ease;
}

.wordle-zelle.dreh {
  animation: drehen 0.5s ease both;
}

.wordle-zelle.richtig { --farbe: #2f8a5f; }
.wordle-zelle.drin { --farbe: #d4a537; }
.wordle-zelle.falsch { --farbe: #4b2a35; }

@keyframes drehen {
  0% { transform: rotateX(0); }
  49% { transform: rotateX(90deg); background: rgba(255, 245, 234, 0.04); }
  50%, 100% { background: var(--farbe); border-color: var(--farbe); }
  100% { transform: rotateX(0); }
}

@keyframes tippen {
  50% { transform: scale(1.1); }
}

.wordle-reihe.wackeln {
  animation: wackeln 0.45s ease;
}

.wordle-reihe.sieg .wordle-zelle,
.galgen-wort.sieg .feld {
  animation: huepfen 0.5s ease both;
}

.wordle-reihe.sieg .wordle-zelle:nth-child(2), .galgen-wort.sieg .feld:nth-child(2) { animation-delay: 0.08s; }
.wordle-reihe.sieg .wordle-zelle:nth-child(3), .galgen-wort.sieg .feld:nth-child(3) { animation-delay: 0.16s; }
.wordle-reihe.sieg .wordle-zelle:nth-child(4), .galgen-wort.sieg .feld:nth-child(4) { animation-delay: 0.24s; }
.wordle-reihe.sieg .wordle-zelle:nth-child(5), .galgen-wort.sieg .feld:nth-child(5) { animation-delay: 0.32s; }
.wordle-reihe.sieg .wordle-zelle:nth-child(n+6), .galgen-wort.sieg .feld:nth-child(n+6) { animation-delay: 0.4s; }

.wordle-reihe.sieg .wordle-zelle {
  background: #2f8a5f;
  border-color: #2f8a5f;
}

@keyframes huepfen {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  70% { transform: translateY(3px); }
}

.tipp.extra {
  font-size: 1.05rem;
}

.tipp[hidden] {
  display: none;
}

.wordle-reihe.verblasst {
  opacity: 0.55;
}

.tastatur {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 34rem;
}

.tastatur-reihe {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.taste {
  flex: 1;
  min-width: 0;
  max-width: 2.8rem;
  height: 3.2rem;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: rgba(255, 245, 234, 0.16);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.taste.breit {
  flex: 1.6;
  max-width: 4.4rem;
  font-size: 0.8rem;
}

.taste.richtig { background: #2f8a5f; }
.taste.drin { background: #d4a537; }
.taste.falsch { background: rgba(0, 0, 0, 0.35); color: rgba(255, 245, 234, 0.4); }

/* ── Galgenmännchen ────────────────────────────────────────────────────── */
.leben {
  display: flex;
  gap: 0.2rem;
  font-size: 1.6rem;
}

.leben .weg {
  animation: brechen 0.5s ease;
  opacity: 0.7;
}

@keyframes brechen {
  0% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.galgen-wort {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: 0.6rem 0;
}

.galgen-teil {
  display: flex;
  gap: 0.35rem;
}

.galgen-wort .feld,
.galgen-wort .zeichen {
  width: 2rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
}

.galgen-wort .feld {
  border-bottom: 3px solid var(--gold);
}

.galgen-wort .feld.da {
  animation: tippen 0.25s ease;
}

.galgen-wort .feld.verpasst {
  color: var(--rosa);
}

.galgen-tasten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 30rem;
}

.galgen-tasten .taste {
  max-width: none;
}

.taste:disabled {
  cursor: default;
}

/* ── Quiz ──────────────────────────────────────────────────────────────── */
.quiz-karte {
  width: 100%;
  max-width: 32rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--papier);
  color: var(--tinte);
  box-shadow: var(--schatten);
  animation: reinflattern 0.6s ease;
}

.quiz-stand {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--rot);
}

.quiz-frage {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.4rem 0 1rem;
}

.quiz-ergebnis {
  font-family: var(--script);
  font-size: 3rem;
  margin: 0.3rem 0;
  color: var(--rot);
}

.antworten {
  display: grid;
  gap: 0.6rem;
}

.antwort {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(59, 29, 34, 0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--tinte);
  font-size: 1.15rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s;
}

.antwort:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--rot);
}

.antwort.richtig { background: #d5f0df; border-color: #2f8a5f; }
.antwort.falsch { background: #f8d7dd; border-color: var(--rot); }

.quiz-reaktion {
  min-height: 1.5em;
  font-style: italic;
  margin: 0.9rem 0;
}

.knopf[hidden] {
  display: none;
}

.wer-knoepfe {
  grid-template-columns: repeat(3, 1fr);
}

.wer-knoepfe.vier {
  grid-template-columns: repeat(2, 1fr);
}

.wer-knoepfe .antwort {
  padding: 0.8rem 0.4rem;
}

.quiz-foto {
  display: block;
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  border-radius: 10px;
  margin: 0.6rem 0 0;
}

.gewinn-titel {
  margin-top: 1.6rem;
  font-size: 1.3rem;
}

.nachricht-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── Nikolausstiefel ───────────────────────────────────────────────────── */
.stiefel {
  position: relative;
  width: 12rem;
  height: 12rem;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.25), transparent 70%);
  font-size: 8rem;
  line-height: 1;
  animation: schaukeln 2.4s ease-in-out infinite;
}

.stiefel-bild {
  display: inline-block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.stiefel.ruetteln .stiefel-bild {
  animation: wackeln 0.45s ease;
}

.stiefel.leer {
  animation: none;
  opacity: 0.7;
}

.stiefel-stern {
  position: absolute;
  left: 50%;
  top: 40%;
  font-size: 1.6rem;
  pointer-events: none;
  animation: herausfliegen 1s ease-out forwards;
}

@keyframes herausfliegen {
  from { transform: translate(-50%, 0) scale(0.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), var(--y)) scale(1.1) rotate(200deg); opacity: 0; }
}

@keyframes schaukeln {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* ── Herzen fangen ─────────────────────────────────────────────────────── */
.fang-feld {
  display: block;
  border-radius: 14px;
  border: 2px solid rgba(233, 196, 106, 0.5);
  background: linear-gradient(180deg, #2b0815, #5a1229);
  box-shadow: var(--schatten);
  touch-action: none;
}

/* ── Gutscheinkorb ─────────────────────────────────────────────────────── */
.korb-knopf {
  margin-top: 0.2rem;
  background: rgba(233, 196, 106, 0.15);
}

.korb-link {
  margin-top: 0.4rem;
}

.korb-liste {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
  margin-top: 1rem;
}

.gutschein.mini {
  animation: none;
}

.gutschein.mini .gutschein-was {
  font-size: clamp(1.6rem, 6.5vw, 2.1rem);
}

.gutschein.mini.eingeloest {
  opacity: 0.75;
}

.korb-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
  min-height: 2.6rem;
}

.korb-status .knopf {
  padding: 0.45em 1.2em;
  font-size: 1rem;
}

.korb-tuer {
  color: var(--rot);
  font-weight: 600;
  font-size: 0.95rem;
}

.stempel.klein {
  position: static;
  display: inline-block;
  transform: rotate(-6deg);
  font-size: 1rem;
  animation: none;
}

/* ── Diashow "Unser Jahr" ─────────────────────────────────────────────── */
.diashow {
  width: 100%;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diashow h2 {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--gold-hell);
  margin: 0 0 0.6rem;
}

.dia-rahmen {
  width: min(100%, 26rem);
  transform: rotate(1.5deg);
}

.dia-bild {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.dia-bild.sichtbar {
  opacity: 1;
}

.dia-monat {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rot);
}

.dia-text {
  margin: 0.2rem 0 0;
  min-height: 2.6em;
}

.dia-steuerung {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
  color: var(--rosa);
}

.dia-knopf {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(233, 196, 106, 0.5);
  background: rgba(255, 245, 234, 0.1);
  font-size: 0.95rem;
}

.dia-knopf.breit {
  width: auto;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 600;
}

.dia-knopf.breit.an {
  background: var(--rot);
}

.dia-stand {
  min-width: 4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Enthüllen: Ticket, Schneekugel, Sterne ──────────────────────────── */
.enthuellen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gutschein-erscheint {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: knall 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.ticket {
  display: flex;
  width: min(100%, 24rem);
  height: 9rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  user-select: none;
}

.ticket-haupt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8e3a3, #e9c46a);
  color: var(--wein);
  border-radius: 12px 0 0 12px;
  border-right: 3px dashed rgba(74, 15, 36, 0.5);
}

.ticket-kopf { margin: 0; letter-spacing: 0.35em; font-weight: 700; font-size: 0.85rem; }
.ticket-titel { margin: 0.2rem 0; font-family: var(--script); font-size: 2.2rem; line-height: 1; }
.ticket-klein { margin: 0; font-size: 0.85rem; }

.ticket-abschnitt {
  width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c7344c, #8c1830);
  color: var(--creme);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: grab;
  touch-action: none;
  transition: transform 0.25s ease;
  animation: zupfen 1.6s ease-in-out infinite;
}

.ticket-abschnitt .gross { font-size: 2.4rem; line-height: 1; }
.ticket-abschnitt.zieht { transition: none; animation: none; cursor: grabbing; }
.ticket-abschnitt.abgerissen { transition: transform 0.6s ease-in, opacity 0.6s; transform: translate(220px, 160px) rotate(55deg) !important; opacity: 0; }

@keyframes zupfen {
  0%, 70%, 100% { transform: translateX(0); }
  80% { transform: translateX(8px) rotate(2deg); }
  90% { transform: translateX(2px); }
}

.kugel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schneekugel {
  position: relative;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(180, 210, 240, 0.25) 40%, rgba(40, 60, 110, 0.55) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.schneekugel.wackelt { animation: wackeln 0.4s ease; }
.schneekugel.leuchtet { box-shadow: 0 0 40px 12px rgba(248, 227, 163, 0.8), inset 0 -10px 30px rgba(0, 0, 0, 0.2); transition: box-shadow 0.6s; }

.kugel-inhalt { font-size: 5rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }

.kugel-sockel {
  width: 9rem;
  height: 2.4rem;
  margin-top: -0.6rem;
  border-radius: 0 0 1.2rem 1.2rem;
  background: linear-gradient(180deg, #8c1830, #4a0f24);
  border-top: 3px solid var(--gold);
}

.kugel-schnee {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kugel-schnee span {
  position: absolute;
  top: -10%;
  color: #fff;
  animation: kugel-fallen linear forwards;
}

@keyframes kugel-fallen {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(12px, 15rem) rotate(180deg); opacity: 0.6; }
}

.kugel-fortschritt {
  width: 12rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 245, 234, 0.15);
  overflow: hidden;
}

.kugel-fortschritt span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
}

.sternhimmel {
  width: min(100%, 24rem);
  aspect-ratio: 1;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 30%, #1d2550, #0a0d22 75%);
  box-shadow: var(--schatten);
  border: 1px solid rgba(233, 196, 106, 0.35);
}

.sternhimmel line {
  stroke: var(--gold-hell);
  stroke-width: 0.7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(248, 227, 163, 0.9));
}

.deko-stern { fill: #fff; opacity: 0.6; animation: funkeln 2.5s ease-in-out infinite alternate; }

.stern { cursor: pointer; }
.stern .treffer { fill: transparent; }
.stern .punkt { fill: #fff; transition: r 0.2s, fill 0.2s; }
.stern .zahl { fill: rgba(255, 245, 234, 0.55); font-size: 3.2px; text-anchor: middle; font-family: var(--serif); }
.stern.dran .punkt { fill: var(--gold-hell); animation: stern-puls 1s ease-in-out infinite; }
.stern.an .punkt { fill: var(--gold); }
.stern.an .zahl { opacity: 0; }
.stern.falsch .punkt { fill: #ff6b8a; }

@keyframes stern-puls {
  50% { r: 2.8px; }
}

.sternhimmel.fertig line { stroke: #ffb3c6; transition: stroke 0.8s; }

.knopf.leise[hidden] { display: none; }

/* Auf hellen Karten: dezenter Knopf mit dunkler Schrift */
.quiz-karte .knopf.leise {
  color: var(--tinte);
  background: rgba(59, 29, 34, 0.06);
  border-color: rgba(59, 29, 34, 0.3);
  margin-top: 0.4rem;
}

/* ── Memory ────────────────────────────────────────────────────────────── */
.memory-zaehler {
  margin: 0;
  color: var(--gold-hell);
  font-style: italic;
}

.memory-gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 28rem;
  perspective: 800px;
}

.memory-karte {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: none;
  background: none;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.memory-karte.auf {
  transform: rotateY(180deg);
}

.memory-hinten,
.memory-vorne {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.memory-hinten {
  font-size: 1.8rem;
  border: 1.5px solid rgba(233, 196, 106, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 2px, transparent 3px) 0 0 / 14px 14px, linear-gradient(145deg, #c53048, #8c1830);
}

.memory-vorne {
  transform: rotateY(180deg);
  background: var(--papier);
  font-size: 2.2rem;
}

.memory-vorne img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-karte.gefunden .memory-vorne {
  box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(233, 196, 106, 0.7);
}

/* ── Snake ─────────────────────────────────────────────────────────────── */
.snake-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-hell);
}

.pause {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(233, 196, 106, 0.5);
  background: rgba(255, 245, 234, 0.1);
  font-size: 1rem;
}

.snake-feld.betrunken {
  animation: schwanken 3.2s ease-in-out infinite;
  filter: saturate(1.3) hue-rotate(-10deg);
}

@keyframes schwanken {
  0%, 100% { transform: rotate(-2.5deg) skewX(1.5deg); }
  25% { transform: rotate(1deg) translateX(4px) skewX(-1deg); }
  50% { transform: rotate(3deg) skewY(1.5deg); }
  75% { transform: rotate(-1deg) translateX(-4px) skewX(1deg); }
}

.knopf[hidden] {
  display: none;
}

.snake-buehne {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
}

.snake-feld {
  display: block;
  border-radius: 14px;
  border: 2px solid rgba(233, 196, 106, 0.5);
  background: linear-gradient(160deg, #2c4f3c, #14291f);
  box-shadow: var(--schatten);
  touch-action: none;
}

.snake-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(26, 6, 16, 0.7);
  font-size: 1.3rem;
}

.snake-overlay[hidden] {
  display: none;
}

.snake-overlay p {
  margin: 0;
}

.snake-overlay .klein {
  font-size: 1rem;
  color: var(--rosa);
  margin-bottom: 0.8rem;
}

.steuerkreuz {
  display: grid;
  grid-template-areas: ". hoch ." "links . rechts" ". runter .";
  grid-template-columns: repeat(3, 3.6rem);
  grid-template-rows: repeat(3, 3.2rem);
  gap: 4px;
}

.steuer {
  border: 1px solid rgba(233, 196, 106, 0.4);
  border-radius: 12px;
  background: rgba(255, 245, 234, 0.12);
  font-size: 1.3rem;
  touch-action: manipulation;
  user-select: none;
}

.steuer:active {
  background: rgba(244, 167, 185, 0.4);
}

.steuer.hoch { grid-area: hoch; }
.steuer.links { grid-area: links; }
.steuer.rechts { grid-area: rechts; }
.steuer.runter { grid-area: runter; }

@media (hover: hover) and (pointer: fine) {
  .steuerkreuz {
    display: none;
  }
}

/* ── Rubbellos ─────────────────────────────────────────────────────────── */
.rubbel-rahmen {
  position: relative;
  width: 100%;
  max-width: 26rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 2px solid var(--gold);
}

.rubbel-karte {
  background: var(--papier);
  color: var(--tinte);
}

.rubbel-karte .foto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rubbel-text {
  margin: 0;
  padding: 1rem 1.2rem 1.2rem;
  font-family: var(--script);
  font-size: 1.7rem;
  line-height: 1.25;
}

.rubbel-schicht {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.8s ease;
}

.rubbel-schicht.weg {
  opacity: 0;
  pointer-events: none;
}

/* ── Gutschein ─────────────────────────────────────────────────────────── */
.gutschein {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 1.6rem 1.4rem 1.2rem;
  color: var(--tinte);
  background:
    radial-gradient(circle at 0 50%, transparent 14px, var(--papier) 15px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 14px, var(--papier) 15px) right / 51% 100% no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  animation: reinflattern 0.8s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.gutschein::before {
  content: "";
  position: absolute;
  inset: 8px 24px;
  border: 2px dashed rgba(179, 38, 62, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.gutschein-rubbel {
  border: none;
  background: transparent;
  box-shadow: none;
  max-width: 28rem;
}

.gutschein-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--rot);
  font-weight: 700;
}

.gutschein-kopf {
  margin: 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rot);
}

.gutschein-was {
  margin: 0.4rem 0;
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.1;
}

.gutschein-details {
  margin: 0 0.8rem;
  font-style: italic;
}

.gutschein-fuss {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(59, 29, 34, 0.65);
}

.stempel {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: 0.3rem 0.9rem;
  border: 3px solid rgba(179, 38, 62, 0.85);
  border-radius: 8px;
  color: rgba(179, 38, 62, 0.9);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: stempeln 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.stempel[hidden] {
  display: none;
}

@keyframes stempeln {
  from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.5); opacity: 0; }
}

/* ── Liebst du mich? ───────────────────────────────────────────────────── */
.knopf-frage {
  font-family: var(--script);
  font-size: clamp(2.2rem, 9vw, 3rem);
  color: var(--creme);
  margin: 0;
}

.knopf-feld {
  position: relative;
  width: 100%;
  max-width: 40rem;
  height: clamp(380px, 62vh, 600px);
  border-radius: 18px;
  border: 1px dashed rgba(233, 196, 106, 0.35);
}

.knopf-feld .ja {
  position: absolute;
  left: 32%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.knopf-feld .nein {
  position: absolute;
  left: 58%;
  top: calc(50% - 1.4rem);
  white-space: nowrap;
  transition: left 0.2s ease, top 0.2s ease;
}

.knopf-feld .ja-zwei {
  position: absolute;
  white-space: nowrap;
}

/* ── Emoji-Rätsel ──────────────────────────────────────────────────────── */
.emoji-gross {
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  letter-spacing: 0.1em;
  margin: 0.6rem 0 1rem;
}

.raten-form {
  display: flex;
  gap: 0.5rem;
}

.raten-form.wackeln {
  animation: wackeln 0.45s ease;
}

.raten-feld {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(59, 29, 34, 0.2);
  color: var(--tinte);
  background: #fff;
}

.raten-feld:focus {
  outline: none;
  border-color: var(--rot);
}

.raten-form .knopf {
  padding: 0.5em 1.1em;
}

/* ── Zeitstrahl ────────────────────────────────────────────────────────── */
.zeit-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 30rem;
  display: grid;
  gap: 0.6rem;
  position: relative;
}

.zeit-moment {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 0.7rem;
  border-radius: 14px;
  background: var(--papier);
  color: var(--tinte);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.zeit-moment.stimmt {
  border-color: #2f8a5f;
  background: #e2f4e8;
}

.zeit-moment.falsch {
  border-color: rgba(179, 38, 62, 0.5);
}

.zeit-punkt {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rot);
  color: var(--creme);
  font-weight: 700;
}

.zeit-text {
  flex: 1;
  font-weight: 600;
  font-size: 1.1rem;
}

.pfeile {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pfeil {
  width: 2.4rem;
  height: 1.7rem;
  border: none;
  border-radius: 7px;
  background: rgba(59, 29, 34, 0.1);
  color: var(--tinte);
  font-size: 0.8rem;
}

.pfeil:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Schiebepuzzle ─────────────────────────────────────────────────────── */
.puzzle-brett {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background: rgba(0, 0, 0, 0.3) center / cover;
  box-shadow: var(--schatten);
  overflow: hidden;
}

.puzzle-teil {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 3);
  height: calc(100% / 3);
  padding: 0;
  border: 1px solid rgba(26, 6, 16, 0.6);
  background-color: #8c1830;
  color: var(--gold-hell);
  font-family: var(--script);
  font-size: 2.4rem;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.puzzle-teil.leer {
  visibility: hidden;
}

.puzzle-brett.geloest .puzzle-teil {
  border-color: transparent;
}

.puzzle-brett.geloest .puzzle-teil.leer {
  visibility: visible;
  animation: einblenden 0.8s ease;
}

.puzzle-brett.vorschau .puzzle-teil {
  opacity: 0;
}

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