/* LehrOS – sachliches, helles Design */
:root {
  --bg: #f5f6f8;
  --flaeche: #ffffff;
  --flaeche2: #f9fafb;
  --rand: #e4e7ec;
  --rand2: #d0d5dd;
  --text: #101828;
  --text2: #475467;
  --text3: #667085;
  --akzent: #1d4ed8;
  --akzent-h: #1e40af;
  --akzent-bg: #eff4ff;
  --gruen: #067647;
  --gruen-bg: #ecfdf3;
  --gelb: #b54708;
  --gelb-bg: #fffaeb;
  --rot: #b42318;
  --rot-bg: #fef3f2;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(16, 24, 40, 0.05);
  --schatten2: 0 12px 24px -8px rgba(16, 24, 40, 0.12);
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav: 248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--schrift); background: var(--bg); color: var(--text); min-height: 100dvh; line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: #c7d7fe; }
.hintergrund { display: none; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.rahmen { display: grid; grid-template-columns: var(--nav) 1fr; min-height: 100dvh; }
.rahmen > div:not(.schleier) { min-width: 0; }
.seitenleiste { position: sticky; top: 0; height: 100dvh; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--rand); background: var(--flaeche); overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--akzent); font-weight: 700; }
.navgruppe { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); padding: 16px 12px 6px; font-weight: 600; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--text2); font-weight: 500; transition: background .15s, color .15s; }
.navlink:hover { background: var(--flaeche2); color: var(--text); }
.navlink.aktiv { background: var(--akzent-bg); color: var(--akzent); }
.navlink .ico { display: grid; place-items: center; }
.profil { margin-top: auto; padding: 12px; border-radius: var(--radius); border: 1px solid var(--rand); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--akzent-bg); color: var(--akzent); display: grid; place-items: center; font-weight: 600; flex: none; font-size: .9rem; }
.profil b { font-size: .9rem; }
.profil small { color: var(--text3); display: block; font-size: 0.75rem; }
.profil button { margin-left: auto; }
.inhalt { padding: 32px clamp(16px, 4vw, 44px) 100px; max-width: 1200px; width: 100%; }
.mobilkopf, .unternav, .schleier { display: none; }

/* ---------- Typografie ---------- */
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.05rem; margin-bottom: 14px; }
h3 { font-size: 0.98rem; }
.titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rand); }
.titelzeile p { color: var(--text2); margin-top: 4px; }
.verlauf-text { color: var(--akzent); }
.klein { font-size: 0.85rem; color: var(--text2); }
.leise { color: var(--text3); }

/* ---------- Karten ---------- */
.raster { display: grid; gap: 16px; }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); position: relative; }
.karte.hover { transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.karte.hover:hover { border-color: var(--rand2); box-shadow: var(--schatten2); }
.abschnitt { margin-top: 28px; }
.kachel { display: flex; flex-direction: column; gap: 4px; }
.kachel .zahl { font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.kachel .lbl { color: var(--text2); font-size: 0.85rem; }
.kachel .ico { color: var(--text3); margin-bottom: 8px; }

.hero { padding: 26px 28px; border-radius: var(--radius); margin-bottom: 20px; background: var(--flaeche); border: 1px solid var(--rand); border-left: 4px solid var(--akzent); }
.hero p { color: var(--text2); margin-top: 6px; max-width: 620px; }
.hero .knoepfe { margin-top: 18px; }
.hero-deko { display: none; }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--flaeche); cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text); transition: background .15s, border-color .15s; white-space: nowrap; min-height: 40px; box-shadow: var(--schatten); }
.knopf:hover { background: var(--flaeche2); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt:hover { background: var(--akzent-h); }
.knopf.lime { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.leer { background: transparent; box-shadow: none; border-color: transparent; color: var(--text2); }
.knopf.leer:hover { background: var(--flaeche2); color: var(--text); }
.knopf.gefahr { color: var(--rot); border-color: #fecdca; }
.knopf.klein { padding: 6px 11px; min-height: 32px; font-size: 0.82rem; }
.knopf.rund { width: 40px; padding: 0; }
.lade::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .7s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Formulare ---------- */
label { display: block; font-size: 0.85rem; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.feld { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--flaeche); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; box-shadow: var(--schatten); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--akzent); }

/* ---------- Abzeichen ---------- */
.abz { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 500; background: var(--flaeche2); border: 1px solid var(--rand); color: var(--text2); white-space: nowrap; }
.abz.abu { color: #1d4ed8; background: #eff4ff; border-color: #c7d7fe; }
.abz.berufskunde { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.abz.uek { color: #5925dc; background: #f4f3ff; border-color: #d9d6fe; }
.abz.gut { color: var(--gruen); background: var(--gruen-bg); border-color: #abefc6; }
.abz.mittel { color: var(--gelb); background: var(--gelb-bg); border-color: #fedf89; }
.abz.schlecht { color: var(--rot); background: var(--rot-bg); border-color: #fecdca; }

/* ---------- Reiter ---------- */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--rand); margin-bottom: 20px; flex-wrap: wrap; }
.reiter button { padding: 10px 14px; border: 0; background: transparent; color: var(--text2); cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter button:hover { color: var(--text); }
.reiter button.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }

.seite { animation: rein .2s ease-out both; }
@keyframes rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bereich { display: flex; flex-direction: column; gap: 8px; }
.bereich .emoji { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--akzent-bg); color: var(--akzent); }
.bereich p { color: var(--text2); font-size: 0.86rem; }
.emoji:empty { display: none; }

/* ---------- Markdown ---------- */
.md { line-height: 1.7; color: #344054; }
.md h2, .md h3, .md h4 { margin: 18px 0 6px; color: var(--text); }
.md h3 { font-size: 1rem; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0 6px 22px; }
.md li { margin: 3px 0; }
.md strong { color: var(--text); }
.md code { background: var(--flaeche2); border: 1px solid var(--rand); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.md hr { border: 0; border-top: 1px solid var(--rand); margin: 16px 0; }

/* ---------- Karteikarten ---------- */
.kartenbuehne { perspective: 1400px; max-width: 600px; margin: 0 auto; }
.lernkarte { position: relative; height: 280px; cursor: pointer; transform-style: preserve-3d; transition: transform .5s ease; }
.lernkarte.gedreht { transform: rotateY(180deg); }
.lernkarte .seite-a, .lernkarte .seite-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 28px; display: grid; place-items: center; text-align: center; font-size: 1.15rem; font-weight: 600; border: 1px solid var(--rand); background: var(--flaeche); box-shadow: var(--schatten2); }
.lernkarte .seite-b { transform: rotateY(180deg); font-weight: 400; font-size: 1.05rem; border-top: 3px solid var(--gruen); }
.lernkarte .seite-a { border-top: 3px solid var(--akzent); }
.lernkarte small { position: absolute; top: 16px; left: 20px; font-size: .72rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fortschritt { height: 6px; border-radius: 99px; background: #eaecf0; overflow: hidden; }
.fortschritt > i { display: block; height: 100%; background: var(--akzent); border-radius: inherit; transition: width .3s ease; }

/* ---------- Quiz ---------- */
.quizfrage { font-size: 1.15rem; font-weight: 600; margin: 14px 0 18px; }
.antworten { display: grid; gap: 8px; }
.antwort { text-align: left; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--flaeche); cursor: pointer; transition: border-color .15s, background .15s; display: flex; gap: 12px; align-items: center; }
.antwort:hover:not(:disabled) { border-color: var(--akzent); background: var(--akzent-bg); }
.antwort .bst { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--flaeche2); border: 1px solid var(--rand); font-weight: 600; font-size: .85rem; flex: none; }
.antwort.richtig { border-color: #75e0a7; background: var(--gruen-bg); }
.antwort.falsch { border-color: #fda29b; background: var(--rot-bg); }
.antwort:disabled { cursor: default; }
.erklaerung { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--flaeche2); border: 1px solid var(--rand); }
.ergebnis { text-align: center; padding: 36px 20px; }
.ergebnis .gross { font-size: 2.4rem; font-weight: 600; }
.ring { --p: 0; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: conic-gradient(var(--akzent) calc(var(--p) * 1%), #eaecf0 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--flaeche); }
.ring span { position: relative; font-weight: 600; font-size: 1.35rem; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 190px); min-height: 460px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--flaeche); cursor: pointer; font-weight: 500; font-size: .86rem; color: var(--text2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); background: var(--flaeche2); }
.chip.aktiv { background: var(--akzent-bg); border-color: #c7d7fe; color: var(--akzent); }
.verlauf { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 16px; }
.blase { max-width: min(760px, 88%); padding: 12px 16px; border-radius: 10px; }
.blase.ich { align-self: flex-end; background: var(--akzent); color: #fff; white-space: pre-wrap; }
.blase.ki { align-self: flex-start; background: var(--flaeche2); border: 1px solid var(--rand); }
.blase .werkzeug { display: flex; gap: 4px; margin-top: 8px; }
.blase .werkzeug button { background: none; border: 0; color: var(--text3); cursor: pointer; font-size: .8rem; padding: 2px 6px; border-radius: 6px; }
.blase .werkzeug button:hover { color: var(--text); background: var(--flaeche); }
.tippt span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text3); margin: 0 2px; animation: punkte 1.2s infinite; }
.tippt span:nth-child(2) { animation-delay: .15s; } .tippt span:nth-child(3) { animation-delay: .3s; }
@keyframes punkte { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.eingabe { display: flex; gap: 6px; align-items: flex-end; padding: 6px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--rand2); }
.eingabe:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.eingabe textarea { min-height: 40px; max-height: 180px; border: 0; background: transparent; box-shadow: none !important; padding: 9px; resize: none; }
.anhang { font-size: .82rem; color: var(--gruen); padding: 0 6px 6px; }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vorschlaege button { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--rand); background: var(--flaeche); cursor: pointer; color: var(--text2); text-align: left; font-size: .86rem; }
.vorschlaege button:hover { border-color: var(--akzent); color: var(--akzent); }
.mic.an { background: var(--rot); border-color: var(--rot); color: #fff; }

/* ---------- Listen ---------- */
.liste { display: flex; flex-direction: column; gap: 8px; }
.zeile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--rand); }
.zeile.hover { cursor: pointer; transition: background .15s; }
.zeile.hover:hover { background: var(--flaeche2); }
.zeile .haupt { flex: 1; min-width: 0; }
.zeile .haupt b { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.datum-box { width: 48px; height: 52px; border-radius: 8px; border: 1px solid var(--rand); display: grid; place-items: center; text-align: center; line-height: 1.05; flex: none; background: var(--flaeche2); }
.datum-box b { font-size: 1.15rem; }
.datum-box small { font-size: .68rem; text-transform: uppercase; color: var(--text3); }
.countdown { font-weight: 600; color: var(--akzent); white-space: nowrap; font-size: .88rem; }

/* ---------- Rangliste ---------- */
.podest { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; max-width: 560px; margin: 0 auto 24px; }
.podest > div { text-align: center; }
.podest .sockel { border-radius: 8px 8px 0 0; padding: 12px 8px; font-weight: 600; font-size: 1.3rem; border: 1px solid var(--rand); border-bottom: 0; background: var(--flaeche); }
.podest .p1 .sockel { height: 120px; background: var(--akzent-bg); color: var(--akzent); border-color: #c7d7fe; }
.podest .p2 .sockel { height: 90px; }
.podest .p3 .sockel { height: 70px; }
.podest .name { font-weight: 600; margin-bottom: 2px; font-size: .9rem; }
.podest .pkt { color: var(--text3); font-size: .8rem; margin-bottom: 8px; }
.zeile.ich { border-color: #c7d7fe; background: var(--akzent-bg); }
.platz { width: 28px; font-weight: 600; color: var(--text3); text-align: center; }

/* ---------- Balken ---------- */
.balken { display: flex; flex-direction: column; gap: 10px; }
.balken .zeile2 { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 48px; gap: 12px; align-items: center; font-size: .88rem; }
.balken .spur { height: 8px; border-radius: 99px; background: #eaecf0; overflow: hidden; }
.balken .spur i { display: block; height: 100%; border-radius: inherit; background: var(--akzent); }
.saeulen { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 10px; border-bottom: 1px solid var(--rand); }
.saeulen i { flex: 1; background: var(--akzent); opacity: .85; border-radius: 3px 3px 0 0; min-height: 2px; }

/* ---------- Rechner ---------- */
.ergebnisbox { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: var(--flaeche2); border: 1px solid var(--rand); }
.ergebnisbox .zahl { font-size: 1.45rem; font-weight: 600; color: var(--text); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle td { padding: 8px 4px; border-bottom: 1px solid var(--rand); }
.tabelle td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tr.summe td { font-weight: 600; border-bottom: 0; }
.gg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gg { padding: 14px; border-radius: 8px; border: 1px solid var(--rand); text-align: center; }
.gg .raute { width: 40px; height: 40px; margin: 6px auto 14px; transform: rotate(45deg); border-radius: 4px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 2px solid #101828; }
.gg .raute span { transform: rotate(-45deg); }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-links { padding: clamp(24px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 20px; background: #0f1b3d; color: #fff; }
.login-links .logo b { color: #9db7ff; }
.login-links h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
.login-links p { color: #c8d3ee; font-size: 1.02rem; max-width: 500px; }
.funktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 520px; margin-top: 8px; }
.funktionen span { color: #dbe4fb; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.funktionen span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9db7ff; flex: none; }
.login-rechts { display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 400px; }

/* ---------- Toast & Leer ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 8px; background: #101828; color: #fff; box-shadow: var(--schatten2); z-index: 100; transition: all .25s ease; pointer-events: none; max-width: calc(100vw - 32px); font-size: .9rem; }
#toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
#toast.fehler { background: var(--rot); }
#konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }
.leer { text-align: center; padding: 36px 20px; color: var(--text2); }
.hinweis { padding: 12px 14px; border-radius: 8px; background: var(--gelb-bg); border: 1px solid #fedf89; color: #93370d; font-size: .88rem; }
.trenn { height: 1px; background: var(--rand); margin: 18px 0; }
.quizedit { padding: 14px; border-radius: 8px; border: 1px solid var(--rand); background: var(--flaeche2); margin-bottom: 10px; }
.quizedit .r-ant { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.quizedit .r-ant input[type=radio] { width: 18px; height: 18px; accent-color: var(--gruen); }
details summary::-webkit-details-marker { display: none; }

/* ---------- Fächer ABU / BKU ---------- */
.abz.bku { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.fachlogo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fachlogo svg.i { width: 22px; height: 22px; }
.fachlogo.klein { width: 36px; height: 36px; border-radius: 8px; }
.fachlogo.klein svg.i { width: 18px; height: 18px; }
.fachlogo.abu { background: #eff4ff; color: #1d4ed8; }
.fachlogo.bku { background: #fff4ed; color: #c4320a; }
.fachlogo.an { background: var(--gruen-bg); color: var(--gruen); }
.fachlogo.aus { background: var(--gelb-bg); color: var(--gelb); }
.fachkarte { border-top: 3px solid var(--akzent); }
.fachkarte[href$="BKU"] { border-top-color: #e04f16; }
.fachkarte[href$="BKU"] .fortschritt > i { background: #e04f16; }
.fachkopf { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius); margin-bottom: 18px; color: #fff; background: #0f1b3d; }
.fachkopf.bku { background: #3a1a0c; }
.fachkopf h1 { margin-top: 8px; }
.fachkopf p { color: rgba(255, 255, 255, .78); margin-top: 6px; max-width: 560px; }
.fachkopf .knopf:not(.haupt) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.fachkopf.bku .knopf.haupt { background: #e04f16; border-color: #e04f16; }
.fachkuerzel { display: inline-block; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); font-weight: 700; letter-spacing: .06em; font-size: .8rem; }
.fachring { text-align: center; flex: none; }
.fachring .ring { background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); }
.fachring .ring::before { background: #0f1b3d; }
.fachkopf.bku .fachring .ring::before { background: #3a1a0c; }
.fachring .klein { color: rgba(255, 255, 255, .7); }
.fachraster { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* ---------- Prüfungssimulation ---------- */
.simkopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; position: sticky; top: 8px; z-index: 5; }
.simzeit { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.simzeit .knapp { color: var(--rot); }
.simnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.simnav button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--flaeche); cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--text2); }
.simnav button.fertig { background: var(--akzent-bg); border-color: #c7d7fe; color: var(--akzent); }
.simnav button.jetzt { outline: 2px solid var(--akzent); outline-offset: 1px; }
.antwort.gewaehlt { border-color: var(--akzent); background: var(--akzent-bg); }
.antwort.gewaehlt .bst { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.auswertung { border-left: 3px solid var(--gruen); }
.auswertung.nok { border-left-color: var(--rot); }
.note-gut { color: var(--gruen); }
.note-schlecht { color: var(--rot); }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .fachkopf { flex-direction: column; align-items: flex-start; padding: 22px; }
  .fachring { align-self: center; }
  .fachraster { grid-template-columns: 1fr; }
  .nur-breit { display: none; }
  .simzeit { font-size: 1.1rem; }
}
@media (max-width: 1000px) { .r4, .r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-105%); transition: transform .25s ease; }
  .seitenleiste.offen { transform: none; box-shadow: var(--schatten2); }
  .schleier { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .schleier.offen { opacity: 1; pointer-events: auto; }
  .mobilkopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: sticky; top: 0; z-index: 40; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
  .mobilkopf .logo { padding: 0; }
  .inhalt { padding: 20px 16px 96px; }
  .unternav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--flaeche); border-top: 1px solid var(--rand); }
  .unternav a, .unternav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 8px; font-size: .68rem; color: var(--text3); background: none; border: 0; cursor: pointer; }
  .unternav .aktiv { color: var(--akzent); }
  .r2, .r3, .r4 { grid-template-columns: 1fr; }
  .r4.kpi, .r3.kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .funktionen { grid-template-columns: 1fr 1fr; }
  .chat { height: calc(100dvh - 220px); }
  .balken .zeile2 { grid-template-columns: 1fr 1.2fr 42px; }
  .lernkarte { height: 240px; }
  h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  body { background: #fff; }
  .seitenleiste, .mobilkopf, .unternav, .nicht-drucken, #toast { display: none !important; }
  .rahmen { display: block; } .inhalt { padding: 0; max-width: none; }
  .karte { border: 0; box-shadow: none; padding: 0; }
}

/* =================== LERN-ARENA =================== */
.ar { --ar-bg: #070d1a; --ar-f: #0e1729; --ar-f2: #15213a; --ar-r: #22304d; --ar-gelb: #ffc21a; --ar-gruen: #22c55e; --ar-rot: #ff4d5e; --ar-t2: #9aa8c3; font-family: var(--schrift); }
.ar h1, .ar h2, .ar h3, .ar-buehne h2, .ar-count, .ar-level span, .ar-stat b, .ar-score, .ar-endering b, .ar-endestats b, .ar-levelup b, .ar-chipnr { font-family: "Space Grotesk", var(--schrift); }
.ar-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ar-gelb, #ffc21a); }
.ar-streifen { position: absolute; inset: auto 0 0 0; height: 6px; background: repeating-linear-gradient(-45deg, #ffc21a 0 14px, #0b1220 14px 28px); opacity: .95; }

/* HUD */
.ar-hud { position: relative; overflow: hidden; border-radius: 22px; padding: 30px clamp(18px, 4vw, 38px) 36px; color: #fff; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
  background: radial-gradient(900px 300px at 110% -20%, rgba(255,194,26,.22), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(56,189,248,.18), transparent 60%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a;
  box-shadow: 0 30px 60px -30px rgba(7,13,26,.7); animation: arRein .6s cubic-bezier(.2,.8,.2,1) both; }
.ar-hud-links { display: flex; gap: 22px; align-items: center; min-width: 0; flex: 1 1 360px; }
.ar-hud h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; margin: 4px 0 12px; }
.ar-hud-text { flex: 1; min-width: 0; }
.ar-level { --p: 0; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(#ffc21a calc(var(--p) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 40px rgba(255,194,26,.35); }
.ar-level::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0b1426; }
.ar-level span, .ar-level small { position: relative; }
.ar-level span { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.ar-level small { font-size: .62rem; letter-spacing: .2em; color: #ffc21a; font-weight: 700; }
.ar-xpbar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ar-xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb000, #ffd84d); box-shadow: 0 0 18px rgba(255,194,26,.6); animation: arBalken 1.2s cubic-bezier(.2,.8,.2,1) both; }
.ar-xptext { display: block; margin-top: 8px; font-size: .85rem; color: #9aa8c3; }
.ar-xptext b { color: #fff; }
.ar-hud-stats { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 10px; flex: 1 1 420px; }
.ar-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ar-stat svg.i { width: 22px; height: 22px; color: #9aa8c3; }
.ar-stat.heiss svg.i { color: #ff7a1a; filter: drop-shadow(0 0 8px #ff7a1a); animation: arFlacker 1.4s infinite; }
.ar-stat b { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.ar-stat small { font-size: .72rem; color: #9aa8c3; }
.ar-minring { --p: 0; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#22c55e calc(var(--p) * 1%), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(circle 6px, transparent 98%, #000); mask: radial-gradient(circle 6px, transparent 98%, #000); }
.ar-tonknopf { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* Schritte */
.ar-schritt { margin-top: 34px; }
.ar-schrittkopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.ar-schrittkopf h2 { font-size: 1.45rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.ar-schrittkopf p { color: var(--text2); font-size: .92rem; }
.ar-nr { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #0b1220; color: #ffc21a; display: grid; place-items: center; font: 700 1.2rem "Space Grotesk"; box-shadow: inset 0 -3px 0 #ffc21a; }
.ar-schnell { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.ar-schnell button { border: 1px solid var(--rand2); background: var(--flaeche); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: .85rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: transform .15s, background .15s; }
.ar-schnell button:hover { background: #0b1220; color: #fff; transform: translateY(-1px); }
.ar-schnell svg.i { width: 15px; height: 15px; }
.ar-suche { flex: 1 1 220px; min-width: 0; border: 1px solid var(--rand2); border-radius: 99px; padding: 8px 16px; background: var(--flaeche); }
.ar-gruppe { margin-bottom: 18px; }
.ar-gruppenkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ar-gruppenkopf h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); font-weight: 700; }
.ar-gruppenknopf { border: 0; background: none; color: var(--akzent); font-weight: 600; font-size: .8rem; cursor: pointer; }
.ar-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ar-chip { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; text-align: left; padding: 12px 14px 14px; border-radius: 16px; border: 2px solid var(--rand); background: var(--flaeche); cursor: pointer; overflow: hidden; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, box-shadow .18s, background .18s; }
.ar-chip:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(16,24,40,.35); }
.ar-chipnr { grid-row: span 2; min-width: 54px; height: 54px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; background: #eef2f8; color: #0b1220; transition: background .18s, color .18s; }
.ar-chip.abu .ar-chipnr { background: #fff4d6; color: #8a5a00; font-size: 1rem; }
.ar-chiptext b { display: block; font-size: .88rem; line-height: 1.3; }
.ar-chiptext small { color: var(--text3); font-size: .74rem; }
.ar-chipbalken { grid-column: 2; height: 4px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.ar-chipbalken i { display: block; height: 100%; }
.ar-haken { position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: #0b1220; color: #ffc21a; font-size: .8rem; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.ar-chip.an { border-color: #0b1220; background: linear-gradient(180deg, #fffdf3, #fff); box-shadow: 0 0 0 4px rgba(255,194,26,.35); }
.ar-chip.an .ar-chipnr { background: #0b1220; color: #ffc21a; }
.ar-chip.an .ar-haken { transform: scale(1); }

/* Leiste mit Auswahl */
.ar-leiste { position: sticky; bottom: 14px; z-index: 20; margin-top: 18px; }
.ar-leiste-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 12px 12px 18px; border-radius: 18px; background: #0b1220; color: #fff; box-shadow: 0 20px 40px -18px rgba(7,13,26,.8); animation: arRein .35s both; }
.ar-leiste-in.leer { color: #9aa8c3; justify-content: center; padding: 16px; }
.ar-gewaehlt { display: flex; gap: 5px; flex-wrap: wrap; }
.ar-gewaehlt span { background: #ffc21a; color: #0b1220; font: 700 .78rem "Space Grotesk"; padding: 3px 8px; border-radius: 7px; animation: arPlopp .3s cubic-bezier(.3,1.6,.5,1) both; }
.ar-leiste-text { color: #c9d3e6; font-size: .88rem; flex: 1; min-width: 160px; }
.ar-leiste-text b { color: #fff; }
.ar-los { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 13px 22px; border-radius: 14px; font: 700 .95rem "Space Grotesk", var(--schrift); color: #0b1220; background: linear-gradient(180deg, #ffd84d, #ffb000); box-shadow: 0 6px 0 #c98a00, 0 14px 28px -10px rgba(255,176,0,.7); transition: transform .1s, box-shadow .1s; }
.ar-los:hover { transform: translateY(-2px); }
.ar-los:active { transform: translateY(4px); box-shadow: 0 2px 0 #c98a00; }
.ar-zweit { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 700; border: 2px solid rgba(255,255,255,.18); color: #fff; background: transparent; cursor: pointer; }

/* Lernarten */
.ar-modi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ar-modus { --c: #ffc21a; position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer; border-radius: 20px; padding: 20px 18px 18px; min-height: 190px; color: #fff; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(240px 160px at 100% 0%, color-mix(in srgb, var(--c) 38%, transparent), transparent 70%), #0b1426; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; animation: arRein .5s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.ar-modus::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(.25); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ar-modus:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 24px 40px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.ar-modus:hover::after { transform: scaleX(1); }
.ar-modus:hover .ar-modusico { transform: scale(1.12) rotate(-8deg); }
.ar-modus b { font: 700 1.25rem "Space Grotesk", var(--schrift); margin-top: 8px; }
.ar-modus small { color: #a9b6cf; font-size: .84rem; line-height: 1.45; }
.ar-modusico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.ar-modusico svg.i { width: 27px; height: 27px; stroke-width: 2; }
.ar-modustag { position: absolute; top: 18px; right: 16px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); padding: 3px 8px; border-radius: 99px; }
.ar-rekord { margin-top: auto; padding-top: 8px; font-size: .75rem; font-weight: 700; color: var(--c); }
.ar-rekord.neu { color: #6f7d99; }
.ar-modus.gesperrt { filter: grayscale(.8); opacity: .55; }

/* Abzeichen */
.ar-abzeichen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ar-badge { border-radius: 16px; padding: 14px; border: 1px dashed var(--rand2); background: var(--flaeche2); display: flex; flex-direction: column; gap: 3px; opacity: .65; }
.ar-badge span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e9edf3; color: #98a2b3; margin-bottom: 4px; }
.ar-badge b { font-size: .88rem; }
.ar-badge small { font-size: .74rem; color: var(--text3); }
.ar-badge.ok { opacity: 1; border: 1px solid #ffd666; background: linear-gradient(160deg, #fff8e1, #fff); }
.ar-badge.ok span { background: radial-gradient(circle at 30% 30%, #ffe680, #ffb000); color: #6b4300; box-shadow: 0 0 0 4px rgba(255,194,26,.25), 0 6px 14px -4px rgba(255,176,0,.7); }

/* Banner auf der Startseite */
.ar-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 22px 24px 26px; border-radius: 20px; margin-bottom: 18px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(255,194,26,.3), transparent 60%), #070d1a; transition: transform .2s; }
.ar-banner:hover { transform: translateY(-3px); }
.ar-banner b { display: block; font: 700 1.2rem "Space Grotesk", var(--schrift); margin: 2px 0; }
.ar-banner small { color: #9aa8c3; }
.ar-banner-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #ffc21a; color: #0b1220; display: grid; place-items: center; animation: arPuls 2s infinite; }
.ar-banner-ico svg.i { width: 30px; height: 30px; stroke-width: 2.2; }
.ar-banner-los { margin-left: auto; font: 700 1rem "Space Grotesk"; color: #ffc21a; white-space: nowrap; }

/* =================== Spiel-Bühne =================== */
.ar-buehne { --c: #ffc21a; position: relative; min-height: calc(100dvh - 140px); border-radius: 24px; padding: 18px clamp(14px, 3vw, 30px) 30px; color: #fff; overflow: hidden;
  background: radial-gradient(800px 380px at 50% -10%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, #070d1a; }
.ar-laden { display: grid; place-items: center; }
.ar-spielkopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ar-raus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; }
.ar-spielname { display: inline-flex; gap: 8px; align-items: center; font: 700 1.05rem "Space Grotesk"; color: var(--c); }
.ar-spielrechts { margin-left: auto; }
.ar-score { font-size: 1.5rem; font-weight: 700; }
.ar-statusleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.ar-zeit, .ar-fort { position: relative; flex: 1 1 200px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.ar-zeit i, .ar-fort i { position: absolute; inset: 0 auto 0 0; background: var(--c); transition: width 1s linear; opacity: .9; }
.ar-fort i { transition: width .4s; }
.ar-zeit span, .ar-fort span { position: relative; display: block; text-align: center; line-height: 30px; font: 700 .9rem "Space Grotesk"; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.ar-zeit.knapp i { background: #ff4d5e; animation: arBlink .5s infinite; }
.ar-herzen { display: flex; gap: 4px; }
.ar-herzen span { color: rgba(255,255,255,.18); }
.ar-herzen span.voll { color: #ff4d5e; filter: drop-shadow(0 0 6px #ff4d5e); }
.ar-herzen span.voll svg.i { fill: #ff4d5e; }
.ar-herzen svg.i { width: 24px; height: 24px; }
.ar-boss { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; }
.ar-bossname { display: inline-flex; align-items: center; gap: 6px; color: #ff7a1a; white-space: nowrap; }
.ar-bosshp { flex: 1; height: 16px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,122,26,.4); }
.ar-bosshp i { display: block; height: 100%; background: linear-gradient(90deg, #ff2d55, #ff7a1a); transition: width .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 14px #ff4d2e; }
.ar-duell { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); padding: 6px 14px; border-radius: 12px; font-weight: 600; }
.ar-duell b { font: 700 1.2rem "Space Grotesk"; color: var(--c); }
.ar-duell .vs { font: 700 .75rem "Space Grotesk"; color: #ff4d5e; }
.ar-kombo { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 700; }
.ar-kombo b { font: 700 1.15rem "Space Grotesk"; }
.ar-kombo em { font-style: normal; color: #0b1220; background: #ffc21a; padding: 1px 7px; border-radius: 7px; font-size: .8rem; animation: arPlopp .3s both; }
.ar-kombo.heiss { color: #ff7a1a; box-shadow: 0 0 0 1px rgba(255,122,26,.5), 0 0 22px rgba(255,122,26,.35); }
.ar-kombo.heiss svg.i { fill: #ff7a1a; animation: arFlacker .8s infinite; }

.ar-feld { max-width: 820px; margin: 0 auto; }
.ar-frage.ein { animation: arFrage .35s cubic-bezier(.2,.8,.2,1) both; }
.ar-fragekopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ar-art { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.ar-modulname { font-size: .75rem; color: #6f7d99; }
.ar-unterfrage { color: #9aa8c3; font-size: .95rem; margin-bottom: 8px; }
.ar-text { font: 600 clamp(1.25rem, 3vw, 1.75rem)/1.35 "Space Grotesk", var(--schrift); letter-spacing: -.01em; margin-bottom: 22px; }
.ar-aussage { background: rgba(255,255,255,.05); border-left: 4px solid var(--c); padding: 16px 18px; border-radius: 0 14px 14px 0; font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.ar-luecke { display: inline-block; min-width: 90px; padding: 0 10px; border-bottom: 3px dashed var(--c); color: var(--c); text-align: center; }
.ar-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.ar-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 16px; border: 2px solid rgba(255,255,255,.09); background: #0e1729; color: #fff; cursor: pointer; font-size: .98rem; line-height: 1.4; animation: arRein .35s var(--d) both; transition: transform .12s, border-color .15s, background .15s; }
.ar-opt:hover:not(:disabled) { border-color: var(--c); transform: translateY(-2px); background: #132039; }
.ar-opt kbd, .ar-wfknopf kbd { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); font: 700 .8rem "Space Grotesk"; }
.ar-opt.richtig { border-color: #22c55e; background: rgba(34,197,94,.15); animation: arJa .45s; }
.ar-opt.richtig kbd { background: #22c55e; color: #052e14; }
.ar-opt.falsch { border-color: #ff4d5e; background: rgba(255,77,94,.15); }
.ar-opt.blass { opacity: .4; }
.ar-wf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.ar-wfknopf { padding: 22px 14px; border-radius: 18px; border: 0; cursor: pointer; font: 700 1.2rem "Space Grotesk"; color: #fff; display: flex; gap: 10px; justify-content: center; align-items: center; transition: transform .12s; }
.ar-wfknopf.nein { background: linear-gradient(180deg, #ff5a6a, #e0273b); box-shadow: 0 6px 0 #9c1626; }
.ar-wfknopf.ja { background: linear-gradient(180deg, #2ee27a, #16a34a); box-shadow: 0 6px 0 #0e6b30; }
.ar-wfknopf:active { transform: translateY(4px); box-shadow: none; }
.ar-wfknopf.blass { opacity: .3; }
.ar-wfknopf.richtig { outline: 4px solid #fff; }
.ar-proFrage { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); margin: -10px 0 18px; overflow: hidden; }
.ar-proFrage i { display: block; height: 100%; width: 100%; background: var(--c); }
.ar-tipp { display: flex; gap: 10px; }
.ar-tipp input { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 16px; border: 2px solid rgba(255,255,255,.14); background: #0e1729; color: #fff; font: 600 1.15rem "Space Grotesk"; }
.ar-tipp input:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.ar-tipp input.richtig { border-color: #22c55e; } .ar-tipp input.falsch { border-color: #ff4d5e; }
.ar-tipphilfe { margin-top: 10px; background: none; border: 0; color: #9aa8c3; text-decoration: underline; cursor: pointer; font-size: .85rem; }
.ar-fb { margin-top: 18px; padding: 16px 18px; border-radius: 16px; animation: arRein .25s both; }
.ar-fb.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); }
.ar-fb.nein { background: rgba(255,77,94,.12); border: 1px solid rgba(255,77,94,.4); }
.ar-fb b { font: 700 1.15rem "Space Grotesk"; }
.ar-fb p { margin-top: 6px; color: #d6deec; }
.ar-erkl { color: #a9b6cf !important; font-size: .92rem; }
.ar-weiter { margin-top: 12px; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 14px; font: 700 .95rem "Space Grotesk"; background: var(--c); color: #0b1220; }
.ar-tipp .ar-weiter { margin-top: 0; }
.ar-pop { position: absolute; left: 50%; top: 38%; transform: translate(-50%, 0); font: 700 2.2rem "Space Grotesk"; pointer-events: none; animation: arPop .9s cubic-bezier(.2,.8,.2,1) forwards; z-index: 5; }
.ar-pop.ok { color: #22c55e; text-shadow: 0 0 20px rgba(34,197,94,.7); }
.ar-pop.kombo { top: 26%; color: #ffc21a; font-size: 3rem; text-shadow: 0 0 30px rgba(255,194,26,.8); }
.ar-count { text-align: center; font: 700 clamp(6rem, 22vw, 11rem)/1 "Space Grotesk"; color: var(--c); padding: 8vh 0; animation: arZaehl .6s cubic-bezier(.2,.8,.2,1) both; text-shadow: 0 0 60px color-mix(in srgb, var(--c) 70%, transparent); }
.ar-count.los { color: #fff; }
.ar-buehne.wackel { animation: arWackel .45s; }
.ar-buehne.treffer .ar-bosshp { animation: arWackel .4s; }
.ar-anleitung { color: #9aa8c3; margin-bottom: 14px; text-align: center; }

/* Ende */
.ar-ende { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 10px; animation: arRein .5s both; }
.ar-ende h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; margin: 16px 0 6px; }
.ar-ende > p { color: #9aa8c3; }
.ar-endeico { width: 80px; height: 80px; margin: 20px auto 0; border-radius: 50%; display: grid; place-items: center; background: #ffc21a; color: #0b1220; }
.ar-endering { --p: 0; width: 170px; height: 170px; margin: 10px auto 0; border-radius: 50%; display: grid; place-content: center; position: relative; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 50px color-mix(in srgb, var(--c) 40%, transparent); animation: arPlopp .6s cubic-bezier(.3,1.6,.5,1) both; }
.ar-endering::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #0b1426; }
.ar-endering b, .ar-endering small { position: relative; }
.ar-endering b { font-size: 2.6rem; font-weight: 700; }
.ar-endering small { color: #9aa8c3; }
.ar-endestats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 22px 0; }
.ar-endestats div { background: rgba(255,255,255,.05); border-radius: 16px; padding: 14px; }
.ar-endestats b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--c); }
.ar-endestats b.gut { color: #22c55e; } .ar-endestats b.schlecht { color: #ff4d5e; }
.ar-endestats small { color: #9aa8c3; font-size: .78rem; }
.ar-endeknoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ar-hinweis { color: #ffc21a !important; font-size: .85rem; }
.ar-duelltext { font-weight: 700; color: #c084fc !important; }
.ar-levelup { display: inline-flex; flex-direction: column; align-items: center; padding: 14px 30px; border-radius: 20px; background: linear-gradient(180deg, #ffd84d, #ffb000); color: #0b1220; animation: arLevel 1s cubic-bezier(.3,1.6,.5,1) both; box-shadow: 0 0 60px rgba(255,194,26,.6); }
.ar-levelup span { font: 700 .8rem "Space Grotesk"; letter-spacing: .25em; }
.ar-levelup b { font-size: 3rem; line-height: 1; }
.ar-fehlerliste { text-align: left; margin-top: 30px; }
.ar-fehlerliste h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ar-fehler { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid #ff4d5e; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.ar-fehler small { color: #6f7d99; font-size: .72rem; }
.ar-fehler b { display: block; margin: 2px 0 4px; }
.ar-fehler p { color: #86efac; font-size: .92rem; }

/* Memory */
.ar-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; }
.ar-mk { position: relative; min-height: 130px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; animation: arRein .4s var(--d) both; color: #fff; }
.ar-mk-zu, .ar-mk-auf { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ar-mk-zu { background: repeating-linear-gradient(-45deg, #13203a 0 10px, #0f1a30 10px 20px); border: 2px solid rgba(255,255,255,.08); color: var(--c); }
.ar-mk-zu svg.i { width: 32px; height: 32px; }
.ar-mk-auf { transform: rotateY(180deg); background: #15213a; border: 2px solid var(--c); padding: 12px 10px; font-size: .8rem; line-height: 1.35; text-align: center; overflow: auto; }
.ar-mk-auf em { position: absolute; top: 6px; left: 8px; font: 700 .7rem "Space Grotesk"; font-style: normal; color: var(--c); }
.ar-mk.auf .ar-mk-zu { transform: rotateY(-180deg); }
.ar-mk.auf .ar-mk-auf { transform: rotateY(0); }
.ar-mk.weg .ar-mk-auf { border-color: #22c55e; background: rgba(34,197,94,.14); animation: arJa .5s; }
.ar-mk.weg { cursor: default; }

/* Verbinden */
.ar-verbinden { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; max-width: 980px; margin: 0 auto; }
.ar-spalte { display: flex; flex-direction: column; gap: 10px; }
.ar-vb { text-align: left; padding: 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,.1); background: #0e1729; color: #fff; cursor: pointer; font-size: .9rem; line-height: 1.4; transition: transform .12s, border-color .15s, opacity .3s; }
.ar-vb.links { font-weight: 600; }
.ar-vb:hover:not(.fertig) { border-color: var(--c); }
.ar-vb.gewaehlt { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #0e1729); transform: translateX(6px); }
.ar-vb.fertig { border-color: #22c55e; background: rgba(34,197,94,.12); opacity: .55; cursor: default; }
.ar-vb.nein { border-color: #ff4d5e; animation: arWackel .4s; }

/* Karteikasten */
.ar-faecher { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 640px; margin: 0 auto 20px; }
.ar-faecher div { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid transparent; }
.ar-faecher b { display: block; font: 700 1.2rem "Space Grotesk"; }
.ar-faecher small { font-size: .68rem; color: #9aa8c3; }
.ar-faecher .jetzt { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.ar-lk { position: relative; max-width: 640px; height: 300px; margin: 0 auto 18px; perspective: 1200px; cursor: pointer; }
.ar-lk-a, .ar-lk-b { position: absolute; inset: 0; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: center; backface-visibility: hidden; transition: transform .6s cubic-bezier(.2,.8,.2,1); overflow: auto; }
.ar-lk-a { background: linear-gradient(160deg, #15213a, #0e1729); border: 2px solid rgba(255,255,255,.1); }
.ar-lk-b { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #0e1729), #0e1729); border: 2px solid var(--c); transform: rotateY(180deg); }
.ar-lk small { position: absolute; top: 16px; left: 22px; font-size: .72rem; color: #9aa8c3; letter-spacing: .06em; text-transform: uppercase; }
.ar-lk p { font: 600 1.35rem/1.4 "Space Grotesk"; }
.ar-lk-a span { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .78rem; color: #6f7d99; }
.ar-lk.gedreht .ar-lk-a { transform: rotateY(-180deg); }
.ar-lk.gedreht .ar-lk-b { transform: rotateY(0); }

/* Animationen */
@keyframes arRein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes arFrage { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes arBalken { from { width: 0; } }
@keyframes arPlopp { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes arFlacker { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(-6deg); } }
@keyframes arPuls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,26,.6); } 50% { box-shadow: 0 0 0 12px rgba(255,194,26,0); } }
@keyframes arBlink { 50% { opacity: .45; } }
@keyframes arPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes arZaehl { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes arWackel { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes arJa { 40% { transform: scale(1.04); } }
@keyframes arLevel { 0% { transform: scale(0) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .ar *, .ar-buehne, .ar-buehne * { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  .ar-hud { border-radius: 18px; padding: 22px 16px 28px; }
  .ar-hud-stats { grid-template-columns: repeat(2, 1fr); }
  .ar-level { width: 84px; height: 84px; } .ar-level span { font-size: 2rem; }
  .ar-chips, .ar-modi { grid-template-columns: 1fr; }
  .ar-modus { min-height: 0; }
  .ar-buehne { border-radius: 0; margin: -20px -16px 0; min-height: calc(100dvh - 60px); }
  .ar-opts { grid-template-columns: 1fr; }
  .ar-memory { grid-template-columns: repeat(3, 1fr); }
  .ar-mk { min-height: 120px; } .ar-mk-auf { font-size: .72rem; }
  .ar-verbinden { grid-template-columns: 1fr; }
  .ar-faecher small { font-size: .6rem; }
  .ar-lk { height: 260px; }
  .ar-banner { flex-wrap: wrap; } .ar-banner-los { margin-left: 0; }
  .ar-leiste { bottom: 76px; }
}

/* =================== Neuer Look für das ganze System (Arena-Stil) =================== */
:root { --bg: #f2f4f8; --radius: 16px; --kopf: "Space Grotesk", var(--schrift); --akzent: #1d4ed8; --nacht: #070d1a; --signal: #ffc21a; }
h1, h2, h3, .kachel .zahl, .logo { font-family: var(--kopf); }
h1 { font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-weight: 700; }
.karte { border-radius: var(--radius); border-color: #e3e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 24px -18px rgba(16,24,40,.25); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
a.karte:hover, .karte.hover:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(16,24,40,.4); }
.kachel .zahl { font-size: 2rem; font-weight: 700; }
.kachel .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #0b1220; color: var(--signal); }

/* Seitenleiste dunkel */
.seitenleiste { background: var(--nacht); border-right: 0; color: #c9d3e6;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 24px 24px; }
.seitenleiste .logo { color: #fff; }
.seitenleiste .logo b { color: var(--signal); }
.navgruppe { color: #5d6b88; }
.navlink { color: #a9b6cf; border-radius: 11px; position: relative; }
.navlink:hover { background: rgba(255,255,255,.06); color: #fff; }
.navlink.aktiv { background: rgba(255,194,26,.12); color: var(--signal); }
.navlink.aktiv::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.navlink[href="#/arena"] { color: #fff; font-weight: 700; }
.navlink[href="#/arena"] .ico { color: var(--signal); }
.navlink[href="#/arena"]::after { content: "NEU"; margin-left: auto; font: 700 .62rem var(--kopf); letter-spacing: .1em; background: var(--signal); color: #0b1220; padding: 2px 6px; border-radius: 6px; }
.profil { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.profil b { color: #fff; }
.profil small { color: #8492ad; }
.profil .knopf { color: #c9d3e6; border-color: rgba(255,255,255,.14); background: transparent; }
.seitenleiste .avatar { background: var(--signal); color: #0b1220; }

/* Knöpfe */
.knopf { border-radius: 12px; font-weight: 600; transition: transform .12s, background .15s, box-shadow .15s; }
.knopf:hover { transform: translateY(-1px); }
.knopf.haupt { background: #0b1220; border-color: #0b1220; color: #fff; box-shadow: inset 0 -3px 0 var(--signal); }
.knopf.haupt:hover { background: #16213a; }
.knopf.lime { background: #22c55e; border-color: #22c55e; color: #052e14; }

/* Hero der Startseite dunkel */
.hero { position: relative; overflow: hidden; border: 0; border-radius: 22px; color: #fff; padding: 30px clamp(20px, 4vw, 36px) 34px;
  background: radial-gradient(700px 260px at 100% 0%, rgba(56,189,248,.22), transparent 60%), radial-gradient(500px 240px at 0% 120%, rgba(255,194,26,.18), transparent 60%), #070d1a; }
.hero p { color: #a9b6cf; }
.hero .abz { background: rgba(255,194,26,.15); color: var(--signal); border: 0; }
.hero .knopf { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.hero .knopf.haupt { background: var(--signal); border-color: var(--signal); color: #0b1220; box-shadow: 0 5px 0 #c98a00; }
.hero-deko { opacity: .5; }

/* Reiter, Quiz, Lernkarte */
.reiter button.aktiv { color: #0b1220; border-color: var(--signal) !important; }
.antwort { border-radius: 14px; transition: transform .12s, border-color .15s; }
.antwort:hover:not(:disabled) { transform: translateY(-2px); border-color: #0b1220; }
.lernkarte .seite-a, .lernkarte .seite-b { border-radius: 20px; }
.fortschritt i { background: linear-gradient(90deg, #ffb000, #ffd84d); }

/* Handy */
@media (max-width: 820px) {
  .mobilkopf { background: var(--nacht); border-bottom: 0; color: #fff; }
  .mobilkopf .logo b { color: var(--signal); }
  .mobilkopf .abz { background: var(--signal); color: #0b1220; border: 0; font-weight: 700; }
  .unternav { background: rgba(7,13,26,.96); backdrop-filter: blur(10px); border-top: 0; }
  .unternav a, .unternav button { color: #8492ad; }
  .unternav a.aktiv { color: var(--signal); }
}

/* Tages-Challenge in der Arena */
.ar-challenge { margin-top: 18px; border-radius: 22px; padding: 24px clamp(18px, 3vw, 30px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: center; color: #0b1220; min-height: 120px;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px), linear-gradient(120deg, #ffd84d, #ffb000); box-shadow: 0 24px 40px -24px rgba(255,176,0,.9); animation: arRein .5s .1s both; }
.ar-challenge .ar-kicker { color: #6b4300; display: inline-flex; gap: 6px; align-items: center; }
.ar-challenge h2 { font: 700 clamp(1.25rem, 2.6vw, 1.7rem)/1.2 var(--kopf); margin: 6px 0; }
.ar-challenge p { color: #5c3d00; margin-bottom: 14px; font-size: .92rem; }
.ar-challenge .ar-los { background: #0b1220; color: #ffc21a; box-shadow: 0 6px 0 #000; }
.ar-ch-rang { background: rgba(255,255,255,.55); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ar-ch-rang div { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.ar-ch-rang div.ich { background: #0b1220; color: #fff; }
.ar-ch-rang span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .85rem var(--kopf); background: rgba(0,0,0,.08); }
.ar-ch-rang .p1 { background: #0b1220; color: #ffc21a; }
.ar-ch-rang b { flex: 1; font-size: .9rem; }
.ar-ch-rang em { font-style: normal; font-size: .8rem; font-weight: 600; opacity: .75; }
.ar-ch-rang p { padding: 10px; font-weight: 600; color: #5c3d00; }
.ar-lvlmini { display: inline-block; font: 700 .7rem var(--kopf); background: #0b1220; color: #ffc21a; padding: 1px 6px; border-radius: 6px; margin-right: 4px; }
@media (max-width: 760px) { .ar-challenge { grid-template-columns: 1fr; } }

/* =================== Klassen-Duell live =================== */
.du-hud { align-items: center; }
.du-sub { color: #a9b6cf; max-width: 560px; }
.du-blitze { display: flex; gap: 14px; color: #c084fc; }
.du-blitze svg.i { width: 54px; height: 54px; stroke-width: 1.6; animation: arFlacker 2.4s infinite; }
.du-blitze svg.i:nth-child(2) { color: #ffc21a; animation-delay: .4s; } .du-blitze svg.i:nth-child(3) { color: #ff7a1a; animation-delay: .8s; }
.du-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.du-karte { position: relative; border-radius: 22px; padding: 26px; background: var(--flaeche); border: 1px solid var(--rand); box-shadow: 0 18px 36px -26px rgba(16,24,40,.45); animation: arRein .5s both; }
.du-karte h2 { font: 700 1.5rem var(--kopf); margin: 6px 0 4px; }
.du-karte p { color: var(--text2); margin-bottom: 16px; }
.du-karte a { color: var(--akzent); font-weight: 600; }
.du-nr { position: absolute; top: 20px; right: 22px; font: 700 3rem/1 var(--kopf); color: #eef1f6; }
.du-beitreten { background: radial-gradient(400px 200px at 100% 0%, rgba(192,132,252,.25), transparent 60%), #0b1426; color: #fff; border: 0; }
.du-beitreten p { color: #a9b6cf; } .du-beitreten .du-nr { color: rgba(255,255,255,.08); }
.du-codeform { display: flex; gap: 10px; flex-wrap: wrap; }
.du-codeform input { flex: 1 1 200px; min-width: 0; font: 700 2.2rem var(--kopf); letter-spacing: .35em; text-align: center; padding: 12px; border-radius: 16px; border: 2px solid rgba(255,255,255,.15); background: #070d1a; color: #ffc21a; }
.du-codeform input:focus { outline: none; border-color: #c084fc; box-shadow: 0 0 0 4px rgba(192,132,252,.3); }
.du-wahl { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.du-wahl span { width: 80px; font-size: .82rem; font-weight: 600; color: var(--text3); }
.du-wahl button { min-width: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--rand2); background: var(--flaeche); font-weight: 700; cursor: pointer; }
.du-wahl button.an { background: #0b1220; color: #ffc21a; border-color: #0b1220; }
.du-check { display: flex; gap: 8px; align-items: center; margin: 6px 0 16px; font-size: .9rem; }
.du-erstellen .ar-los:disabled { opacity: .5; cursor: not-allowed; }
.du-banner { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 22px; border-radius: 20px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(192,132,252,.35), transparent 60%), #0b1426; transition: transform .2s; animation: arRein .5s .15s both; }
.du-banner:hover { transform: translateY(-3px); }
.du-banner b { display: block; font: 700 1.1rem var(--kopf); margin: 2px 0; }
.du-banner small { color: #a9b6cf; }
.du-banner .ar-kicker { color: #c084fc; }
.du-banner .ar-banner-los { color: #c084fc; }
.du-banner-ico { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: #c084fc; color: #1a0b2e; }
.du-banner-ico svg.i { width: 28px; height: 28px; stroke-width: 2.2; }

.du-buehne { --c: #c084fc; }
.du-warten { text-align: center; padding: 4vh 0; }
.du-code { font: 700 clamp(3.5rem, 13vw, 7.5rem)/1 var(--kopf); letter-spacing: .08em; color: #ffc21a; text-shadow: 0 0 50px rgba(255,194,26,.45); margin: 8px 0 12px; display: flex; justify-content: center; align-items: center; gap: .2em; }
.du-code i { width: .25em; height: .08em; background: rgba(255,255,255,.25); border-radius: 4px; }
.du-hinweis { color: #a9b6cf; }
.du-spieler { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto; max-width: 860px; }
.du-spieler span { padding: 9px 16px; border-radius: 99px; background: rgba(255,255,255,.08); font-weight: 700; animation: arPlopp .4s var(--d) cubic-bezier(.3,1.6,.5,1) both; }
.du-spieler span.ich { background: #ffc21a; color: #0b1220; }
.du-spieler em { color: #6f7d99; }
.du-start { font-size: 1.15rem; padding: 16px 30px; }
.du-warte { color: #a9b6cf; font-weight: 600; }
.du-punkte i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #c084fc; animation: arBlink 1s infinite; }
.du-punkte i:nth-child(2) { animation-delay: .2s; } .du-punkte i:nth-child(3) { animation-delay: .4s; }

.du-frage, .du-aufl { max-width: 1000px; margin: 0 auto; }
.du-oben { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.du-uhr { --p: 100; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(#c084fc calc(var(--p) * 1%), rgba(255,255,255,.08) 0); transition: background .25s; }
.du-uhr::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #0b1426; }
.du-uhr b { position: relative; font: 700 2rem var(--kopf); }
.du-fragetext h2 { font: 700 clamp(1.3rem, 3.2vw, 2.1rem)/1.25 var(--kopf); margin: 4px 0 0; }
.du-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.du-opt { --f: #ff4d5e; display: flex; gap: 14px; align-items: center; text-align: left; min-height: 96px; padding: 18px 20px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font: 600 1.05rem/1.35 var(--schrift);
  background: var(--f); box-shadow: 0 6px 0 color-mix(in srgb, var(--f) 55%, #000); animation: arRein .35s var(--d) both; transition: transform .1s, opacity .2s, filter .2s; }
.du-opt:nth-child(3) { color: #1d1400; }
.du-opt:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.08); }
.du-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.du-opt:disabled { cursor: default; }
.du-opt.blass { opacity: .25; }
.du-opt.gewaehlt { outline: 4px solid #fff; transform: scale(1.02); }
.du-form { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.18); font-size: 1.3rem; }
.du-opts.beamer .du-opt { min-height: 120px; font-size: 1.25rem; }
.du-unten { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #a9b6cf; font-weight: 600; gap: 10px; }
.du-gesendet { margin-top: 16px; text-align: center; padding: 14px; border-radius: 14px; background: rgba(192,132,252,.12); color: #e9d5ff; font-weight: 700; animation: arRein .3s both; }

.du-ergebnis { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 18px; margin-bottom: 18px; animation: arPlopp .45s cubic-bezier(.3,1.6,.5,1) both; }
.du-ergebnis b { font: 700 1.6rem var(--kopf); }
.du-ergebnis.ok { background: linear-gradient(120deg, #16a34a, #22c55e); }
.du-ergebnis.nein { background: linear-gradient(120deg, #be123c, #ff4d5e); }
.du-auflfrage { font: 700 1.25rem var(--kopf); margin-bottom: 14px; }
.du-balken { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.du-balken > div { --f: #ff4d5e; opacity: .5; }
.du-balken > div.richtig { opacity: 1; }
.du-balken > div.meine:not(.richtig) { opacity: .8; }
.du-saeule { position: relative; height: 120px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; align-items: flex-end; overflow: hidden; }
.du-saeule i { display: block; width: 100%; background: var(--f); border-radius: 12px 12px 0 0; animation: duWachs .7s cubic-bezier(.2,.8,.2,1) both; min-height: 4px; }
.du-saeule span { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font: 700 1.3rem var(--kopf); }
.du-balken small { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.3; color: #d6deec; }
.du-balken .richtig small { color: #86efac; font-weight: 700; }
.du-erkl { margin-top: 12px; }
.du-zwischen { margin: 22px 0 10px; font: 700 1rem var(--kopf); color: #a9b6cf; text-transform: uppercase; letter-spacing: .1em; }
.du-rang { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.du-rangzeile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.05); animation: duRein .45s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.du-rangzeile.ich { background: rgba(255,194,26,.16); box-shadow: inset 0 0 0 1px rgba(255,194,26,.5); }
.du-rangzeile b { flex: 1; }
.du-rangzeile strong { font: 700 1.25rem var(--kopf); }
.du-platz { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 .95rem var(--kopf); background: rgba(255,255,255,.08); }
.du-platz.p1 { background: #ffc21a; color: #0b1220; } .du-platz.p2 { background: #cbd5e1; color: #0b1220; } .du-platz.p3 { background: #f59e0b; color: #2a1700; }
.du-plus { font-style: normal; color: #22c55e; font-weight: 700; font-size: .9rem; }
.du-serie { font-style: normal; color: #ff7a1a; display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.du-serie svg.i { width: 16px; height: 16px; fill: #ff7a1a; }

.du-podest { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 24px 0 10px; }
.du-sockel { width: min(30%, 180px); text-align: center; animation: duHoch .7s var(--d) cubic-bezier(.3,1.4,.5,1) both; }
.du-sockel b { display: block; font: 700 1.05rem var(--kopf); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-sockel em { display: block; font-style: normal; color: #a9b6cf; margin-bottom: 8px; }
.du-sockel > div { border-radius: 14px 14px 0 0; display: grid; place-items: center; font: 700 2.4rem var(--kopf); color: #0b1220; }
.du-sockel.s1 > div { height: 170px; background: linear-gradient(180deg, #ffd84d, #ffb000); box-shadow: 0 0 50px rgba(255,194,26,.5); }
.du-sockel.s2 > div { height: 120px; background: linear-gradient(180deg, #e2e8f0, #94a3b8); }
.du-sockel.s3 > div { height: 90px; background: linear-gradient(180deg, #fbbf24, #b45309); }
.du-sockel.leer { visibility: hidden; }
.du-krone { display: block; height: 34px; color: #ffc21a; }
.du-krone svg.i { width: 34px; height: 34px; filter: drop-shadow(0 0 10px #ffc21a); animation: arFlacker 1.6s infinite; }
.du-ende .du-rang { margin-top: 10px; }
@keyframes duWachs { from { height: 0 !important; } }
@keyframes duRein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes duHoch { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .du-raster { grid-template-columns: 1fr; }
  .du-opts { grid-template-columns: 1fr; } .du-opt { min-height: 70px; }
  .du-oben { flex-direction: column; align-items: flex-start; gap: 12px; } .du-uhr { width: 70px; height: 70px; } .du-uhr b { font-size: 1.5rem; }
  .du-balken { grid-template-columns: repeat(2, 1fr); }
  .du-blitze { display: none; }
  .du-banner { flex-wrap: wrap; }
}
.vergessen { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--akzent); font-weight: 600; cursor: pointer; font-size: .88rem; }
.zg-link { display: flex; gap: 8px; margin-top: 12px; }
.zg-link input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rand2); font-family: ui-monospace, monospace; font-size: .82rem; background: var(--flaeche2); }
input.ar-suche { border-radius: 99px; width: auto; padding: 8px 16px; box-shadow: none; }

/* =================== Semesterprüfung =================== */
.sem-hud { background: radial-gradient(800px 300px at 110% -20%, rgba(244,63,94,.28), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(255,194,26,.16), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a; }
.sem-reife { background: conic-gradient(#22c55e calc(var(--p) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 40px rgba(34,197,94,.3); }
.sem-reife span em { font-size: 1rem; font-style: normal; }
.sem-reife small { color: #22c55e !important; }
.sem-modkette { display: flex; gap: 6px; flex-wrap: wrap; }
.sem-modkette span { font: 700 1rem var(--kopf); background: #ffc21a; color: #0b1220; padding: 4px 10px; border-radius: 8px; animation: arPlopp .35s both; }
.sem-modkette em { color: #a9b6cf; }
.sem-countdown { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); min-width: 190px; }
.sem-countdown b { font: 700 3rem/1 var(--kopf); color: #f43f5e; text-shadow: 0 0 30px rgba(244,63,94,.5); }
.sem-countdown small { color: #a9b6cf; font-size: .8rem; }
.sem-countdown input { margin-top: 6px; background: #0b1426; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px 10px; color-scheme: dark; }
.sem-aktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sem-aktion { --c: #ffc21a; text-align: left; border: 0; cursor: pointer; border-radius: 18px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: radial-gradient(200px 140px at 100% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), #0b1426; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.sem-aktion:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -18px color-mix(in srgb, var(--c) 80%, transparent); }
.sem-aktion > span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); margin-bottom: 6px; }
.sem-aktion b { font: 700 1.1rem var(--kopf); }
.sem-aktion small { color: #a9b6cf; font-size: .82rem; }
.sem-aktion.gross { grid-column: span 2; background: linear-gradient(120deg, #be123c, #f43f5e); }
.sem-aktion.gross > span { background: rgba(255,255,255,.18); color: #fff; }
.sem-aktion.gross small { color: #ffe4e6; }
.sem-aktion.gross b { font-size: 1.5rem; }
.sem-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sem-tag { position: relative; border-radius: 16px; padding: 14px; background: var(--flaeche); border: 1px solid var(--rand); display: flex; flex-direction: column; gap: 4px; animation: arRein .4s var(--d) both; }
.sem-tag.heute { border: 2px solid #0b1220; box-shadow: 0 0 0 4px rgba(255,194,26,.35); }
.sem-tag.ok { background: #f0fdf4; border-color: #86efac; }
.sem-tag.ok .sem-tagtitel { text-decoration: line-through; opacity: .6; }
.sem-tagkopf { display: flex; justify-content: space-between; align-items: center; }
.sem-tagkopf b { font: 700 .85rem var(--kopf); text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.sem-tag.heute .sem-tagkopf b { color: #0b1220; }
.sem-haken { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--rand2); background: #fff; cursor: pointer; font-weight: 700; color: #fff; }
.sem-tag.ok .sem-haken { background: #22c55e; border-color: #22c55e; }
.sem-tagtitel { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.sem-tag small { color: var(--text3); font-size: .78rem; }
.sem-taglos { --c: #ffc21a; margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 10px; border: 0; cursor: pointer; font-weight: 700; font-size: .8rem; background: #0b1220; color: var(--c); }
.sem-taglos svg.i { width: 15px; height: 15px; }
.sem-banner { background: radial-gradient(500px 200px at 100% 0%, rgba(244,63,94,.4), transparent 60%), #0b1426; }
.sem-banner .ar-kicker, .sem-banner .ar-banner-los { color: #fb7185; }
.sem-banner .du-banner-ico { background: #f43f5e; color: #fff; }
.sem-auswertung { text-align: left; margin-top: 22px; background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px; }
.sem-auswertung h3 { margin-bottom: 10px; }
.sem-azeile { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sem-azeile .ar-chipnr { min-width: 46px; height: 40px; font-size: 1rem; background: #ffc21a; color: #0b1220; }
.sem-azeile b { font-size: .9rem; }
.sem-abalken { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.sem-abalken i { display: block; height: 100%; }
.sem-anote { font: 700 1.5rem var(--kopf); }
.sem-anote.gut { color: #22c55e; } .sem-anote.schlecht { color: #ff4d5e; }
.sem-azeile small { color: #9aa8c3; }
.ar-opt.gewaehlt { border-color: #fff; background: rgba(255,255,255,.12); }
.spick-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; background: var(--bg); }
.spick-nav a { font: 700 .9rem var(--kopf); background: #0b1220; color: #ffc21a; padding: 6px 12px; border-radius: 9px; }
.spick-modul { margin-bottom: 16px; }
.spick-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.spick-kopf h2 { margin: 0; font-size: 1.3rem; }
.spick-kopf .ar-chipnr { background: #0b1220; color: #ffc21a; }
.spick-unter { margin: 18px 0 8px; }
.spick-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.spick-karten div { border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; background: var(--flaeche2); break-inside: avoid; }
.spick-karten b { font-size: .88rem; }
.spick-karten p { font-size: .85rem; color: var(--text2); margin-top: 3px; }
@media print { .spick-modul { break-inside: auto; box-shadow: none; border: 1px solid #ccc; } .spick-karten { grid-template-columns: 1fr 1fr; } .spick-karten div { background: #fff; } }
@media (max-width: 760px) { .sem-aktion.gross { grid-column: auto; } .sem-countdown { width: 100%; } }

/* Einladungs-Links */
.ein-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ein-karte { border-top: 5px solid var(--c); }
.ein-kopf b { display: block; font: 700 1.2rem var(--kopf); }
.ein-kopf small { display: block; color: var(--text3); margin-bottom: 12px; }
.ein-link { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rand); }
.ein-link input { flex: 1 1 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rand2); font-family: ui-monospace, monospace; font-size: .8rem; background: var(--flaeche2); }
.ein-link small { margin-left: auto; }

/* Klassen-Duell ohne Konto */
.live-knopf { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #0b1220; color: #ffc21a; font-weight: 700; }
.live-seite { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; color: #fff;
  background: radial-gradient(700px 400px at 50% -10%, rgba(192,132,252,.3), transparent 60%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, #070d1a; }
.live-seite.spielt { display: block; padding: 0; }
.live-inhalt { max-width: 1100px; margin: 0 auto; padding: 16px clamp(10px, 3vw, 28px) 40px; }
.live-logo { position: absolute; top: 18px; left: 20px; color: #fff; }
.live-logo b { color: #ffc21a; }
.live-box { width: min(420px, 100%); text-align: center; animation: arRein .5s both; }
.live-box h1 { font: 700 clamp(2.2rem, 8vw, 3.2rem)/1.1 var(--kopf); margin: 6px 0; }
.live-box p { color: #a9b6cf; margin-bottom: 20px; }
.live-box form { display: flex; flex-direction: column; gap: 10px; }
.live-box input { padding: 16px; border-radius: 16px; border: 2px solid rgba(255,255,255,.15); background: #0b1426; color: #fff; font: 700 1.3rem var(--kopf); text-align: center; }
.live-box input#liveCode { letter-spacing: .35em; color: #ffc21a; font-size: 1.8rem; }
.live-box input:focus { outline: none; border-color: #c084fc; box-shadow: 0 0 0 4px rgba(192,132,252,.3); }
.live-box .ar-los { justify-content: center; font-size: 1.1rem; padding: 16px; }
.du-teilen { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 4px auto 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.06); max-width: 100%; }
.du-teilen span { color: #a9b6cf; font-size: .85rem; width: 100%; }
.du-teilen b { font: 700 1rem ui-monospace, monospace; color: #fff; word-break: break-all; }
.du-teilen .ar-zweit { padding: 8px 14px; font-size: .85rem; }

.ansicht-band { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px clamp(16px, 4vw, 44px) 0; padding: 10px 14px; border-radius: 12px; background: #fff7d6; border: 1px solid #ffd666; color: #5c3d00; font-size: .88rem; font-weight: 600; }
.ansicht-band a { margin-left: auto; background: #0b1220; color: #ffc21a; padding: 6px 12px; border-radius: 9px; }

/* Heute lernen */
.heute-karte { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px; margin-top: 18px; color: #04260f; text-decoration: none;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.03) 0 12px, transparent 12px 24px), linear-gradient(120deg, #4ade80, #22c55e); box-shadow: 0 24px 40px -24px rgba(34,197,94,.9); transition: transform .2s; animation: arRein .5s .05s both; }
.heute-karte.start { margin: 0 0 18px; }
.heute-karte:hover { transform: translateY(-3px); }
.heute-ring { --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(#052e14 calc(var(--p) * 1%), rgba(255,255,255,.4) 0); }
.heute-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #dcfce7; }
.heute-ring b, .heute-ring small { position: relative; }
.heute-ring b { font: 700 1.9rem/1 var(--kopf); }
.heute-ring small { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.heute-text { flex: 1; min-width: 0; }
.heute-text .ar-kicker { color: #064e1f; }
.heute-text b { display: block; font: 700 clamp(1.1rem, 2.4vw, 1.4rem)/1.25 var(--kopf); margin: 4px 0; }
.heute-text small { color: #065f2a; font-size: .86rem; }
.heute-los { font: 700 1rem var(--kopf); background: #052e14; color: #4ade80; padding: 10px 16px; border-radius: 12px; white-space: nowrap; }
@media (max-width: 760px) { .heute-karte { flex-wrap: wrap; } .heute-ring { width: 76px; height: 76px; } }
.ar-lernstand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.ar-lernstand div { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); border-radius: 14px; padding: 10px; }
.ar-lernstand b { display: block; font: 700 1.4rem var(--kopf); color: #4ade80; }
.ar-lernstand small { color: #a9b6cf; font-size: .75rem; }
.ar-hinweis.gruen { color: #86efac !important; }
.ar-ki { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; margin-right: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(192,132,252,.5); background: rgba(192,132,252,.12); color: #e9d5ff; font-weight: 700; cursor: pointer; }
.ar-ki:disabled { opacity: .7; }
.ar-kitext { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(192,132,252,.1); border-left: 4px solid #c084fc; color: #ede9fe; line-height: 1.55; animation: arRein .3s both; }
.ar-kitext p { margin: 0 0 6px; color: #ede9fe !important; }

/* Aufgaben-Helfer */
.auf-hud { background: radial-gradient(800px 300px at 110% -20%, rgba(34,197,94,.25), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(192,132,252,.2), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a; }
.auf-hud h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.auf-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; border: 2px dashed var(--rand2); border-radius: 20px; background: var(--flaeche); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.auf-drop:hover, .auf-drop.ueber { border-color: #0b1220; background: #fffdf3; }
.auf-dropico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #0b1220; color: #ffc21a; }
.auf-dropico svg.i { width: 26px; height: 26px; }
.auf-drop b { font: 700 1.05rem var(--kopf); }
.auf-drop small { color: var(--text3); }
.auf-vorschau { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.auf-thumb { position: relative; width: 110px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rand); background: var(--flaeche); }
.auf-thumb img { width: 100%; height: 90px; object-fit: cover; display: block; }
.auf-pdf { display: grid; place-items: center; height: 90px; font: 700 1.2rem var(--kopf); background: #fee2e2; color: #b91c1c; }
.auf-thumb small { display: block; padding: 4px 6px; font-size: .7rem; color: var(--text3); }
.auf-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.auf textarea { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rand2); background: var(--flaeche); font: inherit; resize: vertical; }
.auf-thema { margin-top: 12px; }
.auf-thema label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.auf-modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.auf-modus { --c: #ffc21a; text-align: left; border: 0; cursor: pointer; border-radius: 18px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: radial-gradient(200px 140px at 100% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), #0b1426; transition: transform .2s, box-shadow .2s; }
.auf-modus:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 20px 34px -18px color-mix(in srgb, var(--c) 80%, transparent); }
.auf-modus:disabled { opacity: .5; cursor: wait; }
.auf-modus > span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); margin-bottom: 6px; }
.auf-modus b { font: 700 1.15rem var(--kopf); }
.auf-modus small { color: #a9b6cf; }
.auf-optionen { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.auf-laden { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px; border-radius: 20px; background: #0b1426; color: #fff; text-align: center; }
.auf-laden small { color: #a9b6cf; }
#aufErgebnis { margin-top: 26px; }
.auf-resultat { border-top: 5px solid #22c55e; }
.auf-resultat.tipps { border-top-color: #ffc21a; }
.auf-reskopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.auf-reskopf h2 { margin: 0; font-size: 1.4rem; }
.auf-aufgabe { --c: #60a5fa; margin-bottom: 12px; border-left: 5px solid var(--c); }
.auf-akopf { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.auf-nr { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #0b1220; color: #ffc21a; font: 700 1rem var(--kopf); }
.auf-art { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.auf-atext { font-size: 1rem; }
.auf-tipp { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: .92rem; }
.auf-aufgabe textarea { margin: 10px 0; }
.auf-fb { margin-top: 10px; padding: 12px 14px; border-radius: 12px; animation: arRein .3s both; }
.auf-fb.richtig { background: #f0fdf4; border: 1px solid #86efac; }
.auf-fb.teilweise { background: #fffbeb; border: 1px solid #fde68a; }
.auf-fb.falsch { background: #fef2f2; border: 1px solid #fecaca; }
.auf-fb p { margin-top: 4px; }
.auf-loesung { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--flaeche2); border: 1px solid var(--rand); }
@media print {
  .auf-hud, .ar-schritt, .hinweis { display: none !important; }
  .druck-ohne .auf-loesung, .druck-ohne .auf-tipp, .druck-ohne .auf-feedback { display: none !important; }
  .druck-mit .auf-loesung { display: block !important; }
  .druck-ohne .auf-aufgabe::after { content: ""; display: block; height: 120px; border-bottom: 1px dashed #bbb; }
}

/* =================== Handy-Feinschliff =================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, .ar-modus b, .heute-text b, .ar-banner b, .du-banner b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
p, small, .ar-modus small { overflow-wrap: break-word; text-wrap: pretty; }
.du-raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.du-codeform input { width: 100%; }
.ar-zeit span, .ar-fort span { position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; }

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .inhalt { padding-bottom: 120px; }
  h1 { font-size: 1.6rem; line-height: 1.15; }
  h2 { font-size: 1.15rem; }
  .ar-kicker { font-size: .66rem; letter-spacing: .12em; }
  /* Kopfbereiche */
  .ar-hud { padding: 20px 16px 26px; gap: 16px; }
  .ar-hud h1 { font-size: 1.55rem; margin: 2px 0 8px; }
  .ar-hud-links { gap: 14px; flex-basis: 100%; }
  .ar-level { width: 74px; height: 74px; }
  .ar-level::before { inset: 7px; }
  .ar-level span { font-size: 1.8rem; }
  .ar-level small { font-size: .55rem; }
  .ar-hud-stats { flex-basis: 100%; gap: 8px; }
  .ar-stat { padding: 10px 12px; border-radius: 14px; }
  .ar-stat b { font-size: 1.2rem; }
  .ar-tonknopf { top: 10px; right: 10px; width: 34px; height: 34px; }
  .sem-modkette span { font-size: .85rem; padding: 3px 8px; }
  .sem-countdown { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 12px; }
  .sem-countdown b { font-size: 2rem; }
  .du-sub { font-size: .9rem; }
  /* Heute lernen: Ring + Text oben, Knopf unten über die ganze Breite */
  .heute-karte { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px; border-radius: 18px; }
  .heute-ring { width: 66px; height: 66px; }
  .heute-ring::before { inset: 6px; }
  .heute-ring b { font-size: 1.45rem; }
  .heute-ring small { font-size: .55rem; }
  .heute-text b { font-size: 1.08rem; margin: 2px 0; }
  .heute-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; }
  .heute-los { grid-column: 1 / -1; text-align: center; padding: 12px; }
  /* Banner */
  .ar-banner, .du-banner { padding: 16px; gap: 12px; border-radius: 18px; }
  .ar-banner b, .du-banner b { font-size: 1.02rem; }
  .ar-banner small, .du-banner small { font-size: .8rem; }
  .ar-banner-ico, .du-banner-ico { width: 44px; height: 44px; border-radius: 13px; }
  .ar-challenge { padding: 18px 16px; gap: 14px; border-radius: 18px; }
  .ar-challenge h2 { font-size: 1.15rem; }
  /* Schritte */
  .ar-schritt { margin-top: 26px; }
  .ar-schrittkopf { gap: 10px; }
  .ar-schrittkopf h2 { font-size: 1.25rem; }
  .ar-schrittkopf p { font-size: .86rem; }
  .ar-nr { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .ar-schnell { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .ar-schnell::-webkit-scrollbar { display: none; }
  .ar-schnell button { white-space: nowrap; flex: none; padding: 7px 12px; font-size: .8rem; }
  .ar-suche { flex: 0 0 220px; }
  /* Modul-Kacheln: zwei Spalten, kompakt */
  .ar-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ar-chip { grid-template-columns: 1fr; gap: 6px; padding: 10px; border-radius: 14px; }
  .ar-chipnr { grid-row: auto; min-width: 0; width: 46px; height: 38px; font-size: 1.05rem; border-radius: 10px; }
  .ar-chip.abu .ar-chipnr { font-size: .9rem; }
  .ar-chiptext b { font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ar-chiptext small { font-size: .68rem; }
  .ar-chipbalken { grid-column: auto; }
  .ar-haken { top: 8px; right: 8px; }
  .ar-gruppenkopf h3 { font-size: .72rem; }
  /* Auswahl-Leiste unten: schlank */
  .ar-leiste { bottom: 74px; }
  .ar-leiste-in { flex-wrap: nowrap; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; }
  .ar-gewaehlt { display: none; }
  .ar-leiste-text { min-width: 0; font-size: .8rem; line-height: 1.3; }
  .ar-leiste .ar-los { padding: 10px 12px; font-size: .82rem; white-space: nowrap; box-shadow: 0 4px 0 #c98a00; }
  /* Lernarten */
  .ar-modi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ar-modus { padding: 14px 12px; border-radius: 16px; gap: 4px; }
  .ar-modusico { width: 38px; height: 38px; border-radius: 11px; }
  .ar-modusico svg.i { width: 21px; height: 21px; }
  .ar-modustag { position: static; align-self: flex-start; font-size: .6rem; padding: 2px 6px; order: -1; margin-bottom: 2px; }
  .ar-modus b { font-size: 1rem; margin-top: 4px; line-height: 1.2; }
  .ar-modus small { font-size: .74rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ar-rekord { font-size: .68rem; }
  .ar-abzeichen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ar-badge { padding: 10px; }
  .ar-badge b { font-size: .8rem; } .ar-badge small { font-size: .68rem; }
  /* Spiel */
  .ar-buehne { padding: 12px 14px 24px; }
  .ar-spielname { font-size: .95rem; }
  .ar-statusleiste { gap: 8px; margin-bottom: 14px; }
  .ar-text { font-size: 1.2rem; line-height: 1.35; margin-bottom: 16px; }
  .ar-aussage { font-size: 1.02rem; padding: 12px 14px; }
  .ar-opt { padding: 13px 12px; font-size: .95rem; border-radius: 14px; }
  .ar-wfknopf { padding: 18px 10px; font-size: 1.05rem; }
  .ar-fb { padding: 12px 14px; }
  .ar-weiter { width: 100%; padding: 14px; }
  .ar-endering { width: 140px; height: 140px; }
  .ar-endering b { font-size: 2.1rem; }
  .ar-endestats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-endestats b { font-size: 1.3rem; }
  .ar-endeknoepfe > * { flex: 1 1 100%; justify-content: center; }
  .ar-lernstand b { font-size: 1.15rem; }
  /* Duell */
  .du-karte { padding: 20px 16px; border-radius: 18px; }
  .du-nr { font-size: 2.2rem; top: 14px; right: 16px; }
  .du-codeform input { font-size: 1.7rem; letter-spacing: .25em; }
  .du-codeform .ar-los { flex: 1 1 100%; justify-content: center; }
  .du-wahl span { width: 70px; }
  .du-wahl button { min-width: 0; flex: 1; padding: 8px 6px; }
  .du-code { font-size: 3.4rem; }
  .du-fragetext h2 { font-size: 1.2rem; }
  .du-opt { min-height: 64px; padding: 14px; font-size: .95rem; }
  .du-sockel b { font-size: .85rem; }
  .du-sockel > div { font-size: 1.8rem; }
  .du-sockel.s1 > div { height: 120px; } .du-sockel.s2 > div { height: 88px; } .du-sockel.s3 > div { height: 66px; }
  /* Kacheln & Karten allgemein */
  .karte { padding: 16px; }
  .kachel .zahl { font-size: 1.6rem; }
  .kachel .ico { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 4px; }
  .hero { padding: 22px 18px 24px; border-radius: 18px; }
  .hero h1 { font-size: 1.6rem; }
  /* Semester & Aufgaben */
  .sem-aktionen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sem-aktion { padding: 14px 12px; }
  .sem-aktion b { font-size: .98rem; } .sem-aktion.gross b { font-size: 1.2rem; }
  .sem-aktion.gross { grid-column: 1 / -1; }
  .sem-aktion small { font-size: .74rem; }
  .sem-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sem-tag { padding: 12px 10px; }
  .sem-tagtitel { font-size: .82rem; }
  .sem-taglos { font-size: .74rem; padding: 6px 9px; }
  .auf-modi { grid-template-columns: 1fr; gap: 8px; }
  .auf-modus { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
  .auf-modus > span { margin: 0; flex: none; }
  .auf-modus b { font-size: 1.02rem; }
  .auf-modus small { display: block; font-size: .78rem; }
  .auf-drop { padding: 22px 14px; }
  .auf-reskopf h2 { font-size: 1.2rem; }
  .ansicht-band { margin: 12px 16px 0; font-size: .8rem; }
  .ansicht-band a { margin-left: 0; }
}
@media (max-width: 360px) {
  .ar-modi, .ar-chips, .sem-aktionen, .sem-plan { grid-template-columns: 1fr; }
}

/* =================== Lernpfad =================== */
.pfad-hud { background: radial-gradient(800px 300px at 110% -20%, rgba(34,197,94,.3), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(56,189,248,.2), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a; }
.pfad-welt { margin-top: 26px; border-radius: 22px; padding: 18px 16px 26px; background: linear-gradient(180deg, #f8fafc, #eef2f7); border: 1px solid var(--rand); position: relative; overflow: hidden; }
.pfad-weltkopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pfad-weltkopf h2 { margin: 0; font-size: 1.15rem; }
.pfad-weltkopf span { display: inline-flex; gap: 4px; align-items: center; font: 700 .95rem var(--kopf); color: #0b1220; background: #fff; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--rand); }
.pfad-weltkopf span svg.i { width: 16px; height: 16px; color: #d4a000; }
.pfad-weg { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; padding-top: 10px; }
.pfad-weg::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 50%; border-left: 4px dotted #cbd5e1; transform: translateX(-2px); }
.pfad-knoten { --x: 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; border: 0; background: none; cursor: pointer; translate: calc((var(--x) - 1) * 90px) 0; animation: arRein .45s var(--d) both; }
.pfad-kreis { --p: 0; position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring, #94a3b8) calc(var(--p) * 1%), #e2e8f0 0); box-shadow: 0 6px 0 rgba(15,23,42,.18); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.pfad-kreis::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--innen, #f1f5f9); }
.pfad-kreis b { position: relative; font: 700 1.25rem var(--kopf); color: #334155; }
.pfad-knoten:hover .pfad-kreis { transform: scale(1.08); }
.pfad-knoten small { font-size: .74rem; font-weight: 600; color: #475569; text-align: center; line-height: 1.25; max-width: 150px; background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 8px; }
.pfad-knoten.dran .pfad-kreis { --ring: #f59e0b; --innen: #fff7d6; }
.pfad-knoten.dran .pfad-kreis b { color: #8a5a00; }
.pfad-knoten.meister .pfad-kreis { --ring: #16a34a; --innen: #22c55e; box-shadow: 0 6px 0 #15803d, 0 0 26px rgba(34,197,94,.45); }
.pfad-knoten.meister .pfad-kreis b { color: #fff; }
.pfad-krone { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: #ffc21a; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.pfad-krone svg.i { width: 26px; height: 26px; fill: #ffc21a; }
.pfad-knoten.ziel .pfad-kreis { --innen: #0b1220; animation: arPuls 1.8s infinite; }
.pfad-knoten.ziel .pfad-kreis b { color: #ffc21a; }
.pfad-hier { position: absolute; top: -26px; font-style: normal; font: 700 .7rem var(--kopf); text-transform: uppercase; letter-spacing: .08em; background: #0b1220; color: #ffc21a; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.pfad-blatt { position: fixed; inset: 0; z-index: 90; background: rgba(7,13,26,.55); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.pfad-blatt[hidden] { display: none; }
.pfad-blatt-in { position: relative; width: min(560px, 100%); background: var(--flaeche); border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: blattHoch .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes blattHoch { from { transform: translateY(100%); } to { transform: none; } }
.pfad-zu { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--flaeche2); cursor: pointer; font-size: 1rem; }
.pfad-blattkopf { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
.pfad-blattkopf .ar-chipnr { background: #0b1220; color: #ffc21a; }
.pfad-blattkopf h2 { margin: 0; font-size: 1.15rem; }
.pfad-blattkopf small { color: var(--text3); }
.pfad-bal { display: grid; grid-template-columns: 100px 1fr 44px; gap: 10px; align-items: center; margin: 8px 0; font-size: .85rem; }
.pfad-bal div { height: 10px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.pfad-bal i { display: block; height: 100%; border-radius: inherit; }
.pfad-bal b { text-align: right; font-family: var(--kopf); }
.pfad-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pfad-aktionen .ar-los { grid-column: 1 / -1; justify-content: center; }
.pfad-aktionen .ar-zweit { color: #0b1220; border-color: var(--rand2); justify-content: center; padding: 11px; font-size: .9rem; }
@media (max-width: 760px) { .pfad-knoten { translate: calc((var(--x) - 1) * 70px) 0; width: 130px; } .pfad-kreis { width: 66px; height: 66px; } }

/* =================== Mündliche Prüfung =================== */
.mu-hud { background: radial-gradient(800px 300px at 110% -20%, rgba(56,189,248,.3), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a; }
.mu-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; }
.mu-avatar.gross { width: 86px; height: 86px; box-shadow: 0 0 40px rgba(56,189,248,.5); animation: arPuls 2.4s infinite; }
.mu-avatar.gross svg.i { width: 42px; height: 42px; }
.ar select, #muThema, #aufThema { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rand2); background: var(--flaeche); font: inherit; }
.mu-buehne { display: flex; flex-direction: column; }
.mu-thema { color: #9aa8c3; font-size: .85rem; margin: -6px 0 12px; }
.mu-chat { flex: 1; display: flex; flex-direction: column; gap: 12px; max-width: 760px; width: 100%; margin: 0 auto; padding-bottom: 12px; }
.mu-zeile { display: flex; gap: 10px; align-items: flex-end; animation: arRein .3s both; }
.mu-zeile.ich { justify-content: flex-end; }
.mu-blase { max-width: 82%; padding: 12px 15px; border-radius: 18px; line-height: 1.5; font-size: .98rem; }
.mu-zeile.pruefer .mu-blase { background: #15213a; border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 6px; }
.mu-zeile.frage .mu-blase { background: linear-gradient(135deg, #0c4a6e, #1e3a8a); border-color: rgba(56,189,248,.5); font-size: 1.06rem; }
.mu-zeile.ich .mu-blase { background: #ffc21a; color: #0b1220; border-bottom-right-radius: 6px; font-weight: 500; }
.mu-zeile.fehler .mu-blase { background: rgba(255,77,94,.15); border-color: rgba(255,77,94,.4); }
.mu-punkte { display: inline-block; font: 700 .8rem var(--kopf); padding: 2px 8px; border-radius: 8px; margin-right: 6px; }
.mu-punkte.gut { background: #22c55e; color: #052e14; } .mu-punkte.mittel { background: #ffc21a; color: #3b2a00; } .mu-punkte.schwach { background: #ff4d5e; color: #fff; }
.mu-eingabe { position: sticky; bottom: 10px; display: flex; gap: 8px; align-items: flex-end; max-width: 760px; width: 100%; margin: 0 auto; padding: 8px; border-radius: 20px; background: #0e1729; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px -20px #000; }
.mu-eingabe textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; padding: 10px 6px; outline: none; }
.mu-mic { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; display: grid; place-items: center; }
.mu-mic svg.i { width: 24px; height: 24px; }
.mu-mic.an { background: #ff4d5e; animation: arPuls 1s infinite; }
.mu-senden { padding: 12px 14px; }
.mu-eingabe.wartet { opacity: .55; }
.mu-ende { text-align: center; padding: 16px 0; animation: arRein .5s both; }
.mu-ende p { color: #d6deec; max-width: 560px; margin: 12px auto; }

/* =================== Wochen-Liga =================== */
.liga { border-radius: 22px; padding: 20px; color: #fff; background: radial-gradient(600px 260px at 100% 0%, rgba(103,232,249,.22), transparent 60%), #070d1a; }
.liga-kopf { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.liga-kopf h2 { margin: 2px 0; font-size: 1.4rem; }
.liga-kopf small { color: #9aa8c3; }
.liga-ich { --f: #ffc21a; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid color-mix(in srgb, var(--f) 60%, transparent); }
.liga-ich span { grid-row: span 3; color: var(--f); }
.liga-ich span svg.i { width: 34px; height: 34px; fill: var(--f); filter: drop-shadow(0 0 10px var(--f)); }
.liga-ich b { font: 700 1.2rem var(--kopf); color: var(--f); }
.liga-ich small { color: #c9d3e6; }
.liga-ich em { font-style: normal; font-size: .75rem; color: #9aa8c3; }
.liga-stufen { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.liga-stufen span { --f: #fff; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--f); font-weight: 700; font-size: .8rem; }
.liga-stufen svg.i { width: 14px; height: 14px; fill: var(--f); }
.liga-stufen small { color: #9aa8c3; font-weight: 500; }
.liga-liste { display: flex; flex-direction: column; gap: 6px; }
.liga-zeile { --f: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.liga-zeile.ich { background: rgba(255,194,26,.16); box-shadow: inset 0 0 0 1px rgba(255,194,26,.5); }
.liga-zeile b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liga-zeile em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--f); }
.liga-zeile strong { font: 700 1.1rem var(--kopf); min-width: 44px; text-align: right; }

/* Startseite: Schnellzugriff */
.start-neu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.start-neu-k { --c: #ffc21a; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 18px; color: #fff; background: radial-gradient(180px 120px at 100% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), #0b1426; transition: transform .2s; }
.start-neu-k:hover { transform: translateY(-3px); }
.start-neu-k svg.i { width: 26px; height: 26px; color: var(--c); margin-bottom: 4px; }
.start-neu-k b { font: 700 1rem var(--kopf); }
.start-neu-k small { color: #a9b6cf; font-size: .78rem; }
@media (max-width: 900px) { .start-neu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mu-blase { max-width: 88%; font-size: .95rem; }
  .mu-avatar.gross { display: none; }
  .liga { padding: 16px; border-radius: 18px; }
  .start-neu-k { padding: 14px 12px; }
}
.zeile .haupt b.ar-lvlmini, .ar-lvlmini { display: inline-block !important; width: auto !important; }
/* Rangliste: Podest im neuen Look */
.podest .sockel { border-radius: 14px 14px 0 0 !important; font: 700 2rem var(--kopf) !important; color: #0b1220 !important; border: 0 !important; }
.podest .p1 .sockel { background: linear-gradient(180deg, #ffd84d, #ffb000) !important; box-shadow: 0 0 40px rgba(255,194,26,.45); }
.podest .p2 .sockel { background: linear-gradient(180deg, #e2e8f0, #94a3b8) !important; }
.podest .p3 .sockel { background: linear-gradient(180deg, #fbbf24, #b45309) !important; }
.podest .name { font: 700 .95rem var(--kopf); }
.podest .pkt { font-weight: 700; color: var(--text2); }
.zeile.ich { background: #fff8e1 !important; border-color: #ffd666 !important; }

/* =================== Aufträge =================== */
.auftr-hud, .kl-hud { background: radial-gradient(800px 300px at 110% -20%, rgba(251,146,60,.28), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px, #070d1a; }
.kl-hud { background-color: #070d1a; background-image: radial-gradient(800px 300px at 110% -20%, rgba(239,68,68,.25), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }
.auftr-neu h2 { margin-bottom: 10px; }
.auftr-neu input#aTitel { margin-bottom: 12px; }
.auftr-module { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche2); }
.auftr-mod { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--rand2); background: var(--flaeche); border-radius: 10px; padding: 6px 10px; font-size: .8rem; cursor: pointer; }
.auftr-mod b { font-family: var(--kopf); }
.auftr-mod.an { background: #0b1220; color: #fff; border-color: #0b1220; }
.auftr-mod.an b { color: #ffc21a; }
.auftr-neu .ar-los { margin-top: 12px; }
.auftr-karte { margin-bottom: 12px; border-left: 5px solid #fb923c; }
.auftr-karte.fertig { border-left-color: #22c55e; }
.auftr-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.auftr-kopf .heute-ring::before { background: #fff7ed; }
.auftr-zahl { flex: none; width: 74px; height: 74px; border-radius: 18px; background: #0b1220; color: #fff; display: grid; place-content: center; text-align: center; }
.auftr-zahl b { font: 700 1.3rem var(--kopf); color: #ffc21a; } .auftr-zahl small { font-size: .7rem; color: #a9b6cf; }
.auftr-text h3 { font-size: 1.1rem; margin: 0 0 2px; }
.auftr-text small { color: var(--text3); }
.auftr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.auftr-chips span { font-size: .72rem; background: var(--flaeche2); border: 1px solid var(--rand); padding: 2px 8px; border-radius: 99px; }
.auftr-klasse { display: grid; gap: 6px; margin: 10px 0; }
.auftr-zeile { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 60px; gap: 10px; align-items: center; font-size: .85rem; }
.auftr-zeile div { height: 8px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.auftr-zeile i { display: block; height: 100%; background: #fb923c; border-radius: inherit; }
.auftr-zeile.ok i { background: #22c55e; }
.auftr-zeile b { text-align: right; font-family: var(--kopf); }
.auftr-erledigt { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: #15803d; }
.auftr-start { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; margin-bottom: 18px; color: #431407; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.03) 0 12px, transparent 12px 24px), linear-gradient(120deg, #fdba74, #fb923c); box-shadow: 0 24px 40px -24px rgba(251,146,60,.9); animation: arRein .5s both; }
.auftr-start .heute-ring { background: conic-gradient(#431407 calc(var(--p) * 1%), rgba(255,255,255,.45) 0); }
.auftr-start .heute-ring::before { background: #ffedd5; }
.auftr-start .heute-text .ar-kicker { color: #7c2d12; display: inline-flex; gap: 6px; align-items: center; }
.auftr-start .heute-text small { color: #7c2d12; }
.auftr-start .heute-los { background: #431407; color: #fdba74; border: 0; cursor: pointer; }
@media (max-width: 760px) {
  .auftr-start { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px; border-radius: 18px; }
  .auftr-start .heute-los { grid-column: 1 / -1; }
  .auftr-zeile { grid-template-columns: 90px 1fr 50px; font-size: .78rem; }
}

/* =================== Klassen-Analyse =================== */
.kl-schwach { display: grid; gap: 8px; }
.kl-sk { --f: #ef4444; display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); border-left: 6px solid var(--f); }
.kl-sk b { font: 700 1.1rem var(--kopf); }
.kl-sk strong { font: 700 1.3rem var(--kopf); color: var(--f); }
.kl-heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.kl-zelle { --f: #e2e8f0; aspect-ratio: 1; border-radius: 12px; display: grid; place-content: center; text-align: center; background: var(--f); color: #0b1220; cursor: default; transition: transform .15s; }
.kl-zelle:hover { transform: scale(1.06); }
.kl-zelle b { font: 700 1rem var(--kopf); }
.kl-zelle small { font-size: .72rem; font-weight: 700; opacity: .8; }
.kl-legende { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: .78rem; color: var(--text2); }
.kl-legende span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--f); margin-right: 5px; vertical-align: -2px; }
.kl-fragen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.kl-frage b { display: block; margin: 8px 0 4px; }
.kl-frage p { color: #15803d; font-size: .9rem; }
.kl-fkopf { display: flex; gap: 10px; align-items: center; }
.kl-quote { font-size: .78rem; font-weight: 700; color: #b91c1c; background: #fef2f2; padding: 2px 8px; border-radius: 99px; }
@media (max-width: 760px) { .kl-sk { grid-template-columns: 44px 1fr auto; } .kl-sk button { grid-column: 1 / -1; } .kl-heat { grid-template-columns: repeat(4, 1fr); } .kl-fragen { grid-template-columns: 1fr; } }

/* =================== Lern-Podcast =================== */
.pod-buehne { --c: #f472b6; display: flex; flex-direction: column; background: radial-gradient(700px 380px at 50% -10%, rgba(244,114,182,.28), transparent 65%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, #070d1a; }
.pod-laden { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10vh 10px; }
.pod-laden small { color: #a9b6cf; max-width: 360px; }
.pod-wellen { display: flex; gap: 6px; align-items: center; height: 60px; }
.pod-wellen i { width: 8px; height: 20px; border-radius: 99px; background: var(--c); animation: podWelle 1s infinite ease-in-out; }
.pod-wellen i:nth-child(2) { animation-delay: .1s; } .pod-wellen i:nth-child(3) { animation-delay: .2s; } .pod-wellen i:nth-child(4) { animation-delay: .3s; } .pod-wellen i:nth-child(5) { animation-delay: .4s; }
.pod-wellen.klein { height: 40px; } .pod-wellen.klein i { animation-play-state: paused; height: 8px; opacity: .4; }
.pod-wellen.klein.an i { animation-play-state: running; opacity: 1; }
@keyframes podWelle { 0%, 100% { height: 10px; } 50% { height: 46px; } }
.pod-titel { text-align: center; font: 700 clamp(1.3rem, 3.5vw, 2rem) var(--kopf); margin: 4px 0 18px; }
.pod-sprecher { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 6vw, 60px); }
.pod-person { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .55; transition: opacity .2s, transform .2s; }
.pod-person span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 700 2rem var(--kopf); color: #fff; }
.pod-person.mia span { background: linear-gradient(135deg, #f472b6, #a855f7); }
.pod-person.leo span { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.pod-person small { color: #a9b6cf; font-size: .75rem; }
.pod-person.spricht { opacity: 1; transform: scale(1.08); }
.pod-person.spricht span { box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 40px rgba(244,114,182,.6); }
.pod-steuer { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 20px 0 12px; }
.pod-play { width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.8rem; color: #0b1220; background: linear-gradient(180deg, #fbcfe8, #f472b6); box-shadow: 0 6px 0 #be185d, 0 0 40px rgba(244,114,182,.5); }
.pod-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #be185d; }
.pod-k { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem; cursor: pointer; }
.pod-k.tempo { width: auto; padding: 0 14px; border-radius: 99px; font: 700 .9rem var(--kopf); }
.pod-fort { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; max-width: 640px; width: 100%; margin: 0 auto 18px; }
.pod-fort i { display: block; height: 100%; background: var(--c); transition: width .3s; }
.pod-text { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 4px 40px; }
.pod-zeile { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.04); color: #a9b6cf; cursor: pointer; line-height: 1.5; transition: background .2s, color .2s; }
.pod-zeile b { display: block; font: 700 .72rem var(--kopf); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.pod-zeile.mia b { color: #f472b6; } .pod-zeile.leo b { color: #38bdf8; }
.pod-zeile.jetzt { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--c); }
@media (max-width: 760px) { .pod-person span { width: 64px; height: 64px; font-size: 1.5rem; } .pod-text { max-height: 40vh; } }

/* =================== Handy: Seite bleibt gerade stehen =================== */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.rahmen, .rahmen > div:not(.schleier), .inhalt, #ansicht { max-width: 100vw; overflow-x: clip; }
body { overscroll-behavior-x: none; -webkit-tap-highlight-color: transparent; }
img, svg, video, canvas, iframe { max-width: 100%; }
.ar-pop { max-width: 90vw; white-space: nowrap; }

@media (max-width: 820px) {
  /* iPhone zoomt bei Feldern unter 16 px automatisch hinein → danach wackelt die Seite seitlich */
  input, select, textarea, .ar-suche, .du-codeform input, .live-box input, .mu-eingabe textarea { font-size: 16px !important; }
  .du-codeform input, .live-box input#liveCode { font-size: 1.6rem !important; }
  .ar-schnell { margin-right: 0; padding-right: 0; }
  .ar-suche { flex: 0 0 200px !important; }

  /* Kopfzeile */
  .mobilkopf { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); box-shadow: 0 6px 20px -12px rgba(0,0,0,.6); }
  .mobilkopf .logo img { width: 26px; height: 26px; }
  .mobilkopf .abz { padding: 5px 10px; border-radius: 99px; font-size: .78rem; }

  /* Untere Leiste: grössere Ziele, aktiver Punkt */
  .unternav { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -16px rgba(0,0,0,.7); }
  .unternav a, .unternav button { position: relative; gap: 4px; padding: 7px 2px 5px; font-size: .66rem; font-weight: 600; border-radius: 12px; transition: color .15s, background .15s; }
  .unternav a svg.i, .unternav button svg.i { width: 22px; height: 22px; }
  .unternav a.aktiv { background: rgba(255,194,26,.12); }
  .unternav a.aktiv::before { content: ""; position: absolute; top: -6px; left: 50%; width: 22px; height: 3px; border-radius: 0 0 3px 3px; transform: translateX(-50%); background: var(--signal); box-shadow: 0 0 10px var(--signal); }

  /* Seitenmenü «Mehr» */
  .seitenleiste { width: min(300px, 86vw); padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .navlink { padding: 11px 12px; font-size: .95rem; }

  /* Antippen fühlt sich an wie eine App */
  .knopf:active, .ar-los:active, .ar-modus:active, .ar-chip:active, .sem-aktion:active, .auf-modus:active, .start-neu-k:active, .pfad-knoten:active .pfad-kreis { transform: scale(.97); }
  .karte, .ar-modus, .ar-chip { -webkit-user-select: none; user-select: none; }
  .md, .karte p, .ar-fb, .mu-blase, .pod-zeile, .auf-aufgabe { -webkit-user-select: text; user-select: text; }

  /* Inhalt etwas ruhiger */
  .inhalt { padding: 16px 14px 110px; }
  .ar-buehne { margin: -16px -14px 0; border-radius: 0; min-height: calc(100dvh - 120px); }
  .karte { border-radius: 16px; }
  .titelzeile { flex-direction: column; align-items: stretch; gap: 10px; }
  .titelzeile .knoepfe { justify-content: flex-start; }
  .knoepfe { flex-wrap: wrap; }
  .reiter { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .reiter::-webkit-scrollbar { display: none; }
  .reiter button { white-space: nowrap; flex: none; }
  .tabelle, table { display: block; max-width: 100%; overflow-x: auto; }
  .start-neu { gap: 8px; }
  .start-neu-k { padding: 12px; border-radius: 16px; }
  .start-neu-k b { font-size: .92rem; }
  .start-neu-k small { font-size: .72rem; }
  .hero .knoepfe .knopf { flex: 1; justify-content: center; }
  .chips, .vorschlaege { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .chips::-webkit-scrollbar, .vorschlaege::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .pfad-knoten { width: 120px; translate: calc((var(--x) - 1) * 62px) 0; }
  .pfad-knoten small { font-size: .7rem; max-width: 120px; }
  .pfad-welt { padding: 16px 10px 22px; }
  .liga-kopf { flex-direction: column; align-items: stretch; }
}

h1, h2, h3, .ar-modus b, .heute-text b { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 820px) {
  .pfad-weg { padding-top: 34px; }
  .ar-hud h1 { font-size: 1.4rem; }
  .unternav a, .unternav button { white-space: nowrap; }
}
