:root {
  --holz: #6b4f2e; --holz2: #8a6a42; --creme: #f5ead8; --gold: #c79a62; --gruen: #2e9e5b; --rot: #d64545;
  --lila: #7b4fc9; --text: #2f2418; --karte: #fffaf1; --schatten: 0 6px 20px rgba(60, 40, 15, .14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text);
  background: var(--creme) radial-gradient(circle at 20% 0%, #fff6e6 0, transparent 60%);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  user-select: none; -webkit-user-select: none;
}
input, select { user-select: text; -webkit-user-select: text; font: inherit; font-size: max(16px, 1em); }
/* kein Zoom durch Doppeltippen (schnelles Tippen auf dem Zahlenfeld) */
html, body, button, a, input, select, .szene, .pferdbox { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: .2em 0 .5em; }
h2 { font-size: 1.45rem; }
.huf { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
#app { max-width: 980px; margin: 0 auto; padding: 0 12px 24px; }
.klein { font-size: .85rem; opacity: .8; }
.leise { color: var(--holz2); font-size: .85rem; }
.fuss { text-align: center; margin-top: 20px; }

/* Leiste oben */
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--creme) 80%, transparent); }
.topbar > * { background: var(--karte); border-radius: 999px; padding: 6px 14px; box-shadow: var(--schatten); font-weight: 700; border: 0; }
.tb-name { margin-right: auto; }
.tb-ziel span { filter: grayscale(1) opacity(.35); } .tb-ziel span.voll { filter: none; }
.tb-coins b { font-size: 1.1rem; }

/* Knöpfe */
.knopf { border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 800; font-size: 1.05rem; background: var(--karte); box-shadow: 0 4px 0 #d9c7a8, var(--schatten); transition: transform .08s; }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9c7a8; }
.knopf.lernen { background: linear-gradient(#8f63e0, var(--lila)); color: #fff; box-shadow: 0 4px 0 #573596, var(--schatten); }
.knopf.grau { background: #ece4d6; }
.knopf.gross { font-size: 1.25rem; padding: 16px 34px; }
.knopf.leuchten { animation: leuchten 1.6s infinite; }
@keyframes leuchten { 50% { box-shadow: 0 4px 0 #d9c7a8, 0 0 0 6px rgba(255, 196, 0, .45); } }

/* Hof */
.szene { position: relative; height: 380px; border-radius: 26px; overflow: hidden; box-shadow: var(--schatten); display: flex; align-items: flex-end; justify-content: center; }
.szene.klein { height: 240px; }
.szene.klein .pferdbox { width: min(240px, 60%); }
.pferdbox { width: min(330px, 72%); margin-bottom: 4px; cursor: pointer; position: relative; z-index: 2; }
.pferd { width: 100%; height: auto; display: block; overflow: visible; }
.pferd.pony { transform: scale(.82); transform-origin: 50% 100%; }
.wackeln { animation: atmen 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes atmen { 50% { transform: scaleY(1.015) translateY(-1px); } }
.pferdname { position: absolute; bottom: 10px; left: 14px; background: rgba(255, 250, 241, .9); padding: 4px 14px; border-radius: 999px; font-weight: 800; z-index: 3; }
.sprechblase { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: #fff; padding: 10px 18px; border-radius: 18px; font-weight: 700; box-shadow: var(--schatten); z-index: 3; max-width: 90%; text-align: center; }
.sprechblase::after { content: ''; position: absolute; bottom: -10px; left: 60%; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.beduerfnisse { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.bed { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 8px; background: var(--karte); padding: 8px 12px; border-radius: 14px; box-shadow: var(--schatten); }
.balken { flex: 1; height: 14px; background: #eadfcd; border-radius: 99px; overflow: hidden; }
.balken > div { height: 100%; border-radius: 99px; transition: width .6s; }
.b-hunger { background: linear-gradient(90deg, #ff9f43, #ff7a00); } .b-sauber { background: linear-gradient(90deg, #6ad1ff, #2b9bd8); } .b-freude { background: linear-gradient(90deg, #ff8fc7, #e8457d); }
.aktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.aktionen .lernen { grid-column: 1 / -1; font-size: 1.4rem; padding: 18px; }

/* Orte (Hintergründe) */
.ort-stall { background: linear-gradient(transparent 72%, #d9b56a 72%, #c99f4f), repeating-linear-gradient(90deg, #9b7146 0 58px, #8c6439 58px 62px), #9b7146; }
.ort-stall::before { content: ''; position: absolute; left: 6%; top: 18%; width: 22%; height: 30%; background: linear-gradient(#5a3b20, #4a301a); border: 6px solid #3e2814; border-radius: 6px; box-shadow: inset 0 0 0 10px #6e4a2b; }
.ort-weide { background: radial-gradient(ellipse at 20% 105%, #5fb35a 40%, transparent 41%), radial-gradient(ellipse at 85% 110%, #4fa04a 45%, transparent 46%), linear-gradient(#8fd3ff, #d6f1ff 60%, #78c46f 60%); }
.ort-weide::before { content: '☀️'; position: absolute; right: 8%; top: 8%; font-size: 48px; }
.ort-winter { background: radial-gradient(ellipse at 30% 110%, #fff 45%, transparent 46%), linear-gradient(#a9c8e8, #e7f1fb 62%, #f7fbff 62%); }
.ort-winter::before { content: '🌲 ❄️ 🌲'; position: absolute; left: 6%; top: 30%; font-size: 52px; letter-spacing: 20px; }
.ort-strand { background: linear-gradient(#7cc8ff, #c9ecff 48%, #2f9bd6 48%, #57b5e6 60%, #f2d79b 60%, #e8c57d); }
.ort-strand::before { content: '🌴'; position: absolute; left: 6%; bottom: 30%; font-size: 70px; }
.ort-regenbogen { background: radial-gradient(circle at 50% 110%, transparent 34%, #ff6b9d 34% 38%, #ffb84d 38% 42%, #fff176 42% 46%, #7ee0a1 46% 50%, #7aa7ff 50% 54%, #b38bff 54% 58%, transparent 58%), linear-gradient(#ffe3f3, #e8e0ff 70%, #c6f0d6 70%); }
.ort-regenbogen::before { content: '☁️      ✨      ☁️'; white-space: pre; position: absolute; left: 10%; top: 10%; font-size: 40px; }

/* Seiten & Karten */
.seite { padding-top: 6px; }
.seite > .knopf { margin-top: 16px; }
.karte { background: var(--karte); border-radius: 26px; padding: 24px; box-shadow: var(--schatten); margin: 20px auto; max-width: 620px; text-align: center; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; padding: 10px 18px; border-radius: 999px; background: #eadfcd; font-weight: 800; }
.tabs button.aktiv { background: var(--holz); color: var(--creme); }

/* Themen */
.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.thema { background: var(--karte); border-radius: 20px; padding: 14px; box-shadow: var(--schatten); }
.th-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.08rem; }
.th-icon { font-size: 1.6rem; width: 2rem; text-align: center; }
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stufe { position: relative; border: 2px solid #e6d8bf; background: #fff; border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; gap: 3px; min-height: 76px; }
.stufe:not(.zu):hover { border-color: var(--lila); }
.stufe.zu { opacity: .45; cursor: not-allowed; background: #f3ede2; }
.st-nr { font-weight: 800; font-size: .8rem; color: var(--lila); }
.st-name { font-size: .82rem; line-height: 1.15; }
.st-rib { position: absolute; top: -8px; right: -6px; font-size: 1.3rem; }

/* Runde */
.rundekopf { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.zu-knopf { border: 0; background: #eadfcd; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; }
.fortschritt { flex: 1; display: flex; gap: 5px; }
.fortschritt span { flex: 1; height: 12px; border-radius: 99px; background: #e6d8bf; }
.fortschritt span.fertig { background: var(--gruen); }
.fortschritt span.jetzt { background: var(--gold); }
.rundekopf .tb-coins { background: var(--karte); border-radius: 999px; padding: 6px 14px; box-shadow: var(--schatten); }
.aufgabe { background: var(--karte); border-radius: 26px; padding: 22px 18px; box-shadow: var(--schatten); text-align: center; position: relative; min-height: 420px; }
.nochmal { display: inline-block; background: #fff1d6; color: #8a5a00; padding: 4px 12px; border-radius: 99px; font-weight: 800; margin-bottom: 8px; }
.frage-inhalt { margin-bottom: 14px; }
.big { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; margin: 8px 0; letter-spacing: .5px; }
.big.satz { font-size: clamp(1.4rem, 5vw, 2.2rem); }
.frage { font-size: 1.2rem; font-weight: 700; margin: 6px 0; }
.text { font-size: 1.25rem; line-height: 1.5; max-width: 640px; margin: 4px auto; text-align: left; background: #fff6e4; padding: 14px 18px; border-radius: 16px; }
.hint { font-size: .95rem; margin-top: 8px; opacity: .85; }
.tafel { display: inline-flex; gap: 0; border: 3px solid var(--holz); border-radius: 10px; overflow: hidden; margin: 8px; }
.tafel div { display: flex; flex-direction: column; width: 74px; }
.tafel b { background: var(--holz); color: var(--creme); padding: 4px; }
.tafel span { font-size: 2.2rem; font-weight: 800; padding: 6px; border-left: 1px solid #e6d8bf; }
.uhr { width: min(240px, 60vw); }
.geld { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 8px 0; }
.schein { width: 120px; } .muenze { height: auto; }
.antwortzeile { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 12px; }
.anzeige { min-width: 160px; min-height: 64px; font-size: 2.4rem; font-weight: 800; background: #fff; border: 3px solid #e6d8bf; border-radius: 16px; padding: 4px 16px; display: flex; align-items: center; justify-content: center; letter-spacing: 2px; }
.einheit { font-size: 1.6rem; font-weight: 800; }
.numpad { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; justify-content: center; }
.numpad button { height: 62px; border: 0; border-radius: 14px; background: #fff; font-size: 1.6rem; font-weight: 800; box-shadow: 0 3px 0 #dccbb0; }
.numpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #dccbb0; }
.numpad .grau { background: #eadfcd; } .numpad .ok, .gross-ok { background: var(--gruen); color: #fff; box-shadow: 0 3px 0 #1f7442; }
.gross-ok { border: 0; border-radius: 14px; font-size: 1.3rem; font-weight: 800; padding: 12px 40px; margin-top: 10px; }
.optionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 0 auto; }
.optionen.drei { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
.option { border: 3px solid #e6d8bf; background: #fff; border-radius: 18px; padding: 16px 10px; font-size: 1.25rem; font-weight: 800; min-height: 70px; box-shadow: 0 3px 0 #e6d8bf; }
.option:hover { border-color: var(--lila); }
.option.richtig { border-color: var(--gruen); background: #e6f7ec; animation: pop .35s; }
.option.falsch { border-color: var(--rot); background: #fdeaea; animation: wackel .35s; }
.optionen.bilder .option { min-height: 120px; }
.sym { font-size: 2.4rem; }
.optionen.woerter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.optionen.woerter .option { min-height: 0; padding: 12px 14px; font-size: 1.35rem; }
.lesetext { font-size: 1.3rem; line-height: 1.65; }
.enwort { font-size: 1.3rem; }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes wackel { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bildbox { margin: 6px 0; }
.emoji { font-size: 4rem; line-height: 1.1; } .emoji.gross { font-size: 6.5rem; } .emoji.mittel { font-size: 4.2rem; } .emoji.klein { font-size: 1.6rem; }
.farbklecks { display: inline-block; width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .15); }
.farbklecks.gross { width: 130px; height: 130px; } .farbklecks.klein { width: 26px; height: 26px; vertical-align: middle; }
.zahlbild { display: inline-block; font-size: 3rem; font-weight: 900; color: var(--lila); } .zahlbild.gross { font-size: 6rem; }
.wortbild { display: inline-block; font-size: 1.6rem; font-weight: 800; background: #fff6e4; padding: 10px 18px; border-radius: 14px; } .wortbild.gross { font-size: 2.6rem; }
.hoeren { border: 0; background: var(--lila); color: #fff; font-size: 2.4rem; width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 4px 0 #573596; }
.hoeren.klein { font-size: 1rem; width: auto; height: auto; padding: 6px 12px; border-radius: 999px; box-shadow: none; vertical-align: middle; }
.vorlesen { margin-top: 8px; }
.slots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 18px; }
.slot { width: 46px; height: 56px; border-bottom: 4px solid var(--holz); font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px 8px 0 0; }
.slot.fest { border-bottom-color: transparent; background: transparent; width: 20px; }
.kacheln { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.kachel { width: 58px; height: 58px; border: 0; border-radius: 12px; background: #ffd98a; font-size: 1.8rem; font-weight: 900; box-shadow: 0 4px 0 #c99a3a; }
.kachel:disabled { opacity: .2; }
.spell-knoepfe { margin-top: 14px; }
.feedback { margin-top: 14px; font-size: 1.4rem; font-weight: 800; }
.feedback.gut { color: var(--gruen); animation: pop .4s; }
.feedback.schade { color: #9a4a1a; background: #fff3e6; border-radius: 16px; padding: 12px; }
.erklaerung { color: var(--text); font-size: 1.4rem; font-weight: 600; margin: 8px 0; }
.feedback .plus { color: #b07d10; }
.serie { font-size: 1rem; color: #e8721a; }
.feedback .knopf { margin-top: 8px; }
.miniPferd { width: 150px; position: fixed; right: 8px; bottom: 8px; z-index: 1; pointer-events: none; opacity: .95; }
.miniPferd.hopsen { animation: hops .5s; }
@keyframes hops { 40% { transform: translateY(-24px) rotate(-4deg); } }

/* Ende einer Runde */
.ende .rosette-gross.neu { animation: dreh 1s ease-out; }
@keyframes dreh { from { transform: scale(.2) rotate(-200deg); } }
.ergebnis { font-size: 1.2rem; }
.belohnung { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.belohnung div { background: #fff6e4; padding: 10px 16px; border-radius: 14px; font-size: 1.15rem; }
.ziel { font-weight: 800; color: #b07d10; font-size: 1.2rem; margin: 8px 0; }
.frei { font-weight: 800; color: var(--lila); }
.ende .miniPferd { position: static; margin: 0 auto; width: 200px; }
.jubel { animation: hops 1s infinite; }
.ende-knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.konfetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fallen 2.6s ease-in forwards; }
@keyframes fallen { to { top: 105%; transform: rotate(720deg); } }
.overlay { position: fixed; inset: 0; background: rgba(40, 25, 10, .45); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 14px; }
.notiz { font-style: italic; font-size: 1.15rem; }

/* Pflege */
.futter { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.futterknopf { border: 0; background: var(--karte); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; box-shadow: 0 4px 0 #d9c7a8, var(--schatten); }
.futterknopf .emoji { font-size: 2.6rem; }
.preis { font-size: .95rem; color: #8a6410; font-weight: 800; }
.mampf { position: absolute; left: 10%; bottom: 30%; font-size: 3rem; opacity: 0; z-index: 4; }
.mampf.los { animation: mampf .8s ease-in forwards; }
@keyframes mampf { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(min(52vw, 470px), -130px) scale(.4); } }
.szene.putzplatz { height: min(480px, 70vw); }
.putzplatz .pferdbox { width: min(560px, 96%); }
.schmutz { cursor: grab; transition: opacity .3s; } .schmutz.weg { opacity: 0; }
.putzplatz .pferdbox { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><text y='32' font-size='32'>🧽</text></svg>") 10 30, pointer; }
.glanz { animation: glanz 1.2s; } @keyframes glanz { 50% { filter: brightness(1.25) drop-shadow(0 0 18px #fff6a0); } }

/* Ausritt */
.ritt { position: fixed; inset: 0; z-index: 30; overflow: hidden; }
.ritt-kopf { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; z-index: 5; }
.ritt-kopf span { background: rgba(255, 250, 241, .92); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 1.2rem; }
.huegel { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, #5aa84f 0 120px, #66b55a 120px 240px); animation: laufen 2s linear infinite; }
@keyframes laufen { to { background-position: -240px 0; } }
.rittpferd { position: absolute; left: 6%; bottom: 18%; width: min(340px, 48vw); animation: galopp .45s ease-in-out infinite; z-index: 2; }
@keyframes galopp { 50% { transform: translateY(-14px) rotate(-2deg); } }
.flieger { position: absolute; right: -80px; border: 0; background: rgba(255, 255, 255, .65); border-radius: 50%; width: 70px; height: 70px; font-size: 2.4rem; display: flex; align-items: center; justify-content: center; animation-name: fliegen; animation-timing-function: linear; animation-fill-mode: forwards; z-index: 4; touch-action: manipulation; }
.flieger .huf { width: 46px; height: 46px; }
.flieger.weg { animation: einsammeln .4s forwards !important; }
@keyframes fliegen { to { right: 110%; } }
@keyframes einsammeln { to { transform: scale(1.8); opacity: 0; } }
.ritt-tipp { position: absolute; bottom: 4%; width: 100%; text-align: center; color: #fff; font-weight: 800; text-shadow: 0 1px 3px #000; z-index: 3; }

/* Laden */
.laden { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ware { border: 3px solid transparent; background: var(--karte); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--schatten); }
.ware.an { border-color: var(--gruen); }
.ware-bild { width: 100%; background: #f3eadb; border-radius: 12px; }
.ortbild { width: 100%; height: 90px; border-radius: 12px; position: relative; overflow: hidden; }
.ortbild::before { transform: scale(.5); transform-origin: 0 0; }
.mini-bed { font-size: .85rem; }

/* Schleifen */
.schleifenwand { background: var(--karte); border-radius: 20px; padding: 14px; box-shadow: var(--schatten); }
.schl-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e6d8bf; }
.schl-name { flex: 1; font-weight: 700; }
.schl-platz { width: 44px; display: flex; justify-content: center; }
.leer-rosette { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #d3c2a3; display: flex; align-items: center; justify-content: center; color: #b8a789; font-weight: 800; }

/* Start / Login */
.login .logo .huf { width: 70px; height: 70px; }
.login .anzeige { margin: 10px auto; width: 220px; letter-spacing: 8px; }
.fehler { color: var(--rot); min-height: 1.2em; font-weight: 700; }
.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.wahlpferd { border: 3px solid #e6d8bf; background: #fff; border-radius: 18px; padding: 8px; font-weight: 800; }
.wahlpferd.aktiv { border-color: var(--lila); background: #f2ecff; }
.namefeld { display: block; font-weight: 800; margin: 12px 0; }
.namefeld input { display: block; margin: 8px auto; font-size: 1.4rem; padding: 10px 14px; border-radius: 14px; border: 3px solid #e6d8bf; text-align: center; width: min(320px, 100%); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--holz); color: var(--creme); padding: 12px 20px; border-radius: 16px; font-weight: 800; z-index: 60; transition: transform .3s; max-width: 92vw; text-align: center; box-shadow: var(--schatten); }
#toast { opacity: 0; pointer-events: none; }
#toast.zeigen { transform: translate(-50%, 0); opacity: 1; }

/* Elternbereich (ruhig und sachlich) */
.eltern { font-family: "Segoe UI", system-ui, sans-serif; user-select: text; -webkit-user-select: text; padding-top: 12px; }
.e-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.e-kopf h1 { font-size: 1.5rem; }
.e-kopf select { padding: 7px; border-radius: 8px; border: 1px solid #ccb; }
.eknopf { border: 0; background: var(--holz); color: var(--creme); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.eknopf.grau { background: #ddd2bf; color: var(--text); }
.kacheln-e { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.kachel-e { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 2px; border-left: 5px solid #ddd2bf; }
.kachel-e span { font-size: .85rem; opacity: .75; } .kachel-e b { font-size: 1.45rem; } .kachel-e small { opacity: .7; }
.kachel-e.gruen { border-left-color: var(--gruen); } .kachel-e.gelb { border-left-color: #e6a700; } .kachel-e.rot { border-left-color: var(--rot); }
.e-box { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); margin-bottom: 12px; overflow-x: auto; }
.e-box h2 { font-size: 1.12rem; }
.e-box label { display: block; margin: 8px 0; font-size: .92rem; }
.e-box label input:not([type=checkbox]) { display: block; width: 100%; padding: 7px 9px; border-radius: 8px; border: 1px solid #ccb; margin-top: 3px; }
.e-box label.haken { display: flex; gap: 8px; align-items: center; }
.e-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.e-grid .e-box { margin-bottom: 0; } .e-grid { margin-bottom: 12px; }
.hinweise { background: #fffbe9; border: 1px solid #f0e2a8; }
.hinweise ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.e-tab { width: 100%; border-collapse: collapse; font-size: .92rem; }
.e-tab th { text-align: left; font-weight: 600; opacity: .7; border-bottom: 1px solid #eee; padding: 5px 6px; }
.e-tab td { border-bottom: 1px solid #f3efe7; padding: 6px; }
td.gruen { color: var(--gruen); font-weight: 700; } td.gelb { color: #b98200; font-weight: 700; } td.rot { color: var(--rot); font-weight: 700; }
.auf { color: var(--gruen); } .ab { color: var(--rot); } .gleich { color: #aaa; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #eef7ef; color: #23633b; border-radius: 999px; padding: 4px 10px; font-size: .88rem; }
.kalender { display: grid; grid-template-columns: repeat(28, 1fr); gap: 2px; height: 110px; align-items: end; }
.kalender .tag { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; align-items: center; }
.kalender .saeule { width: 100%; background: #c9b48e; border-radius: 3px 3px 0 0; }
.kalender .saeule.ziel { background: var(--gruen); }
.kalender span { font-size: .6rem; opacity: .6; }
.formzeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.formzeile input { padding: 7px 9px; border-radius: 8px; border: 1px solid #ccb; }
.formzeile #b-anz { width: 80px; } .formzeile #b-note { flex: 1; min-width: 160px; }
.warn { color: #a05a00; }

/* Themenliste mit Fortschritt */
button.thema { text-align: left; border: 0; width: 100%; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
button.thema:active { transform: translateY(2px); }
.th-fort { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .9rem; }
.b-sterne { background: linear-gradient(90deg, #ffd34d, #f2b705); }
.thema.aktuell-schule { outline: 3px solid #f2994a; position: relative; }
.schul-badge { align-self: flex-start; background: #f2994a; color: #fff; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.th-ribs { display: flex; gap: 6px; font-size: 1.3rem; }
.th-ribs .leer { filter: grayscale(1) opacity(.3); }

/* Reitweg-Karte */
.karte-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.karte-kopf h2 { margin: 0; flex: 1; }
.karte-sterne { background: var(--karte); border-radius: 999px; padding: 6px 14px; font-weight: 800; box-shadow: var(--schatten); }
.klein-k { padding: 8px 14px; font-size: .95rem; }
.reitweg-box { position: relative; max-width: 520px; margin: 10px auto; border-radius: 24px; overflow: hidden; box-shadow: var(--schatten); }
.reitweg { display: block; width: 100%; height: auto; }
.station.offen { cursor: pointer; }
.station.offen:hover circle { filter: brightness(1.06); }
.station.zu text { opacity: .7; }
.station.aktuell circle { animation: puls 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes puls { 50% { transform: scale(1.1); } }
.bibi-marker { position: absolute; width: 22%; pointer-events: none; animation: atmen 2.4s ease-in-out infinite; }
.sterne-gross { font-size: 3.6rem; letter-spacing: 6px; }
.sterne-gross span { color: #ddd3c0; display: inline-block; }
.sterne-gross span.an { color: #f2b705; animation: sternpop .6s backwards; text-shadow: 0 2px 0 #c58c00; }
@keyframes sternpop { from { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.3); } }
.vorlese-knopf { background: var(--lila) !important; color: #fff; }

/* neue Mathe-Bilder */
.stellenbild { height: auto; margin: 6px auto; display: block; }
.strahl { width: min(560px, 100%); height: auto; margin: 6px auto; display: block; }
.form { width: min(220px, 60vw); height: auto; }
.gitter { width: 100%; height: auto; margin: 4px auto; display: block; }
.diagramm { width: min(440px, 100%); height: auto; }
.sack { width: min(260px, 70vw); height: auto; }
.striche { font-family: "Segoe UI", sans-serif; letter-spacing: 2px; }
.fuenfer { text-decoration: line-through; text-decoration-thickness: 3px; margin-right: 10px; }
.spalten { margin: 6px auto 10px; border-collapse: collapse; font-size: 2.2rem; font-weight: 800; font-family: "Consolas", "Courier New", monospace; }
.spalten td { width: 46px; height: 50px; text-align: center; border: 1px solid #e6d8bf; background: #fffdf7; }
.spalten tr.kopf td { font-size: 1rem; color: #8a6a42; background: #f3eadb; height: 26px; }
.spalten td.op { border: 0; background: transparent; width: 34px; }
.spalten tr.strich td { height: 10px; border: 0; border-top: 4px solid #4a3720; background: transparent; }
.spalten tr.strich td:first-child { border-top: 0; }

/* Spielplatz */
.spielwahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.spielkarte { border: 0; background: var(--karte); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 4px 0 #d9c7a8, var(--schatten); text-align: center; }
.spielkarte .emoji { font-size: 3rem; }
.spielkopf { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0; font-weight: 800; }
.spielkopf span { background: var(--karte); padding: 6px 14px; border-radius: 999px; box-shadow: var(--schatten); }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 620px; margin: 0 auto; }
.mkarte { aspect-ratio: 1; border: 0; border-radius: 14px; background: linear-gradient(135deg, #8f63e0, #6a42b8); box-shadow: 0 3px 0 #4a2d85; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; transition: transform .2s; }
.mkarte .mrueck .huf { width: 44px; height: 44px; }
.mkarte.offen { background: #fffaf1; box-shadow: 0 3px 0 #d9c7a8; transform: rotateY(0); }
.mkarte.offen .pferd { width: 92%; }
.mkarte span { font-size: .7rem; font-weight: 800; }
.mkarte.weg { opacity: .45; }
.sprungplatz { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: linear-gradient(#9fd6ff, #e2f4ff 55%, #8cc66b 55%); touch-action: none; user-select: none; }
.sprungplatz .sand { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(90deg, #e3c48a 0 80px, #dcbc7e 80px 160px); }
.springpferd { position: absolute; left: 8%; bottom: 20%; width: min(200px, 34vw); z-index: 3; transition: transform .03s linear; transform-origin: 50% 100%; }
.hindernis { position: absolute; bottom: 20%; width: 60px; z-index: 2; }
.hindernis svg { width: 60px; height: 70px; display: block; }
.hindernis.fallen svg rect:nth-of-type(3) { transform: rotate(18deg) translateY(18px); transform-origin: 0 0; }
.schwebehuf { position: absolute; bottom: calc(20% + 95px); z-index: 2; }
.schwebehuf .huf { width: 32px; height: 32px; }
.schwebehuf.weg { animation: einsammeln .4s forwards; }

@media (max-width: 600px) {
  .szene { height: 300px; }
  .pferdbox { width: min(250px, 70%); }
  .numpad { grid-template-columns: repeat(3, 68px); }
  .miniPferd { width: 90px; opacity: .6; }
  .optionen.bilder .option { min-height: 100px; }
}
