/* Sternenschule 1v0 – created by AnnoBoy 2026 */
@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url(schriften/fredoka-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(schriften/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(schriften/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url(schriften/andika-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 700; font-display: swap; src: url(schriften/andika-latin-700-normal.woff2) format('woff2'); }

:root {
  --schrift: 'Fredoka', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'SS Emoji';
  --lesen: 'Andika', 'Fredoka', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'SS Emoji';
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'SS Emoji', sans-serif;
  --himmel1: #7cc6ff; --himmel2: #c9ecff; --himmel3: #fff6dc;
  --karte: #ffffff; --karte2: #f4f8ff; --text: #23304a; --leise: #5f6b85; --rand: #dfe8f5;
  --orange: #ff8a3d; --rot: #f0566a; --blau: #3d8bff; --gruen: #25b37a; --gelb: #ffc531; --lila: #8f6bff;
  --schatten: 0 6px 0 rgba(35, 48, 74, .12), 0 12px 28px rgba(35, 48, 74, .12);
  --r: 22px;
}
[data-thema="dunkel"] {
  --himmel1: #0d1430; --himmel2: #1a2350; --himmel3: #2c2c63;
  --karte: #1f2850; --karte2: #273263; --text: #eef3ff; --leise: #aab6d8; --rand: #34407a;
  --schatten: 0 6px 0 rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--schrift); color: var(--text); background: linear-gradient(180deg, var(--himmel1) 0%, var(--himmel2) 55%, var(--himmel3) 100%) fixed;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.emo { font-family: var(--emoji); font-weight: 400; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select { font-family: var(--schrift); font-size: 18px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--rand); background: var(--karte2); color: var(--text); width: 100%; }
input:focus, select:focus { outline: 3px solid var(--blau); outline-offset: 1px; }
a { color: var(--blau); }
h1, h2, h3 { margin: .2em 0 .4em; line-height: 1.15; }
[hidden] { display: none !important; }

/* Himmel mit Wolken (hell) und Sternen (dunkel) */
.himmel { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.wolke { position: absolute; width: 180px; height: 60px; background: #fff; border-radius: 60px; opacity: .75; animation: wolke 60s linear infinite; }
.wolke::before, .wolke::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.wolke::before { width: 90px; height: 90px; top: -45px; left: 25px; } .wolke::after { width: 70px; height: 70px; top: -30px; left: 90px; }
.w1 { top: 12%; left: -200px; } .w2 { top: 38%; left: -200px; animation-delay: -25s; transform: scale(.7); } .w3 { top: 70%; left: -200px; animation-delay: -45s; transform: scale(.5); }
@keyframes wolke { to { left: 110%; } }
.sterne { position: absolute; inset: 0; opacity: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(2px 2px at 85% 60%, #ffe9a8, transparent), radial-gradient(1.5px 1.5px at 10% 85%, #fff, transparent),
  radial-gradient(2px 2px at 55% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 88%, #fff, transparent); background-size: 400px 400px; }
[data-thema="dunkel"] .wolke { opacity: .06; } [data-thema="dunkel"] .sterne { opacity: .9; animation: funkeln 4s ease-in-out infinite alternate; }
@keyframes funkeln { from { opacity: .5; } to { opacity: 1; } }

/* Kopf und Fuß */
.kopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); gap: 8px; }
.marke { display: flex; align-items: center; gap: 8px; background: none; border: 0; font-size: 24px; font-weight: 700; padding: 4px; }
.marke .logo { width: 40px; height: 40px; border-radius: 11px; animation: drehen 6s ease-in-out infinite; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
@keyframes drehen { 50% { transform: rotate(20deg) scale(1.1); } }
.markenname { background: linear-gradient(90deg, #ff8a3d, #f0566a, #8f6bff); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .5px; }
[data-thema="dunkel"] .markenname { background: linear-gradient(90deg, #ffc531, #ff8a3d, #f783ac); -webkit-background-clip: text; background-clip: text; }
.kopfRechts { display: flex; gap: 8px; align-items: center; }
.rund { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--karte); box-shadow: var(--schatten); font-size: 20px; font-family: var(--emoji); }
.kindKnopf { display: flex; align-items: center; gap: 6px; border: 0; background: var(--karte); border-radius: 30px; padding: 4px 14px 4px 4px; box-shadow: var(--schatten); font-size: 17px; font-weight: 600; }
.kindKnopf .ava { width: 36px; height: 36px; font-size: 22px; }
main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 8px 14px 30px; outline: none; }
.fuss { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--leise); }
.fuss a { color: var(--leise); }
.lizenzZeile { margin-left: 10px; }
.signatur { margin-left: auto; font-size: 13px; opacity: .85; }

/* Bausteine */
.karte { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 18px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; padding: 14px 22px; font-size: 20px; font-weight: 600;
  background: var(--orange); color: #fff; box-shadow: 0 5px 0 #d4651d; transition: transform .1s; min-height: 54px; }
.knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 #d4651d; }
.knopf.blau { background: var(--blau); box-shadow: 0 5px 0 #2565c9; } .knopf.gruen { background: var(--gruen); box-shadow: 0 5px 0 #188a5c; }
.knopf.hell { background: var(--karte2); color: var(--text); box-shadow: 0 5px 0 var(--rand); }
.knopf.rot { background: var(--rot); box-shadow: 0 5px 0 #c43a4c; }
.knopf:disabled { opacity: .55; }
.klein { border: 0; background: none; color: var(--blau); font-size: 15px; text-decoration: underline; padding: 6px; }
.zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mitte { text-align: center; }
.leise { color: var(--leise); }
.fehler { color: var(--rot); min-height: 1.2em; font-weight: 600; }
.ava { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe5c2); flex: none; overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.bild { background: none !important; overflow: visible; box-shadow: none !important; border-radius: 0; }
.ava.bild img { width: 118%; height: 118%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(35, 48, 74, .25)); }
.figurBild { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(35, 48, 74, .25)); }
.tierparade .tier .figurBild { width: 122%; height: 122%; margin-top: -8%; }
.insel .figur .figurBild { width: 120px; height: 120px; }
.station .figur .figurBild { width: 64px; height: 64px; }
.sprecher .ava.bild { width: 96px; height: 96px; }
.fensterTier .figurBild { width: 110px; height: 110px; margin: 0 auto; }
[data-thema="dunkel"] .ava { background: radial-gradient(circle at 35% 30%, #4a5aa8, #27326a); }
.formular { max-width: 440px; margin: 10px auto; display: grid; gap: 14px; }
.formular label { font-weight: 600; display: grid; gap: 6px; }
.formular .haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.formular .haken input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.titel { display: flex; align-items: center; gap: 10px; }
.zurueck { border: 0; background: var(--karte); width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--schatten); font-size: 22px; font-weight: 700; flex: none; }

/* Startseite */
.held { text-align: center; padding: 10px 0 20px; }
.held h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 8px; }
.held h1 span { color: var(--orange); }
.held p { font-size: clamp(18px, 2.4vw, 22px); color: var(--leise); max-width: 640px; margin: 0 auto 18px; }
.tierparade { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); margin: 10px 0 22px; flex-wrap: wrap; }
.tierparade .tier { width: clamp(64px, 14vw, 110px); height: clamp(64px, 14vw, 110px); font-size: clamp(38px, 8vw, 66px); background: var(--karte); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--schatten); animation: hopsen 2.4s ease-in-out infinite; position: relative; }
.tierparade .tier:nth-child(2) { animation-delay: .3s; } .tierparade .tier:nth-child(3) { animation-delay: .6s; } .tierparade .tier:nth-child(4) { animation-delay: .9s; } .tierparade .tier:nth-child(5) { animation-delay: 1.2s; }
.tierparade small { position: absolute; bottom: -24px; font-size: 14px; font-family: var(--schrift); font-weight: 600; color: var(--text); white-space: nowrap; }
@keyframes hopsen { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.vorteil { display: flex; gap: 12px; align-items: flex-start; }
.vorteil .emo { font-size: 36px; }
.vorteil b { display: block; font-size: 18px; } .vorteil span { color: var(--leise); font-size: 15px; }

/* Wer lernt heute? */
.kinderwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 18px 0; }
.kindkarte { border: 0; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; transition: transform .15s; }
.kindkarte:hover { transform: translateY(-4px) rotate(-1deg); }
.kindkarte .ava { width: 92px; height: 92px; font-size: 58px; }
.kindkarte small { font-size: 14px; color: var(--leise); font-weight: 400; }
.kindkarte.neu { border: 3px dashed var(--rand); background: transparent; box-shadow: none; color: var(--leise); }
.kindkarte.neu .ava { background: var(--karte2); }

/* Welt mit Fach-Inseln */
.gruss { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.gruss .ava { width: 70px; height: 70px; font-size: 44px; box-shadow: var(--schatten); }
.gruss h1 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.sternzahl { margin-left: auto; background: var(--karte); border-radius: 30px; padding: 8px 16px; font-size: 20px; font-weight: 700; box-shadow: var(--schatten); white-space: nowrap; border: 0; }
.klassen { display: flex; gap: 8px; margin: 8px 0 16px; flex-wrap: wrap; }
.klassen button { border: 0; border-radius: 30px; padding: 10px 18px; font-size: 17px; font-weight: 600; background: var(--karte); box-shadow: var(--schatten); }
.klassen button.an { background: var(--lila); color: #fff; }
.inseln { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.insel { position: relative; border: 0; text-align: left; border-radius: 28px; padding: 20px; color: #fff; min-height: 190px; box-shadow: var(--schatten); overflow: hidden; transition: transform .15s; display: flex; flex-direction: column; }
.insel:hover { transform: translateY(-5px) rotate(.5deg); }
.insel::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); right: -60px; bottom: -90px; }
.insel h2 { font-size: 28px; margin: 0; position: relative; z-index: 1; }
.insel p { margin: 6px 0 0; font-size: 16px; opacity: .95; max-width: 75%; position: relative; z-index: 1; }
.insel .figur { position: absolute; right: 14px; bottom: 10px; font-size: 76px; z-index: 1; animation: wackeln 3s ease-in-out infinite; }
.insel .stand { margin-top: auto; padding-top: 14px; font-weight: 600; position: relative; z-index: 1; }
.insel .balken { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); margin-top: 6px; width: 70%; overflow: hidden; }
.insel .balken i { display: block; height: 100%; background: #fff; border-radius: 10px; }
.band { position: absolute; top: 16px; right: -36px; transform: rotate(35deg); background: #ffc531; color: #5a3b00; font-weight: 700; padding: 4px 40px; font-size: 14px; z-index: 2; }
@keyframes wackeln { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-6px); } }

/* Lernpfad */
.pfadKopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pfadKopf h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); }
.pfadKopf .sub { color: var(--leise); }
.pfad { position: relative; max-width: 520px; margin: 0 auto; padding: 20px 0 40px; }
.pfad svg.linie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.station { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 26px var(--v, 0%); width: max-content; max-width: calc(100% - var(--v, 0%)); }
.station .info { min-width: 0; }
.station .knoten { width: 86px; height: 86px; border-radius: 50%; border: 0; font-size: 40px; color: #fff; flex: none; position: relative; box-shadow: 0 7px 0 rgba(0, 0, 0, .18); }
.station .knoten:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.station.zu .knoten { background: #c5cede !important; filter: grayscale(1); }
[data-thema="dunkel"] .station.zu .knoten { background: #3a4577 !important; }
.station.jetzt .knoten { animation: pulsieren 1.6s ease-in-out infinite; }
@keyframes pulsieren { 0%, 100% { box-shadow: 0 7px 0 rgba(0, 0, 0, .18), 0 0 0 0 rgba(255, 197, 49, .7); } 50% { box-shadow: 0 7px 0 rgba(0, 0, 0, .18), 0 0 0 16px rgba(255, 197, 49, 0); } }
.station .info { background: var(--karte); border-radius: 16px; padding: 8px 14px; box-shadow: var(--schatten); font-weight: 600; font-size: 17px; }
.station .info small { display: block; font-weight: 400; color: var(--leise); font-size: 14px; }
.station .sternchen { font-size: 16px; letter-spacing: 1px; }
.station .figur { position: absolute; left: -54px; top: -10px; font-size: 46px; animation: hopsen 2s ease-in-out infinite; }
.station.rechts .figur { left: auto; right: -54px; }

/* Spielrunde */
.spiel { max-width: 860px; margin: 0 auto; }
.spielLeiste { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fortschritt { flex: 1; display: flex; gap: 5px; }
.fortschritt i { flex: 1; height: 14px; border-radius: 10px; background: var(--karte); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .12); }
.fortschritt i.ok { background: var(--gruen); } .fortschritt i.nein { background: var(--gelb); } .fortschritt i.jetzt { background: var(--blau); animation: blinken 1s ease-in-out infinite alternate; }
@keyframes blinken { to { opacity: .5; } }
.sprecher { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.sprecher .ava { width: 74px; height: 74px; font-size: 50px; box-shadow: var(--schatten); transition: transform .2s; }
.sprecher .ava.freut { animation: jubeln .7s ease; } .sprecher .ava.denkt { animation: schuetteln .5s ease; }
@keyframes jubeln { 30% { transform: translateY(-18px) scale(1.15) rotate(-8deg); } 60% { transform: translateY(0) scale(1) rotate(6deg); } }
.blase { position: relative; background: var(--karte); border-radius: 20px; padding: 14px 18px; box-shadow: var(--schatten); font-family: var(--lesen); font-size: clamp(20px, 3vw, 26px); font-weight: 700; flex: 1; line-height: 1.3; }
.blase::before { content: ''; position: absolute; left: -10px; top: 24px; border: 10px solid transparent; border-right-color: var(--karte); border-left: 0; }
.blase .hinweis { display: block; font-size: 17px; font-weight: 400; color: var(--leise); margin-top: 6px; }
.blase .hinweis.lob { color: var(--gruen); font-weight: 700; } .blase .hinweis.tipp { color: #d9480f; }
[data-thema="dunkel"] .blase .hinweis.tipp { color: #ffa94d; }
.buehne { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 18px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.buehne:empty { display: none; }
.antworten { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin-top: 16px; }
.antworten.breit { grid-template-columns: 1fr 1fr; }
.antwort { border: 0; border-radius: 22px; min-height: 84px; font-size: 40px; font-weight: 700; background: var(--karte); box-shadow: 0 6px 0 var(--rand), 0 10px 20px rgba(0, 0, 0, .08); transition: transform .1s; padding: 10px; }
.antwort:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--rand); }
.antwort.richtig { background: var(--gruen); color: #fff; box-shadow: 0 6px 0 #188a5c; animation: jubeln .5s; }
.antwort.falsch { background: #ffe0e3; color: #c43a4c; animation: schuetteln .45s; opacity: .7; }
[data-thema="dunkel"] .antwort.falsch { background: #5a2a3a; color: #ffb3bd; }
.antwort.zeigen { outline: 5px solid var(--gruen); outline-offset: 3px; }
@keyframes schuetteln { 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.weiterLeiste { display: flex; justify-content: center; margin-top: 18px; }

/* Bildbausteine der Aufgaben */
.haufen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 520px; }
.ding { font-family: var(--emoji); font-size: clamp(38px, 7vw, 54px); display: inline-block; transform: rotate(var(--dr, 0deg)); position: relative; line-height: 1.1; user-select: none; }
.ding.z { cursor: pointer; }
.ding.gezaehlt::after { content: attr(data-n); position: absolute; right: -8px; top: -8px; background: var(--blau); color: #fff; font-family: var(--schrift); font-size: 16px; font-weight: 700; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; transform: rotate(calc(-1 * var(--dr, 0deg))); }
.ding.weg { opacity: .45; } .ding.weg::before { content: ''; position: absolute; inset: 8%; z-index: 1;
  background: linear-gradient(45deg, transparent 44%, #e03131 44%, #e03131 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #e03131 44%, #e03131 56%, transparent 56%); }
.aufgabe { font-family: var(--lesen); font-size: clamp(36px, 7vw, 56px); font-weight: 700; letter-spacing: 2px; }
.aufgabe.gross { font-size: clamp(44px, 9vw, 72px); }
.luecke { display: inline-block; min-width: 1.4em; padding: 0 .2em; border-radius: 14px; background: #fff3bf; color: #e8590c; text-align: center; border: 3px dashed #ffa94d; }
[data-thema="dunkel"] .luecke { background: #4a3a10; }
.rechenbild { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.rechenbild .gruppe { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-radius: 16px; background: var(--karte2); font-size: clamp(30px, 5vw, 42px); max-width: calc(5 * 1.2em + 36px); justify-content: center; }
.rechenbild .gruppe .ding { font-size: 1em; }
.rechenbild .op { font-size: 44px; font-weight: 700; padding: 0 6px; }
.rechenbild .ding, .korb .ding { font-size: clamp(30px, 5vw, 42px); }
.korb { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 10px; min-height: 120px; align-content: center; border-radius: 18px; background: repeating-linear-gradient(45deg, #f6d7a7, #f6d7a7 10px, #efc98f 10px, #efc98f 20px); }
.vergleich { display: flex; gap: 20px; align-items: center; font-family: var(--lesen); font-size: clamp(54px, 10vw, 80px); font-weight: 700; }
.kroko { font-size: 17px; color: var(--leise); }
.antwort .korb { min-height: 100px; }
.zhaus { width: min(320px, 90%); }
.zhaus .dach { background: var(--rot); color: #fff; font-size: 44px; font-weight: 700; text-align: center; padding: 26px 0 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.zhaus .raeume { display: grid; grid-template-columns: 1fr 1fr; border: 5px solid var(--rot); border-top: 0; }
.zhaus .raum { padding: 12px; text-align: center; font-size: 40px; font-weight: 700; background: #fff8e8; }
[data-thema="dunkel"] .zhaus .raum { background: #2c3570; }
.zhaus .raum + .raum { border-left: 5px solid var(--rot); }
.zhaus .raum small { display: block; font-size: 18px; letter-spacing: -2px; font-family: var(--emoji); }
.zhaus .raum.frage b { color: #e8590c; }
.strahl { width: 100%; max-width: 640px; color: var(--text); }
.strahl .emo, .strahl text.emo { font-family: var(--emoji); }
.zehnerbild { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stange { display: grid; grid-template-rows: repeat(10, 22px); gap: 3px; padding: 6px; background: #ffd8a8; border-radius: 14px; border: 3px solid #e8590c; }
.stange i, .einer i { width: 22px; height: 22px; border-radius: 50%; background: #e8590c; display: block; }
.einer { display: grid; grid-template-columns: repeat(2, 22px); gap: 8px; }
.einer i { background: var(--blau); }
.schmetterling { display: flex; align-items: center; gap: 4px; }
.fluegel { width: 130px; height: 150px; background: linear-gradient(135deg, #ffa8d4, #b197fc); border-radius: 70% 20% 70% 40%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; padding: 16px; }
.fluegel.rechts { border-radius: 20% 70% 40% 70%; }
.fluegel i { width: 18px; height: 18px; border-radius: 50%; background: #3b2a6b; display: block; }
.schmetterling .koerper { font-size: 44px; transform: rotate(90deg); font-family: var(--emoji); }
.kinder { font-size: 52px; font-family: var(--emoji); }
.formfeld { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(420px, 100%); }
.form { border: 0; background: var(--karte2); border-radius: 18px; aspect-ratio: 1; padding: 10px; position: relative; }
.form svg { width: 100%; height: 100%; transform: rotate(var(--dr)); }
.form.gefunden { background: #d3f9d8; outline: 4px solid var(--gruen); }
.form.gefunden::after { content: '✓'; position: absolute; top: 4px; right: 8px; color: var(--gruen); font-size: 26px; font-weight: 700; }
.form.daneben { animation: schuetteln .4s; background: #ffe0e3; }
[data-thema="dunkel"] .form.gefunden { background: #1f5a3e; } [data-thema="dunkel"] .form.daneben { background: #5a2a3a; }
.geldfeld { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; min-height: 80px; }
.muenze { width: 74px; height: 74px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: #5a3b00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #e8b923 60%, #b8860b); box-shadow: inset 0 0 0 5px #c79a15, 0 4px 0 #8a6a0b; }
.muenze.m2 { width: 80px; height: 80px; background: radial-gradient(circle at 35% 30%, #fff, #ced4da 45%, #e8b923 46%, #b8860b); }
.schein { width: 120px; height: 66px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.schein.s5 { background: linear-gradient(135deg, #adb5bd, #868e96); } .schein.s10 { background: linear-gradient(135deg, #ff8787, #e03131); }
.geldwahl { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.geldwahl button { border: 0; background: none; padding: 0; } .geldwahl button:active { transform: scale(.92); }
.geldbeutel { min-height: 110px; width: 100%; border: 4px dashed var(--rand); border-radius: 20px; padding: 10px; }
.uhr { width: min(240px, 70vw); }
.muster { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: clamp(32px, 6vw, 46px); font-family: var(--emoji); }
.muster .luecke { font-family: var(--schrift); font-size: .8em; }
.gross { font-size: 52px; }
.tastatur { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 520px; margin: 16px auto 0; }
.tastatur button { border: 0; border-radius: 18px; min-height: 64px; font-size: 30px; font-weight: 700; background: var(--karte); box-shadow: 0 5px 0 var(--rand); }
.tastatur button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rand); }
.tastatur .ok { background: var(--gruen); color: #fff; box-shadow: 0 5px 0 #188a5c; grid-column: span 2; }
.tastatur .weg { background: var(--karte2); grid-column: span 3; }

/* Ergebnis */
.ergebnis { text-align: center; max-width: 560px; margin: 10px auto; }
.ergebnis .grosseSterne { font-size: 74px; display: flex; justify-content: center; gap: 10px; margin: 10px 0; }
.ergebnis .grosseSterne span { animation: sternRein .6s cubic-bezier(.2, 1.6, .4, 1) both; display: inline-block; font-family: var(--emoji); }
.ergebnis .grosseSterne span:nth-child(2) { animation-delay: .35s; } .ergebnis .grosseSterne span:nth-child(3) { animation-delay: .7s; }
.ergebnis .grosseSterne span.aus { filter: grayscale(1); opacity: .3; }
@keyframes sternRein { from { transform: scale(0) rotate(-180deg); opacity: 0; } }
.sticker { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: var(--karte2); border-radius: 20px; padding: 12px 22px; margin: 10px 0; animation: jubeln 1s ease .9s both; }
.sticker .emo { font-size: 60px; }

/* Album */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-top: 14px; }
.albumfeld { background: var(--karte); border-radius: 20px; box-shadow: var(--schatten); padding: 14px 8px; text-align: center; font-size: 14px; font-weight: 600; }
.albumfeld .emo { font-size: 50px; display: block; margin-bottom: 6px; }
.albumfeld.leer .emo { filter: grayscale(1) brightness(.3); opacity: .25; }
.albumfeld.leer { color: var(--leise); }

/* Eltern-Bereich */
.reiter { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.reiter button { border: 0; border-radius: 14px; padding: 10px 16px; font-size: 16px; font-weight: 600; background: var(--karte); box-shadow: var(--schatten); }
.reiter button.an { background: var(--blau); color: #fff; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { white-space: nowrap; padding: 8px 6px; border-bottom: 1px solid var(--rand); text-align: left; }
.tabelle th { color: var(--leise); font-weight: 600; }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tierwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.tierwahl button { border: 3px solid transparent; background: var(--karte2); border-radius: 18px; font-size: 38px; padding: 6px; font-family: var(--emoji); }
.tierwahl button.an { border-color: var(--orange); background: #fff1e6; }
[data-thema="dunkel"] .tierwahl button.an { background: #4a3520; }
.klassenwahl { display: flex; gap: 8px; } .klassenwahl button { flex: 1; border: 3px solid transparent; background: var(--karte2); border-radius: 14px; padding: 10px; font-size: 20px; font-weight: 700; }
.klassenwahl button.an { border-color: var(--lila); }
.pinfeld { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.pinfeld i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blau); display: block; }
.pinfeld i.voll { background: var(--blau); }
.pintasten { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.pintasten button { height: 62px; border: 0; border-radius: 16px; background: var(--karte2); font-size: 26px; font-weight: 700; }
.kindliste { display: grid; gap: 10px; }
.kindzeile { display: flex; align-items: center; gap: 12px; background: var(--karte2); border-radius: 16px; padding: 10px; }
.kindzeile .ava { width: 52px; height: 52px; font-size: 32px; }
.kindzeile b { font-size: 18px; } .kindzeile .zeile { margin-left: auto; }

/* Fenster, Hinweise */
.schleier { position: fixed; inset: 0; background: rgba(13, 20, 48, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.fenster { background: var(--karte); border-radius: 26px; padding: 22px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center; display: grid; gap: 12px; max-height: 92vh; overflow: auto; animation: rein .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rein { from { transform: scale(.8); opacity: 0; } }
.fensterTier { font-size: 60px; }
#lzSchritt1, #lzSchritt2 { display: grid; gap: 10px; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #23304a; color: #fff; padding: 12px 20px; border-radius: 16px; font-size: 17px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 90vw; text-align: center; }
#konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }
.textseite { max-width: 760px; margin: 0 auto; line-height: 1.6; font-size: 17px; }
.textseite h2 { margin-top: 1.2em; }

@media (max-width: 600px) {
  .klassen { flex-wrap: nowrap; gap: 6px; } .klassen button { flex: 1; padding: 9px 4px; font-size: 15px; }
  .rechenbild { flex-wrap: nowrap; } .rechenbild .gruppe { font-size: 24px; padding: 6px; } .rechenbild .ding, .korb .ding { font-size: 26px; }
  .rechenbild .op { font-size: 32px; padding: 0 2px; }
  .weiterKarte > div { min-width: 140px; }
  .gruss .ava { width: 58px; height: 58px; font-size: 36px; } .sternzahl { padding: 6px 12px; font-size: 17px; }
  .markenname { font-size: 20px; }
  .rund { width: 40px; height: 40px; font-size: 18px; }
  .kindKnopf span.n { display: none; } .kindKnopf { padding: 4px; }
  .sprecher .ava { width: 58px; height: 58px; font-size: 38px; } .sprecher .ava.bild { width: 70px; height: 70px; }
  .antwort { min-height: 72px; font-size: 34px; }
  .station .knoten { width: 72px; height: 72px; font-size: 34px; }
  .station .figur { display: none; }
  .station { margin-left: calc(var(--v, 0%) * .5); max-width: calc(100% - var(--v, 0%) * .5); gap: 10px; }
  .station .info { font-size: 15px; padding: 7px 10px; }
  .formfeld { gap: 8px; }
  .insel { min-height: 170px; } .insel .figur { font-size: 62px; } .insel .figur .figurBild { width: 92px; height: 92px; }
  .fuss { font-size: 13px; }
  .tabelle { font-size: 13px; } .tabelle td:first-child { white-space: normal; } .tabelle th:nth-child(4), .tabelle td:nth-child(4), .tabelle th:nth-child(5), .tabelle td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
