/* Abschlussklasse (SEO-923, Julia&Jarvis<3)
   Leitbild: Klassenzimmer-Tafel trifft Textmarker. Tafelgruen als Hauptfarbe, Textmarker-Gelb fuer Belohnung,
   jedes Fach mit eigener Farbe. Breite Lernflaeche fuer Desktop und Tablet, eine Frage pro Bildschirm. */
:root {
  --bg: #f1f4f7; --karte: #ffffff; --karte2: #f7f9fb; --tinte: #121a24; --leise: #586474; --linie: #d9e0e8;
  --haupt: #1d7a5f; --haupt-dunkel: #155c47; --haupt-tint: #def1e9; --auf-haupt: #ffffff;
  --marker: #ffd23f; --marker-tint: #fff4c7; --auf-marker: #3a2c00;
  --gut: #1f8a4c; --gut-tint: #e2f5e9; --schlecht: #c4372d; --schlecht-tint: #fde6e3;
  --brom: #b4561c; --brom-hell: #e9a46d; --brom-tint: #fbe9db; --dbl: #0d7f8f; --dbl-tint: #d9f0f3; --glas: #e7eef2; --klar: #f6fafb;
  --chemie: #0d9488; --mathe: #2f5bd8; --bwr: #7c4ddb; --deutsch: #d7403f; --englisch: #2a8bd6; --physik: #d98a06; --biologie: #2e9b4f; --geschichte: #a86d1e; --pug: #c4307a; --religion: #6b6f80;
  --schatten: 0 1px 2px rgb(18 26 36 / .06), 0 6px 20px rgb(18 26 36 / .06);
  --titel: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --rund: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e131a; --karte: #161e28; --karte2: #1b2430; --tinte: #e8edf3; --leise: #9aa7b6; --linie: #2a3543;
  --haupt: #3ccf9a; --haupt-dunkel: #2fb183; --haupt-tint: #133328; --auf-haupt: #08251b;
  --marker: #ffd23f; --marker-tint: #3a3110; --auf-marker: #2b2100;
  --gut: #5fd68d; --gut-tint: #12301f; --schlecht: #ff8a7f; --schlecht-tint: #3a1a17;
  --brom: #ef8a4a; --brom-hell: #b9643a; --brom-tint: #3a2418; --dbl: #4cc3d2; --dbl-tint: #163339; --glas: #223040; --klar: #1b2633;
  --chemie: #2dd4bf; --mathe: #7b9bff; --bwr: #ad8cff; --deutsch: #ff7b7a; --englisch: #6cb8ff; --physik: #ffb84d; --biologie: #5fd68d; --geschichte: #e0a55a; --pug: #ff7ab8; --religion: #a6abbd;
  --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e131a; --karte: #161e28; --karte2: #1b2430; --tinte: #e8edf3; --leise: #9aa7b6; --linie: #2a3543;
  --haupt: #3ccf9a; --haupt-dunkel: #2fb183; --haupt-tint: #133328; --auf-haupt: #08251b;
  --marker: #ffd23f; --marker-tint: #3a3110; --auf-marker: #2b2100;
  --gut: #5fd68d; --gut-tint: #12301f; --schlecht: #ff8a7f; --schlecht-tint: #3a1a17;
  --brom: #ef8a4a; --brom-hell: #b9643a; --brom-tint: #3a2418; --dbl: #4cc3d2; --dbl-tint: #163339; --glas: #223040; --klar: #1b2633;
  --chemie: #2dd4bf; --mathe: #7b9bff; --bwr: #ad8cff; --deutsch: #ff7b7a; --englisch: #6cb8ff; --physik: #ffb84d; --biologie: #5fd68d; --geschichte: #e0a55a; --pug: #ff7ab8; --religion: #a6abbd;
  --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tinte); font: 17px/1.55 var(--text); }
h1, h2, h3 { font-family: var(--titel); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
p { margin: 0; }
a { color: var(--haupt-dunkel); }
.mini { font-size: .82rem; color: var(--leise); }
.leise-text { color: var(--leise); }
.f { font-family: var(--mono); font-size: .95em; }
.hl { background: var(--marker-tint); border-radius: 4px; padding: 0 .15em; }
.rollbar { overflow-x: auto; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 6px; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--linie); background: var(--karte); color: var(--tinte);
  font: 650 .97rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.knopf:hover:not(:disabled) { border-color: var(--haupt); }
.knopf:active:not(:disabled) { transform: scale(.97); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.haupt { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); }
.knopf.haupt:hover:not(:disabled) { background: var(--haupt-dunkel); }
.knopf.leise { background: transparent; }
.knopf.klein { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; }
.knopf.rund { width: 36px; padding: 0; }
.knopf.gefahr { background: var(--schlecht); border-color: var(--schlecht); color: #fff; }
.knopf.breit { width: 100%; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--karte); border-bottom: 1px solid var(--linie); padding-top: env(safe-area-inset-top, 0px); }
.kopf-innen { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; min-height: 64px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.marke-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinte); font: 800 1.12rem var(--titel); }
.marke-logo svg, .anmeldelogo { width: 32px; height: 32px; }
.logo-tafel { fill: var(--haupt); } .logo-haken { fill: none; stroke: var(--marker); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hauptnav { display: flex; gap: .25rem; }
.hauptnav a { padding: .45rem .85rem; border-radius: 999px; text-decoration: none; color: var(--leise); font-weight: 650; }
.hauptnav a[aria-current] { background: var(--haupt-tint); color: var(--haupt-dunkel); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.serie { display: inline-flex; align-items: center; gap: .25rem; color: var(--brom); font-weight: 800; }
.serie svg { width: 20px; height: 20px; fill: currentColor; }
.levelchip { display: grid; grid-template-columns: auto 90px; grid-template-rows: auto auto; column-gap: .6rem; align-items: center;
  text-decoration: none; color: var(--tinte); font-weight: 750; font-size: .9rem; }
.levelchip .mini { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }
.levelbalken { height: 8px; border-radius: 99px; background: var(--linie); overflow: hidden; }
.levelbalken span { display: block; height: 100%; width: 0; background: var(--marker); transition: width .5s; }

.inhalt { max-width: 1240px; margin: 0 auto; padding-block: 1.6rem 7rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.inhalt:focus { outline: none; }
.laden, .leer { color: var(--leise); padding: 3rem 0; text-align: center; }

/* Startseite */
.start { display: grid; gap: 1.6rem; }
.begruessung { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: stretch; justify-content: space-between; }
.begruessung > div:first-child { display: grid; gap: .5rem; max-width: 40rem; }
.countdown { display: grid; align-content: center; justify-items: start; gap: .1rem; background: var(--tinte); color: var(--bg);
  border-radius: var(--rund); padding: 1rem 1.4rem; min-width: 14rem; }
.countdown b { font: 800 2.6rem/1 var(--titel); color: var(--marker); font-variant-numeric: tabular-nums; }
.countdown .mini { color: inherit; opacity: .7; }
.faecher { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.fachkachel { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); text-decoration: none; color: var(--tinte);
  box-shadow: var(--schatten); transition: transform .15s, border-color .15s; min-width: 0; }
.fachkachel:hover { transform: translateY(-2px); border-color: var(--fach); }
.fachkachel .ring { grid-row: 1 / 3; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fach) calc(var(--anteil) * 360deg), var(--linie) 0); }
.fachkachel .ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--karte); display: grid; place-items: center; font: 800 1rem var(--titel); color: var(--fach); }
.fachname { font: 750 1.1rem var(--titel); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.marke { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .06em; background: var(--marker); color: var(--auf-marker); border-radius: 6px; padding: .1rem .4rem; }
.hinweisband { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-radius: var(--rund);
  background: var(--marker-tint); border: 1px solid var(--marker); }

/* Kommende Schulaufgaben */
.schulaufgaben { display: grid; gap: .8rem; }
.sa-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sa-karte { display: grid; gap: .7rem; align-content: start; padding: 1rem 1.1rem; background: var(--karte); border: 1px solid var(--linie);
  border-top: 4px solid var(--fach); border-radius: var(--rund); box-shadow: var(--schatten); min-width: 0; }
.sa-karte.bald-dran { border-color: var(--fach); }
.sa-kopf { display: flex; gap: .9rem; align-items: center; }
.sa-kopf h3 { font: 750 1.1rem var(--titel); margin: 0; }
.sa-tage { display: grid; place-items: center; min-width: 3.6rem; padding: .35rem .5rem; border-radius: 12px; background: color-mix(in srgb, var(--fach) 16%, transparent); color: var(--fach); line-height: 1; }
.sa-tage b { font: 800 1.6rem var(--titel); font-variant-numeric: tabular-nums; }
.sa-tage span { font-size: .7rem; }
.sa-stoff { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; font-size: .92rem; }
.sa-karte .knopf { justify-self: start; }

/* Fachfarben */
.fach-chemie { --fach: var(--chemie); } .fach-mathe { --fach: var(--mathe); } .fach-bwr { --fach: var(--bwr); } .fach-deutsch { --fach: var(--deutsch); }
.fach-englisch { --fach: var(--englisch); } .fach-physik { --fach: var(--physik); } .fach-biologie { --fach: var(--biologie); }
.fach-geschichte { --fach: var(--geschichte); } .fach-pug { --fach: var(--pug); } .fach-religion { --fach: var(--religion); }

/* Fachseite */
.fachseite { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.fachliste { position: sticky; top: 84px; display: grid; gap: .15rem; }
.fachliste .mini { margin-bottom: .3rem; }
.fachlink { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; color: var(--tinte); font-weight: 600; }
.fachlink .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--fach, var(--haupt)); flex: none; }
.fachlink:hover { background: var(--karte); }
.fachlink.aktiv { background: var(--karte); box-shadow: var(--schatten); }
.fachhaupt { display: grid; gap: 1rem; min-width: 0; }
.fachkopf { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; padding-bottom: .8rem; border-bottom: 3px solid var(--fach, var(--haupt)); }
.alle-label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 650; cursor: pointer; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--haupt); cursor: pointer; flex: none; }
.bereich { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); overflow: hidden; }
.bereich > summary { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; cursor: pointer; list-style: none; background: var(--karte2); }
.bereich > summary::-webkit-details-marker { display: none; }
.bereich > summary::after { content: "▾"; margin-left: auto; color: var(--leise); transition: transform .2s; }
.bereich:not([open]) > summary::after { transform: rotate(-90deg); }
.bereichstitel { display: grid; gap: .05rem; }
.pruefbereich > summary { background: var(--marker-tint); }
.themenliste { list-style: none; margin: 0; padding: 0; }
.themenzeile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 1.1rem; border-top: 1px solid var(--linie); }
.themenzeile.bald { opacity: .55; }
.themenlabel { display: flex; align-items: center; gap: .8rem; cursor: pointer; flex: 1 1 18rem; min-width: 0; }
.themaname { display: grid; }
.themarechts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gelesen { font-size: .75rem; font-weight: 700; color: var(--gut); background: var(--gut-tint); padding: .1rem .5rem; border-radius: 99px; }
.sterne { letter-spacing: .05em; color: var(--linie); font-size: 1.05rem; white-space: nowrap; }
.sterne .an { color: var(--marker); text-shadow: 0 0 1px var(--auf-marker); }
.bestaetigen { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 650; color: var(--schlecht); }

/* Auswahlleiste */
.auswahlleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--tinte); color: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 30px rgb(0 0 0 / .18); }
.leiste-innen { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-block: .75rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.leiste-zahl b { color: var(--marker); font-size: 1.2rem; }
.leiste-platz { flex: 1; }
.auswahlleiste .knopf { background: transparent; color: var(--bg); border-color: rgb(255 255 255 / .3); }
.auswahlleiste .knopf.haupt { background: var(--marker); color: var(--auf-marker); border-color: var(--marker); }

/* Lernteil */
.lernseite { max-width: 52rem; margin: 0 auto; display: grid; gap: 1rem; }
.lerninhalt { display: grid; gap: 1rem; }
.lern-h { margin-top: 1rem; }
.lern-text, .lern-liste { max-width: 65ch; }
.lern-liste { margin: 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.merke { border-left: 5px solid var(--haupt); background: var(--haupt-tint); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; }
.achtung { border-left: 5px solid var(--schlecht); background: var(--schlecht-tint); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; }
.lern-tabelle { border-collapse: collapse; width: 100%; background: var(--karte); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.lern-tabelle th, .lern-tabelle td { padding: .55rem .75rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.lern-tabelle th { font-family: var(--titel); background: var(--karte2); }
.formel, .molbox { margin: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: .9rem 1.1rem; display: grid; gap: .4rem; }
.formel .f { font-size: 1.1rem; }
.molraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.lernfuss { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--linie); margin-top: 1rem; }
.lernfuss .haupt { margin-left: auto; }

/* Strukturformeln */
svg.mol { display: block; max-width: 100%; height: auto; }
.mol text { font: 700 17px var(--mono); text-anchor: middle; dominant-baseline: central; }
.mol .C, .mol .R { fill: var(--tinte); } .mol .H { fill: var(--leise); } .mol .Br { fill: var(--brom); }
.mol .ladung { font-size: 13px; fill: var(--brom); } .mol .plus { font-size: 20px; fill: var(--schlecht); }
.mol .b1 { stroke: var(--leise); stroke-width: 2; } .mol .b2 { stroke: var(--dbl); stroke-width: 2.6; } .mol .bBr { stroke: var(--brom); stroke-width: 2.4; }
.mol .hl { fill: var(--dbl-tint); }
.bildsvg svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.bildsvg text { font-family: var(--mono); fill: var(--tinte); }
.bildsvg .linie { stroke: var(--leise); stroke-width: 2; fill: none; }
.bildsvg .akzent { stroke: var(--dbl); fill: none; stroke-width: 2.6; }
.bildsvg .rot { fill: var(--brom); }
.puls { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .3; } }

/* Bausteine */
.baustein { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.1rem; display: grid; gap: .9rem; box-shadow: var(--schatten); }
.leiste { display: flex; gap: .5rem; flex-wrap: wrap; }
.glaeser { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.glasbox { margin: 0; display: grid; justify-items: center; gap: .3rem; text-align: center; max-width: 14rem; }
.glasbox svg { width: 92px; height: auto; overflow: visible; }
.glasbox figcaption { display: grid; gap: .1rem; }
.glasbox .befund { font-size: .9rem; color: var(--leise); min-height: 2.6em; }
.glasbox .glas { fill: var(--glas); stroke: var(--leise); stroke-width: 2; }
.glasbox .rand { fill: none; stroke: var(--leise); stroke-width: 2; }
.glasbox .schicht { transition: fill 1.4s ease; }
.glasbox .oben { fill: var(--klar); } .glasbox .unten { fill: var(--brom); }
.glasbox.bleibt .oben { fill: var(--brom-hell); } .glasbox.bleibt .unten { fill: var(--brom-tint); }
.glasbox.entfaerbt .oben, .glasbox.entfaerbt .unten { fill: var(--klar); }
.glasbox .wackel { transform-origin: 60px 230px; }
.glasbox.wackelt .wackel { animation: wackel .18s ease-in-out 6; }
@keyframes wackel { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.schrittnav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.schrittnav .knopf { margin-left: auto; }
.schrittpunkt { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--karte); color: var(--tinte); font: 700 1rem var(--mono); cursor: pointer; }
.schrittpunkt[aria-current="step"] { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); }
.buehne { min-height: 10rem; display: grid; place-items: center; overflow-x: auto; }
.schritttext { min-height: 4.5em; max-width: 65ch; }
.reihe-label { display: grid; gap: .4rem; font-weight: 650; }
input[type="range"] { width: 100%; accent-color: var(--haupt); min-height: 32px; }
.reihe-paar { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.reihe-paar > div { display: grid; gap: .3rem; min-width: 0; }
.gross { font: 800 1.5rem var(--titel); }
.dbl { color: var(--dbl); }
.aufdecken { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.karte { position: relative; }
.aufdecken .karte { min-height: 7rem; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--karte2); color: var(--tinte);
  font: inherit; padding: .9rem; cursor: pointer; display: grid; place-items: center; text-align: center; transition: transform .35s, background .2s; }
.aufdecken .karte .hinten { display: none; }
.aufdecken .karte .vorne { font: 750 1.1rem var(--titel); }
.aufdecken .karte.offen { background: var(--haupt-tint); transform: rotateY(360deg); }
.aufdecken .karte.offen .vorne { display: none; } .aufdecken .karte.offen .hinten { display: block; }
.zeitleiste { list-style: none; margin: 0; display: grid; gap: .4rem; border-left: 3px solid var(--haupt); padding-left: 1rem; }
.zeitpunkt { background: var(--karte2); border: 1.5px solid var(--linie); border-radius: 999px; padding: .3rem .9rem; font: inherit; cursor: pointer; color: var(--tinte); }
.zeitpunkt.offen { background: var(--haupt); color: var(--auf-haupt); }
.zeittext { padding: .4rem 0 .6rem; }

/* Abfrage */
.abfrage { max-width: 50rem; margin: 0 auto; display: grid; gap: 1rem; }
.abfrage-kopf { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.kopfmitte { flex: 1 1 12rem; display: grid; gap: .3rem; min-width: 0; }
.balken { height: 10px; border-radius: 99px; background: var(--linie); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--fach, var(--haupt)); border-radius: 99px; transition: width .4s; }
.xp-chip { position: relative; background: var(--marker); color: var(--auf-marker); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.xp-plus { position: absolute; right: .3rem; top: -.2rem; font-weight: 800; color: var(--gut); animation: aufsteigen 1.2s ease-out forwards; pointer-events: none; }
@keyframes aufsteigen { to { transform: translateY(-34px); opacity: 0; } }
.kombo { background: var(--brom); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-weight: 800; }
.kombo.puls { animation: hupf .45s ease-out; }
@keyframes hupf { 40% { transform: scale(1.25); } }
.fragekarte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: 1.1rem; box-shadow: var(--schatten); }
.frage-meta { display: flex; justify-content: space-between; }
.fragetext { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.aussage { font-size: 1.2rem; font-weight: 600; }
.fragebuehne { display: grid; gap: 1rem; }
.fragebild { display: grid; justify-items: center; }
.optionen { display: grid; gap: .6rem; }
.optionen.zwei { grid-template-columns: 1fr 1fr; }
.optionen.bilder { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; min-height: 56px; padding: .75rem 1rem; text-align: left;
  background: var(--karte2); color: var(--tinte); border: 2px solid var(--linie); border-radius: 12px; font: 500 1.05rem/1.4 var(--text); cursor: pointer;
  transition: border-color .12s, background .12s, transform .12s; min-width: 0; }
.option:hover:not(:disabled) { border-color: var(--haupt); transform: translateY(-1px); }
.option:disabled { cursor: default; }
.option .taste { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--karte); border: 1.5px solid var(--linie); font: 700 .9rem var(--mono); }
.option .otext { min-width: 0; overflow-x: auto; }
.option.richtig, .chip.richtig, select.richtig { border-color: var(--gut) !important; background: var(--gut-tint) !important; }
.option.richtig .taste { background: var(--gut); color: #fff; border-color: var(--gut); }
.option.falsch, .chip.falsch, select.falsch { border-color: var(--schlecht) !important; background: var(--schlecht-tint) !important; }
.option.falsch { animation: schuetteln .35s; }
.option.falsch .taste { background: var(--schlecht); color: #fff; border-color: var(--schlecht); }
@keyframes schuetteln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.matt { opacity: .5; }
.blitz { box-shadow: 0 0 0 6px var(--marker) !important; }
.rueck { border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .25rem; }
.rueck.gut { background: var(--gut-tint); border-left: 5px solid var(--gut); }
.rueck.schlecht { background: var(--schlecht-tint); border-left: 5px solid var(--schlecht); }
.rueck strong { font-family: var(--titel); font-size: 1.05rem; }
.zeilen { display: grid; gap: .9rem; }
.zeile { display: grid; gap: .5rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--linie); }
.zeile:last-child { border-bottom: 0; padding-bottom: 0; }
.zeilentext { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; padding: .4rem 1.1rem; border-radius: 999px; border: 2px solid var(--linie); background: var(--karte2); color: var(--tinte); font: 650 1rem var(--text); cursor: pointer; }
.chip:hover:not(:disabled) { border-color: var(--haupt); }
.lueckentext { font-size: 1.12rem; line-height: 2.5; }
select { font: 650 1rem var(--text); color: var(--tinte); background: var(--karte2); border: 2px solid var(--linie); border-radius: 10px; padding: .3rem .5rem; max-width: 100%; min-height: 40px; }
.reihenfolge { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: .45rem; }
.reihenfolge li { counter-increment: n; display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .6rem .8rem; background: var(--gut-tint); border-radius: 10px; }
.reihenfolge li::before { content: counter(n); font: 800 1rem var(--mono); color: var(--gut); }
.buchungssatz { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.buchungsseite { display: grid; gap: .4rem; flex: 1 1 14rem; }
.an { font: 800 1.1rem var(--titel); padding-bottom: .5rem; }
.abfrage-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.abfrage-fuss .weiter { min-width: 10rem; }

/* Ende */
.ende { max-width: 46rem; margin: 0 auto; display: grid; gap: 1.2rem; text-align: center; justify-items: center; }
.endzahlen { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.endzahlen div { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.4rem; display: grid; min-width: 9rem; box-shadow: var(--schatten); }
.endzahlen b { font: 800 2.2rem/1.1 var(--titel); font-variant-numeric: tabular-nums; }
.endthemen { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; width: 100%; }
.endthemen li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; }
.endthemen li.neu { border-color: var(--marker); }
.endknoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.neue-abzeichen { display: grid; gap: .5rem; justify-items: center; }

/* Mein Stand */
.standseite { max-width: 60rem; margin: 0 auto; display: grid; gap: 1.6rem; }
.standseite section { display: grid; gap: .8rem; justify-items: start; }
.standzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.standzahlen div { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem; display: grid; gap: .2rem; box-shadow: var(--schatten); }
.standzahlen b { font: 800 1.6rem var(--titel); }
.standfaecher { justify-items: stretch !important; }
.standfach { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 1rem;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: .8rem 1rem; }
.standfach a { color: var(--tinte); text-decoration: none; }
.standfach .balken span { background: var(--fach); }
.standfach .mini { grid-column: 2; }
.standfach .knopf, .standfach .bestaetigen { grid-row: 1 / 3; grid-column: 3; }
.abzeichenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; width: 100%; }
.abzeichen { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 12px; border: 1.5px dashed var(--linie); color: var(--leise); }
.abzeichen.hat { border-style: solid; border-color: var(--marker); background: var(--marker-tint); color: var(--tinte); }
.abzeichen b { font-family: var(--titel); }
.gefahrzone { border: 1.5px solid var(--schlecht); border-radius: var(--rund); padding: 1.1rem; }

/* Anmeldung */
.anmeldeseite { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.anmeldebox { width: min(26rem, 100%); background: var(--karte); border: 1px solid var(--linie); border-radius: 20px; padding: 2rem; display: grid; gap: .8rem; box-shadow: var(--schatten); }
.anmeldebox form { display: grid; gap: .5rem; margin-top: .6rem; }
.anmeldebox label { font-weight: 650; font-size: .92rem; }
.anmeldebox input { font: inherit; padding: .7rem .9rem; border-radius: 10px; border: 2px solid var(--linie); background: var(--karte2); color: var(--tinte); }
.anmeldebox input:focus { border-color: var(--haupt); outline: none; }
.anmeldebox button { margin-top: .8rem; }
.meldung { color: var(--schlecht); font-weight: 650; }

.konfetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* Tablet hochkant und kleiner */
@media (max-width: 860px) {
  .fachseite { grid-template-columns: 1fr; }
  .fachliste { position: static; display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
  .fachliste .mini { display: none; }
  .fachlink { white-space: nowrap; background: var(--karte); }
  .levelchip { grid-template-columns: auto 60px; }
  .standfach { grid-template-columns: 1fr; row-gap: .4rem; }
  .standfach .mini, .standfach .knopf, .standfach .bestaetigen { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .hauptnav { display: none; }
  .marke-logo span { display: none; }
  .optionen.zwei { grid-template-columns: 1fr; }
  .kopf-innen { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
