/* 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; }

/* hidden gilt immer, auch bei Elementen mit eigener display-Regel (.steine, .plaetze …) */
[hidden] { display: none !important; }

: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%; scrollbar-gutter: stable; }
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-variant-ligatures: none; /* ff, fi, fl als einzelne Buchstaben, wie das Kind sie schreibt */
  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; -webkit-user-select: none; user-select: none; }
/* Kinderfinger drücken lange und rutschen ab: Beim Üben wird nichts markiert. Eingabefelder bleiben frei, sonst lässt sich in Safari nicht tippen. Zoomen mit zwei Fingern bleibt. */
[data-lektion], [data-spielplatz] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
[data-lektion] img, [data-spielplatz] img { -webkit-user-drag: none; }
[data-lektion] input, [data-lektion] textarea, [data-spielplatz] input, [data-spielplatz] textarea { -webkit-user-select: text; user-select: text; }
: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; }
/* Lesepass: wie der Pass im Monsterpass-Spiel, mit dem Namen des Kindes */
/* Seitlicher Innenabstand: Der Stempel ragt gedreht über die Ecke des Passes, er darf nicht über den Bildschirmrand */
.hallo { text-align: center; max-width: 512px; margin: 12px auto 26px; padding: 0 16px; }
.lesepass {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 22px 14px 14px; text-align: left; background: #fff7d1;
  border: 3px solid var(--orange); border-radius: 16px; box-shadow: 0 4px 0 rgba(0,0,0,.08); transform: rotate(-1.5deg);
}
.hallo .lesepass-mo { flex: none; padding: 0; border: 0; background: none; border-radius: 16px; }
.lesepass-mo img { display: block; width: 104px; height: auto; }
.lesepass-mo.neu img { animation: mo-hopsen .3s ease-out; }
@keyframes mo-hopsen { 50% { transform: translateY(-8px) scale(1.06); } }
.lesepass-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lesepass-name { font-size: 2.6rem; line-height: 1.15; min-height: 1.3em; overflow-wrap: anywhere; border-bottom: 3px solid var(--blau); }
.lesepass-name.lang { font-size: 1.9rem; }
.lesepass-name.sehr-lang { font-size: 1.4rem; }
.lesepass-stempel {
  position: absolute; right: -12px; bottom: -16px; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--rot); color: var(--rot);
  background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 2rem; font-weight: 700; transform: rotate(-14deg); animation: stempeln .35s ease-out .5s backwards;
}
.hallo button { border: 0; background: none; color: var(--tinte2); font-size: 1rem; text-decoration: underline dotted; padding: 10px 8px; }

/* Fibel-Mappe: Reihenfolge und Hinweis „nicht vom Verlag“ über den Leseblättern, klein, für Eltern */
.fibel-oben { max-width: 640px; margin: -10px auto 22px; padding: 0 16px; text-align: center; font-size: .95rem; line-height: 1.5; color: var(--tinte2); }
.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 .gross.viele { font-size: 1.8rem; line-height: 1.15; min-height: 4rem; display: flex; align-items: center; }
.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: 100%; }

.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 > div { min-width: 0; overflow-wrap: anywhere; } /* sonst schiebt ein langes Wort den Kasten auf schmalen Handys über den Rand */
.eltern-hinweis p { margin: 0 0 6px; }
.eltern-hinweis p.fibel-hinweis { font-size: .95rem; color: var(--tinte2); }
/* Als App installieren (nur im Browser, nicht in der App) und Fortschritt übertragen */
.app-hinweis { margin-top: 16px; background: #fff8dc; }
.app-hinweis img.app-stern { width: 64px; }
.app-hinweis .knopf { font-size: 1rem; padding: 8px 18px; }
.app-status { text-align: center; color: var(--tinte2); font-size: .95rem; margin: 14px 0 0; }

/* Ladebildschirm der App: liegt über der Startseite, bis die Lesemappe für unterwegs geladen ist (lesemappe.js) */
.ladeschirm { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: var(--papier); text-align: center; transition: opacity .35s; }
.ladeschirm.spaet { animation: lade-auf .3s; }
.ladeschirm.geht { opacity: 0; pointer-events: none; }
.lade-buehne { display: grid; justify-items: center; gap: 20px; width: min(100%, 440px); }
.lade-mo { position: relative; display: grid; place-items: center; width: min(46vw, 30vh, 240px); margin: 40px 0 6px; }
.lade-mo > * { grid-area: 1 / 1; }
/* Mo nickt langsam ein und schreckt kurz hoch */
.lade-doest { width: 100%; transform-origin: 50% 92%; animation: lade-doesen 3.6s ease-in-out infinite; transition: opacity .2s, transform .25s; }
/* er träumt von den ersten Lauten der Mappe: sie steigen einer nach dem anderen auf */
.lade-traum {
  position: relative; left: 46%; top: -44%; font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1; opacity: 0;
  animation: lade-traeumen 3.6s ease-out infinite; animation-delay: calc(var(--i) * 1.2s);
}
.lade-text { margin: 0; min-height: 3em; max-width: 21em; font-size: 1.2rem; line-height: 1.5; color: var(--tinte2); }
.lade-balken { width: min(100%, 300px); height: 16px; border-radius: 999px; background: var(--linie); overflow: hidden; }
.lade-balken span { display: block; width: 4%; height: 100%; border-radius: 999px; background: var(--gruen); transition: width .5s ease-out; }
.ladeschirm .knopf { font-size: 1rem; padding: 8px 18px; }
/* Am Ende: Mo macht dem App-Symbol Platz, es hüpft herein, und Sterne funkeln darum */
.lade-symbol { width: 104%; max-width: none; border-radius: 22%; box-shadow: 0 6px 0 rgba(34, 34, 38, .1); opacity: 0; }
.lade-funke { position: relative; width: 22%; opacity: 0; --w: calc(var(--i) * 60deg + 20deg); }
.ladeschirm.fertig .lade-doest { animation: none; opacity: 0; transform: scale(.6); }
.ladeschirm.fertig .lade-traum { animation: none; }
.ladeschirm.fertig .lade-symbol { opacity: 1; animation: lade-huepfen 1.1s cubic-bezier(.3, .7, .4, 1) both; }
.ladeschirm.fertig .lade-funke { animation: lade-funkeln .9s ease-out both; animation-delay: calc(var(--i) * 70ms + .2s); }
@keyframes lade-auf { from { opacity: 0; } }
@keyframes lade-doesen {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  62% { transform: rotate(7deg) translateY(5%); }
  70% { transform: rotate(8deg) translateY(6%); }
  78% { transform: rotate(-4deg) translateY(-1%); }
}
@keyframes lade-traeumen {
  0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(-10deg); }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(20% + var(--i) * 90%), -230%) scale(1.15) rotate(12deg); }
}
@keyframes lade-huepfen {
  0% { transform: translateY(8%) scale(.2); }
  30% { transform: translateY(-20%) scale(.98, 1.06); }
  50% { transform: translateY(0) scale(1.08, .93); }
  68% { transform: translateY(-8%) scale(.99, 1.02); }
  84% { transform: translateY(0) scale(1.03, .98); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes lade-funkeln {
  0% { opacity: 0; transform: rotate(var(--w)) translateY(-150%) scale(.2); }
  35% { opacity: 1; transform: rotate(var(--w)) translateY(-290%) scale(1); }
  100% { opacity: 0; transform: rotate(var(--w)) translateY(-380%) scale(.5); }
}
/* ohne Bewegung: Mo schläft still, die drei Laute stehen schräg über ihm, das Symbol erscheint ohne Hüpfen */
@media (prefers-reduced-motion: reduce) {
  .lade-doest, .lade-traum { animation: none; }
  .lade-traum { opacity: 1; transform: translate(calc(var(--i) * 75%), calc(var(--i) * -70%)); }
  .ladeschirm.fertig .lade-traum { opacity: 0; }
}
.uebertragen { margin: 22px auto 0; max-width: 640px; font-size: 1rem; }
.uebertragen summary { cursor: pointer; text-align: center; color: var(--tinte2); }
.uebertragen p { margin: 10px 0; }
.uebertragen textarea { width: 100%; box-sizing: border-box; font: .85rem/1.3 ui-monospace, monospace; padding: 8px; border: 2px solid var(--linie); border-radius: 10px; background: var(--karte); }
.uebertragen [data-code-uebernehmen] { margin-top: 8px; }
.uebertragen [data-sicher] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uebertragen .knopf { font-size: 1rem; padding: 8px 18px; }
@media (max-width: 620px) { .app-hinweis { flex-direction: column; text-align: center; } }

/* ── 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); }
/* Silbenfarbe als Brücke am Anfang: auf späten Blättern nur lange Wörter (silben-sparsam), Eltern können es einstellen */
html:not(.silben-an) .silben-sparsam .wort:not(.lang) :is(.s1, .s2),
html.silben-lang .wort:not(.lang) :is(.s1, .s2),
html.silben-aus .wort :is(.s1, .s2) { color: inherit; }
/* ohne Farbe auch ohne Lücke: schwarz mit Lücke sähe aus wie zwei Wörter („Mi lo“) */
html:not(.silben-an) .silben-sparsam .wort:not(.lang) .silbe-luecke,
html.silben-lang .wort:not(.lang) .silbe-luecke,
html.silben-aus .wort .silbe-luecke { display: none; }
.einstellung { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.einstellung button { border: 2px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 1rem; }
.einstellung button[aria-pressed="true"] { border-color: var(--blau); background: var(--hellblau); font-weight: 700; }
.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); }
.bildkarte.breit { grid-column: span 2; }
.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; }
.text a.knopf { text-decoration: none; margin: 0 8px 8px 0; }
.knopf[hidden] { display: none; }
/* erscheint später, hält seinen Platz aber schon frei, damit die Knöpfe daneben nicht springen */
.knopf.bleibt[hidden] { display: inline-flex !important; visibility: hidden; }
.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: Die Stimme des Geräts liest vor. .abspielen: eine Aufnahme des Kindes (Radio), die gibt es auch ohne Stimme. */
.vorlesen, .abspielen { 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 96px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 16px; }
.herzsatz .wort { font-size: 2.2rem; font-weight: 400; letter-spacing: .02em; }
/* schmaler als ein Wortabstand, sonst zerfällt „Plansch be cken“ in drei Wörter */
.herzsatz .silbe-luecke { display: inline-block; width: .2em; }
.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), .herzsaetze:has(.mit-mag) { grid-template-columns: 1fr; max-width: 620px; }
.herzsatz.mit-wort { grid-template-columns: 8rem 64px 1fr 46px; }
.herzsatz.mit-mag { grid-template-columns: 8rem 5.5rem 1fr 46px 56px; }
.herzsatz .mag .wort { font-size: 2.2rem; }
.herzsatz .ziel { font-size: 2.2rem; white-space: nowrap; }
.herzsatz .ziel .wort { font-size: inherit; }
.herzsatz .ziel-bild .bild img { max-height: 60px; width: auto; }
.herzsatz .ziel-bild .bild { padding: 0; }
.herzsatz .ziel-bild .bild img { max-height: 60px; width: auto; }
.herzsatz .ziel-bild .bild { padding: 0; }

/* 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; min-width: 0; flex: 1 1 auto; }
.istsatz .silbe-luecke { display: inline-block; width: .2em; }
/* Bild und Punkt bleiben zusammen, sonst steht der Punkt am Handy allein in der nächsten Zeile */
.istsatz .ende { white-space: nowrap; }
/* lesbarer Ort als Wort: sieht aus wie die anderen Wörter, Antippen liest den Satz */
.istsatz .ort-wort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.istsatz .bild { border: 0; background: none; padding: 2px; border-radius: 14px; }
.istsatz .bild img { height: 64px; width: auto; }
.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; }
.flug-buehne { position: relative; } /* trägt das Flugzeug, ohne zu scrollen */
/* Seitlich Platz für die vergrößerte Zielsilbe am Rand, sonst schneidet der Scrollbereich sie ab */
.teppich-rahmen { position: relative; overflow-x: auto; padding: 52px 8px 10px; margin: -40px -6px 0; }
.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:not(.ziel) { background: #f4f1ea; } /* landet das Flugzeug erneut auf einer gelesenen Silbe, ist sie wieder gelb */
.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; }
/* Mehrzahl: dasselbe Bild zweimal, leicht versetzt („Mila mag Enten.“) */
.zwei { display: inline-flex; align-items: flex-end; gap: .12em; }
.geschichte-text .zwei img { height: 1.25em; }
.herzsatz .bild.zwei img { max-height: 44px; }
.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: start; }
.bauen .bild img { max-height: 200px; width: auto; margin: 0 auto; }
.plaetze { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.plaetze span {
  min-width: 64px; height: 76px; padding: 0 6px; 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; }
/* gehört richtig, geschrieben anders (t für d, k für ck): die Schreibung steht in Blau da, damit das Kind sie sieht */
.plaetze span.anders { color: var(--blau); text-decoration: underline dotted; text-underline-offset: .18em; }
/* erster Stein eines Lauts aus zwei Steinen (n von nk) */
.plaetze span.halb { color: var(--tinte2); border-style: dashed; }
.plaetze.verdeckt span { color: transparent; border-color: var(--tinte2); }
.steine { display: flex; gap: 10px; flex-wrap: wrap; }
.steine button {
  width: auto; min-width: 64px; height: 70px; padding: 0 12px; border-radius: 14px; border: 0; font-size: 2.2rem; 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 .bild .vorlesen { display: block; margin: 8px auto 0; }
.bauen .spiel-fuss, .zauber .spiel-fuss { justify-content: flex-start; }
.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; } }
/* Weihnachtszeit (browser/geraete/jubel.js): Flocken rieseln und treiben zur Seite, der Schlitten fährt einmal durchs Bild */
.jubel img.flocke { animation: rieseln 2.4s linear both; }
.jubel img.schlitten { width: min(380px, 62vw, 42vh); left: 0; top: 5%; animation: schlittenfahrt 3s .2s linear both; }
@keyframes rieseln {
  from { transform: translate(0, -80px) rotate(0); }
  50% { transform: translate(var(--treiben, 30px), 50vh) rotate(70deg); }
  to { transform: translate(0, 106vh) rotate(140deg); }
}
@keyframes schlittenfahrt {
  from { transform: translate(-105%, 3vh) rotate(-5deg); }
  30% { transform: translate(calc(30.6vw - 73.5%), -1vh) rotate(1deg); }
  65% { transform: translate(calc(66.3vw - 36.75%), 2vh) rotate(3deg); }
  to { transform: translate(102vw, -3vh) rotate(-6deg); }
}
@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[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: start; }
.zauber-unten { min-height: 70px; }
.zauber .spiel-fuss { margin-top: 0; }
.zauber-bild .vorlesen[hidden], .bahn-bild .vorlesen[hidden] { display: block !important; visibility: hidden; }
.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 { max-width: 100%; }
.szene img { height: 150px; width: auto; min-width: 0; max-width: 100%; object-fit: contain; } /* breite Bilder schrumpfen statt über den Rand */
.szene .szene-herz { height: 60px; align-self: center; }
.szene.ist img:first-child { height: 120px; }
.szene.ist-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: start; }
.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; }
.bahn-unten { margin-top: 24px; text-align: center; }
.bahn-unten .spiel-fuss { margin-top: 10px; }
.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; }
.auf-papier { text-align: center; font-weight: 700; color: var(--gruen); margin: 10px 0 0; }
.auf-papier[hidden] { display: block !important; visibility: hidden; }
.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); }

/* Monster-Klappbuch: links das Buch aus Pappe mit Spirale, rechts der Name auf einer Karte wie der Pass der Monster-Pässe */
.klapp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px 34px; align-items: center; }
.klapp-buch {
  position: relative; display: grid; gap: 6px; width: min(100%, 78vh); margin-left: 14px; padding: 12px 12px 12px 26px; background: #c9a672;
  border-radius: 16px; rotate: -1.2deg; box-shadow: 0 3px 0 #9c7a49, 0 22px 30px -18px rgba(70, 45, 5, .5); container-type: inline-size;
}
.klapp-spirale {
  position: absolute; left: -14px; top: 20px; bottom: 20px; width: 46px; z-index: 6; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='30' viewBox='0 0 46 30'%3E%3Cellipse cx='34' cy='15' rx='4.6' ry='5.6' fill='%233b2f22'/%3E%3Cpath d='M34 13C24 4 5 6 5 15c0 9 19 11 28 3' fill='none' stroke='%23767b84' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M31 10.5C23 5.5 9 7 7.5 13' fill='none' stroke='%23d5d9df' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y left top / 46px 30px;
}
.klapp-streifen { position: relative; aspect-ratio: 1000 / 320; perspective: 2800px; perspective-origin: 0 50%; touch-action: pan-y; cursor: pointer; }
.klapp-streifen.klappt { z-index: 3; }
.klapp-blatt {
  position: absolute; inset: 0; display: grid; grid-template-columns: 80% 20%; background: var(--papier); border-radius: 3px 12px 12px 3px;
  overflow: hidden; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.klapp-blatt img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* die Silbe steht rechts neben dem Bild; längere (Scha, Pfau) werden kleiner, damit sie in die Spalte passen */
.klapp-silbe { align-self: start; margin-top: 16%; text-align: center; font-weight: 700; line-height: 1; font-size: 1.5rem; font-size: calc(8.6cqw * 2.3 / max(2.3, var(--zeichen, 2))); }
.klapp-schatten { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(50, 30, 5, .04), rgba(50, 30, 5, .5)); }
.klapp-blatt.unten .klapp-schatten { background: linear-gradient(90deg, rgba(50, 30, 5, .5), rgba(50, 30, 5, 0) 75%); }
.klapp-griff { position: absolute; z-index: 4; right: 2%; bottom: 9%; width: 16%; display: flex; justify-content: space-between; }
.klapp-pfeil { width: 44%; aspect-ratio: 1; padding: 0; display: grid; place-items: center; border: 2px solid var(--tinte); border-radius: 50%; background: var(--karte); }
.klapp-pfeil::before { content: ""; width: 30%; aspect-ratio: 1; border: solid var(--tinte); border-width: 0 3px 3px 0; transform: translateX(-18%) rotate(-45deg); }
.klapp-pfeil.zurueck::before { transform: translateX(18%) rotate(135deg); }
.klapp-pfeil:hover { background: var(--gelb); }
.klapp-seite { display: grid; gap: 14px; justify-items: start; }
.klapp-name {
  position: relative; background: #fff7d1; border: 3px solid var(--gelb); border-radius: 16px; padding: 4px 24px 8px; rotate: -1.5deg;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08); transition: opacity .2s;
}
.klapp-name .wort { font-size: clamp(2.5rem, 5.4vw, 3.4rem); line-height: 1.15; }
.klapp-name.mischt { opacity: .35; }
.klapp-stempel {
  position: absolute; right: -18px; top: -18px; padding: 2px 10px; border: 4px solid var(--gruen); border-radius: 12px; color: var(--gruen);
  background: rgba(255, 255, 255, .9); font-weight: 700; font-size: 1.05rem; line-height: 1.3; transform: rotate(-14deg) scale(0); opacity: 0;
}
.klapp-name.gestempelt .klapp-stempel { animation: stempeln .35s ease-out forwards; }
.klapp .hinweis { margin: 0; }
.klapp .spiel-fuss { margin-top: 4px; justify-content: flex-start; }
.klapp .knopf:disabled { opacity: .45; cursor: default; }

/* Buchstabensuppe: karierte Tischdecke, links der Teller, rechts Bildkarte und Löffel */
.suppe-tisch {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px 26px; align-items: center; padding: 18px; border-radius: 18px;
  background-color: var(--papier); background-size: 56px 56px;
  background-image: linear-gradient(90deg, rgba(214, 48, 42, .19) 50%, transparent 50%), linear-gradient(rgba(214, 48, 42, .19) 50%, transparent 50%);
}
.suppe-teller { position: relative; aspect-ratio: 1; width: min(100%, 66vh); justify-self: center; }
/* Porzellan und Brühe als deckende Flächen unter der Schraffur, damit die Tischdecke nicht durchscheint */
.suppe-teller::before, .suppe-teller::after { content: ""; position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.suppe-teller::before { width: 91%; background: #fffefb; box-shadow: 0 10px 22px rgba(110, 30, 20, .26); }
.suppe-teller::after { width: 70.2%; background: #f8c173; }
.suppe-teller-bild { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* die Brühe liegt über Löffel und Bildkarte (z-index), damit eine Nudel beim Ziehen und im Flug nicht dahinter verschwindet */
.suppe-bruehe { --n: 42px; position: absolute; left: 15%; top: 15%; width: 70%; aspect-ratio: 1; z-index: 4; border-radius: 50%; touch-action: none; }
.suppe-wirbel { position: absolute; inset: 9%; width: 82%; height: 82%; opacity: .2; pointer-events: none; }
/* Ort und Drehung setzt das Skript (transform), gemessen von der Tellermitte */
.suppe-nudel, .suppe-einlage { position: absolute; left: 50%; top: 50%; will-change: transform; }
.suppe-nudel {
  display: grid; place-items: center; min-width: calc(var(--n) * 1.22); height: calc(var(--n) * 1.22); padding: 0 calc(var(--n) * .1); border: 0;
  border-radius: 999px; background: none; font-weight: 700; font-size: var(--n); line-height: 1; color: #fff3cf; cursor: grab; touch-action: none;
  /* brauner Rand um die Nudel, damit sie auf der Brühe gut zu lesen ist */
  text-shadow: .055em 0 0 #6a370c, -.055em 0 0 #6a370c, 0 .055em 0 #6a370c, 0 -.055em 0 #6a370c,
    .04em .04em 0 #6a370c, -.04em .04em 0 #6a370c, .04em -.04em 0 #6a370c, -.04em -.04em 0 #6a370c, 0 .12em .08em rgba(90, 40, 0, .35);
}
.suppe-nudel span { display: block; pointer-events: none; transition: transform .12s; }
.suppe-nudel.gegriffen { cursor: grabbing; z-index: 5; }
.suppe-nudel.gegriffen span { transform: scale(1.22); }
.suppe-nudel.fliegt { z-index: 5; pointer-events: none; }
.suppe-nudel.neu span { animation: plopp .4s; }
.suppe-nudel.nein span { animation: wackeln .4s; }
.suppe-nudel.weg { opacity: 0; pointer-events: none; transition: opacity .3s; }
.suppe-einlage { width: calc(var(--n) * var(--faktor, 1.2) * 1.05); max-width: none; pointer-events: none; }
.suppe-gedeck { position: relative; z-index: 3; display: grid; gap: 16px; justify-items: center; align-content: center; }
.suppe-karte { position: relative; width: min(48%, 200px); padding: 10px 10px 8px; background: var(--karte); border-radius: 10px; box-shadow: 0 3px 10px rgba(110, 30, 20, .26); rotate: -4deg; }
.suppe-karte img { width: 100%; aspect-ratio: 5 / 6; object-fit: contain; }
.suppe-karte.wechsel img { animation: plopp .35s; }
.suppe-karte .vorlesen { position: absolute; right: -20px; bottom: -16px; box-shadow: 0 2px 6px rgba(110, 30, 20, .25); }
.suppe-loeffel { position: relative; width: 100%; aspect-ratio: 900 / 331; container-type: inline-size; }
.suppe-loeffel > img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* die Laffe liegt links: dort hat das Wort Platz; lange Wörter werden kleiner */
.suppe-plaetze {
  position: absolute; left: 5.5%; width: 49%; top: 12%; height: 76%; display: flex; align-items: center; justify-content: center; gap: .1em;
  font-weight: 700; line-height: 1; font-size: 1.6rem; font-size: calc(10.6cqw * min(1, 4.4 / var(--laenge, 4)));
}
.suppe-platz { display: grid; place-items: center; min-width: .66em; height: 1.24em; border-bottom: .08em solid #74747e; }
.suppe-platz.voll { border-bottom-color: transparent; animation: plopp .25s; }
.suppe-platz.anders { color: var(--blau); text-decoration: underline dotted; text-underline-offset: .18em; }
.suppe-platz.halb { color: var(--tinte2); border-bottom-style: dashed; }
.suppe-plaetze.ganz { gap: 0; }
.suppe-plaetze.ganz .suppe-platz { min-width: 0; }
.suppe-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.suppe-unten .hinweis { flex: 1 1 14em; margin: 0; }

@media (max-width: 620px) {
  .zauber, .radio, .detektiv { grid-template-columns: 1fr; }
  .detektiv .hinweis { min-height: 3.2em; }
  .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)); }
  .klapp, .suppe-tisch { grid-template-columns: minmax(0, 1fr); }
  .klapp-buch { width: auto; margin-left: 12px; padding: 10px 10px 10px 20px; gap: 5px; border-radius: 12px; rotate: -1deg; }
  .klapp-spirale { left: -12px; top: 16px; bottom: 16px; width: 38px; background-size: 38px 25px; }
  /* schmal: nur der Pfeil nach vorn, zurück geht es mit Wischen */
  .klapp-pfeil.zurueck { display: none; }
  .klapp-griff { justify-content: center; width: 20%; right: 0; bottom: 7%; }
  .klapp-pfeil { width: 34px; }
  .klapp-silbe { margin-top: 12%; }
  .klapp-seite { justify-items: center; text-align: center; }
  .klapp .spiel-fuss { justify-content: center; }
  .suppe-tisch { padding: 12px; }
  .suppe-teller { width: min(100%, 58vh); }
  /* schmal: die Bildkarte lehnt unten links am Teller, wo der runde Teller die Ecke frei lässt; der Löffel liegt darunter */
  .suppe-gedeck { gap: 0; justify-items: start; }
  .suppe-karte { width: 27%; margin-top: -24%; padding: 6px 6px 4px; border-radius: 8px; rotate: -6deg; }
  .suppe-karte .vorlesen { right: -30px; bottom: -8px; width: 40px; height: 40px; font-size: 1.2rem; }
  .suppe-loeffel { margin-top: 4px; }
}

/* ── 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; }
.kurz { font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
.kurz-schritte { list-style: none; padding: 0; }
.kurz-schritte li, .kurz-zeile { display: flex; gap: 14px; align-items: center; margin-bottom: .9em; }
.kurz-schritte img, .kurz-zeile img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.kurz-zeile p { margin: 0; }
.ungeprueft { background: #fffbe0; border-radius: 12px; padding: 8px 14px; color: var(--tinte2); }
.sprachen { font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.8; }
.sprachwahl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sprachwahl a { display: block; background: var(--karte); border-radius: 16px; box-shadow: var(--schatten); padding: 14px; text-align: center; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.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; }
  /* Wer mag was?: kein festes Spaltenraster, der Satz fließt; zwischen Wörtern deutlich mehr Abstand als zwischen
     Silben, damit „Pi a mag So cken“ nicht wie „Pi amag“ aussieht. Vorlesen und Herz rechts, sonst in der Zeile darunter */
  .herzsatz.mit-mag, .herzsatz.mit-wort { display: flex; flex-wrap: wrap; align-items: center; column-gap: .6em; row-gap: 2px; }
  .herzsatz.mit-mag .wort, .herzsatz.mit-mag .ziel, .herzsatz.mit-wort .wort, .herzsatz.mit-wort .ziel { font-size: 1.8rem; }
  .herzsatz .silbe-luecke { width: .22em; }
  .herzsatz.mit-mag > button, .herzsatz.mit-wort > button { flex: none; width: 48px; }
  /* Knöpfe immer in eigener Zeile rechts unter dem Satz (::after erzwingt den Umbruch) */
  .herzsatz.mit-mag::after, .herzsatz.mit-wort::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .herzsatz.mit-mag > button, .herzsatz.mit-wort > .vorlesen { order: 2; }
  .herzsatz.mit-mag > .vorlesen, .herzsatz.mit-wort > .vorlesen { margin-left: auto; }
  /* Silbenflug: Zellen umbrechen statt 12 Spalten mit Querscrollen und abgeschnittenen Silben */
  .teppich { min-width: 0; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .teppich button { font-size: 1.4rem; }
  .istsatz .satz { font-size: 1.8rem; }
  .istsatz .bild img { height: 52px; }
  .bauen .bild img { max-height: 150px; }
  .plaetze span, .steine button { min-width: 48px; }
  .pdf-knopf span.lang { display: none; }
}

/* ── Weihnachtszeit ───────────────────────────────────── */
/* Vom ersten Advent bis zum 26.12. setzt lesemappe.js „weihnachten“ an <html> (browser/gemeinsam/weihnachten.js).
   Die Seiten sind für das ganze Jahr gebaut: Was es nur dann gibt, heißt .zur-weihnachtszeit; was dann weicht, .sonst. */
html:not(.weihnachten) .zur-weihnachtszeit, html.weihnachten .sonst { display: none !important; }

/* Startseite: der Weg zum Adventskalender, unter dem zum Spielplatz */
.spielplatz-link.advent-link { margin-top: 14px; background: #fdecea; border-color: var(--rot); }
.spielplatz-link.advent-link img.baum { width: 64px; flex: none; }

/* Monster-Pässe: Lichterkette am Tor; die rote Mütze liegt über dem umgefärbten Monster */
html.weihnachten .tor::before {
  content: ""; position: absolute; inset: -11px -11px 0; border: 8px dotted #fff3a0; border-bottom: 0; border-radius: 92px 92px 0 0;
  filter: drop-shadow(0 0 3px #ffc400); animation: blinken 1.1s ease-in-out infinite alternate;
}
.pass-muetze { position: absolute; left: 0; top: 0; }

/* Silbenschlitten: Schlitten statt Wagen, das Rentier statt der Lok, Schnee statt Gleis */
html.weihnachten .gleis { border-bottom-color: #cfe4f5; }
html.weihnachten .lok { width: 100px; height: 118px; background: none; border-radius: 0; margin-bottom: -10px; }
html.weihnachten .lok::before, html.weihnachten .lok::after { content: none; }
html.weihnachten .lok img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
html.weihnachten .wagen { background: #f8d9d6; border-radius: 10px 10px 4px 4px; margin-bottom: 4px; }
html.weihnachten .wagen:nth-child(odd) { background: #d3ebcd; }
/* zwei Streben und die Kufe, vorn hochgebogen */
html.weihnachten .wagen::before {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -10px; height: 10px;
  background: linear-gradient(var(--orange), var(--orange)) left / 5px 100% no-repeat, linear-gradient(var(--orange), var(--orange)) right / 5px 100% no-repeat;
}
html.weihnachten .wagen::after {
  left: 2px; right: -8px; bottom: -15px; height: 14px; background: none; border: 5px solid var(--orange); border-top: 0; border-left: 0; border-radius: 0 0 14px 0;
}

/* Buchstabenplätzchen: Blech und Backpapier unter der Schraffur, die Laute als gebackene Plätzchen */
html.weihnachten .suppe-teller::before { background: #cfcfd6; }
html.weihnachten .suppe-teller::after { background: #fff8e8; }
html.weihnachten .suppe-nudel { color: #dfa257; }

/* Kuscheltier-Radio */
.aufnahme { flex-wrap: wrap; }
.radio-geschenk { text-align: center; margin: 14px 0 0; }

/* Mos Adventskalender: links der Baum, rechts die Türchen */
.advent { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 14px 26px; align-items: center; }
.advent-baum { position: relative; width: min(100%, 46vh); aspect-ratio: 640 / 784; justify-self: center; }
.advent-baum > img:first-child { width: 100%; height: 100%; }
.advent-kugel, .advent-spitze { position: absolute; max-width: none; translate: -50% -50%; }
.advent-kugel { width: 7.6%; }
.advent-kugel.kugel-1 { filter: hue-rotate(48deg) saturate(1.5) brightness(1.2); }
.advent-kugel.kugel-2 { filter: hue-rotate(212deg); }
.advent-kugel.kugel-3 { filter: hue-rotate(280deg) brightness(1.1); }
.advent-spitze { width: 20%; }
.advent-kugel.neu, .advent-spitze.neu { animation: plopp .5s; }
.advent-seite .hinweis { min-height: 2.6em; font-size: 1.15rem; }
.advent-tueren { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tuerchen {
  position: relative; aspect-ratio: 1; padding: 0; display: grid; place-items: center; border: 3px solid var(--rot); border-radius: 14px;
  background: #fdecea; color: var(--tinte); font: inherit; font-weight: 700; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.tuerchen:nth-child(3n + 2) { border-color: var(--gruen); background: #e4f3e1; }
.tuerchen:nth-child(3n) { border-color: var(--gelb); background: #fff7d1; }
.tuerchen.spaeter { opacity: .45; }
.tuerchen.heute { animation: hopsen 1.2s infinite; box-shadow: 0 0 0 4px rgba(240, 210, 0, .55); }
.tuerchen.offen { border-style: dashed; background: var(--karte); }
.tuerchen.offen img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.tuerchen.offen span { position: absolute; left: 5px; top: 4px; font-size: .8rem; color: var(--tinte2); }
/* hinter dem Türchen: das Schild mit der Nummer, darunter das, was zu lesen ist */
.advent-aufgabe { display: grid; justify-items: center; gap: 16px; }
.advent-schild { width: 64px; cursor: default; }
.advent-karte { background: var(--karte); border: 3px solid var(--linie); border-radius: 18px; padding: 14px 28px; box-shadow: var(--schatten); max-width: 100%; }
.advent-wort { font-size: 3.4rem; line-height: 1.2; }
.advent-bild { height: 170px; width: auto; animation: plopp .35s; }
.advent-aufgabe .pass { margin-bottom: 0; }
.advent-aufgabe .szene { animation: plopp .35s; }

@media (max-width: 620px) {
  html.weihnachten .lok { width: 74px; height: 88px; }
  .advent { grid-template-columns: minmax(0, 1fr); }
  .advent-baum { width: min(62%, 36vh); }
  .advent-tueren { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .advent-wort { font-size: 2.6rem; }
  .advent-bild { height: 130px; }
  .spielplatz-link.advent-link img.baum { width: 50px; }
}

@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; }
.titelbild img { height: auto; } /* width/height im HTML gegen Springen beim Laden, die Größe kommt aus dem CSS */
.h1-zusatz { display: block; font-size: 1.3rem; font-weight: 400; text-align: center; color: var(--tinte2); letter-spacing: .04em; }
.www { max-width: 860px; margin: 0 auto; }
.www .einleitung { font-size: 1.3rem; text-align: center; max-width: 680px; margin: 0 auto 8px; }
.www h2 { font-size: 1.6rem; margin: 38px 0 14px; }

.schulen { display: grid; gap: 18px; }
.schul-karte {
  display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--tinte);
  border: 3px solid var(--gelb); background: #fff7d1; border-radius: var(--radius); padding: 16px 22px;
  box-shadow: var(--schatten); transition: transform .15s;
}
.schul-karte.blau { border-color: var(--blau); background: var(--hellblau); }
.schul-karte.rosa { border-color: var(--rosa); background: #fde9f1; }
.schul-karte.gruen { border-color: var(--gruen); background: #e6f4e3; }
.schul-karte:hover { transform: translateY(-3px) rotate(-.4deg); }
.schul-karte img.haus { width: 120px; flex: none; }
.schul-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.schul-text strong { font-size: 1.5rem; line-height: 1.2; }
.schul-text .ort { color: var(--tinte2); }
.schul-text .laute { margin-top: 4px; }
.schul-text .laute span { font-size: 1.1rem; padding: 0 9px; }
.schul-karte .knopf { margin-left: auto; flex: none; }
@media (max-width: 620px) {
  .schul-karte { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .schul-karte img.haus { width: 76px; }
  .schul-text { flex: 1 1 60%; }
  .schul-text strong { font-size: 1.25rem; }
  .schul-karte .knopf { margin-left: 0; width: 100%; }
}

/* Kacheln wie die Leseblatt-Karten: Bild oben, Titel, ein Satz */
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vorteil {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--karte); border-radius: var(--radius); padding: 18px 16px 20px; box-shadow: var(--schatten);
}
.vorteil img { height: 70px; width: auto; margin-bottom: 4px; }
.vorteil strong { font-size: 1.15rem; line-height: 1.25; }
.vorteil span { color: var(--tinte2); font-size: 1rem; line-height: 1.35; }
.www .mehr { margin-top: 16px; text-align: center; }
.www .einordnung { max-width: 680px; margin: 20px auto 0; text-align: center; color: var(--tinte2); }
.person { display: flex; gap: 24px; align-items: center; background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px 24px; }
.person figure { flex: none; width: 220px; margin: 0; text-align: center; }
.person img { display: block; width: 100%; height: auto; }
.person figcaption { color: var(--tinte2); font-size: .85rem; margin-top: 4px; }
.person p { margin: 0 0 10px; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .person { flex-direction: column; align-items: stretch; } .person figure { width: min(220px, 100%); margin: 0 auto; } }
@media (max-width: 720px) { .vorteile { grid-template-columns: repeat(2, 1fr); } }
/* Handy: zwei kompakte Spalten statt sechs großer Karten untereinander */
@media (max-width: 420px) { .vorteile { gap: 10px; } .vorteil { padding: 12px 10px 14px; } .vorteil img { height: 46px; } .vorteil strong { font-size: 1rem; } .vorteil span { font-size: .9rem; } }
.www .eltern-hinweis a.knopf { color: #fff; text-decoration: none; margin-top: 6px; }

/* Sicherheitsnetz: Ragt doch einmal etwas über den Rand, wackelt die Seite in der App nicht seitlich. tools/breite.mjs prüft ohne dieses Netz. */
html, body { overflow-x: clip; }

/* Startseite oben: ein Satz, ein Hauptknopf, daneben ein Leseblatt in Bewegung im schlichten Tablet-Rahmen */
.start-oben { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: center; margin: 22px 0 6px; }
.start-text .einleitung { text-align: left; max-width: none; margin: 0 0 22px; }
.start-text p { margin: 0; }
.start-knopf { font-size: 1.25rem; padding: 14px 28px; color: #fff; text-decoration: none; }
.start-schule { margin-top: 16px !important; }
.start-schule a { color: var(--tinte2); }
.vorschau-geraet { margin: 0; justify-self: center; width: 100%; max-width: 280px; border: 10px solid #2c2c31; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: var(--schatten); }
.vorschau-geraet video { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .start-oben { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .start-text .einleitung { text-align: center; }
  .vorschau-geraet { max-width: 240px; }
}
/* Lehrkräfte-Kasten auf dem Handy: Bild über dem Text, damit der Text die ganze Breite hat */
@media (max-width: 520px) { .lehrer-hinweis { flex-direction: column; align-items: flex-start; } .lehrer-hinweis img { width: 60px; } }
/* Handy: ohne die Sonne steht der Hauptknopf schon im ersten Blick */
@media (max-width: 520px) { .start-kopf img.sonne { display: none; } }

/* Startseite: echte Überschrift, zwei Wege, Häkchen-Zeile; Vorteile als kompakte Liste mit kleinem Bild */
.start-marke { display: flex; justify-content: center; }
.start-text h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; }
.start-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.start-knoepfe .knopf.leise { color: var(--tinte); text-decoration: none; }
.start-haken { margin-top: 14px !important; color: var(--tinte2); font-size: 1rem; }
.start-haken span { white-space: nowrap; margin-right: 14px; }
.www .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.www .vorteil { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.www .vorteil img { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; margin: 0; }
.www .vorteil strong { font-size: 1.05rem; }
.www .vorteil span { font-size: .95rem; }
@media (max-width: 720px) {
  .start-knoepfe { justify-content: center; }
  .start-haken span { margin: 0 7px; }
}
@media (max-width: 520px) { .www .vorteile { grid-template-columns: 1fr; gap: 14px; } }
/* Wer steckt dahinter: der Kern sichtbar, der Rest zum Aufklappen */
.weiterlesen summary { cursor: pointer; color: var(--blau); font-weight: 700; margin: 4px 0 10px; list-style: none; }
.weiterlesen summary::-webkit-details-marker { display: none; }
.weiterlesen summary::after { content: " ▾"; }
.weiterlesen[open] summary::after { content: " ▴"; }
.weiterlesen p { margin: 0 0 10px; }
