/* Lesemappe: Papier, Wachsmalfarben, große Fibelschrift („Lesemappe Fibel“ = Andika mit glattem I, SIL Open Font License, tools/fibelschrift.py) */
@font-face { font-family: "Lesemappe Fibel"; src: url("../fonts/fibel-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lesemappe Fibel"; src: url("../fonts/fibel-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papier: #fffdf8;
  --karte: #ffffff;
  --tinte: #222226;
  --tinte2: #5a5752;
  --linie: #e7e1d6;
  --rot: #d6302a;
  --orange: #ee8826;
  --gelb: #f0d200;
  --gruen: #3a983c;
  --blau: #268ad0;
  --hellblau: #e3f1fb;
  --lila: #8876c6;
  --rosa: #e880a8;
  /* Silbenfarben: erste Silbe blau, zweite rot (wie in vielen Fibeln) */
  --silbe1: #1f6fb8;
  --silbe2: #c8302a;
  --radius: 22px;
  --schatten: 0 3px 0 rgba(34, 34, 38, .08), 0 10px 28px rgba(34, 34, 38, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 1.125rem/1.5 "Lesemappe Fibel", "Comic Sans MS", system-ui, sans-serif;
  font-feature-settings: "cv39" 1; /* l mit Haken unten wie in der Schulschrift, nicht mit I verwechselbar */
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 4px solid var(--gelb); outline-offset: 3px; border-radius: 10px; }

.seite { max-width: 980px; margin: 0 auto; padding: 16px 16px 80px; }

/* ── Kopf ─────────────────────────────────────────────── */
.kopf { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; }
.kopf a.zurueck {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--tinte2);
  background: var(--karte); border: 2px solid var(--linie); border-radius: 999px; padding: 6px 16px 6px 12px; font-weight: 700;
}
.kopf .platz { flex: 1; }
.pdf-knopf {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--tinte);
  background: var(--gelb); border-radius: 999px; padding: 8px 18px; box-shadow: 0 3px 0 #c9ae00;
}
.pdf-knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9ae00; }

/* ── Startseite ───────────────────────────────────────── */
.titelbild { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 6px; flex-wrap: wrap; }
.titelbild img.schrift { width: min(560px, 80vw); }
.titelbild img.sonne { width: 92px; }
.hallo { text-align: center; font-size: 1.6rem; margin: 4px 0 26px; min-height: 2.4rem; }
.hallo button { border: 0; background: none; color: var(--tinte2); font-size: 1rem; text-decoration: underline dotted; padding: 10px 8px; }

.lektionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.lektion-karte {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  text-decoration: none; color: inherit; background: var(--karte); border-radius: var(--radius); padding: 18px 14px 16px;
  box-shadow: var(--schatten); border: 3px solid transparent; transition: transform .15s;
}
.lektion-karte:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--gelb); }
.lektion-karte .gross { font-size: 4rem; font-weight: 700; line-height: 1; color: var(--rot); }
.lektion-karte .nr { font-size: .95rem; color: var(--tinte2); }
.lektion-karte .name { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.lektion-karte .sterne { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.lektion-karte .sterne img { width: 22px; }
.lektion-karte img.figur { height: 120px; width: auto; }
.lektion-karte.bald { opacity: .55; box-shadow: none; border: 3px dashed var(--linie); background: transparent; justify-content: center; }
.lektion-karte.bald:hover { transform: none; border-color: var(--linie); }
.lektion-karte.bald .gross { color: var(--tinte2); }
.hallo input { font: inherit; font-size: 1.3rem; border: 2px solid var(--linie); border-radius: 12px; padding: 2px 10px; width: 10em; }

.spielplatz-link {
  margin-top: 26px; display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--tinte);
  background: #fff7d1; border: 3px solid var(--gelb); border-radius: var(--radius); padding: 14px 22px; box-shadow: var(--schatten); transition: transform .15s;
}
.spielplatz-link:hover { transform: translateY(-3px) rotate(-.4deg); }
.spielplatz-link img.mo { width: 84px; flex: none; animation: hopsen 1.6s infinite; }
.spielplatz-link img.rutsche-bild { width: 110px; flex: none; margin-left: auto; }
.spielplatz-link > span { display: flex; flex-direction: column; }
.spielplatz-link strong { font-size: 1.8rem; line-height: 1.2; }
.spielplatz-link > span > span { color: var(--tinte2); }
@media (max-width: 620px) { .spielplatz-link img.rutsche-bild { display: none; } .spielplatz-link img.mo { width: 64px; } }
.eltern-hinweis {
  margin-top: 34px; background: var(--hellblau); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 16px; align-items: center;
}
.eltern-hinweis img { width: 80px; flex: none; }
.eltern-hinweis p { margin: 0 0 6px; }

/* ── Lektion: Kopf und Navigation ─────────────────────── */
.lektion-kopf { display: flex; align-items: center; gap: 16px; margin: 10px 0 12px; flex-wrap: wrap; }
.buchstabe {
  font-size: 4.2rem; font-weight: 700; line-height: 1; color: var(--rot);
  background: var(--karte); border-radius: 24px; padding: 8px 18px 14px; box-shadow: var(--schatten); transform: rotate(-3deg);
}
.lektion-kopf h1 { margin: 0; font-size: 2rem; line-height: 1.15; }
.lektion-kopf .unter { color: var(--tinte2); }
.laute { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.laute span { background: var(--karte); border: 2px solid var(--linie); border-radius: 12px; padding: 0 12px; font-size: 1.4rem; font-weight: 700; }
.laute span.bisher { border: 0; background: none; font-size: 1rem; font-weight: 400; color: var(--tinte2); align-self: center; padding: 0 4px; }

.reiter {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 10px; margin: 0 -2px 8px;
  background: linear-gradient(var(--papier) 82%, transparent); scrollbar-width: none;
}
.reiter::-webkit-scrollbar { display: none; }
.reiter a {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 6px 4px;
  text-decoration: none; color: var(--tinte2); font-size: .8rem; line-height: 1.2; text-align: center; border-radius: 16px; background: var(--karte); border: 2px solid var(--linie);
}
.reiter a img { height: 34px; width: auto; }
.reiter a.fertig { border-color: var(--gruen); background: #eef8ee; }
.reiter a.aktiv { border-color: var(--gelb); }

/* ── Abschnitte ───────────────────────────────────────── */
.abschnitt {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 20px 20px 24px; margin: 0 0 24px; scroll-margin-top: 92px;
}
.abschnitt > header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.abschnitt > header img { width: 56px; flex: none; }
.abschnitt h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.abschnitt .auftrag { margin: 0; color: var(--tinte2); }
details.eltern { margin: 14px 0 0; font-size: 1rem; color: var(--tinte2); }
details.eltern summary { cursor: pointer; font-weight: 700; color: var(--blau); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.eltern summary::-webkit-details-marker { display: none; }
details.eltern summary::before { content: "＋"; font-weight: 700; }
details.eltern[open] summary::before { content: "－"; }
details.eltern p { margin: 6px 0 0; background: var(--hellblau); padding: 10px 14px; border-radius: 14px; }

/* Silben in zwei Farben */
.wort { white-space: nowrap; }
.s1 { color: var(--silbe1); }
.s2 { color: var(--silbe2); }
.silbenbogen .s1, .silbenbogen .s2 { position: relative; }
.silbenbogen .s1::after, .silbenbogen .s2::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -.18em; height: .32em;
  border: 3px solid currentColor; border-top: 0; border-radius: 0 0 999px 999px; opacity: .55;
}

/* ── Bilder vorstellen ───────────────────────────────── */
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.bildkarte {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; min-height: 150px;
  border: 2px solid var(--linie); background: var(--karte); border-radius: 18px; padding: 10px 6px 8px;
}
.bildkarte img { height: 86px; width: auto; max-width: 100%; object-fit: contain; }
.bildkarte .wort { font-size: 2rem; line-height: 1.1; }
.bildkarte.lesbar { border-color: var(--gelb); }
.nur-eltern { display: none; font-size: 1rem; color: var(--tinte2); }
.abschnitt:has(details.eltern[open]) .nur-eltern { display: block; }

/* ── Rutschen ─────────────────────────────────────────── */
.rutschen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rutsche { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rutsche .buehne { position: relative; width: 100%; max-width: 330px; aspect-ratio: 940 / 780; }
.rutsche .buehne img { width: 100%; }
.rutsche .laut {
  position: absolute; transform: translate(-50%, -50%); font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 400;
  line-height: 1; transition: transform .25s, color .25s; color: var(--tinte);
}
.rutsche .laut.an { transform: translate(-50%, -50%) scale(1.45); color: var(--rot); }
.rutsche .kugel {
  position: absolute; width: 12%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -80%);
  background: radial-gradient(circle at 35% 35%, #ffe36b, var(--orange)); box-shadow: 0 2px 0 rgba(0,0,0,.15);
  opacity: 0; pointer-events: none;
}
.rutsche .ergebnis { font-size: 2.8rem; font-weight: 400; height: 4.4rem; display: flex; align-items: center; gap: 12px; }
.rutsche .ergebnis img { height: 62px; width: auto; }

/* ── große Knöpfe ─────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 10px 22px; font-weight: 700; font-size: 1.15rem; background: var(--blau); color: #fff; box-shadow: 0 4px 0 #1b6aa3;
}
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #1b6aa3; }
.knopf.gruen { background: var(--gruen); box-shadow: 0 4px 0 #2a7a2c; }
.knopf.gruen:active { box-shadow: 0 1px 0 #2a7a2c; }
.knopf.leise { background: var(--karte); color: var(--tinte2); border: 2px solid var(--linie); box-shadow: none; }
.knopf[hidden] { display: none; }
.knopf.rot { background: var(--rot); box-shadow: 0 4px 0 #9e231f; }
.knopf.rot:active { box-shadow: 0 1px 0 #9e231f; }
.zuruecksetzen { text-align: center; margin-top: 22px; font-size: 1rem; }
.zuruecksetzen .knopf { font-size: 1rem; padding: 8px 18px; }
.zuruecksetzen [data-sicher] { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.zuruecksetzen [hidden] { display: none !important; }
.vorlesen { border: 0; background: var(--hellblau); border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; flex: none; }
.ohne-stimme .vorlesen, .ohne-stimme [data-stimme] { display: none !important; }

/* ── Herzsätze ────────────────────────────────────────── */
.herzsaetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 26px; }
.herzsatz { display: grid; grid-template-columns: 1fr 64px 76px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 16px; }
.herzsatz .wort { font-size: 2.2rem; font-weight: 400; letter-spacing: .02em; }
.herzsatz .silbe-luecke { display: inline-block; width: .35em; }
.herzsatz button { border: 0; background: none; padding: 4px; border-radius: 14px; }
.herzsatz button img { width: 100%; }
.herzsatz .bild img { max-height: 68px; width: auto; margin: 0 auto; }
.herzsatz.gelesen { background: #fff4f4; }
/* Name ♥ Name: der zweite Name statt Bild, Lautsprecher dahinter */
.herzsaetze:has(.mit-wort) { grid-template-columns: 1fr; max-width: 560px; }
.herzsatz.mit-wort { grid-template-columns: 8rem 64px 1fr 46px; }
.herzsatz .ziel { font-size: 2.2rem; white-space: nowrap; }
.herzsatz .ziel .wort { font-size: inherit; }

/* Merkwort („ist“): hohle Buchstaben wie auf dem Leseblatt */
.merkwort { color: var(--karte); -webkit-text-stroke: .045em var(--tinte2); paint-order: stroke fill; font-weight: 700; letter-spacing: .04em; }

/* ── Wo ist wer? ──────────────────────────────────────── */
.istsaetze { display: flex; flex-direction: column; gap: 6px; }
.istsatz { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px; border-radius: 16px; }
.istsatz .satz { display: flex; align-items: center; flex-wrap: wrap; column-gap: .5em; font-size: 2.2rem; line-height: 1.3; }
.istsatz .silbe-luecke { display: inline-block; width: .35em; }
.istsatz .bild { border: 0; background: none; padding: 2px; border-radius: 14px; }
.istsatz .bild img { height: 64px; width: auto; }
.istsatz .satz > span:last-child { margin-left: -.45em; }
.istsatz .abhaken { border: 0; background: none; padding: 6px; border-radius: 50%; }
.istsatz .haken { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--linie); display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.istsatz.gelesen { background: #eef8ee; }
.istsatz.gelesen .haken { background: var(--gruen); border-color: var(--gruen); }

/* ── Monster ──────────────────────────────────────────── */
.monster-feld { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 20px; align-items: center; }
.monster-feld > img { width: 100%; }
.monster-reihen { display: flex; flex-direction: column; gap: 10px; }
.monster-reihe {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 2px solid var(--linie);
  background: var(--karte); border-radius: 18px; padding: 6px 16px; font-size: 2.1rem; font-weight: 400; letter-spacing: .04em;
}
.monster-reihe .haken { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--linie); flex: none; font-size: 1.2rem; display: grid; place-items: center; color: #fff; }
.monster-reihe.gelesen { border-color: var(--gruen); background: #eef8ee; }
.monster-reihe.gelesen .haken { background: var(--gruen); border-color: var(--gruen); }

/* ── Silbenflug ───────────────────────────────────────── */
/* über dem Teppich-Rahmen (der ragt für das Flugzeug nach oben), unter dem Flugzeug */
.flug-steuer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; position: relative; z-index: 1; }
.flug-zaehler { font-size: 1.4rem; font-weight: 700; }
.flug-leiste { flex: 1; min-width: 140px; height: 16px; background: var(--linie); border-radius: 999px; overflow: hidden; }
.flug-leiste span { display: block; height: 100%; width: 0; background: var(--blau); border-radius: 999px; transition: width .4s; }
.teppich-rahmen { position: relative; overflow-x: auto; padding: 52px 2px 8px; margin-top: -40px; }
.teppich { display: grid; grid-template-columns: repeat(12, minmax(46px, 1fr)); gap: 4px; min-width: 600px; }
.teppich button {
  border: 2px solid #d5cfc3; background: var(--karte); border-radius: 10px; font-size: 1.55rem; font-weight: 400; padding: 6px 0;
  transition: background .2s, transform .2s;
}
.teppich button.ziel { background: var(--gelb); border-color: var(--orange); transform: scale(1.18); position: relative; z-index: 2; }
.teppich button.war { background: #f4f1ea; }
.flieger { position: absolute; width: 84px; filter: saturate(1.8) drop-shadow(0 3px 2px rgba(0,0,0,.25)); pointer-events: none; z-index: 5; left: 0; top: 0; transform: translate(-90px, 0); transition: transform .9s cubic-bezier(.45, .05, .3, 1); }

/* ── Geschichte ───────────────────────────────────────── */
.geschichte { display: grid; grid-template-columns: 1fr minmax(120px, 200px); gap: 20px; align-items: start; }
.geschichte-text { font-size: 2.3rem; font-weight: 400; line-height: 1.9; }
.geschichte-text p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: .45em; }
.geschichte-text img { height: 1.5em; width: auto; display: inline-block; }
.geschichte-text img.herz { height: 1.1em; }
.geschichte-text .zeichen { margin-left: -.4em; } /* Punkt direkt hinter dem Bild */
.fragen { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.frage { border-top: 2px dashed var(--linie); padding-top: 14px; }
.frage-kopf { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.antworten { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.antworten button {
  border: 3px solid var(--linie); background: var(--karte); border-radius: 18px; padding: 8px 18px; min-width: 96px; min-height: 84px;
  font-size: 2rem; font-weight: 400; display: grid; place-items: center;
}
.antworten button img { height: 66px; width: auto; }
.antworten button.richtig { border-color: var(--gruen); background: #eef8ee; }
.antworten button.falsch { animation: wackeln .4s; }

/* ── Wörter bauen ─────────────────────────────────────── */
.bauen { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 20px; align-items: center; }
.bauen .bild img { max-height: 200px; width: auto; margin: 0 auto; }
.plaetze { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.plaetze span {
  width: 64px; height: 76px; border-bottom: 4px solid var(--tinte2); display: grid; place-items: center; font-size: 2.6rem; font-weight: 400;
}
.plaetze span.voll { border-color: var(--gruen); animation: plopp .3s; }
.steine { display: flex; gap: 10px; flex-wrap: wrap; }
.steine button {
  width: 64px; height: 70px; border-radius: 14px; border: 0; font-size: 2.4rem; font-weight: 400; color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.steine button:nth-child(4n+1) { background: var(--rot); }
.steine button:nth-child(4n+2) { background: var(--blau); }
.steine button:nth-child(4n+3) { background: var(--gruen); }
.steine button:nth-child(4n+4) { background: var(--lila); }
.steine button.weg { visibility: hidden; }
.steine button.falsch { animation: wackeln .4s; }
.bauen-fuss { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bauen-zaehler { color: var(--tinte2); }

/* ── Lesetage ─────────────────────────────────────────── */
.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 640px; }
.tage button { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tinte2); font-size: .95rem; }
.tage button img { width: 100%; max-width: 76px; transition: transform .2s; }
.tage button.an img { transform: rotate(-8deg) scale(1.05); }

/* ── Feiern ───────────────────────────────────────────── */
.jubel { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.jubel img { position: absolute; width: 46px; animation: fallen 1.6s ease-in forwards; }
.jubel img.super { width: min(420px, 80vw); left: 50%; top: 40%; transform: translate(-50%, -50%); animation: aufpoppen 1.6s ease-out forwards; }
@keyframes fallen { from { transform: translateY(-60px) rotate(0); opacity: 1; } to { transform: translateY(105vh) rotate(260deg); opacity: .9; } }
@keyframes aufpoppen { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes wackeln { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-3deg); } 75% { transform: translateX(8px) rotate(3deg); } }
@keyframes plopp { from { transform: scale(.5); } to { transform: scale(1); } }

.weiter { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ── Spielplatz ───────────────────────────────────────── */
details.spiel-auswahl { margin: 0 0 20px; }
.spiel-auswahl .auswahl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.spiel-auswahl label { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; color: var(--tinte); }
.spiel-auswahl input { width: 22px; height: 22px; }
.spiel-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.spiel-kacheln[hidden] { display: none; }
.spiel-kachel {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--tinte); text-align: center;
  background: var(--karte); border-radius: var(--radius); padding: 16px 10px; box-shadow: var(--schatten); border: 3px solid transparent;
  font-size: 1.25rem; font-weight: 700; line-height: 1.2; transition: transform .15s;
}
.spiel-kachel:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--gelb); }
.spiel-kachel img { height: 90px; width: auto; }
.spiel-kachel:nth-child(1) img { filter: hue-rotate(200deg); }
.spiel-kachel:nth-child(2) img { filter: hue-rotate(90deg) saturate(1.6); }
.spiel[hidden], .kopf a[hidden] { display: none; }
.runde { display: flex; gap: 4px; justify-content: center; margin-bottom: 12px; }
.runde img { width: 30px; }
.hinweis { color: var(--tinte2); margin: 0 0 8px; }
.spiel-fuss { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
.spiel-fuss.mitte { justify-content: center; }
.knopf.klein { padding: 4px 12px; font-size: .95rem; }
.wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.wahl button { border: 3px solid var(--linie); background: var(--karte); border-radius: 16px; padding: 4px; min-width: 56px; min-height: 56px; }
.wahl button img { height: 56px; width: auto; }
.wahl button.an { border-color: var(--gelb); background: #fffbe0; }
.fertig-box { text-align: center; padding: 20px 0; }
.fertig-box p { font-size: 2.2rem; font-weight: 700; margin: 8px 0 18px; }
.fertig-box .fertig-stern { width: 120px; margin: 0 auto; animation: plopp .5s; }
.fertig-box .knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.satz-zeile { display: flex; flex-wrap: wrap; align-items: center; column-gap: .45em; font-size: 2.4rem; line-height: 1.5; margin: 0; }
.satz-zeile .satz-bild { height: 1.6em; width: auto; display: inline-block; }
.satz-zeile .satz-herz { height: 1.1em; width: auto; display: inline-block; }
.satz-zeile .zeichen { margin-left: -.4em; }

/* Wort-Zauberer */
.zauber { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 24px; align-items: center; }
.zauber-bild { position: relative; display: grid; justify-items: center; gap: 8px; }
.zauber-bild img { max-height: 200px; width: auto; transition: filter .8s, transform .8s; }
.zauber-bild img.verzaubert { filter: hue-rotate(250deg) saturate(2.2) blur(.6px); transform: rotate(-8deg) scale(.92); animation: zittern 2.4s infinite; }
.zauber-bild img.entzaubert { animation: plopp .5s; }
.zauber-wort { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.zauber-buchstabe {
  min-width: 66px; height: 84px; border: 3px solid var(--linie); background: var(--karte); border-radius: 16px; font-size: 3rem; padding: 0 8px;
}
.zauber-buchstabe.gewaehlt { border-color: var(--lila); background: #f1edff; color: var(--lila); }
.zauber-buchstabe.geheilt { border-color: var(--gruen); background: #eef8ee; animation: plopp .4s; }
.zauber-buchstabe.falsch { animation: wackeln .4s; }
@keyframes zittern { 0%, 100% { transform: rotate(-8deg) scale(.92); } 50% { transform: rotate(6deg) scale(.95); } }

/* Monster-Pässe: Pass oben, darunter Mo und das Tor zur Wiese */
.pass {
  position: relative; width: fit-content; margin: 0 auto 14px; background: #fff7d1; border: 3px solid var(--gelb); border-radius: 16px;
  padding: 6px 26px 10px; box-shadow: 0 4px 0 rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; transform: rotate(-2deg);
}
.pass-kopf { font-size: .8rem; letter-spacing: .3em; color: var(--tinte2); font-weight: 700; }
.pass-name { font-size: 3.2rem; line-height: 1.1; }
.pass.falsch { animation: wackeln .4s; }
.stempel {
  position: absolute; right: -18px; top: -14px; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--gruen); color: var(--gruen);
  background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 2rem; font-weight: 700; transform: rotate(-14deg) scale(0); opacity: 0;
}
.pass.gestempelt .stempel { animation: stempeln .35s ease-out forwards; }
@keyframes stempeln { 0% { transform: rotate(-14deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }
.pass-buehne { position: relative; height: 260px; overflow: hidden; border-radius: 18px; background: linear-gradient(#fffdf8 78%, #efe7d6 78%); }
.tor {
  position: absolute; right: 7%; bottom: 10px; width: 190px; height: 225px; border: 14px solid var(--orange); border-bottom: 0;
  border-radius: 95px 95px 0 0; background: radial-gradient(ellipse at 50% 100%, #bfe6a8 0 45%, #e3f4d6 46% 100%);
}
.tor.funkeln { animation: plopp .4s; }
.pass-geher { position: absolute; left: 5%; bottom: 10px; z-index: 1; transform-origin: 50% 100%; }
.pass-monster { display: block; height: calc(185px * var(--groesse, 1)); width: auto; transform: scaleX(var(--spiegel, 1)); animation: hopsen 1.2s infinite; }
@keyframes hopsen { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Quatsch oder richtig? */
.quatsch { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.szene { display: flex; align-items: flex-end; justify-content: center; gap: 10px; background: var(--hellblau); border-radius: 22px; padding: 18px 26px; min-height: 190px; transition: transform .4s, opacity .4s; }
.szene[hidden] { display: none; }
.szene img { height: 150px; width: auto; }
.szene .szene-herz { height: 60px; align-self: center; }
.szene.ist img:first-child { height: 120px; }
.szene.quatsch { transform: rotate(-6deg) scale(.9); opacity: .4; }
.szene.so-richtig { background: #eef8ee; animation: plopp .4s; }
.daumen {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 130px; border: 3px solid var(--linie); background: var(--karte);
  border-radius: 20px; padding: 8px 18px; font-size: 1.2rem; font-weight: 700;
}
.daumen span:first-child { font-size: 2.6rem; line-height: 1.1; }
.daumen.richtig { border-color: var(--gruen); background: #eef8ee; }
.daumen.falsch { animation: wackeln .4s; }

/* Lies und spiel! */
.theater-karte { background: #fff7d1; border: 3px dashed var(--gelb); border-radius: 22px; padding: 26px 22px; display: flex; justify-content: center; transform: rotate(-1deg); }
.theater-karte .satz-zeile { font-size: 2.8rem; justify-content: center; }
#theater .szene { margin: 16px auto 0; width: fit-content; }

/* Kuscheltier-Radio */
.radio-wahl { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.wahl .wahl-text { font-size: 1.6rem; padding: 4px 14px; }
.radio { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 22px; align-items: start; }
.radio-buehne { position: relative; display: grid; justify-items: center; }
.radio-tier { max-height: 190px; width: auto; transform-origin: bottom center; }
.radio-tier.hoert { animation: nicken 1.6s infinite; }
.radio-geraet { display: flex; gap: 6px; margin-top: 6px; }
.radio-geraet span { width: 14px; height: 14px; border-radius: 50%; background: var(--linie); }
.radio-buehne:has(.hoert) .radio-geraet span { background: var(--rot); animation: blinken 1s infinite alternate; }
.radio-text { font-size: 2.1rem; line-height: 1.8; }
.radio-text h3 { margin: 0; }
.radio-text p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: .45em; }
.radio-text .satz-bild { height: 1.5em; width: auto; }
.radio-text .satz-herz { height: 1.1em; width: auto; }
.radio-text .zeichen { margin-left: -.4em; }
.aufnahmen { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.aufnahme { display: flex; align-items: center; gap: 12px; }
.aufnahme audio { display: none; }
@keyframes nicken { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 60% { transform: rotate(4deg); } }
@keyframes blinken { from { opacity: .35; } to { opacity: 1; } }

/* Fehlerdetektiv */
.detektiv { display: grid; grid-template-columns: minmax(100px, 170px) 1fr; gap: 20px; align-items: center; }
.detektiv-mo { width: 100%; }
.satz-wort { border: 3px solid transparent; background: none; border-radius: 14px; padding: 0 6px; font-size: inherit; line-height: 1.3; }
.satz-wort:hover { border-color: var(--linie); }
.satz-wort.gefunden { border-color: var(--rot); background: #fff0ef; }
.satz-wort.falsch { animation: wackeln .4s; }

/* Silbenbahn */
.bahn { display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.bahn-bild { display: flex; align-items: center; gap: 10px; }
.bahn-bild img { height: 150px; width: auto; }
.gleis { width: 100%; display: flex; justify-content: center; border-bottom: 6px solid var(--tinte2); padding-bottom: 14px; }
.zug { display: flex; align-items: flex-end; gap: 8px; transition: transform 1.5s ease-in; }
.zug.faehrt { transform: translateX(110vw); }
.lok { position: relative; width: 92px; height: 74px; background: var(--rot); border-radius: 12px 26px 8px 8px; }
.lok::before { content: ""; position: absolute; left: 10px; top: 10px; width: 30px; height: 26px; background: var(--hellblau); border-radius: 6px; }
.lok .schlot { position: absolute; right: 14px; top: -22px; width: 18px; height: 24px; background: var(--tinte2); border-radius: 4px 4px 0 0; }
.lok::after, .wagen::after {
  content: ""; position: absolute; bottom: -12px; left: 10px; right: 10px; height: 22px;
  background: radial-gradient(circle at 11px 11px, var(--tinte) 9px, transparent 10px) left / 22px 22px no-repeat,
              radial-gradient(circle at 11px 11px, var(--tinte) 9px, transparent 10px) right / 22px 22px no-repeat;
}
.wagen { position: relative; width: 104px; height: 74px; background: var(--gelb); border-radius: 10px; display: grid; place-items: center; }
.wagen:nth-child(odd) { background: #9fd3f5; }
.wagen-silbe { font-size: 2.4rem; background: var(--karte); border-radius: 10px; min-width: 76px; min-height: 52px; display: grid; place-items: center; border: 2px dashed var(--tinte2); }
.wagen.voll .wagen-silbe { border-style: solid; border-color: transparent; animation: plopp .3s; }
.silben-steine { justify-content: center; margin-top: 24px; }
.steine.silben-steine button { width: auto; min-width: 84px; padding: 0 12px; }
.zauber-steine button { font-size: 2.4rem; }

/* Buchstaben spuren */
.buchstaben-wahl button { font-size: 1.8rem; min-width: 56px; }
.spur-rahmen { display: flex; justify-content: center; margin-top: 12px; }
.spur { width: min(440px, 100%); aspect-ratio: 1; background: var(--karte); border-radius: 22px; border: 2px solid var(--linie); touch-action: none; user-select: none; }
.spur .linie { stroke: #c9c4b9; stroke-width: .5; }
.spur .linie.grund { stroke: var(--tinte2); stroke-width: .8; }
.spur .vorlage { fill: none; stroke: #e6e1d7; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.spur circle.vorlage { fill: #e6e1d7; stroke: none; }
.spur .gemalt { fill: none; stroke: var(--blau); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.spur .start { display: none; }
.spur .start circle { fill: #cfcac0; }
.spur .start text { font-size: 6px; font-weight: 700; fill: #fff; text-anchor: middle; }
.spur .start .pfeil { fill: none; stroke: #cfcac0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.spur .start.jetzt circle { fill: var(--gruen); }
.spur .start.jetzt .pfeil { stroke: var(--gruen); }
.spur .start.jetzt { display: inline; animation: blinken .9s infinite alternate; }
.spur .start.blinken circle { fill: var(--orange); }

@media (max-width: 620px) {
  .zauber, .radio, .detektiv { grid-template-columns: 1fr; }
  .zauber-bild img { max-height: 140px; }
  .zauber-buchstabe { min-width: 52px; height: 70px; font-size: 2.4rem; }
  .satz-zeile { font-size: 1.9rem; }
  .theater-karte .satz-zeile { font-size: 2.1rem; }
  .szene { padding: 14px; }
  .szene img { height: 105px; }
  .detektiv-mo { max-width: 110px; margin: 0 auto; }
  .radio-tier { max-height: 130px; }
  .radio-text { font-size: 1.8rem; }
  .wagen { width: 80px; }
  .wagen-silbe { min-width: 60px; font-size: 2rem; }
  .lok { width: 66px; }
  .pass-name { font-size: 2.6rem; }
  .pass-buehne { height: 210px; }
  .tor { right: 5%; width: 130px; height: 170px; border-width: 10px; }
  .pass-monster { height: calc(140px * var(--groesse, 1)); }
}

/* ── Elternseite ──────────────────────────────────────── */
.text { max-width: 720px; font-size: 1.1rem; }
.text h1 { font-size: 2.1rem; line-height: 1.2; }
.text h2 { font-size: 1.4rem; margin-top: 1.8em; }
.text li { margin-bottom: .5em; }
.text .kasten { background: var(--hellblau); border-radius: var(--radius); padding: 4px 20px; }
.text small, .fuss { color: var(--tinte2); font-size: .95rem; }
.fuss { text-align: center; margin-top: 40px; }
.fusszeile { text-align: center; color: var(--tinte2); font-size: .9rem; padding: 0 16px 28px; margin-top: -40px; }
.fusszeile a { color: var(--tinte2); }

@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .abschnitt { padding: 16px 14px 20px; border-radius: 18px; }
  .monster-feld, .geschichte, .bauen { grid-template-columns: 1fr; }
  .monster-feld > img { max-width: 150px; margin: 0 auto; }
  .geschichte > img { max-width: 150px; margin: 0 auto; order: -1; }
  .geschichte-text { font-size: 1.9rem; }
  .herzsatz .wort, .herzsatz .ziel { font-size: 2rem; }
  .istsatz .satz { font-size: 1.8rem; }
  .istsatz .bild img { height: 52px; }
  .bauen .bild img { max-height: 150px; }
  .plaetze span, .steine button { width: 54px; }
  .pdf-knopf span.lang { display: none; }
}

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

@media print {
  .reiter, .kopf, .fusszeile, .knopf, .vorlesen, details.eltern { display: none !important; }
}

/* Schulname unter dem Schriftzug; www.leseblatt.de mit der Liste der Schulen */
.titelbild h1 { display: flex; flex-direction: column; align-items: center; }
.schulname { font-size: 1.3rem; text-align: center; color: var(--tinte2); letter-spacing: .04em; }
.text.www { max-width: 860px; margin: 0 auto; }
.text.www .einleitung { font-size: 1.3rem; text-align: center; }
.schul-karte .gross { font-size: 2.6rem; overflow-wrap: anywhere; }
.schul-karte .name { font-size: 1.1rem; }
