:root {
  --bg: #F3F4F7; --surface: #FFFFFF; --ink: #1E2230; --muted: #626979; --line: #DDE0E7; --soft: #EBEDF2;
  --navy: #C46A0C; --l1: #F09C33; --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: #FFC27A; --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: #FFC27A; --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; }

/* v2.4: schöneres Aussehen */
:root { --bg: #EFF4F6; --sh: 0 1px 2px rgba(16,24,40,.05), 0 6px 18px rgba(16,24,40,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #12161E; --sh: 0 1px 2px rgba(0,0,0,.3); } }
body { background: radial-gradient(1200px 500px at 50% -200px, color-mix(in srgb, var(--l2) 14%, transparent), transparent), var(--bg); background-attachment: fixed; }
.wchip, .opt, .gapcard, .tipbox, .lvl, .selbox, .revcard, .gt, .story, .langbtn, .picopt, .srcline .line, .desrc, .bub, .kpis > div, .endstats > div, .badge, .wrow, .week, .sttext, .taskcard, .scard, .vbox, .hpad, .role { box-shadow: var(--sh); }
.opt, .picopt { border-width: 1.5px; border-bottom-width: 4px; }
.pic { background: var(--tint, var(--soft)); border: 0; }
.pic img { width: 80%; height: 80%; }
.pic.big { width: 190px; height: 190px; }
.pic.big img { width: 76%; height: 76%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pic { background: color-mix(in srgb, var(--tint, #fff) 85%, #000); } }
.picopt { background: var(--surface); }
.picopt img { width: 70%; height: 70%; }
.bigword { letter-spacing: -.5px; }
/* Lernpfad mit Bildern */
.st > button { grid-template-columns: 64px 1fr auto; min-height: 76px; }
.st::before { left: 28px; }
.node.img { width: 54px; height: 54px; border: 4px solid var(--lc); background: var(--surface); border-radius: 50%; overflow: visible; position: relative; box-shadow: var(--sh); }
.node.img img { width: 70%; height: 70%; object-fit: contain; }
.st.done .node.img { background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 30%, transparent); }
.node .chk { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-style: normal; font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 2px solid var(--surface); }
.st.cur .node.img { width: 62px; height: 62px; border-width: 5px; }
.st.cur > button { background: var(--surface); border-radius: 18px; box-shadow: var(--sh); padding-right: 10px; }
.node.big { width: 54px; height: 54px; }
/* Titelkarte */
.hero { min-height: 200px; }
.hpics { position: absolute; right: 12px; bottom: 10px; width: 150px; height: 150px; pointer-events: none; }
.hpics img { position: absolute; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.hpics .hp0 { right: 54px; top: 0; width: 76px; height: 76px; } .hpics .hp1 { right: 0; top: 54px; } .hpics .hp2 { right: 80px; top: 80px; width: 56px; height: 56px; }
@media (max-width: 380px) { .hpics { opacity: .45; } }
.hero .ht { max-width: 62%; }
/* Lektionsübersicht */
.ibanner { display: flex; gap: 10px; margin: 2px 0 12px; }
.ib { width: 64px; height: 64px; border-radius: 18px; background: var(--tint); display: grid; place-items: center; box-shadow: var(--sh); }
.ib img { width: 74%; height: 74%; object-fit: contain; }
/* Lesen */
.grp { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; } .grp .tip { color: var(--muted); font-size: 14px; }
.smap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .smap { grid-template-columns: repeat(3, 1fr); } }
.scard { background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-align: left; border: 2px solid transparent; }
.scard .scene.thumb { width: 100%; height: auto; aspect-ratio: 400 / 220; display: block; }
.sct { font-weight: 700; font-size: 16px; padding: 8px 10px 0; line-height: 1.2; }
.scs { padding: 4px 10px 10px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.scs .stars { font-style: normal; font-size: 16px; } .scs .stars i { color: var(--line); font-style: normal; } .scs .stars .on { color: #F5B400; }
.newb { font-style: normal; background: var(--l1); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.scard.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.scard.lock { opacity: .55; } .scard.lock .scene { filter: grayscale(.8); }
.sth { font-size: 30px; margin: 2px 0 10px; }
.scenebox { border-radius: 22px; overflow: hidden; box-shadow: var(--sh); margin-bottom: 12px; }
.scenebox .scene { display: block; width: 100%; height: auto; aspect-ratio: 400 / 220; }
.scenebox.small { width: 100%; max-width: 360px; }
.sttext { line-height: 1.75; }
.sttext.big { font-size: 23px; }
.sttext.small { font-size: 16px; box-shadow: none; padding: 0; }
.sent { border-radius: 6px; transition: background .2s; }
.sent.on { background: color-mix(in srgb, var(--l1) 26%, transparent); }
.vw { font: inherit; font-weight: 700; background: color-mix(in srgb, #FFD23F 55%, transparent); border-radius: 6px; padding: 0 4px; border-bottom: 2px solid #E8A317; display: inline-flex; align-items: center; gap: 3px; }
.vw img { width: 1.1em; height: 1.1em; }
.rtools { margin: 4px 0 14px; } .rtools .btn { flex: 1; padding: 11px; font-size: 16px; }
.vbox { background: var(--surface); border-radius: 18px; padding: 12px 14px; margin-bottom: 8px; } .vbox h3 { margin: 0 0 10px; }
.tdots { flex: 1; display: flex; gap: 5px; } .tdots i { flex: 1; height: 8px; border-radius: 999px; background: var(--soft); } .tdots i.d { background: var(--ok); } .tdots i.c { background: var(--l1); }
.taskcard { background: var(--surface); border-radius: 22px; padding: 18px 16px; }
.taskcard .kick { color: var(--l2); filter: brightness(.8); }
.taskcard .q { font-size: 21px; font-weight: 600; line-height: 1.4; margin: 4px 0 16px; }
.taskcard .q .mini { vertical-align: middle; }
.slimc { margin-top: 14px; width: auto; align-self: center; padding: 10px 18px; font-size: 15px; }
.modal { position: fixed; inset: 0; background: rgba(16,20,30,.5); display: grid; place-items: center; z-index: 80; padding: 20px; animation: up .2s ease-out; }
.mbox { background: var(--surface); border-radius: 26px; padding: 22px; width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-height: 86vh; overflow: auto; }
.mbox.wide { max-width: 560px; text-align: left; align-items: stretch; }
.mbox h2 { font-size: 30px; display: flex; align-items: center; gap: 8px; }
.mtr { font-size: 20px; color: var(--muted); margin-bottom: 8px; }
.mini { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: inline-grid; place-items: center; }

/* v2.5: flüssigere Abläufe */
.enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter { animation: none; } }
.quests { background: var(--surface); border-radius: 20px; padding: 12px 14px; margin: 0 0 14px; box-shadow: var(--sh); }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .qhead b { font-size: 17px; }
.qok { color: var(--ok); font-weight: 700; font-size: 14px; }
.qrow { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 7px 0; border-top: 1px solid var(--line); }
.qrow:first-of-type { border-top: 0; }
.qi { width: 34px; height: 34px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-weight: 700; }
.qrow.ok .qi { background: var(--ok); color: #fff; }
.qt { display: flex; flex-direction: column; gap: 4px; } .qt b { font-size: 15px; font-weight: 600; }
.qrow.ok .qt b { color: var(--muted); text-decoration: line-through; }
.qrow .xpbar { height: 7px; } .qrow.ok .xpbar i { background: var(--ok); }
.qn { font-size: 13px; color: var(--muted); font-weight: 600; }
.revhint { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: color-mix(in srgb, var(--l2) 12%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--l2) 40%, transparent); border-radius: 18px; padding: 12px 14px; margin: 0 0 18px; }
.revhint span { flex: 1; display: flex; flex-direction: column; } .revhint small { color: var(--muted); }
.line.folded { margin-bottom: 12px; }
.lfold { width: 100%; text-align: left; background: var(--surface); border-radius: 20px; padding: 12px 14px; box-shadow: var(--sh); }
.lfold > div { flex: 1; display: flex; flex-direction: column; gap: 4px; } .lfold .xpbar { height: 6px; } .lfold .xpbar i { background: var(--lc); }
.lfold .chev { font-size: 26px; color: var(--muted); }
.foldbtn { display: block; margin: -2px 0 6px auto; color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px 8px; }
.combo { margin-left: auto; font-size: 14px; font-weight: 700; background: var(--surface); color: #C45A00; padding: 3px 10px; border-radius: 999px; }
.onb { padding-top: 24px; } .onb .logo { width: 84px; height: 84px; margin: 0 auto; display: block; }
.onb h3 { margin: 22px 0 10px; }
.obgoals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oblevel .ltile { margin-bottom: 10px; }
.mbox.ask p { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.mbox.ask .row { width: 100%; } .mbox.ask .row .btn { flex: 1; }
.testcta { margin-top: 8px; padding: 10px; font-size: 15px; }

/* v2.7 */
.sheet.auto::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: currentColor; opacity: .5; animation: autobar 1.4s linear forwards; }
.sheet { position: sticky; }
.sheet.ok, .sheet.no { position: sticky; overflow: hidden; }
@keyframes autobar { to { width: 100%; } }
.nav.on .ui { transform: scale(1.1); }
.opt:hover:not(:disabled), .picopt:hover:not(:disabled), .tile:hover:not(:disabled) { border-color: color-mix(in srgb, var(--l2) 60%, var(--line)); }
.bigword { font-size: clamp(36px, 10vw, 48px); }
.exbar .prog i { background: linear-gradient(90deg, var(--ok), #4CD38A); }
.hero { box-shadow: 0 6px 0 rgba(0,0,0,.14), var(--sh); }
.gt .gti .ui, .lti .ui { filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.cloud { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); }
.cloud.ok b { font-size: 17px; } .cloud.ok small { color: var(--muted); }
.cloud .ghost { align-self: flex-start; padding: 4px 0; }
.cloudhint { flex-wrap: wrap; } .cloudhint > span { gap: 6px; } .cloudhint .row { margin-top: 6px; align-items: center; } .cloudhint .btn.slim { width: auto; padding: 8px 14px; font-size: 15px; }
.endstars i { display: inline-block; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.endstars i:nth-child(2) { animation-delay: .15s; } .endstars i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .endstars i { animation: none; } }
.cvhead { margin-bottom: 8px; } .cvhead .lid { background: var(--lc); }
.cvlist { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.cv { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--surface); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh); border: 2px solid transparent; }
.cv.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.cvav { display: flex; } .cvav .av { width: 34px; height: 34px; } .cvav .av + .av { margin-left: -10px; }
.cvt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cvt b { font-size: 16px; } .cvt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvs .stars i { color: var(--line); font-style: normal; } .cvs .stars .on { color: #F5B400; } .cvs .chev { color: var(--muted); font-size: 22px; }
.bub.prompt { background: color-mix(in srgb, var(--l2) 14%, var(--surface)); border: 2px dashed color-mix(in srgb, var(--l2) 50%, transparent); }
.bub.prompt .line { font-size: 19px; font-weight: 600; } .bub.prompt .dots { color: var(--muted); font-weight: 400; font-size: 15px; letter-spacing: 1px; }

.famcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: 3px; text-align: center; background: var(--soft); border-radius: 14px; padding: 10px; margin: 4px 0; user-select: all; }
.famcode-inline { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; }
.clst { font-weight: 600; } .clst.bad { color: var(--no); } .clst.good { color: var(--ok); }
.cloud .row { gap: 8px; } .cloud .row .btn { flex: 1; } .cloud .row .search { flex: 1; margin: 0; }
.cloudhome { display: block; margin: -6px auto 14px; }

/* v3.3: Beispielsatz und flüssigere Bedienung */
.exsent { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin-top: 14px; text-align: left; background: var(--surface); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh); }
.exsent .av { width: 38px; height: 38px; flex: none; }
.exsent span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .exsent b { font-size: 18px; font-weight: 600; } .exsent small { color: var(--muted); }
.exsent mark { background: color-mix(in srgb, #FFD23F 60%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 700; }
button, .opt, .picopt, .tile, .lg, .cv, .scard, .gt, .ltile { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active:not(:disabled) { transform: scale(.97); }
.opt, .picopt, .tile, .btn, .cv, .scard, .qrow { transition: transform .08s ease-out, border-color .15s, background-color .15s; }
/* Bilder als abgerundete Quadrate, damit Szenen nicht abgeschnitten werden */
.pic { border-radius: 28%; overflow: hidden; }
.pic img { border-radius: 18%; }
.pic.big { border-radius: 36px; width: 210px; height: 210px; }
.pic.big img { width: 88%; height: 88%; border-radius: 26px; }
.picopt img { border-radius: 16px; }
.mbox .pic.big { width: 190px; height: 190px; }
.picopt img { width: 86%; height: 86%; }

/* ===== v1.4 ===== */
.shield { width: 30px; height: 30px; flex: none; }
.frzbox { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; background: var(--surface); border-radius: 18px; padding: 12px 14px; margin: 10px 0; box-shadow: var(--sh); }
.frzbox .frzico { display: flex; }
.frzbox .frzico .second { margin-left: -10px; }
.frzbox .frzt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.frzbox .frzt small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.frzbox .btn.slim { grid-column: 1 / -1; width: 100%; padding: 11px 12px; font-size: 15px; }
@media (min-width: 560px) { .frzbox { grid-template-columns: auto 1fr auto; } .frzbox .btn.slim { grid-column: auto; width: auto; white-space: nowrap; } }
.revhint.frzmsg, .revhint.rmmsg { align-items: center; }
.revhint.frzmsg { background: #E6F4FD; }
.revhint.rmmsg { background: #FFF4E0; }
.lgbox { background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--sh); margin: 6px 0 14px; }
.lgbox .row { display: flex; gap: 8px; align-items: center; }
.lgbox .row input { flex: 1; min-width: 0; }
.lgbox .btn.slim { width: auto; }
.lghead { display: flex; align-items: center; gap: 8px; }
.lghead b { flex: 1; }
.lgme { font-weight: 700; margin: 8px 0 2px; color: var(--navy); }
.lglist { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.lglist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--soft); }
.lglist li.me { background: color-mix(in srgb, var(--l1) 25%, var(--surface)); outline: 2px solid var(--l1); }
.lglist .lgr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); }
.lglist .top1 .lgr { background: #FFD24A; } .lglist .top2 .lgr { background: #D6DCE4; } .lglist .top3 .lgr { background: #E9B07A; }
.lglist b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lglist .lgx { font-weight: 700; color: var(--navy); }
.note.warn { color: #B45309; }
.note.small { font-size: 13px; }
/* Aussprache */
.spcard { background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--sh); text-align: center; margin: 6px 0 12px; }
.spwho { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.spwho small { color: var(--muted); }
.spline { font-size: 24px; line-height: 1.5; margin: 6px 0; }
.spw { border-radius: 8px; padding: 0 4px; }
.spw.ok { background: #DDF5E6; color: #0B6B36; }
.spw.no { background: #FDE2E2; color: #B4161B; text-decoration: underline wavy #E5383B 1px; }
.spres { text-align: center; display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.spres small { color: var(--muted); }
.spbtns { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.spbtns .row { width: 100%; display: flex; gap: 8px; }
.micbig { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.micbig .ui { width: 40px; height: 40px; filter: brightness(10); }
.micbig.rec { background: #E5383B; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
/* Wisch-Runde */
.swwrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 14px; }
.swhint { font-size: 26px; font-weight: 800; opacity: .35; }
.swhint.l { color: #E5383B; } .swhint.r { color: #0E8F48; }
.swipecard { width: min(78vw, 320px); background: var(--surface); border-radius: 26px; padding: 18px; box-shadow: 0 10px 28px rgba(16,24,40,.14); display: flex; flex-direction: column; align-items: center; gap: 10px; touch-action: none; user-select: none; cursor: grab; transition: transform .25s, opacity .25s, box-shadow .2s; border: 4px solid transparent; }
.swipecard.drag { transition: none; cursor: grabbing; }
.swipecard[data-dir="r"] { border-color: #39C27A; } .swipecard[data-dir="l"] { border-color: #F07070; }
.swipecard.ok { border-color: #39C27A; } .swipecard.no { border-color: #F07070; }
.swipecard.ok.out-r { transform: translateX(120%) rotate(14deg); opacity: 0; }
.swipecard.ok.out-l { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.swipecard .gq { font-size: 28px; }
/* Kultur */
.cucard { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--sh); text-align: left; }
.cucard.big { box-shadow: none; padding: 0 0 12px; }
.cuhead { display: flex; align-items: center; gap: 12px; }
.cuhead img { width: 64px; height: 64px; }
.cuhead b { font-size: 21px; display: block; }
.cuhead small { color: var(--muted); }
.cufact { margin: 10px 0; line-height: 1.45; }
.cuexp { display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--soft); border-radius: 14px; padding: 10px 12px; gap: 2px; }
.cuexp small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cuexp b { font-size: 19px; color: var(--navy); }
.cuend { margin: 12px 0; text-align: left; }
.cuend .kick { text-align: center; }
.cugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 24px; }
.cutile { background: var(--surface); border-radius: 18px; padding: 12px 10px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cutile img { width: 64px; height: 64px; }
.cutile small { color: var(--muted); font-size: 13px; }
.cutile.lock { opacity: .55; }
.cutile .culock { width: 64px; height: 44px; margin: 10px 0; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--muted); }
.rmrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rmrow .field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.rmrow input[type=time] { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.rmrow .btn { width: auto; }
.swipecard img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
/* Tablet und Computer */
@media (min-width: 760px) {
  .screen { max-width: 700px; }
  .cugrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 1024px) {
  body:has(.navbar) { padding-left: 230px; }
  .navbar { top: 0; right: auto; width: 230px; flex-direction: column; justify-content: flex-start; gap: 6px; border-top: 0; border-right: 1.5px solid var(--line); padding: 96px 14px 20px; }
  .navbar::before { content: ""; position: absolute; top: 22px; left: 18px; width: 52px; height: 52px; background: url(img/logo.png) center/contain no-repeat; }
  .navbar::after { content: "Aprender Español Online"; position: absolute; top: 30px; left: 80px; right: 10px; font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink); }
  .nav { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 16px; }
  .nav .ui { width: 30px; height: 30px; }
  .screen { max-width: 760px; padding-bottom: 40px; }
  .screen.home .topbar .brand, body:has(.navbar) .brand { visibility: visible; }
  .ggrid { grid-template-columns: repeat(3, 1fr); }
}
/* ===== v1.6 Videos ===== */
.vlist { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 20px; }
.vcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 10px; box-shadow: var(--sh); text-align: left; }
.vcard.done { opacity: .85; }
.vthumb { position: relative; width: 120px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1f2937; flex: none; display: grid; place-items: center; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.vtt { flex: 1; display: flex; flex-direction: column; gap: 2px; } .vtt small { color: var(--muted); }
.vcard .chk { color: #0E8F48; font-weight: 800; }
.vframe { position: relative; width: 100%; aspect-ratio: 16/9; background: #111827; border-radius: 16px; overflow: hidden; margin: 8px 0; }
.vframe iframe, .vframe > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vframe .note { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; }
.vlines { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.vlines li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh); transition: background .2s, outline .2s; }
.vlines li.cur { background: color-mix(in srgb, var(--l1) 22%, var(--surface)); outline: 2px solid var(--l1); }
.vlines p { margin: 0; } .vlines .en { font-size: 18px; line-height: 1.5; } .vlines .de { color: var(--muted); font-size: 14px; margin-top: 2px; }
.vlines.small li { font-size: 14px; } .vlines.small b { min-width: 52px; color: var(--navy); }
.vplay { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }
.vw { color: inherit; font: inherit; border-bottom: 2px dotted var(--l1); padding: 0; background: none; }
.werk textarea { width: 100%; font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-sizing: border-box; }
.werk .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.werk .wbtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .werk .wbtns .btn { width: auto; flex: 1; }
.mbox .wsave { margin-bottom: 8px; }
/* ===== v1.7 Feinschliff ===== */
.hero .ht { max-width: 56%; font-size: clamp(23px, 6.6vw, 34px); overflow-wrap: anywhere; }
.hero .he { max-width: 60%; }
@media (min-width: 560px) { .hero .ht { max-width: 62%; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.main { background: #D9761A; box-shadow: 0 4px 0 #8A4A0E; color: #fff; }
  :root:not([data-theme="light"]) .mcard:not(.up) { background: #D9761A; }
  :root:not([data-theme="light"]) .micbig { background: #D9761A; }
  :root:not([data-theme="light"]) .revhint.frzmsg { background: #13324A; }
  :root:not([data-theme="light"]) .revhint.rmmsg { background: #3D2B12; }
  :root:not([data-theme="light"]) .spw.ok { background: #14432B; color: #9FF0C2; }
  :root:not([data-theme="light"]) .spw.no { background: #4A1717; color: #FFB3B3; }
  :root:not([data-theme="light"]) .vframe { background: #000; }
}
/* Grosse Bildschirme: Bilder in Übungen etwas grösser */
@media (min-width: 1024px) { .pic.big, .wordpic.big { max-width: 220px; } }
/* Tastaturfokus gut sichtbar */
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--l1); outline-offset: 2px; }
.revhint { align-items: center; }
.revhint > span:not(.chev) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.revhint .chev { flex: none; display: inline; }
/* ===== v2.0 Videos wie EWA ===== */
.vctrl { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.vctrl .chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh); font-weight: 600; font-size: 14px; }
.vctrl .chip.on { background: var(--l1); color: #fff; }
.vw { border: 0; border-radius: 6px; padding: 1px 2px; transition: background .12s, color .12s; }
.vlines li.cur .vw.past { color: var(--navy); }
.vlines li.cur .vw.now { background: var(--l1); color: #fff; border-bottom-color: transparent; }
.mylist { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.mylist li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh); }
.mylist li div { flex: 1; display: flex; flex-direction: column; } .mylist small { color: var(--muted); }
.flipcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 260px; margin: 24px 0; background: var(--surface); border-radius: 26px; box-shadow: 0 10px 28px rgba(16,24,40,.12); padding: 20px; }
.flipcard b { font-size: 36px; } .flipcard small { color: var(--muted); } .flipcard .mtr { font-size: 22px; color: var(--navy); }
.flipcard.flip { outline: 3px solid var(--l1); }
img.broken { visibility: hidden; }
