:root {
  --bg: #F3F4F7; --surface: #FFFFFF; --ink: #1E2230; --muted: #626979; --line: #DDE0E7; --soft: #EBEDF2;
  --navy: #1F6E7D; --l1: #FF9900; --l2: #1A9DB3; --l3: #7A4FC4; --ok: #0E8F48; --okbg: #E3F5EA; --no: #C8141A; --nobg: #FDECEC;
  --lc: var(--l1);
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14171F; --surface: #1F2330; --ink: #EEF0F5; --muted: #A4AABA; --line: #353A4B; --soft: #2A2F3E; --navy: #8FD3E0; --okbg: #13362A; --nobg: #3B1D20; --ok: #4CD38A; --no: #FF8C8C; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #14171F; --surface: #1F2330; --ink: #EEF0F5; --muted: #A4AABA; --line: #353A4B; --soft: #2A2F3E; --navy: #8FD3E0; --okbg: #13362A; --nobg: #3B1D20; --ok: #4CD38A; --no: #FF8C8C; color-scheme: dark; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); height: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--l2); outline-offset: 2px; }
button, .tile, .opt { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.ui { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.ui.sm { width: 22px; height: 22px; } .ui.xs { width: 16px; height: 16px; } .ui.huge { width: 110px; height: 110px; }
.l1 { --lc: var(--l1); } .l2 { --lc: var(--l2); } .l3 { --lc: var(--l3); }
.screen { max-width: 620px; margin: 0 auto; padding: 14px 16px 110px; min-height: 100%; }
.muted { color: var(--muted); font-weight: 400; }
.note { color: var(--muted); font-size: 15px; margin: 6px 0 12px; }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin: 28px 0 0; }
.btn { display: block; width: 100%; border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 18px; text-align: center; transition: transform .1s ease, filter .15s ease; }
.btn:active { transform: translateY(2px); }
.btn.main { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #0F4550; }
.btn.main:disabled { background: var(--soft); color: var(--muted); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.main { background: #2A8A9C; box-shadow: 0 4px 0 #15525E; } }
.btn.sec { background: var(--surface); border: 2px solid var(--line); color: var(--ink); }
.btn.wide { margin-top: 26px; }
.ghost { color: var(--muted); font-weight: 600; padding: 8px 4px; }
.ghost.danger { color: var(--no); margin-top: 18px; }
.linkbtn { display: block; margin: 10px auto 0; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.chip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: #14171F; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pill { background: var(--lc); color: #fff; font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: 15px; }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.bubble { position: relative; background: var(--navy); color: #fff; font-weight: 700; font-size: 17px; padding: 5px 11px 6px; border-radius: 10px; letter-spacing: .2px; }
.bubble::after { content: ""; position: absolute; left: 12px; bottom: -7px; border: 7px solid transparent; border-top-color: var(--l1); border-bottom: 0; border-left-width: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble { color: #14171F; } }
.bt { display: flex; flex-direction: column; line-height: 1.1; }
.bt b { font-size: 17px; } .bt small { color: var(--muted); font-size: 13px; }
.stats { display: flex; gap: 8px; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 7px; font-size: 16px; }
.stat.ring { position: relative; padding: 4px 10px; background: conic-gradient(var(--l1) calc(var(--p) * 1%), var(--surface) 0) padding-box, linear-gradient(var(--line), var(--line)) border-box; }
.stat.ring::before { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: var(--surface); }
.stat.ring > * { position: relative; }
.stat small { color: var(--muted); font-size: 13px; }

/* Startseite: Linienplan */
.hero { display: grid; width: 100%; text-align: left; background: var(--lc); color: #fff; border-radius: 22px; padding: 18px 20px 20px; margin-bottom: 26px; box-shadow: 0 5px 0 rgba(0,0,0,.18); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255,255,255,.18); }
.hero .hk { font-weight: 600; font-size: 15px; opacity: .92; }
.hero .ht { font-weight: 700; font-size: clamp(26px, 7.5vw, 34px); line-height: 1.05; margin-top: 4px; max-width: 85%; }
.hero .he { font-family: var(--cond); font-size: 19px; opacity: .92; }
.hero .hgo { justify-self: start; margin-top: 14px; background: #fff; color: var(--ink); font-weight: 700; padding: 9px 18px; border-radius: 999px; }
.hero.l1 .hgo { color: #8A4A00; } .hero.l2 .hgo { color: #0B5C69; } .hero.l3 .hgo { color: #4B2D82; }
.hero.donebox { cursor: default; }
.line { margin: 0 0 30px; }
.lhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lid { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--lc); background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.lhead h2 { font-size: 21px; line-height: 1.1; } .lhead p { color: var(--muted); font-size: 14px; }
.line.locked .lid { border-color: var(--line); color: var(--muted); }
.skip { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin: 6px 0 10px 68px; }
.skip p { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.skip .btn { padding: 10px; font-size: 16px; }
.stations { list-style: none; margin: 0; padding: 0; position: relative; }
.st { position: relative; }
.st::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 8px; background: var(--lc); }
.st:first-child::before { top: -8px; }
.st:last-child::before { bottom: 50%; }
.st.lock::before { background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.st > button { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 0; min-height: 64px; }
.node { justify-self: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 6px solid var(--lc); position: relative; z-index: 1; display: grid; place-items: center; }
.st.done .node { background: var(--lc); border-color: var(--surface); box-shadow: 0 0 0 3px var(--lc); }
.st.lock .node { border-color: var(--line); width: 30px; height: 30px; border-width: 3px; }
.st.cur .node { width: 34px; height: 34px; border-width: 8px; }
.st.cur .node::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--lc); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st.cur .node::after { animation: none; opacity: .5; } }
.node.big { width: 38px; height: 38px; border-width: 4px; border-radius: 12px; }
.st.test.done .node { border-radius: 12px; }
.sl { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sl small { color: var(--muted); font-size: 13px; }
.sl b { font-size: 18px; }
.sl i { font-family: var(--cond); font-style: normal; color: var(--muted); font-size: 16px; }
.st.cur .sl b { font-size: 20px; }
.st.lock .sl { opacity: .5; }
.stars { display: flex; gap: 1px; font-size: 18px; color: var(--line); padding-right: 4px; }
.stars i, .endstars i { font-style: normal; }
.stars .on { color: #F5B400; }
.here { background: var(--lc); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; margin-right: 2px; }
.here.ok { background: var(--ok); }

/* Untere Navigation */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--surface); border-top: 1.5px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
.nav { flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; }
.nav .ui { width: 26px; height: 26px; filter: grayscale(1); opacity: .6; }
.nav.on { color: var(--ink); background: var(--soft); } .nav.on .ui { filter: none; opacity: 1; }
.nav .dot { position: absolute; top: 2px; right: calc(50% - 26px); background: var(--no); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 5px; min-width: 18px; }

/* Lektionsübersicht */
.intro h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.05; margin-top: 2px; }
.intro .kicker { color: var(--muted); font-weight: 600; }
.intro .sub { font-family: var(--cond); font-size: 22px; color: var(--lc); filter: brightness(.85); }
.intro h3, .screen h3 { font-size: 18px; margin: 22px 0 10px; }
.best { margin-top: 8px; color: #C48A00; font-weight: 600; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wchip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 12px; text-align: left; display: flex; flex-direction: column; line-height: 1.15; }
.wchip b { font-size: 17px; } .wchip span { color: var(--muted); font-size: 14px; }
.tipbox { background: var(--surface); border-left: 6px solid var(--lc); border-radius: 0 14px 14px 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.tipbox.big { font-size: 18px; border-left-color: var(--l1); }
.tipbox b { color: var(--navy); }
.tipbox .tex { background: var(--soft); border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.mini { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.sticky { position: sticky; bottom: 0; padding: 18px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }

/* Übungen */
body[data-screen="ex"] .screen { padding-bottom: 20px; }
.ex { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.exbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.x { font-size: 22px; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; }
.prog { flex: 1; height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .35s ease; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.exk { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.exbody { flex: 1; display: flex; flex-direction: column; }
.ask { font-weight: 700; font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.ask b { color: var(--navy); }
.en { font-family: var(--font); }
.exfoot { position: sticky; bottom: 0; padding: 16px 0 calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 25%); margin-top: 16px; }
.introw { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-top: 8px; }
.introw.sm { margin: 0 0 6px; }
.pic { width: 110px; height: 110px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pic img { width: 72%; height: 72%; object-fit: contain; }
.pic.big { width: 170px; height: 170px; }
.pic.sm { width: 46px; height: 46px; flex: none; }
.pic.txt { font-weight: 700; font-size: 44px; color: var(--muted); background: var(--soft); }
.pic.txt.big { font-size: 70px; } .pic.txt.sm { font-size: 20px; }
.bigword { font-size: clamp(34px, 10vw, 46px); font-weight: 700; line-height: 1.05; margin-top: 8px; }
.deword { font-size: 21px; color: var(--muted); }
.alt { color: var(--muted); font-size: 15px; }
.speakrow { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 10px 0; }
.speakrow.inl { justify-content: flex-start; margin: 0 0 10px; }
.play { width: 54px; height: 54px; border-radius: 16px; background: var(--l2); display: grid; place-items: center; box-shadow: 0 4px 0 #0C6875; }
.play .ui { filter: brightness(0) invert(1); }
.play.slow { width: auto; padding: 0 14px; background: var(--surface); border: 2px solid var(--line); box-shadow: none; color: var(--muted); font-weight: 600; font-size: 15px; height: 46px; }
.speakrow.big .play:not(.slow) { width: 96px; height: 96px; border-radius: 26px; }
.speakrow.big .play:not(.slow) .ui { width: 48px; height: 48px; }
.target { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.target .speakrow { margin: 0; } .target b { font-size: 28px; }
.picgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picopt { position: relative; aspect-ratio: 1 / .85; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; display: grid; place-items: center; }
.picopt img { width: 62%; height: 62%; object-fit: contain; }
.kn { position: absolute; top: 8px; left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; opacity: .7; }
@media (hover: none) { .kn { display: none; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.long { grid-template-columns: 1fr; }
.opt { position: relative; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 16px; padding: 14px 12px; font-size: 19px; font-weight: 600; line-height: 1.2; min-height: 62px; overflow-wrap: anywhere; }
.opts.long .opt { text-align: left; padding-left: 16px; font-size: 18px; }
.opt .kn { top: 5px; left: 8px; }
.opt:active:not(:disabled), .picopt:active:not(:disabled), .tile:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 3px; }
.opt.right, .picopt.right { border-color: var(--ok); background: var(--okbg); }
.opt.wrong, .picopt.wrong { border-color: var(--no); background: var(--nobg); }
.opt.sel { border-color: var(--l2); background: color-mix(in srgb, var(--l2) 14%, var(--surface)); }
.opt.done { opacity: .28; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match > div { display: flex; flex-direction: column; gap: 10px; }
.opt.mt { min-height: 64px; font-size: 17px; }
.gapcard { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.gapcard .en { font-size: 23px; font-weight: 600; line-height: 1.35; }
.gapcard .en.big { font-size: 26px; text-align: center; }
.gapcard .de { color: var(--muted); margin-top: 6px; }
.gap { display: inline-block; min-width: 74px; border-bottom: 3px solid var(--l1); height: 1.05em; vertical-align: baseline; margin: 0 3px; }
.hint { color: var(--muted); font-size: .75em; font-weight: 500; }
.dialog { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; transition: opacity .25s ease; }
.msg.r { flex-direction: row-reverse; align-self: flex-end; }
.msg.hide { display: none; }
.av { width: 46px; height: 46px; border-radius: 50%; background: var(--soft); flex: none; object-fit: cover; }
.av.sm { width: 40px; height: 40px; }
.bub { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; display: flex; flex-direction: column; }
.msg.r .bub { border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--l2) 10%, var(--surface)); }
.bub small { font-weight: 700; font-size: 13px; color: var(--muted); }
.bub .line { text-align: left; font-size: 18px; font-weight: 600; }
.bub .de { color: var(--muted); font-size: 15px; }
.dialog.one { margin-bottom: 16px; }
.dtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.srcline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.srcline .line { text-align: left; font-size: 20px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.desrc { font-size: 20px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.answer { min-height: 112px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin-bottom: 18px; background-image: linear-gradient(transparent 52px, var(--line) 52px, var(--line) 54px, transparent 54px); background-size: 100% 56px; background-position: 0 0; }
.answer.ok { border-color: var(--ok); } .answer.no { border-color: var(--no); }
.ph { color: var(--muted); align-self: center; font-size: 15px; padding: 10px 2px; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; padding: 8px 13px; font-size: 18px; font-weight: 600; }
.tile.used { background: var(--soft); color: transparent; border-color: var(--soft); }
.typein input, .typein textarea { width: 100%; font-size: 21px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); resize: none; }
.typein input:focus, .typein textarea:focus { border-color: var(--l2); outline: none; }
.micbox { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.mic { width: 96px; height: 96px; border-radius: 50%; background: var(--l1); display: grid; place-items: center; box-shadow: 0 5px 0 #B86E00; }
.mic .ui { width: 46px; height: 46px; filter: brightness(0) invert(1); }
.mic.on { background: var(--no); box-shadow: 0 0 0 10px color-mix(in srgb, var(--no) 25%, transparent); }
.micnote { color: var(--muted); text-align: center; font-size: 15px; }
.sheet { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 6px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet.ok { background: var(--okbg); color: var(--ok); }
.sheet.no { background: var(--nobg); color: var(--no); }
.sh { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.shi { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.shi .ui { width: 22px; height: 22px; }
.shsol { color: var(--ink); font-size: 18px; } .shsol b { font-weight: 700; }
.shde { color: var(--muted); font-size: 15px; }
.sheet .btn.main { margin-top: 6px; }
.sheet.ok .btn.main { background: var(--ok); box-shadow: 0 4px 0 #075C2D; color: #fff; }
.sheet.no .btn.main { background: var(--no); box-shadow: 0 4px 0 #7E0B0F; color: #fff; }
.sheet .linkbtn { margin: 0; color: inherit; text-align: left; padding: 2px 0; }

/* Ende */
.end { text-align: center; padding-top: 40px; display: flex; flex-direction: column; align-items: center; }
.end h1 { font-size: clamp(30px, 8vw, 40px); margin-top: 10px; }
.endstars { font-size: 44px; letter-spacing: 4px; color: var(--line); }
.endstars .on { color: #F5B400; }
.endstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 20px 0; }
.endstats div, .kpis div { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; }
.endstats b, .kpis b { font-size: 24px; } .endstats span, .kpis span { color: var(--muted); font-size: 14px; }
.goalmsg { font-weight: 700; color: #B86E00; margin-bottom: 10px; }
.badgenew { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 2px solid #F5B400; border-radius: 16px; padding: 10px 14px; width: 100%; margin-bottom: 10px; }
.badgenew div { display: flex; flex-direction: column; } .badgenew span { color: var(--muted); font-size: 14px; }
.endbtns { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* Wiederholen, Wörter, Profil */
.ph1 { font-size: 30px; margin: 4px 0 8px; }
.lead { color: var(--muted); margin-bottom: 16px; }
.revcard { background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--l2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.revcard b { font-size: 21px; } .revcard span { color: var(--muted); margin-bottom: 10px; }
.boxes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 170px; }
.bx { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.bx i { width: 100%; background: var(--l2); border-radius: 8px 8px 3px 3px; opacity: calc(.35 + var(--o, 0)); max-height: 110px; }
.bx.s0 i { background: var(--line); } .bx.s5 i, .bx.s6 i { background: var(--ok); }
.bx b { font-size: 16px; } .bx span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.1; }
.search { width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-size: 17px; }
.wlist h4 { font-size: 15px; margin: 18px 0 6px; color: var(--muted); }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 12px; padding: 7px 10px; margin-bottom: 6px; }
.wrow.dim { opacity: .55; }
.wt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .wt span { color: var(--muted); font-size: 14px; }
.str { display: flex; gap: 2px; } .str i { width: 6px; height: 16px; border-radius: 2px; background: var(--line); } .str i.on { background: var(--ok); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
@media (max-width: 420px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 140px; align-items: end; background: var(--surface); border-radius: 16px; padding: 12px; }
.wk { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.wk i { width: 70%; background: var(--line); border-radius: 6px; max-height: 78%; }
.wk.hit i { background: var(--l1); }
.wk span { font-size: 12px; color: var(--muted); }
.goalline { position: absolute; left: 12px; right: 12px; border-top: 2px dashed var(--l1); opacity: .6; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--soft); border-radius: 14px; padding: 4px; }
.seg button { border-radius: 10px; padding: 8px 4px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.15; }
.seg button small { font-weight: 500; color: var(--muted); font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { background: var(--surface); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; filter: grayscale(1); opacity: .45; }
.badge.on { filter: none; opacity: 1; border: 2px solid #F5B400; }
.badge b { font-size: 15px; line-height: 1.15; } .badge span { font-size: 13px; color: var(--muted); line-height: 1.2; }
.settings .field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 12px 0; }
.settings select { padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 500; }
.settings input[type="range"] { accent-color: var(--l2); }
.toggle { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle .box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); font-weight: 700; margin-top: 1px; }
.toggle[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.toggle span:last-child { display: flex; flex-direction: column; } .toggle small { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* Kanäle und Bewertung */
a.btn { text-decoration: none; }
.social { margin-top: 30px; }
.social h3 { margin: 0 0 2px; }
.soc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 380px) { .soc { grid-template-columns: 1fr; } }
.socbtn { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-top: 6px solid var(--sc); border-radius: 14px; padding: 10px 12px; line-height: 1.2; }
.socbtn b { font-size: 17px; } .socbtn span { color: var(--muted); font-size: 13px; }
.s-youtube { --sc: #E8141B; } .s-instagram { --sc: #C13584; } .s-tiktok { --sc: #25C2C9; }
.rate { background: var(--surface); border: 2px solid #F5B400; border-radius: 18px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rate.compact { margin: 6px 0 4px; }
.rstars { color: #F5B400; font-size: 30px; letter-spacing: 4px; line-height: 1; }
.rate b { font-size: 19px; } .rate p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.rate .row { justify-content: center; } .rate .row .btn { flex: 1; }

/* Sprachwahl */
.langpick { padding-top: 30px; }
.lpbrand { text-align: center; margin-bottom: 26px; }
.lpbrand h1 { font-size: 34px; margin-top: 18px; } .lpbrand p { color: var(--muted); }
.bubble.big { font-size: 34px; padding: 10px 22px 12px; border-radius: 18px; display: inline-block; }
.bubble.big::after { left: 22px; bottom: -12px; border-width: 12px; border-left-width: 0; }
.langpick h2 { font-size: 22px; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.langbtn { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 16px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 76px; }
.langbtn b { font-size: 19px; } .langbtn span { color: var(--muted); font-size: 13px; line-height: 1.2; }
.langbtn.on { border-color: var(--l2); background: color-mix(in srgb, var(--l2) 10%, var(--surface)); }
.langbtn:disabled { opacity: .5; }
.langcur { display: flex; justify-content: space-between; align-items: center; text-align: left; }

/* Spielewelt */
.games { display: grid; gap: 10px; }
.gcard { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--gc); border-radius: 16px; padding: 12px 14px; }
.c-vocab { --gc: var(--l1); } .c-gram { --gc: var(--l3); } .c-listen { --gc: var(--l2); } .c-write { --gc: var(--ok); }
.gico { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--gc) 16%, var(--surface)); display: grid; place-items: center; }
.gico .ui { width: 34px; height: 34px; }
.gtx { display: flex; flex-direction: column; line-height: 1.25; }
.gtx b { font-size: 19px; } .gtx span { color: var(--muted); font-size: 14px; } .gtx small { font-size: 13px; font-weight: 700; color: var(--gc); margin-top: 2px; }
.gcat { font-size: 12px !important; font-weight: 700; color: var(--gc) !important; filter: brightness(.8); }
.gcard.lock { opacity: .62; } .gcard.lock .gico { filter: grayscale(1); } .gcard.lock small { color: var(--muted); }
.new { position: absolute; top: 8px; right: 10px; background: var(--no); color: #fff; font-style: normal; font-weight: 700; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.badgenew.game { position: relative; border-color: var(--l2); }
.exbar.game { gap: 10px; }
.gname { flex: 1; font-size: 17px; }
.gstat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 14px; white-space: nowrap; }
.gstat.score b { color: var(--l1); }
.gq { font-size: clamp(28px, 8vw, 40px); font-weight: 700; text-align: center; margin: 10px 0 18px; line-height: 1.15; }
.opts.six { grid-template-columns: 1fr 1fr; }
.endstats.two { grid-template-columns: 1fr 1fr; }
.mem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .mem { grid-template-columns: repeat(4, 1fr); } }
.mcard { aspect-ratio: 1 / .8; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 28px; display: grid; place-items: center; padding: 6px; border-bottom: 5px solid rgba(0,0,0,.25); line-height: 1.15; overflow-wrap: anywhere; transition: transform .2s ease; }
.mcard.up { background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-bottom-width: 5px; font-size: 16px; }
.mcard.up.en { color: var(--navy); }
.mcard.found { border-color: var(--ok); background: var(--okbg); opacity: .75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mcard:not(.up) { background: #2A8A9C; } }
.tfcard { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; }
.tfcard .gq { margin: 6px 0; } .tfcard.ok { border-color: var(--ok); background: var(--okbg); } .tfcard.no { border-color: var(--no); background: var(--nobg); }
.tfeq { color: var(--muted); font-size: 22px; }
.tfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tfno { background: var(--no); color: #fff; box-shadow: 0 4px 0 #7E0B0F; } .tfyes { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #075C2D; }
.slots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 18px; flex-wrap: wrap; }
.slot { width: 38px; height: 46px; border-bottom: 3px solid var(--line); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.slot.on { border-color: var(--ok); color: var(--ok); }
.tile.big { min-width: 48px; font-size: 24px; padding: 8px 12px; }
.tile.shake, .tile.shake:disabled { animation: shake .3s; border-color: var(--no); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.gfind { text-align: center; font-size: 20px; margin-bottom: 8px; } .gfind b { font-size: 26px; display: block; }
.rainfield { position: relative; height: min(60vh, 460px); background: linear-gradient(var(--soft), var(--surface)); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.drop { position: absolute; width: 28%; background: var(--surface); border: 2px solid var(--l2); border-bottom-width: 5px; border-radius: 14px; padding: 10px 6px; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.drop.right { border-color: var(--ok); background: var(--okbg); } .drop.wrong { border-color: var(--no); background: var(--nobg); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--no) 25%, transparent) 0 12px, transparent 12px 24px); }
.center { text-align: center; }

.gname { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gstat { font-size: 13px; padding: 2px 8px; }

/* Logo, Level */
.logo { width: 46px; height: 46px; flex: none; }
.logo.big { width: 150px; height: 150px; }
.lpbrand .logo.big { display: block; margin: 0 auto; }
.lvl { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; margin: 0 0 22px; }
.lvl-n { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--l1); color: #fff; font-weight: 700; font-size: 21px; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.lvl-t { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .lvl-t small { color: var(--muted); font-size: 13px; }
.xpbar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; } .xpbar i { display: block; height: 100%; background: var(--l1); border-radius: 999px; }
.lvl-b { display: flex; flex-direction: column; align-items: center; font-size: 13px; }
.lvupmsg { font-weight: 700; color: var(--l3); margin-bottom: 10px; }
/* Üben */
.psec { margin: 8px 0 30px; } .psec h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .stories { grid-template-columns: 1fr; } }
.story { display: flex; gap: 8px; align-items: center; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; position: relative; }
.story span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; } .story small { color: var(--muted); font-size: 12px; } .story b { font-size: 15px; } .story i { font-style: normal; font-size: 12px; color: #C48A00; }
.story.done { border-color: var(--ok); } .story.lock { opacity: .55; } .story.lock i { color: var(--muted); }
.lgrid-h { margin: 10px 0 6px; }
.lgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
@media (max-width: 460px) { .lgrid { grid-template-columns: repeat(5, 1fr); } }
.lg { aspect-ratio: 1; border-radius: 10px; background: var(--surface); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.lg b { font-size: 16px; } .lg i { font-style: normal; font-size: 9px; color: #F5B400; letter-spacing: -1px; margin-top: 2px; }
.lg.learned { border-color: color-mix(in srgb, var(--lc) 45%, var(--line)); }
.lg.done { background: var(--lc); border-color: var(--lc); color: #fff; } .lg.done i { color: #fff; }
.sthead { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; } .sthead h1 { font-size: 28px; line-height: 1.1; }
.sttext { background: var(--surface); border-radius: 18px; padding: 14px 16px; font-size: 19px; line-height: 1.6; margin: 6px 0 10px; }
.sttext p + p { margin-top: 10px; }
.sw { font: inherit; padding: 0; border-bottom: 1.5px dotted var(--line); }
.sw:hover, .sw:focus-visible { background: color-mix(in srgb, var(--l2) 16%, transparent); border-radius: 4px; }
.rq { margin: 12px 0 16px; } .rq > p { font-size: 18px; margin-bottom: 8px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 19px; }
.role .av { width: 84px; height: 84px; }
.dialog.talk .msg, .dialog.write .msg { max-width: 96%; }
.tsc { align-self: flex-start; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 1px 8px; margin-top: 4px; } .tsc.ok { background: var(--okbg); color: var(--ok); } .tsc.no { background: var(--nobg); color: var(--no); }
.tkfoot .micnote { margin-bottom: 8px; }
.tkbtns { display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: 14px; }
.tkbtns .mic { width: 76px; height: 76px; } .tkbtns .mic .ui { width: 38px; height: 38px; }
.btn.slim { width: auto; padding: 12px 18px; }
.gapin { display: inline-flex; flex-direction: column; vertical-align: top; }
.wgap { font: inherit; font-weight: 600; border: 0; border-bottom: 3px solid var(--l1); background: color-mix(in srgb, var(--l1) 10%, transparent); padding: 0 4px; border-radius: 4px 4px 0 0; color: var(--ink); min-width: 3em; }
.wgap:focus { outline: none; border-color: var(--l2); }
.wgap.ok { border-color: var(--ok); background: var(--okbg); } .wgap.no { border-color: var(--no); background: var(--nobg); text-decoration: line-through; }
.fix { color: var(--ok); font-size: 15px; }

.qpic { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -2px 0 14px; }
.qpic .speakrow { margin: 0; }
.wchip { flex-direction: row; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; }
.wct { display: flex; flex-direction: column; line-height: 1.15; } .wct span { color: var(--muted); font-size: 14px; }
.pic.xs { width: 38px; height: 38px; flex: none; border-width: 1.5px; } .pic.txt.xs { font-size: 16px; }
.mcard.up { flex-direction: column; gap: 2px; display: flex; align-items: center; justify-content: center; }
.mcard img { width: 44%; height: 44%; object-fit: contain; }
.gfind { display: flex; align-items: center; justify-content: center; gap: 10px; } .gfind span { text-align: left; }

/* v2.2: Üben übersichtlich wie in der Spielewelt */
.practice .lvl { margin-bottom: 10px; }
.lvl-n.fire { background: #FFE9CC; box-shadow: none; } .lvl-n.fire .ui { width: 26px; height: 26px; }
.selbox { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 12px 0 8px; }
.kick { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.selbox .chips { margin: 0 0 6px; } .selbox .note { margin: 4px 0 0; font-size: 13px; }
.toggle.slim { border-bottom: 0; padding: 6px 0; } .toggle.slim b { font-weight: 600; font-size: 15px; }
.hsec { font-size: 22px; margin: 24px 0 10px; }
.ltile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.t-read { background: linear-gradient(120deg, #1A9DB3, #3FC1A5); } .t-speak { background: linear-gradient(120deg, #E0457B, #FF9900); }
.t-write { background: linear-gradient(120deg, #7A4FC4, #C04FA5); } .t-words { background: linear-gradient(120deg, #0E8F48, #1A9DB3); }
.lti { flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.lti .ui { width: 30px; height: 30px; }
.ltt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .ltt b { font-size: 20px; } .ltt small { font-size: 14px; opacity: .95; }
.chev { font-size: 28px; opacity: .8; }
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .ggrid { grid-template-columns: repeat(3, 1fr); } }
.gt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--surface); border: 2px solid var(--line); border-bottom: 5px solid var(--gc, var(--line)); border-radius: 18px; padding: 14px 10px 12px; min-height: 168px; }
.gti { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--gc, var(--line)) 16%, var(--surface)); display: grid; place-items: center; margin-bottom: 2px; }
.gti .ui { width: 32px; height: 32px; }
.gt b { font-size: 17px; line-height: 1.15; } .gt small { color: var(--muted); font-size: 13px; line-height: 1.25; }
.gbest, .gcat2 { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--gc); } .gbest { color: #C48A00; }
.gt.lock { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--soft) 10px 20px); color: var(--muted); border-bottom-color: var(--line); }
.gt.lock .gti { background: transparent; } .gt.lock b { color: var(--muted); }
.gt.lock .xpbar { width: 86%; margin-top: auto; height: 6px; }
.gt .new { top: 8px; right: 8px; }
/* Spiele */
.btn.big { font-size: 30px; padding: 16px; }
.aslot { display: inline-block; min-width: 1.6em; color: var(--l1); border-bottom: 3px solid var(--l1); }
.plrow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: 20px; }
.match.qa .opt { font-size: 15px; text-align: left; min-height: 70px; }
/* Schreiben von Hand */
.inpsw { margin: 0 0 12px; max-width: 340px; }
.inpsw button { flex-direction: row; justify-content: center; gap: 6px; }
.hpad { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.hpad canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(transparent 46px, color-mix(in srgb, var(--l2) 35%, transparent) 46px, color-mix(in srgb, var(--l2) 35%, transparent) 47px, transparent 47px, transparent 86px, color-mix(in srgb, var(--l1) 55%, transparent) 86px, color-mix(in srgb, var(--l1) 55%, transparent) 88px, transparent 88px), linear-gradient(transparent 126px, color-mix(in srgb, var(--l2) 35%, transparent) 126px, color-mix(in srgb, var(--l2) 35%, transparent) 127px, transparent 127px); }
.hpad.tall canvas { height: 230px; }
.htools { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1.5px solid var(--line); background: var(--soft); }
.htools small { flex: 1; color: var(--muted); font-size: 13px; }
.htools .chip { padding: 5px 10px; font-size: 14px; }
.solbox { margin: 14px 0 6px; background: var(--okbg); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-size: 26px; font-weight: 700; text-align: center; font-family: "Barlow", system-ui, sans-serif; }
.selfchk { text-align: center; } .selfchk p { font-weight: 700; margin: 6px 0 8px; }
.selfchk .row .btn { flex: 1; }
.btn.yes { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #075C2D; } .btn.no { background: var(--no); color: #fff; box-shadow: 0 4px 0 #7E0B0F; }
.bub.solo { flex: 1; } .bub.solo .line { font-size: 20px; }
.screen.ex > .prog { margin: 4px 0 14px; }
