/* Alena Lernwelt - Kitty-Look (Palette und Schriften aus CONTRACT.md) */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root {
  --rosa: #ffe4ef; --rosa2: #ffc2d9; --pink: #ff4f8b; --pink2: #ff8fb1; --pinkdunkel: #c2185b;
  --gelb: #ffd34d; --gelb2: #fff4c7; --lila: #b38bff; --lila2: #f3edff; --mint: #7fd8be; --mint2: #effaf6; --mintdunkel: #1f8f6c;
  --blau: #8fc7ff; --blau2: #eaf4ff; --rot: #e53935; --rot2: #fdecea; --text: #2b2b2b; --muted: #8a6b78; --bg: #fff8fb; --card: #fff;
  --radius: 18px; --shadow: 0 6px 20px rgba(255, 79, 139, .12);
  --head: "Fredoka", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, sans-serif;
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; min-height: 100dvh; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; color: var(--pink); } h3 { font-size: 1.1rem; color: var(--pinkdunkel); } h4 { font-size: 1rem; }
p { margin: 0 0 .7em; }
a { color: var(--pink); }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; left: -9999px; }
.boot { min-height: 100dvh; display: grid; place-content: center; text-align: center; color: var(--muted); font-family: var(--head); }
.boot img { animation: bob 1.4s ease-in-out infinite; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .85em 1.5em; font-family: var(--head); font-size: 1.05rem; font-weight: 600; background: var(--pink); color: #fff; box-shadow: 0 6px 0 #d63a74, var(--shadow); transition: transform .08s, box-shadow .08s, filter .2s; text-decoration: none; min-height: 48px; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d63a74; }
.btn:disabled { filter: grayscale(.6) opacity(.55); cursor: not-allowed; box-shadow: 0 6px 0 #bbb; }
.btn.sec { background: #fff; color: var(--pink); border: 2px solid var(--pink2); box-shadow: 0 5px 0 var(--rosa2); }
.btn.sec:active { box-shadow: 0 1px 0 var(--rosa2); }
.btn.gelb { background: var(--gelb); color: #5a4300; box-shadow: 0 6px 0 #d9ad1c; }
.btn.lila { background: var(--lila); box-shadow: 0 6px 0 #8e63e6; }
.btn.mint { background: var(--mint); color: #0f4f3b; box-shadow: 0 6px 0 #4fb998; }
.btn.klein { padding: .5em 1em; font-size: .95rem; min-height: 40px; box-shadow: 0 4px 0 #d63a74; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--pink); box-shadow: none; border: 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; margin-top: 1em; }

/* Layout */
.shell { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rosa2); }
.top .in { display: flex; align-items: center; gap: .6em; padding: .5em .9em; max-width: 1100px; margin: 0 auto; }
.top .logo { display: flex; align-items: center; gap: .4em; font-family: var(--head); font-weight: 600; color: var(--pink); text-decoration: none; font-size: 1.1rem; }
.top .logo img { width: 34px; }
.top .spacer { flex: 1; }
@media (max-width: 560px) { .top .logo span, .chip .rname { display: none; } .top .in { padding: .45em .7em; } }
.chip { display: inline-flex; align-items: center; gap: .35em; background: #fff; border: 2px solid var(--rosa2); border-radius: 999px; padding: .25em .7em; font-family: var(--head); font-size: .9rem; color: var(--pinkdunkel); white-space: nowrap; }
.chip.streak { border-color: var(--gelb); background: var(--gelb2); color: #6b4e00; }
.chip.streak.aktiv { animation: glow 2.4s ease-in-out infinite; }
.chip .bar { width: 56px; height: 8px; background: var(--rosa); border-radius: 99px; overflow: hidden; }
.chip .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink2), var(--pink)); transition: width .8s cubic-bezier(.2, .9, .3, 1.2); }
main { max-width: 760px; margin: 0 auto; padding: 1em .9em 2em; }
main.breit { max-width: 1100px; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 2px solid var(--rosa2); display: flex; justify-content: space-around; padding: 6px 4px calc(6px + var(--safe-b)); height: calc(var(--nav-h) + var(--safe-b)); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-family: var(--head); font-size: .72rem; border-radius: 12px; padding: 4px 0; }
.nav a .ic { font-size: 1.35rem; line-height: 1; }
.nav a.aktiv { color: var(--pink); background: var(--rosa); }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 220px 1fr; padding-bottom: 0; }
  .top { grid-column: 1 / -1; }
  .nav { position: sticky; top: calc(var(--top-h, 52px) + 6px); align-self: start; flex-direction: column; justify-content: flex-start; height: auto; border: 0; border-right: 2px solid var(--rosa2); background: transparent; padding: 1em .6em; gap: 4px; }
  .nav a { flex: 0; flex-direction: row; justify-content: flex-start; gap: .6em; font-size: 1rem; padding: .6em .9em; }
  main { padding: 1.5em 2em 3em; }
}

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 1.1em 1.2em; margin: 0 0 1em; box-shadow: var(--shadow); border: 2px solid var(--rosa); }
.card.rosa { background: var(--rosa); border-color: var(--rosa2); }
.card.gelb { background: var(--gelb2); border-color: var(--gelb); }
.card.lila { background: var(--lila2); border-color: var(--lila); }
.card.mint { background: var(--mint2); border-color: var(--mint); }
.card h2 { display: flex; align-items: center; gap: .4em; }
.meta { color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; border-radius: 999px; padding: .1em .7em; font-family: var(--head); font-size: .78rem; font-weight: 600; background: var(--rosa); color: var(--pinkdunkel); vertical-align: middle; }
.tag.bonus { background: var(--mint2); color: var(--mintdunkel); }
.tag.pruef { background: var(--gelb2); color: #6b4e00; }
.tag.lock { background: #eee; color: #777; }
.tag.ok { background: var(--mint2); color: var(--mintdunkel); }
.row { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; }
.stack > * + * { margin-top: .8em; }
.hinweis { font-size: .9rem; color: var(--muted); background: #fff; border: 1.5px dashed var(--rosa2); border-radius: 12px; padding: .6em .9em; }

/* Kitty + Sprechblase */
.kitty { display: flex; align-items: flex-end; gap: .6em; margin: .8em 0 1em; }
.kitty .k-img { width: 72px; flex: 0 0 72px; animation: bob 3.2s ease-in-out infinite; }
.kitty .bubble { position: relative; background: #fff; border: 2px solid var(--pink2); border-radius: 18px; padding: .7em 1em; font-family: var(--head); font-weight: 500; color: #333; font-size: 1rem; line-height: 1.4; box-shadow: var(--shadow); }
.kitty .bubble::before { content: ""; position: absolute; left: -13px; bottom: 14px; border-width: 8px 13px 8px 0; border-style: solid; border-color: transparent var(--pink2) transparent transparent; }
.kitty .bubble::after { content: ""; position: absolute; left: -9px; bottom: 16px; border-width: 6px 10px 6px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
.kitty.small .k-img { width: 50px; flex-basis: 50px; } .kitty.small .bubble { font-size: .92rem; padding: .5em .8em; }
.kitty.big .k-img { width: 110px; flex-basis: 110px; } .kitty.big .bubble { font-size: 1.08rem; }
.kitty.center { flex-direction: column; align-items: center; text-align: center; }
.kitty.center .k-img { width: 150px; flex-basis: auto; }
.kitty.center .bubble::before, .kitty.center .bubble::after { left: 50%; bottom: auto; top: -14px; transform: translateX(-50%) rotate(90deg); }
.kitty.center .bubble::after { top: -10px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 211, 77, .0); } 50% { box-shadow: 0 0 0 5px rgba(255, 211, 77, .45); } }

/* Login */
.login { min-height: 100dvh; display: grid; place-items: center; background: linear-gradient(180deg, var(--rosa) 0%, var(--bg) 100%); padding: 1.5em; }
.login .box { width: min(420px, 100%); text-align: center; }
.login h1 { color: var(--pink); font-size: 2rem; margin-top: .3em; }
.login input { width: 100%; font: inherit; font-size: 1.15rem; padding: .8em 1em; border-radius: 999px; border: 2px solid var(--pink2); text-align: center; margin: 1em 0 .7em; background: #fff; letter-spacing: .15em; }
.login input:focus { outline: 3px solid var(--rosa2); border-color: var(--pink); }
.fehler { color: var(--rot); font-family: var(--head); min-height: 1.4em; margin-top: .4em; }

/* Heute */
.greet { display: flex; align-items: center; gap: .8em; margin-bottom: .6em; }
.greet h1 { margin: 0; font-size: 1.5rem; }
.ziel { display: grid; grid-template-columns: 1fr auto; gap: 1em; align-items: center; }
.ring { width: 92px; height: 92px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: var(--rosa); } .ring .fg { stroke: var(--pink); transition: stroke-dashoffset 1s cubic-bezier(.2, .9, .3, 1.1); }
.ring .txt { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--pinkdunkel); }
.checklist { list-style: none; padding: 0; margin: .5em 0; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; padding: .45em 0; border-bottom: 1px dashed var(--rosa2); }
.checklist li:last-child { border: 0; }
.checklist .box { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2px solid var(--pink2); display: grid; place-content: center; font-size: .9rem; color: #fff; background: #fff; }
.checklist li.done .box { background: var(--mint); border-color: var(--mint); }
.checklist li.done .t { text-decoration: line-through; color: var(--muted); }
.checklist .t { flex: 1; } .checklist .t small { display: block; color: var(--muted); font-size: .82rem; }
.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-family: var(--head); font-size: .8rem; color: var(--muted); }
.woche .d { background: #fff; border-radius: 12px; padding: .4em 0; border: 2px solid transparent; }
.woche .d b { display: block; font-size: 1.1rem; }
.woche .d.heute { border-color: var(--pink); color: var(--pink); }
.woche .d.ok { background: var(--mint2); color: var(--mintdunkel); }
.woche .d.frei { opacity: .5; }
.woche .d.verpasst { background: var(--rosa); }
.fortschritt { height: 16px; background: var(--rosa); border-radius: 99px; position: relative; overflow: visible; margin: .6em 0 .3em; }
.fortschritt i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink2), var(--pink)); transition: width 1s; }
.fortschritt .marker { position: absolute; top: -6px; width: 2px; height: 28px; background: var(--lila); }
.fortschritt .marker span { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; color: var(--lila); font-family: var(--head); }
.weltenliste { list-style: none; padding: 0; margin: 0; }
.weltenliste li { display: grid; grid-template-columns: 34px 1fr auto; gap: .6em; align-items: center; padding: .5em 0; border-bottom: 1px dashed var(--rosa2); }
.weltenliste li:last-child { border: 0; }
.weltenliste .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; font-family: var(--head); font-weight: 700; color: #fff; background: var(--pink); }
.weltenliste .mini { height: 8px; background: var(--rosa); border-radius: 99px; overflow: hidden; margin-top: 4px; } .weltenliste .mini i { display: block; height: 100%; background: var(--pink); }

/* Karte / Lernpfad */
.weltenleiste { display: flex; gap: .5em; overflow-x: auto; padding: .2em 0 .6em; scrollbar-width: none; }
.weltenleiste a { flex: 0 0 auto; text-decoration: none; }
.welt { border-radius: 24px; padding: 1em 1em 1.4em; margin-bottom: 1.2em; border: 2px solid transparent; position: relative; }
.welt.gelb { background: var(--gelb2); border-color: var(--gelb); } .welt.rosa { background: var(--rosa); border-color: var(--rosa2); }
.welt.lila { background: var(--lila2); border-color: var(--lila); } .welt.mint { background: var(--mint2); border-color: var(--mint); } .welt.blau { background: var(--blau2); border-color: var(--blau); }
.welt.zu { filter: grayscale(.5); opacity: .8; }
.welt header { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; margin-bottom: .4em; }
.welt header h2 { color: var(--text); font-size: 1.15rem; margin: 0; flex: 1; }
.pfad { position: relative; margin-top: .6em; }
.pfad svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pfad path { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 2 18; vector-effect: non-scaling-stroke; }
.knoten { position: absolute; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-decoration: none; background: #fff; border: 4px solid var(--rosa2); color: var(--pinkdunkel); font-family: var(--head); font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .08); transition: transform .15s; }
.knoten:hover { transform: translate(-50%, -50%) scale(1.06); }
.knoten.zu { background: #f1f1f1; border-color: #ddd; color: #aaa; }
.knoten.offen { border-color: var(--pink); animation: puls 1.8s ease-in-out infinite; }
.knoten.ok { border-color: var(--mint); background: var(--mint2); }
.knoten.ok svg { width: 44px; height: 38px; }
.knoten .stern { position: absolute; top: -8px; right: -8px; font-size: 1.1rem; }
.knoten .label { position: absolute; top: 68px; left: 50%; transform: translateX(-50%); width: 120px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--text); line-height: 1.2; font-family: var(--body); }
.knoten .sitzt { position: absolute; left: 66px; top: -6px; width: 56px; animation: bob 2.6s ease-in-out infinite; }
.knoten.rechts .sitzt { left: auto; right: 66px; transform: scaleX(-1); }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 139, .45); } 50% { box-shadow: 0 0 0 12px rgba(255, 79, 139, 0); } }
.flagge { display: flex; gap: .7em; align-items: center; background: #fff; border: 2px solid var(--lila); border-radius: 18px; padding: .8em 1em; margin: -0.4em 0 1.2em; }
.flagge .f { font-size: 2rem; }
.schild { display: inline-block; background: #fff; border: 2px solid var(--gelb); border-radius: 10px; padding: .3em .7em; font-size: .82rem; color: #6b4e00; margin: .3em 0; }
.schild::before { content: "➜ "; }
.tipp-bubble { position: absolute; z-index: 5; background: #fff; border: 2px solid var(--pink2); border-radius: 14px; padding: .4em .7em; font-family: var(--head); font-size: .85rem; width: max-content; max-width: min(260px, 80vw); text-align: center; transform: translate(-50%, calc(-100% - 40px)); box-shadow: var(--shadow); }

/* Level-Übersicht */
.stationen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin: .8em 0; }
.stationen a, .stationen div { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .25em; padding: .7em .3em; border-radius: 14px; background: #fff; border: 2px solid var(--rosa2); color: var(--text); font-family: var(--head); font-size: .85rem; text-align: center; }
.stationen .ic { font-size: 1.5rem; }
.stationen .ok { background: var(--mint2); border-color: var(--mint); }
.stationen .aktiv { border-color: var(--pink); background: var(--rosa); }
.stationen .zu { opacity: .5; }
.teile { list-style: none; padding: 0; margin: .5em 0 0; font-size: .9rem; }
.teile li { display: flex; gap: .5em; padding: .2em 0; }
.teile li.ok { color: var(--mintdunkel); }

/* Stepper */
.stepper { display: flex; align-items: center; gap: .4em; margin: .2em 0 1em; font-family: var(--head); font-size: .85rem; color: var(--muted); }
.stepper span { flex: 1; text-align: center; padding: .4em .2em; border-radius: 10px; background: #fff; border: 2px solid var(--rosa); }
.stepper span.ok { background: var(--mint2); border-color: var(--mint); color: var(--mintdunkel); }
.stepper span.aktiv { background: var(--rosa); border-color: var(--pink); color: var(--pink); }
.lesebar { position: sticky; top: var(--top-h, 56px); z-index: 10; height: 5px; background: var(--rosa); border-radius: 99px; margin: -0.5em 0 1em; overflow: hidden; }
.lesebar i { display: block; height: 100%; background: var(--pink); width: 0; transition: width .2s; }

/* Video */
.player { background: #222; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.player video { width: 100%; height: 100%; display: block; }
.szene { background: #fff; border: 2px solid var(--rosa2); border-radius: var(--radius); padding: 1em 1.1em; margin-bottom: .9em; display: flex; gap: .8em; align-items: center; opacity: .55; transition: opacity .4s, transform .4s; }
.szene.da { opacity: 1; }
.szene img { width: 64px; flex: 0 0 64px; }
.szene .nr { font-family: var(--head); color: var(--pink); font-size: .8rem; }
.szene .vis { font-size: .8rem; color: var(--muted); margin-top: .3em; font-style: italic; }
.ohne-video { background: linear-gradient(135deg, var(--rosa), var(--lila2)); border-radius: var(--radius); padding: 1.2em; text-align: center; margin-bottom: 1em; }
.ohne-video img { width: 120px; animation: bob 3s ease-in-out infinite; }

/* Lese-Inhalt (Kästen wie in den PDFs) */
.inhalt { overflow-wrap: anywhere; } /* lange Literaturangaben/URLs umbrechen statt seitlich scrollen */
.inhalt table { overflow-wrap: break-word; }
.inhalt h4 { font-size: 1rem; margin: 1.2em 0 .3em; color: var(--pinkdunkel); }
.inhalt .sec-h { display: flex; align-items: baseline; gap: .5em; margin: 1.6em 0 .5em; border-top: 2px solid var(--rosa2); padding-top: 1em; }
.inhalt .sec-h h3 { margin: 0; color: var(--pink); } .inhalt .sec-h h3::before { content: "♥ "; color: var(--pink2); }
.inhalt .src { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.inhalt ul, .inhalt ol { padding-left: 1.3em; margin: 0 0 .7em; } .inhalt li { margin-bottom: .25em; } .inhalt ul li::marker { color: var(--pink); }
.inhalt table { border-collapse: separate; border-spacing: 0; width: 100%; margin: .6em 0 1em; font-size: .92rem; border: 1px solid var(--pink2); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
.inhalt th, .inhalt td { border-bottom: 1px solid var(--rosa2); border-right: 1px solid var(--rosa2); padding: .45em .6em; vertical-align: top; text-align: left; }
.inhalt th { background: var(--pink2); color: #fff; font-family: var(--head); font-weight: 600; }
.inhalt tbody tr:nth-child(even) td { background: #fff3f8; }
.def, .merke, .bsp, .warn, .tipp, .tldr, .uebung, .selbsttest { padding: .8em 1em; margin: .9em 0; border-radius: 14px; }
.def { border: 2px solid var(--pink); background: #fff; }
.merke { background: var(--gelb2); border: 2px solid var(--gelb); }
.bsp { background: var(--lila2); border-left: 5px solid var(--lila); border-radius: 0 14px 14px 0; }
.warn { border: 2px solid var(--rot); background: var(--rot2); }
.tipp { border: 2px dashed var(--mint); background: var(--mint2); }
.tipp::before { content: "Kitty-Tipp"; display: block; font-family: var(--head); font-size: .78rem; color: var(--mintdunkel); margin-bottom: .2em; }
.tldr { background: var(--rosa); border: 2px solid var(--pink2); }
.tldr h4 { color: var(--pink); margin: 0 0 .4em; } .tldr h4::before { content: "★ "; }
.tldr ul { margin: 0; padding-left: 1.2em; }
.uebung { border: 2px dashed var(--lila); background: #faf7ff; }
.uebung .aufgabe { white-space: pre-line; font-style: italic; }
.uebung details { margin-top: .5em; } .uebung summary { cursor: pointer; font-family: var(--head); color: var(--lila); font-weight: 600; }
.uebung ol { margin: .4em 0 0; }
.uebung label { display: flex; align-items: center; gap: .5em; margin-top: .7em; font-family: var(--head); color: var(--pinkdunkel); cursor: pointer; }
.uebung input { width: 22px; height: 22px; accent-color: var(--pink); }
.selbsttest { border: 2px solid var(--mint); background: var(--mint2); }
.selbsttest h4 { color: var(--mintdunkel); }
.selbsttest .frage { font-weight: 700; margin: .7em 0 .3em; }
.selbsttest .loesung { border-left: 3px solid var(--mint); padding-left: .7em; color: #444; font-size: .95rem; margin-top: .4em; }
.selbsttest .loesung[hidden] { display: none; }
/* Weiter-Leiste: klebt als deckende Leiste direkt auf der unteren Navigation, steht im Fluss NACH dem Inhalt
   (verdeckt also nie Text) und rutscht am Textende an ihren natürlichen Platz. */
.unten { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 15; margin: 1em -.9em 0; padding: .6em .9em; background: var(--bg); border-top: 2px solid var(--rosa2); text-align: center; }
.unten .meta { margin: .4em 0 0; }
.shell:has(.unten) { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
main:has(.unten) { padding-bottom: 0; }
@media (min-width: 900px) { .unten { bottom: 0; margin: 1em -2em 0; padding: .6em 2em .8em; } .shell:has(.unten) { padding-bottom: 0; } }

/* Quiz */
.q-kopf { display: flex; align-items: center; justify-content: space-between; font-family: var(--head); color: var(--muted); margin-bottom: .5em; }
.punkte { display: flex; gap: 5px; flex-wrap: wrap; }
.punkte i { width: 11px; height: 11px; border-radius: 50%; background: var(--rosa2); display: block; }
.punkte i.ok { background: var(--mint); } .punkte i.nein { background: var(--rot); } .punkte i.jetzt { background: var(--pink); transform: scale(1.3); }
.frage { font-family: var(--head); font-size: 1.2rem; font-weight: 600; margin: .3em 0 .9em; }
.optionen { display: grid; gap: .6em; }
.opt { display: flex; align-items: center; gap: .7em; width: 100%; text-align: left; background: #fff; border: 2px solid var(--rosa2); border-radius: 16px; padding: .8em 1em; font-size: 1rem; color: var(--text); transition: transform .1s, background .2s; }
.opt .m { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pink2); display: grid; place-content: center; font-family: var(--head); font-size: .85rem; color: var(--pink); background: #fff; }
.opt.mehr .m { border-radius: 8px; }
.opt.gewaehlt { border-color: var(--pink); background: var(--rosa); }
.opt.gewaehlt .m { background: var(--pink); color: #fff; border-color: var(--pink); }
.opt.richtig { border-color: var(--mint); background: var(--mint2); animation: wackel .35s; }
.opt.richtig .m { background: var(--mint); border-color: var(--mint); color: #063; }
.opt.falsch { border-color: var(--rot); background: var(--rot2); }
.opt.falsch .m { background: var(--rot); border-color: var(--rot); color: #fff; }
.opt:disabled { cursor: default; }
@keyframes wackel { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.03); } }
.erkl { margin-top: 1em; background: var(--gelb2); border: 2px solid var(--gelb); border-radius: 14px; padding: .8em 1em; }
.erkl b { font-family: var(--head); color: #6b4e00; }

/* Ergebnis / Belohnung */
.ergebnis { text-align: center; }
.ergebnis .big { font-family: var(--head); font-size: 2.2rem; font-weight: 700; color: var(--pink); margin: .2em 0; }
.ergebnis .score { font-size: 1.3rem; color: var(--pinkdunkel); font-family: var(--head); }
.sticker-pop { width: 160px; height: 160px; margin: .5em auto; border-radius: 50%; background: #fff; border: 5px solid var(--gelb); display: grid; place-content: center; position: relative; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1); box-shadow: var(--shadow); }
.sticker-pop svg { width: 120px; height: 104px; }
.sticker-pop .emo { position: absolute; right: -6px; bottom: -4px; font-size: 2rem; }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.xp-zeile { font-family: var(--head); font-size: 1.1rem; color: var(--pinkdunkel); }
.xp-zeile .zahl { font-size: 2rem; color: var(--pink); font-weight: 700; }
.xp-liste { list-style: none; padding: 0; margin: .5em 0; color: var(--muted); font-size: .92rem; }
.rangbar { height: 14px; background: var(--rosa); border-radius: 99px; overflow: hidden; margin: .4em 0; } .rangbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lila), var(--pink)); transition: width 1.2s cubic-bezier(.2, .9, .3, 1.1); }
.falsch-liste { text-align: left; list-style: none; padding: 0; }
.falsch-liste li { background: #fff; border: 2px solid var(--rosa2); border-radius: 14px; padding: .7em .9em; margin-bottom: .6em; }
.falsch-liste small { color: var(--muted); display: block; margin-top: .3em; }

/* Sticker-Album */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7em; }
.stk { background: #fff; border: 2px solid var(--rosa2); border-radius: 16px; padding: .6em .4em; text-align: center; font-size: .75rem; line-height: 1.2; }
.stk svg { width: 64px; height: 56px; display: block; margin: 0 auto .2em; }
.stk .emo { font-size: 1.8rem; display: block; margin: 0 auto .2em; }
.stk b { display: block; font-family: var(--head); color: var(--pinkdunkel); }
.stk.zu { filter: grayscale(1) opacity(.45); }
.stk.abzeichen { border-color: var(--gelb); background: var(--gelb2); }

/* Glossar */
.suche { width: 100%; font: inherit; font-size: 1.05rem; padding: .7em 1em; border-radius: 999px; border: 2px solid var(--rosa2); background: #fff; margin-bottom: 1em; }
.gl details { background: #fff; border: 2px solid var(--rosa); border-radius: 14px; margin-bottom: .5em; padding: .5em .9em; }
.gl summary { cursor: pointer; font-family: var(--head); font-weight: 600; color: var(--pinkdunkel); display: flex; justify-content: space-between; gap: .5em; }
.gl summary .tag { font-size: .7rem; }
.gl .buchstabe { font-family: var(--head); color: var(--pink); margin: 1em 0 .3em; font-size: 1.2rem; }

/* Einstellungen */
.form label { display: block; font-family: var(--head); font-weight: 600; color: var(--pinkdunkel); margin: 1em 0 .3em; }
.form input[type=date], .form input[type=text], .form select { width: 100%; font: inherit; font-size: 1rem; padding: .7em .9em; border-radius: 12px; border: 2px solid var(--rosa2); background: #fff; }
.tage { display: flex; gap: .4em; flex-wrap: wrap; }
.tage button { border: 2px solid var(--rosa2); background: #fff; border-radius: 999px; padding: .5em .8em; font-family: var(--head); font-weight: 600; color: var(--muted); min-width: 44px; }
.tage button.an { background: var(--pink); border-color: var(--pink); color: #fff; }
.wahl { display: flex; gap: .4em; flex-wrap: wrap; }
.wahl button { border: 2px solid var(--rosa2); background: #fff; border-radius: 12px; padding: .6em .9em; font-family: var(--head); font-weight: 600; color: var(--muted); }
.wahl button.an { background: var(--rosa); border-color: var(--pink); color: var(--pink); }
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em 0; border-bottom: 1px dashed var(--rosa2); }
.schalter input { width: 24px; height: 24px; accent-color: var(--pink); }

/* Toasts, Konfetti, Herzen */
#toasts { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .4em; pointer-events: none; }
.toast { background: #fff; border: 2px solid var(--gelb); border-radius: 999px; padding: .4em 1em; font-family: var(--head); font-weight: 700; color: var(--pinkdunkel); box-shadow: var(--shadow); animation: toast 2.6s forwards; }
@keyframes toast { 0% { transform: translateY(10px); opacity: 0; } 15%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.herz { position: fixed; bottom: 20%; font-size: 1.6rem; pointer-events: none; z-index: 95; animation: herz 2.2s ease-out forwards; }
@keyframes herz { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60vh) scale(1.3); opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(43, 43, 43, .45); display: grid; place-items: center; padding: 1em; }
.modal .card { width: min(440px, 100%); text-align: center; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }

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