/* ==================================================================
   Das Geheimnis des Lebkuchens — Wanderkrimi Todtmoos (Vorschau)
   Gestaltung: „Ermittlungsakte im Morgenlicht"
   Warmer Morgennebel als Bühne, Papierblätter als Akte, ein roter
   Faden verbindet die sechs Stationen — und daneben trabt Balu:
   seine Pfotenspur läuft mit. Für Familien mit Kindern ab 6.
   Mobile First, Systemschriften, keine externen Assets.
   Kontraste geprüft: alle Text/Grund-Paare >= 4.5:1 (WCAG AA).
   ================================================================== */

:root {
  --grund: #e9dfc6;        /* Seitengrund: warmes Morgenlicht-Papier */
  --grund-dunkel: #22372a; /* Fußzeile: Tannengrün */
  --papier: #fbf7ec;       /* Aktenblätter, heller als der Grund */
  --tinte: #2c2618;        /* Text auf Papier */
  --tinte-gruen: #23402e;  /* Überschriften (8.7:1 auf Grund) */
  --tinte-blass: #5c5340;  /* Nebentext (5.5:1 auf Grund) */
  --text: #3a3428;         /* Fließtext auf Grund (9.2:1) */
  --faden: #b23a2e;        /* roter Faden (4.7:1 auf Grund, 5.6:1 auf Papier) */
  --gold-tief: #7c5314;    /* warmer Akzent/Links auf hellem Grund (5:1) */
  --creme: #f1e9d7;        /* heller Text auf Tannengrün (10.6:1) */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --hand: "Segoe Script", "Bradley Hand", "Apple Chancery", "Comic Sans MS", cursive;
  /* Papierkörnung als winziges SVG-Rauschen */
  --koernung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
  /* Balus Pfotenabdruck: vier Zehen und ein Ballen */
  --pfote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%236b4a28' fill-opacity='0.42'%3E%3Cellipse cx='16' cy='21' rx='6.5' ry='5.5'/%3E%3Cellipse cx='7.5' cy='13' rx='3' ry='4' transform='rotate(-18 7.5 13)'/%3E%3Cellipse cx='13.5' cy='8.5' rx='3' ry='4' transform='rotate(-6 13.5 8.5)'/%3E%3Cellipse cx='19.5' cy='8.5' rx='3' ry='4' transform='rotate(6 19.5 8.5)'/%3E%3Cellipse cx='25.5' cy='13' rx='3' ry='4' transform='rotate(18 25.5 13)'/%3E%3C/g%3E%3C/svg%3E");
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--grund);
  background-image: var(--koernung);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.18; text-wrap: balance; }

h2 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); color: var(--tinte-gruen); }

/* Fließtext: begrenzte Zeilenlänge, ruhiger Rhythmus, deutsche Trennung */
p, dd, li {
  max-width: 58ch;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Redigierspuren: getippt, dann korrigiert */
del {
  text-decoration: line-through;
  text-decoration-color: var(--faden);
  text-decoration-thickness: 2px;
  color: #6d6350;
}
ins { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--faden); color: #fff; }

a { color: var(--gold-tief); }

:focus-visible {
  outline: 3px solid var(--faden);
  outline-offset: 3px;
  border-radius: 2px;
}

.springen {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 20;
  background: var(--tinte-gruen);
  color: var(--creme);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.springen:focus { top: 0.75rem; }

/* Schreibmaschinen-Etiketten der Akte */
.kapitel-label,
.blatt-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faden);
  margin-bottom: 0.7rem;
}

/* --- Kopfbereich: Morgenwald, Sonnenstrahlen, Balu voraus -------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 5.5rem;
  overflow: hidden;
  background: var(--grund);
}

.hero picture, .hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nebelschwaden: zwei weiche helle Ebenen, sehr langsam gegenläufig */
.hero-nebel { position: absolute; inset: 0; pointer-events: none; }

.hero-nebel::before,
.hero-nebel::after {
  content: "";
  position: absolute;
  inset: -12% -45%;
  background:
    radial-gradient(42% 34% at 24% 62%, rgba(250, 244, 226, 0.30), transparent 70%),
    radial-gradient(36% 30% at 74% 38%, rgba(250, 244, 226, 0.22), transparent 70%);
  animation: nebelzug 34s ease-in-out infinite alternate;
}

.hero-nebel::after {
  background:
    radial-gradient(40% 30% at 66% 72%, rgba(250, 244, 226, 0.24), transparent 70%),
    radial-gradient(30% 26% at 30% 26%, rgba(250, 244, 226, 0.16), transparent 70%);
  animation-duration: 47s;
  animation-direction: alternate-reverse;
}

@keyframes nebelzug {
  from { transform: translateX(-4.5%) translateY(-1%); }
  to   { transform: translateX(4.5%)  translateY(1.5%); }
}

/* Heller Schleier: Titel überall lesbar + weicher Übergang in die Seite */
.hero-schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(233, 223, 198, 0.20) 0%,
    rgba(233, 223, 198, 0.12) 40%,
    rgba(233, 223, 198, 0.55) 82%,
    var(--grund) 100%);
}

.hero-inhalt { position: relative; max-width: 34rem; }

/* Lichtung hinter dem Titel: wie ein Sonnenfleck im Nebel */
.hero-inhalt::before {
  content: "";
  position: absolute;
  inset: -3.5rem -4rem;
  background: radial-gradient(closest-side, rgba(250, 245, 230, 0.78), rgba(250, 245, 230, 0.42) 62%, transparent 100%);
  pointer-events: none;
}

.hero-inhalt > * { position: relative; }

.akte-zeile {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a4132;
}

.hero h1 {
  color: #1f3527;
  font-size: clamp(2.5rem, 11vw, 4.4rem);
  margin: 0.7rem 0 0.9rem;
  text-shadow: 0 1px 0 rgba(250, 245, 230, 0.6), 0 2px 18px rgba(250, 245, 230, 0.8);
}

.hero-unterzeile {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: #2c2618;
}

.familien-zeile {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b4425;
}

/* „Startet in Kürze" als Aktenstempel */
.stempel {
  display: inline-block;
  /* eng an den Text gerückt, damit der Hund im Bild darunter frei bleibt */
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a33327;
  background: rgba(251, 247, 236, 0.78);
  border: 2px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(251, 247, 236, 0.5), 0 2px 12px rgba(80, 60, 30, 0.25);
  padding: 0.6em 1.15em 0.55em;
  transform: rotate(-3.5deg);
}

.hero-hinweis {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a4132;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
}

.hero-hinweis .pfeil {
  font-size: 1.25rem;
  animation: winken 2.6s ease-in-out infinite;
}

@keyframes winken {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.4rem); }
}

/* --- Abschnitte ------------------------------------------------- */

.abschnitt {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}

.abschnitt p + p { margin-top: 0.85em; }

/* --- Aktenblätter: Papier auf Morgenlicht-Grund ------------------ */

.blatt {
  position: relative;
  background:
    var(--koernung),
    linear-gradient(158deg, #fdfaf1 0%, #f8f2e2 55%, #f2e9d2 100%);
  color: var(--tinte);
  padding: 2.4rem 1.5rem 2.2rem;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(80, 62, 32, 0.28),
    0 14px 32px rgba(80, 62, 32, 0.24);
  transform: rotate(var(--rot, 0deg));
}

.blatt-links  { --rot: -0.6deg; }
.blatt-rechts { --rot: 0.5deg; }
.blatt-kinder { --rot: 0.6deg; }

/* Klebestreifen oben */
.blatt::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 7rem;
  height: 1.7rem;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(222, 206, 168, 0.5);
  border-left: 1px dashed rgba(150, 130, 90, 0.45);
  border-right: 1px dashed rgba(150, 130, 90, 0.45);
  box-shadow: 0 1px 4px rgba(80, 62, 32, 0.18);
}

.blatt h2, .blatt h3 { color: var(--tinte-gruen); }

.blatt h2 { margin-bottom: 0.7rem; }

.blatt .blatt-label { color: var(--faden); margin-bottom: 0.6rem; }

.blatt p { font-size: 1rem; line-height: 1.7; color: #332d24; }

.blatt p + p { margin-top: 0.85em; }

.blatt strong { color: #1c2a21; }

/* Kaffeefleck: jemand hat die Akte beim Frühstück gelesen */
.blatt-links::after {
  content: "";
  position: absolute;
  right: -0.9rem;
  bottom: 1.2rem;
  width: 6.2rem;
  height: 5.6rem;
  pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 58%, rgba(112, 76, 38, 0.14) 63%,
      rgba(112, 76, 38, 0.30) 70%, rgba(112, 76, 38, 0.10) 76%, transparent 81%),
    radial-gradient(closest-side at 32% 68%, rgba(112, 76, 38, 0.08), transparent 52%);
  transform: rotate(-14deg) scaleY(0.9);
}

/* Büroklammer am Fakten-Blatt */
.blatt-rechts::after {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 1.9rem;
  width: 1.5rem;
  height: 3.4rem;
  pointer-events: none;
  transform: rotate(4deg);
  filter: drop-shadow(0 1px 1px rgba(80, 62, 32, 0.35));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 56'%3E%3Cpath d='M16.5 13 v29 a4.5 4.5 0 0 1 -9 0 V10 a6.5 6.5 0 0 1 13 0 v31' fill='none' stroke='%23848a90' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Balus Pfoten laufen quer über das Kinder-Blatt */
.blatt-kinder::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 0.45rem;
  width: 5.4rem;
  height: 2rem;
  pointer-events: none;
  background:
    var(--pfote) no-repeat left 55% / 1.35rem,
    var(--pfote) no-repeat right 0 / 1.35rem;
  transform: rotate(-8deg);
  opacity: 0.85;
}

/* --- Stationen: der rote Faden + Balus Spur ---------------------- */

.stationen-bereich { padding-bottom: 1rem; }

.stationen-kopf { padding-bottom: 1.5rem; }

.stationen-kopf .einleitung { margin-top: 0.9rem; color: var(--text); }

/* Stimmungsbilder in voller Breite, weich in den Morgen eingeblendet */
.stimmung { position: relative; margin: 0; }

.stimmung img {
  width: 100%;
  height: clamp(15rem, 46vh, 28rem);
  object-fit: cover;
}

.stimmung::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--grund) 0%, transparent 20%,
    transparent 62%, rgba(233, 223, 198, 0.88) 92%, var(--grund) 100%);
  pointer-events: none;
}

.stimmung figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  width: min(100% - 2.5rem, 43rem);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--tinte);
}

/* Route: gestrichelte Wanderroute + roter Faden, der mitwächst */
.route {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
}

.faden-basis, .faden-rot {
  position: absolute;
  top: 0;
  left: calc(2.65rem - 1px);
  width: 2px;
}

.faden-basis {
  bottom: 0;
  background-image: repeating-linear-gradient(to bottom,
    rgba(90, 100, 80, 0.45) 0 0.5rem, transparent 0.5rem 1.1rem);
}

.faden-rot {
  height: 100%;               /* ohne JS / bei reduzierter Bewegung: voll sichtbar */
  background: var(--faden);
  box-shadow: 0 0 8px rgba(178, 58, 46, 0.35);
}

.js .faden-rot { height: 0; }

/* Balu trabt neben dem Faden her: seine Pfotenspur */
.pfoten {
  position: absolute;
  top: 1.2rem;
  bottom: 1rem;
  left: 0.55rem;
  width: 1.5rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='104' viewBox='0 0 24 104'%3E%3Cg fill='%236b4a28' fill-opacity='0.40'%3E%3Cg transform='translate(1 6) rotate(12 8 8)'%3E%3Cellipse cx='8' cy='10.5' rx='3.3' ry='2.8'/%3E%3Cellipse cx='3.7' cy='6.5' rx='1.5' ry='2' transform='rotate(-18 3.7 6.5)'/%3E%3Cellipse cx='6.8' cy='4.2' rx='1.5' ry='2'/%3E%3Cellipse cx='9.8' cy='4.2' rx='1.5' ry='2'/%3E%3Cellipse cx='12.9' cy='6.5' rx='1.5' ry='2' transform='rotate(18 12.9 6.5)'/%3E%3C/g%3E%3Cg transform='translate(7 56) rotate(-10 8 8)'%3E%3Cellipse cx='8' cy='10.5' rx='3.3' ry='2.8'/%3E%3Cellipse cx='3.7' cy='6.5' rx='1.5' ry='2' transform='rotate(-18 3.7 6.5)'/%3E%3Cellipse cx='6.8' cy='4.2' rx='1.5' ry='2'/%3E%3Cellipse cx='9.8' cy='4.2' rx='1.5' ry='2'/%3E%3Cellipse cx='12.9' cy='6.5' rx='1.5' ry='2' transform='rotate(18 12.9 6.5)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat-y left top / 1.5rem auto;
  pointer-events: none;
}

.stationen {
  list-style: none;
  counter-reset: station;
  padding: 0 1.25rem 0 5rem;
}

.station { position: relative; counter-increment: station; }

.station + .station { margin-top: 1.6rem; }

/* Wegmarke auf der Route */
.station::before {
  content: counter(station, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  left: -3.6rem;
  top: 0.35rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  background: var(--papier);
  border: 2px solid rgba(90, 100, 80, 0.55);
  color: var(--text);
  transition: background 0.45s, border-color 0.45s, box-shadow 0.45s, color 0.45s;
}

.station.passiert::before {
  background: var(--faden);
  border-color: #8e2e24;
  color: #fff;
  box-shadow: 0 0 12px rgba(178, 58, 46, 0.35);
}

.station-blatt { padding: 1.5rem 1.25rem 1.4rem; }

.station:nth-child(odd)  .station-blatt { --rot: -0.7deg; }
.station:nth-child(even) .station-blatt { --rot: 0.6deg; }

.station-blatt .blatt-label { margin-bottom: 0.3rem; font-size: 0.75rem; }

.station-blatt h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }

.station-blatt p { font-size: 0.9688rem; line-height: 1.65; color: #3a332a; }

/* --- Fundstück A: der Lebkuchen ---------------------------------- */

.lebkuchen-band {
  background:
    var(--koernung),
    linear-gradient(165deg, #e8d9b6 0%, #dfcda3 100%);
  border-top: 4px solid var(--faden);
  border-bottom: 4px solid var(--faden);
  margin-top: 1rem;
}

.lebkuchen-band .abschnitt { padding: 3.25rem 1.25rem; }

.lebkuchen-text h2 { color: var(--tinte-gruen); margin-bottom: 0.7rem; }

.lebkuchen-text p { color: #33291a; line-height: 1.7; text-wrap: pretty; hyphens: auto; }

.lebkuchen-text p + p { margin-top: 0.85em; }

/* Handschriftliche Randnotiz des Ermittlers */
.randnotiz {
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.35;
  color: #93301f;
  transform: rotate(-2.4deg);
  max-width: 20rem;
  margin-top: 1.3rem !important;
}

.kapitel-label-hell { color: #8e2e24; }

/* Foto wie ein eingeheftetes Fundstück-Foto */
.beweisfoto {
  margin: 0 0 1.8rem;
  background: #fdfaf1;
  padding: 0.7rem 0.7rem 0.9rem;
  box-shadow: 0 2px 4px rgba(65, 50, 25, 0.25), 0 14px 30px rgba(65, 50, 25, 0.28);
  transform: rotate(1.4deg);
  position: relative;
}

.beweisfoto::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 6.5rem;
  height: 1.7rem;
  transform: translateX(-50%) rotate(1.5deg);
  background: rgba(216, 200, 160, 0.55);
  border-left: 1px dashed rgba(150, 130, 90, 0.4);
  border-right: 1px dashed rgba(150, 130, 90, 0.4);
}

.beweisfoto figcaption {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--tinte-blass);
  padding-top: 0.6rem;
  letter-spacing: 0.04em;
}

/* --- Kinder-Blatt: Liste mit Pfoten-Aufzählung ------------------- */

.kinder-liste { list-style: none; margin-top: 1.1rem; }

.kinder-liste li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #332d24;
}

.kinder-liste li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--pfote) no-repeat center / contain;
  transform: rotate(-10deg);
}

.kinder-liste li:nth-child(even)::before { transform: rotate(12deg); }

/* --- Eckdaten auf dem Fakten-Blatt ------------------------------- */

.eckdaten { display: grid; gap: 1.3rem; margin-top: 1.4rem; }

.eckdaten dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faden);
  margin-bottom: 0.15rem;
}

.eckdaten dd { color: #3a332a; line-height: 1.65; }

/* --- Ausrüstung: Checkliste unten auf dem Fakten-Blatt ------------ */

.mitbringen-titel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(92, 83, 64, 0.45);
  font-size: 1.25rem;
}

.mitbringen { list-style: none; margin-top: 0.8rem; }

.mitbringen li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.3rem;
  font-size: 1rem;
  color: #332d24;
}

.mitbringen li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid rgba(92, 83, 64, 0.55);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--faden);
}

/* --- Stand & Ablauf: Karteikarten aus dem Zettelkasten ------------ */

.stand { padding-bottom: 3.5rem; }

.stand h2 { margin-bottom: 0.8rem; }

.ablauf {
  list-style: none;
  counter-reset: schritt;
  display: grid;
  gap: 1.4rem;
  margin: 1.8rem 0 1.6rem;
}

/* Karteikarte: liniertes Papier, roter Kopfstrich, gestempelte Nummer */
.ablauf .karte {
  counter-increment: schritt;
  position: relative;
  background:
    var(--koernung),
    repeating-linear-gradient(to bottom,
      transparent 0 1.49rem,
      rgba(90, 110, 140, 0.18) 1.49rem calc(1.49rem + 1px)),
    linear-gradient(155deg, #fdfaf1 0%, #f8f2e2 70%, #f2e9d2 100%);
  color: var(--tinte);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(80, 62, 32, 0.3),
    0 12px 28px rgba(80, 62, 32, 0.22);
  padding: 1.35rem 1.25rem 1.15rem 1.35rem;
  transform: rotate(var(--rot, 0deg));
}

.ablauf .karte:nth-child(1) { --rot: -0.8deg; }
.ablauf .karte:nth-child(2) { --rot: 0.7deg; }
.ablauf .karte:nth-child(3) { --rot: -0.5deg; }

/* der rote Kopfstrich einer Karteikarte */
.ablauf .karte::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2.75rem;
  height: 2px;
  background: rgba(178, 58, 46, 0.5);
  pointer-events: none;
}

/* Nummer als runder Stempelabdruck */
.ablauf .karte::before {
  content: counter(schritt);
  position: absolute;
  right: 0.9rem;
  top: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--faden);
  border: 2px solid rgba(178, 58, 46, 0.75);
  border-radius: 50%;
  transform: rotate(8deg);
  opacity: 0.85;
}

.ablauf h3 {
  font-size: 1.25rem;
  color: var(--tinte-gruen);
  margin-bottom: 0.75rem;
  padding-right: 2.6rem;
}

.ablauf p { font-size: 0.9688rem; line-height: 1.65; color: #3a332a; }

.preis-hinweis { font-style: italic; color: var(--tinte-blass); font-size: 0.9688rem; }

/* --- Finale: der Blick ins Tal, das Rätsel wartet ----------------- */

.finale {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background: var(--grund-dunkel);
}

.finale-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finale-schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      var(--grund) 0%,
      rgba(45, 38, 20, 0.18) 26%,
      rgba(45, 38, 20, 0.42) 62%,
      rgba(34, 40, 24, 0.72) 100%);
}

.finale-inhalt { position: relative; max-width: 32rem; }

.finale h2 {
  color: #fdfaf2;
  font-size: clamp(1.9rem, 8vw, 3rem);
  text-shadow: 0 2px 14px rgba(30, 24, 10, 0.85), 0 1px 3px rgba(30, 24, 10, 0.9);
  margin-top: 0.3rem;
}

.finale .kapitel-label {
  color: #ffc9be;
  text-shadow: 0 1px 6px rgba(30, 24, 10, 0.9);
  margin-bottom: 0.6rem;
}

/* Stempel quer über die letzte Seite */
.finale-stempel {
  display: inline-block;
  margin: 1.7rem auto 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: #ffb3a3;
  border: 3px double currentColor;
  border-radius: 6px;
  padding: 0.55em 1.1em 0.5em;
  transform: rotate(-4deg);
  background: rgba(34, 30, 14, 0.45);
  box-shadow: 0 2px 12px rgba(30, 24, 10, 0.5);
}

.finale-hinweis {
  margin: 2.2rem auto 0;
  color: #f6efdf;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(30, 24, 10, 0.95), 0 1px 2px rgba(30, 24, 10, 0.9);
  max-width: 30rem;
}

/* --- Fußzeile ----------------------------------------------------- */

footer {
  background: var(--grund-dunkel);
  color: var(--creme);
  text-align: center;
  padding: 2.2rem 1.25rem 2.6rem;
  font-size: 0.9375rem;
}

footer p { margin: 0 auto; }

footer a { color: var(--creme); }

footer :focus-visible { outline-color: var(--creme); }

.footer-links { margin-top: 0.7rem; }

.folgt { color: #c3cdbb; font-style: italic; }

/* --- Enthüllung beim Scrollen (nur mit JS aktiv) ------------------ */

.js .enthuellung {
  opacity: 0;
  transform: translateY(1.4rem) rotate(var(--rot, 0deg));
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .enthuellung.da {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
}

.js .station.enthuellung { --rot: 0deg; }

.js .faden-rot { transition: height 0.25s linear; }

/* --- Reduzierte Bewegung: alles sichtbar, nichts wartet ----------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .enthuellung { opacity: 1 !important; transform: rotate(var(--rot, 0deg)) !important; }
  .faden-rot { height: 100% !important; }
  .station::before {
    background: var(--faden);
    border-color: #8e2e24;
    color: #fff;
  }
}

/* --- Größere Bildschirme ------------------------------------------ */

@media (min-width: 44rem) {
  .abschnitt { padding: 3.5rem 1.5rem; }

  .blatt { padding: 2.8rem 2.6rem 2.6rem; }

  .lebkuchen-innen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
  }

  .beweisfoto { margin-bottom: 0; }

  .eckdaten { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.2rem; }

  .ablauf { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

  .finale { min-height: 100svh; }
}

@media (min-width: 64rem) {
  /* Route mittig, Stationen im Wechsel links und rechts */
  .faden-basis, .faden-rot { left: calc(50% - 1px); }

  .pfoten { left: calc(50% + 1.4rem); }

  .stationen { padding: 1rem 0; }

  .station { width: calc(50% - 3.4rem); }

  .station:nth-child(even) { margin-left: auto; }

  .station + .station { margin-top: -0.5rem; }

  .station:nth-child(odd)::before  { left: auto; right: -4.65rem; }
  .station:nth-child(even)::before { left: -4.65rem; }

  .station-blatt { padding: 1.7rem 1.6rem 1.6rem; }

  .stimmung img { height: clamp(20rem, 55vh, 34rem); }
}
