/* Kalimera – ruhiges, modernes Design: helle Fläche, weiße Karten, Pastelltöne (Lavendel, Butter, Himmel, Minze, Pfirsich) */
:root {
  --bg: #F3F4F9; --surface: #FFFFFF; --soft: #F5F6FA; --line: #ECEEF3; --line-2: #DFE3EB;
  --text: #1D2135; --text-2: #3D4257; --muted: #8A90A2; --muted-2: #B4B9C6;
  --lavender: #DAD6FF; --lavender-l: #F0EEFF; --lavender-d: #7B6CF6;
  --yellow: #FBE6A0; --yellow-l: #FFF7DE; --yellow-d: #E2AE14;
  --sky: #CFEBFC; --sky-l: #ECF7FE; --sky-d: #3BA3E6;
  --mint: #CDEFDF; --mint-l: #EAF9F2; --mint-d: #26A873;
  --peach: #FFDCCF; --peach-l: #FFF1EB; --peach-d: #F0866A;
  --primary: #6C5CE7; --primary-d: #5948D8; --primary-l: #EFEDFF;
  --ok: #1FA36A; --ok-l: #E5F7EE; --bad: #E5484D; --bad-l: #FDECEC;
  --shadow: 0 1px 2px rgba(23, 28, 52, .04), 0 8px 24px rgba(23, 28, 52, .05);
  --shadow-l: 0 2px 6px rgba(23, 28, 52, .05), 0 18px 40px rgba(23, 28, 52, .08);
  --r: 16px; --r-l: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0E1120; --surface: #171B2D; --soft: #1E2337; --line: #262C42; --line-2: #333A55; --text: #E9EBF5; --text-2: #C8CCDD; --muted: #8E95AE; --muted-2: #5F6682;
  --lavender: #2F2B58; --lavender-l: #232042; --yellow: #3C3418; --yellow-l: #2A2616; --sky: #173149; --sky-l: #132637; --mint: #15392C; --mint-l: #112B22; --peach: #432820; --peach-l: #2F1F1A;
  --primary-l: #26224A; --ok-l: #11301F; --bad-l: #3A1719; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-l: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0E1120; --surface: #171B2D; --soft: #1E2337; --line: #262C42; --line-2: #333A55; --text: #E9EBF5; --text-2: #C8CCDD; --muted: #8E95AE; --muted-2: #5F6682;
  --lavender: #2F2B58; --lavender-l: #232042; --yellow: #3C3418; --yellow-l: #2A2616; --sky: #173149; --sky-l: #132637; --mint: #15392C; --mint-l: #112B22; --peach: #432820; --peach-l: #2F1F1A;
  --primary-l: #26224A; --ok-l: #11301F; --bad-l: #3A1719; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-l: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
body.in-lesson { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { letter-spacing: -.015em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.tr { color: var(--muted); font-size: .84em; font-style: italic; }
.big-emoji { font-size: 64px; text-align: center; }
.ico { width: 22px; height: 22px; flex: none; display: block; }
.ico.flip { transform: rotate(180deg); }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  background: var(--surface); color: var(--text); font-weight: 650; font-size: 16px; transition: transform .08s, background .15s, box-shadow .15s; user-select: none; }
.btn .ico { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -6px rgba(108, 92, 231, .55); }
.btn.primary:hover:not(:disabled) { background: var(--primary-d); }
.btn.success { background: var(--ok); color: #fff; box-shadow: 0 8px 20px -6px rgba(31, 163, 106, .5); }
.btn.danger { background: var(--bad); color: #fff; box-shadow: 0 8px 20px -6px rgba(229, 72, 77, .45); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--soft); }
.btn.light { background: #fff; color: #1D2135; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25); }
.btn:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: default; }
.btn-small { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 10px; display: block; margin: 6px auto 0; }
.link-btn.danger { color: var(--bad); margin: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: grid; place-items: center; padding: 0; flex: none; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--soft); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--text-2); white-space: nowrap; }
.pill.strong { background: var(--primary); color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.yellow { background: var(--yellow-d); } .dot.lavender { background: var(--lavender-d); }
.dot.ring-dot { border: 2px solid var(--primary); }
.chev { color: var(--muted-2); }
.chev .ico { width: 18px; height: 18px; }

/* ---------- Grundgerüst ---------- */
.shell { display: flex; min-height: 100dvh; }
.main-col { flex: 1; min-width: 0; }
.sidebar { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.logo.big { font-size: 28px; } .logo.big img { width: 44px; height: 44px; border-radius: 13px; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.ab-title h1 { margin: 0; font-size: 22px; font-weight: 750; }
.ab-title small { color: var(--muted); font-size: 13px; font-weight: 550; display: block; margin-bottom: -2px; }
.ab-right { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 700; }
.chip .ico { width: 18px; height: 18px; }
.chip.streak.on { color: #F2700F; } .chip.streak.on b { color: #E0640A; }
.ring { --p: 0; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--yellow-d) calc(var(--p) * 360deg), var(--line) 0); position: relative; flex: none; }
.ring::after { content: ''; position: absolute; inset: 4px; background: var(--surface); border-radius: 50%; }
.ab-user { display: flex; align-items: center; gap: 10px; color: var(--text); }
.ab-name { display: none; text-align: right; line-height: 1.2; }
.ab-name b { display: block; font-size: 14px; } .ab-name small { color: var(--muted); font-size: 12px; }
.avatar-s { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--lavender-l); flex: none; box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--line); }
.avatar-m { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; background: var(--lavender-l); flex: none; }
.screen { padding: 6px 16px calc(96px + var(--safe-b)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 0 2px; max-width: 96px; }
.tab .ico { width: 24px; height: 24px; box-sizing: content-box; padding: 3px 12px; border-radius: 12px; }
.tab.active { color: var(--primary); }
.tab.active .ico { background: var(--primary-l); }
@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; gap: 6px; width: 250px; flex: none; position: sticky; top: 0; height: 100dvh; padding: 26px 18px 20px; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar .logo { padding: 0 10px 18px; }
  .side-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 12px 6px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 550; border: 0; background: none; text-align: left; font-size: 15px; width: 100%; }
  .side-item:hover { background: var(--soft); }
  .side-item.active { background: var(--sky); color: var(--text); font-weight: 650; }
  .side-promo { margin-top: auto; border-radius: 20px; padding: 16px; color: #fff; background: linear-gradient(150deg, #47B3F0 0%, #2B8FE0 55%, #6C5CE7 100%); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
  .side-promo img { width: 96px; height: 96px; object-fit: contain; align-self: center; background: #fff; border-radius: 50%; margin-bottom: 6px; }
  .side-promo b { font-size: 17px; } .side-promo span { font-size: 13px; opacity: .92; }
  .appbar { padding: 20px 32px 14px; }
  .ab-title h1 { font-size: 26px; }
  .ab-name { display: block; }
  .screen { padding: 4px 32px 40px; }
  .tabbar { display: none; }
}

/* ---------- Karten & Seiten ---------- */
.page { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; }
.card-head { margin-bottom: 12px; }
.card-head h3, .card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.two-col { display: grid; gap: 16px; }
.two-col > .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.back .ico { width: 18px; height: 18px; }
.link { display: block; text-align: center; font-weight: 600; font-size: 14px; padding-top: 8px; }
.ico-box { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--text-2); }
.ico-box .ico { width: 22px; height: 22px; }
.ico-box.lavender { background: var(--lavender-l); color: var(--lavender-d); } .ico-box.yellow { background: var(--yellow-l); color: var(--yellow-d); }
.ico-box.sky { background: var(--sky-l); color: var(--sky-d); } .ico-box.mint { background: var(--mint-l); color: var(--mint-d); } .ico-box.peach { background: var(--peach-l); color: var(--peach-d); }

/* ---------- Lernen: Übersicht ---------- */
.dash { max-width: 1280px; margin: 0 auto; display: grid; gap: 22px; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-rail { display: none; }
@media (min-width: 1240px) { .dash { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .dash-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; } }
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 22px 24px; min-height: 176px; color: #fff; display: flex; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #8E80FF 0%, transparent 55%), linear-gradient(115deg, #41AEEF 0%, #3A8BE6 50%, #6C5CE7 100%); box-shadow: 0 18px 40px -18px rgba(76, 110, 230, .6); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero::before { width: 260px; height: 260px; right: -60px; bottom: -120px; }
.hero::after { width: 140px; height: 140px; right: 120px; top: -70px; background: rgba(255, 255, 255, .08); }
.hero-txt { position: relative; z-index: 1; max-width: 62%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .85; }
.hero h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 750; }
.hero p { margin: 0 0 10px; opacity: .92; font-size: 15px; }
.hero-img { position: absolute; z-index: 1; right: 8px; bottom: 8px; width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); background: rgba(255, 255, 255, .96); border-radius: 50%; }
@media (min-width: 600px) { .hero { padding: 28px 32px; min-height: 200px; } .hero h2 { font-size: 30px; } .hero-img { width: 176px; height: 176px; right: 28px; bottom: 12px; } }
.hero .btn { white-space: nowrap; }
@media (max-width: 599px) {
  .hero { min-height: 0; padding: 20px; }
  .hero-txt { max-width: 100%; width: 100%; }
  .hero-kicker, .hero h2, .hero p { padding-right: 100px; }
  .hero-img { width: 88px; height: 88px; top: 18px; right: 16px; bottom: auto; }
  .hero .btn { align-self: stretch; margin-top: 4px; }
}
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.kpi { text-align: left; border: 0; border-radius: 20px; padding: 14px 16px 16px; color: #1D2135; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: transform .12s; }
button.kpi:active { transform: scale(.98); }
.kpi.lavender { background: var(--lavender); } .kpi.yellow { background: var(--yellow); } .kpi.sky { background: var(--sky); } .kpi.mint { background: var(--mint); }
:root[data-theme="dark"] .kpi { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kpi { color: var(--text); } }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 6px; }
.kpi .pill { background: rgba(255, 255, 255, .72); color: #3D4257; }
.kpi-ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .6); display: grid; place-items: center; flex: none; }
.kpi-ico .ico { width: 17px; height: 17px; }
.kpi-val { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.kpi-label { font-size: 13px; opacity: .75; font-weight: 550; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 750; }
.section-head p { margin: 2px 0 0; font-size: 14px; }
.sh-progress { text-align: right; flex: none; }
.sh-progress b { font-size: 22px; display: block; line-height: 1; } .sh-progress small { color: var(--muted); font-size: 12px; }
.level-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.level-tabs::-webkit-scrollbar { display: none; }
.lt { flex: 1; min-width: 66px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.lt b { font-size: 15px; } .lt small { font-size: 11px; color: var(--muted); }
.lt.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(108, 92, 231, .7); }
.lt.on small { color: rgba(255, 255, 255, .8); }
.notice { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px dashed var(--lavender-d); background: var(--lavender-l); border-radius: 18px; padding: 12px 14px; }
.notice > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .notice small { color: var(--muted); }
.unit-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .unit-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.unit-card { --tone: var(--lavender); --tone-l: var(--lavender-l); --tone-d: var(--lavender-d); background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.unit-card::before { content: ''; position: absolute; left: 22px; top: 0; width: 44px; height: 5px; border-radius: 0 0 5px 5px; background: var(--tone-d); }
.unit-card.yellow { --tone: var(--yellow); --tone-l: var(--yellow-l); --tone-d: var(--yellow-d); }
.unit-card.sky { --tone: var(--sky); --tone-l: var(--sky-l); --tone-d: var(--sky-d); }
.unit-card.mint { --tone: var(--mint); --tone-l: var(--mint-l); --tone-d: var(--mint-d); }
.unit-card.peach { --tone: var(--peach); --tone-l: var(--peach-l); --tone-d: var(--peach-d); }
.unit-card.locked { opacity: .6; }
.unit-card.locked .uc-ico { filter: grayscale(.8); }
.uc-top { display: flex; align-items: center; gap: 12px; }
.uc-ico { width: 48px; height: 48px; border-radius: 15px; background: var(--tone-l, var(--lavender-l)); display: grid; place-items: center; font-size: 26px; flex: none; }
.uc-ico.small { width: 42px; height: 42px; font-size: 22px; border-radius: 13px; }
.uc-txt { flex: 1; min-width: 0; }
.uc-txt small { font-size: 11px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.uc-txt h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.uc-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.steps { display: flex; align-items: center; padding: 6px 0 2px; }
.step { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; padding: 0; background: var(--soft); color: var(--muted-2); transition: transform .1s; }
.step .ico { width: 18px; height: 18px; }
.step:active { transform: scale(.94); }
.step.done { background: var(--primary); color: #fff; }
.step.done.final { background: var(--yellow-d); }
.step.current { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 5px var(--primary-l); animation: glow 2s ease-in-out infinite; }
.step.current .ico { fill: currentColor; }
.step.final { width: 44px; height: 44px; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 9px transparent; } }
.step-line { flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin: 0 4px; min-width: 8px; }
.step-line.on { background: var(--primary); }
.uc-foot { display: flex; align-items: center; gap: 10px; }
.uc-foot small { color: var(--muted); font-size: 12px; white-space: nowrap; font-weight: 550; }
.pbar-s { flex: 1; height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.pbar-s span { display: block; height: 100%; background: var(--tone-d, var(--primary)); border-radius: 6px; }

/* Kalender, Woche, Familie, Wortschatz */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cw { font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.cd { font-size: 14px; padding: 7px 0; border-radius: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cd.on { background: var(--lavender); color: #1D2135; font-weight: 650; }
:root[data-theme="dark"] .cd.on { color: var(--text); }
.cd.today { box-shadow: inset 0 0 0 2px var(--primary); font-weight: 700; }
.cal-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.cal-foot .dot:not(:first-child) { margin-left: 10px; }
.legend-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-inline .dot:not(:first-child) { margin-left: 8px; }
.bars-chart { margin-top: 14px; padding-left: 26px; }
.bc-plot { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.goal-line { position: absolute; left: -26px; right: 0; border-top: 1.5px dashed var(--yellow-d); opacity: .9; z-index: 0; pointer-events: none; }
.goal-line span, .bc-zero { position: absolute; left: 0; width: 22px; text-align: right; font-size: 11px; font-weight: 650; color: var(--muted); line-height: 1; }
.goal-line span { top: -14px; color: #B8890A; }
.bc-zero { left: -26px; bottom: 2px; }
.bc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1; }
.bc-bar { width: 70%; max-width: 30px; border-radius: 9px 9px 4px 4px; background: var(--lavender-d); position: relative; }
.bc-bar.goal { background: var(--yellow-d); }
.bc-bar.empty { background: var(--lavender); border-radius: 3px; }
.bc-bar span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-2); font-weight: 700; }
.bc-days { display: flex; gap: 8px; padding-top: 8px; }
.bc-days small { flex: 1; text-align: center; font-size: 12px; color: var(--muted); font-weight: 550; }
.bc-days small.today { color: var(--primary); font-weight: 700; }
.legend-inline .dash { display: inline-block; width: 14px; border-top: 2px dashed var(--yellow-d); margin-left: 8px; }
.mini-board { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mb-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.mb-row.me { background: var(--sky-l); }
.mb-name { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mb-name b { font-size: 14px; } .mb-name small { font-size: 12px; color: var(--muted); }
.mb-xp { font-weight: 700; font-size: 14px; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-c b { font-size: 28px; letter-spacing: -.02em; } .donut-c small { color: var(--muted); font-size: 12px; }
.vocab { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.lg { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lg i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lg span { flex: 1; color: var(--text-2); } .lg b { font-variant-numeric: tabular-nums; }

/* ---------- Popups & Dialoge ---------- */
.sheet-wrap, .dialog-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(14, 17, 32, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.dialog-wrap { align-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.popup { background: var(--surface); width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; animation: up .22s cubic-bezier(.2, .9, .3, 1); box-shadow: var(--shadow-l); }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .popup { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.popup-top { display: flex; align-items: center; gap: 12px; }
.popup-top > div { flex: 1; display: flex; flex-direction: column; }
.popup-top b { font-size: 18px; } .popup-top small { color: var(--muted); font-size: 13px; }
.popup p { margin: 0; color: var(--text-2); }
.popup-words { display: flex; flex-wrap: wrap; gap: 6px; }
.pw { background: var(--soft); border-radius: 10px; padding: 5px 10px; font-weight: 600; font-size: 15px; }
.dialog { background: var(--surface); border-radius: 24px; padding: 24px; max-width: 400px; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: var(--shadow-l); }
.dialog h3 { margin: 0; font-size: 20px; }
.dialog p { margin: 0 0 6px; color: var(--muted); }
.dlg-emoji { font-size: 48px; }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(20px + var(--safe-t)) 16px 30px;
  background: radial-gradient(60% 50% at 0% 100%, var(--lavender) 0%, transparent 70%), radial-gradient(50% 40% at 100% 0%, var(--sky) 0%, transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 880px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-l); display: grid; overflow: hidden; }
.auth-art { display: flex; justify-content: center; padding: 22px 0 0; }
.auth-quote { display: none; }
.auth-mascot { width: 130px; height: 130px; object-fit: contain; background: #fff; border-radius: 50%; }
.auth-main { padding: 18px 22px 28px; display: flex; flex-direction: column; gap: 6px; }
.auth-sub { color: var(--muted); margin: 4px 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .reg { display: none; }
.auth-form.register .reg { display: flex; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (min-width: 760px) {
  .auth-card { grid-template-columns: 1fr 1.05fr; }
  .auth-art { flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; background: linear-gradient(160deg, var(--sky) 0%, var(--lavender) 100%); }
  .auth-mascot { width: 230px; height: 230px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); }
  .auth-quote { text-align: center; display: flex; flex-direction: column; gap: 4px; color: #1D2135; }
  :root[data-theme="dark"] .auth-quote { color: var(--text); }
  .auth-quote b { font-size: 22px; } .auth-quote span { font-size: 14px; opacity: .8; }
  .auth-main { padding: 44px 40px; }
}
input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-l); }
.form-msg { font-size: 13px; color: var(--muted); min-height: 1em; }
.form-msg.err { color: var(--bad); font-weight: 600; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: 14px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- Üben ---------- */
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: background .15s, transform .08s; }
.action:hover:not(:disabled) { background: var(--soft); }
.action:active:not(:disabled) { transform: scale(.99); }
.action:disabled { opacity: .5; }
.ac-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ac-txt b { font-size: 16px; } .ac-txt small { color: var(--muted); font-size: 13px; }
.card.info { display: flex; align-items: center; gap: 14px; }
.card.info p { margin: 0; font-size: 14px; color: var(--text-2); }
.card.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; }
.card.empty h3 { font-size: 20px; } .card.empty p { max-width: 420px; margin: 0 0 8px; }
.empty-img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 50%; }
.empty-inline { text-align: center; color: var(--muted); padding: 26px 10px; }

/* ---------- Wörter ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; }
.search span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .ico { width: 18px; height: 18px; }
.search input { padding-left: 38px; border-radius: 999px; background: var(--soft); border-color: transparent; }
.toolbar select { width: auto; padding: 10px 12px; }
.list-head { display: none; }
.wlist { display: flex; flex-direction: column; }
.wrow { display: grid; grid-template-columns: 48px 1fr auto; grid-template-areas: "img gr pill" "img de pill"; column-gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; }
.wrow:last-child { border-bottom: 0; }
.wrow:hover { background: var(--soft); }
.wimg { grid-area: img; width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wimg.ph { display: grid; place-items: center; background: var(--soft); color: var(--muted-2); box-shadow: none; }
.wimg.ph .ico { width: 20px; height: 20px; }
.wtxt { grid-area: gr; min-width: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wtxt .gr { font-weight: 650; font-size: 17px; }
.wde { grid-area: de; font-size: 14px; color: var(--text-2); }
.wrow .spill { grid-area: pill; }
.spill { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.spill.none { background: var(--soft); color: var(--muted); }
.spill.peach { background: var(--peach-l); color: var(--peach-d); } .spill.yellow { background: var(--yellow-l); color: #B8890A; }
.spill.sky { background: var(--sky-l); color: var(--sky-d); } .spill.lavender { background: var(--lavender-l); color: var(--lavender-d); }
@media (min-width: 760px) {
  .list-head { display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 110px; padding: 10px 6px; font-size: 13px; color: var(--muted); font-weight: 600; background: var(--sky-l); border-radius: 12px; margin-bottom: 4px; }
  .list-head span:first-child { grid-column: 1 / 3; }
  .list-head > span:last-child { display: none; }
  .wrow { grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1fr) 110px; grid-template-areas: "img gr de pill"; }
  .wrow .spill { justify-self: start; }
}
.card.tip { padding: 22px; }
.tip-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.tip-head h2 { margin: 0; font-size: 22px; } .tip-head small { color: var(--muted); font-weight: 600; }
.tip-text { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 760px; }
.tip-text b.gr { color: var(--primary); font-weight: 650; }
.tip-text ul { padding-left: 20px; }

/* ---------- Familie ---------- */
.board { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; }
.brow.me { background: var(--sky-l); }
.brank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--soft); flex: none; }
.brank.top0 { background: var(--yellow); color: #8A6400; } .brank.top1 { background: var(--lavender); color: #4B3FB8; } .brank.top2 { background: var(--peach); color: #A9452B; }
.bmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bline { display: flex; align-items: baseline; gap: 8px; }
.bline b { font-size: 16px; } .bxp { margin-left: auto; font-weight: 700; }
.hbar { height: 10px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.hbar span { display: block; height: 100%; border-radius: 10px; min-width: 4px; }
.hbar .lavender { background: var(--lavender-d); } .hbar .yellow { background: var(--yellow-d); } .hbar .sky { background: var(--sky-d); } .hbar .mint { background: var(--mint-d); } .hbar .peach { background: var(--peach-d); }

/* ---------- Profil ---------- */
.profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-radius: 24px; padding: 20px; background: linear-gradient(120deg, var(--sky) 0%, var(--lavender) 100%); color: #1D2135; }
:root[data-theme="dark"] .profile-hero { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .profile-hero { color: var(--text); } }
.avatar-l { width: 92px; height: 92px; border-radius: 50%; font-size: 52px; border: 4px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .6); display: grid; place-items: center; padding: 0; flex: none; }
.ph-txt { flex: 1; min-width: 200px; }
.ph-txt h2 { margin: 0; font-size: 24px; } .ph-txt p { margin: 0 0 8px; opacity: .7; font-size: 14px; }
.ph-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.ph-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ph-facts .ico { width: 17px; height: 17px; opacity: .7; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.card-head + .set-row { border-top: 0; }
.set-row > span:first-child { display: flex; flex-direction: column; }
.set-row b { font-weight: 600; font-size: 15px; }
.set-row small { color: var(--muted); font-size: 13px; }
.set-row select { width: auto; max-width: 55%; padding: 8px 10px; font-size: 14px; }
.switch { position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { display: block; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .15s; position: relative; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.pw-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.row-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-btns select, .row-btns input { flex: 1 1 140px; width: auto; }
.invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; font-size: 14px; color: var(--text-2); }
code { background: var(--lavender-l); color: var(--lavender-d); padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.ulist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.urow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--soft); }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av { font-size: 36px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.av.on { border-color: var(--primary); background: var(--primary-l); box-shadow: 0 0 0 3px var(--primary-l); }

/* ---------- Lektion ---------- */
.lesson { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.lhead { display: flex; align-items: center; gap: 14px; padding: calc(12px + var(--safe-t)) 18px 8px; max-width: 760px; width: 100%; margin: 0 auto; position: relative; }
.x { border: 0; background: var(--surface); width: 38px; height: 38px; border-radius: 12px; font-size: 18px; color: var(--muted); box-shadow: var(--shadow); flex: none; }
.pbar { flex: 1; height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pfill { height: 100%; width: 0; background: linear-gradient(90deg, #8E80FF, var(--primary)); border-radius: 999px; transition: width .4s cubic-bezier(.2, .9, .3, 1); }
.combo { position: absolute; right: 20px; top: calc(48px + var(--safe-t)); font-size: 12px; font-weight: 700; color: #E0640A; opacity: 0; transition: opacity .2s; }
.combo.on { opacity: 1; }
.lbody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ex { max-width: 640px; margin: 0 auto; padding: 14px 18px 28px; display: flex; flex-direction: column; gap: 18px; }
.ex-title { margin: 4px 0 0; font-size: 23px; font-weight: 750; line-height: 1.25; }
.lfoot { padding: 14px 18px calc(14px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.lfoot .btn { max-width: 640px; margin: 0 auto; display: flex; }
.kb-slot:empty { display: none; }
.kb-slot { background: var(--soft); border-top: 1px solid var(--line); padding: 8px 4px 4px; }
.speakers { display: flex; gap: 8px; flex: none; align-items: center; }
.spk { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(108, 92, 231, .7); display: grid; place-items: center; padding: 0; transition: transform .08s; }
.spk svg { width: 24px; height: 24px; }
.spk.slow { width: 40px; height: 40px; background: var(--surface); color: var(--primary); box-shadow: var(--shadow); border-radius: 12px; }
.spk.slow svg { width: 20px; height: 20px; }
.spk:active { transform: scale(.94); }
.speakers.big .spk:not(.slow) { width: 112px; height: 112px; border-radius: 32px; box-shadow: 0 18px 34px -14px rgba(108, 92, 231, .7); }
.speakers.big .spk:not(.slow) svg { width: 52px; height: 52px; }
.speakers.big .spk.slow { width: 58px; height: 58px; border-radius: 18px; }
.speakers.big .spk.slow svg { width: 28px; height: 28px; }
.listen-box { display: flex; justify-content: center; padding: 14px 0; }
.prompt-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.grline .big-gr { font-size: 25px; font-weight: 700; line-height: 1.25; }
.grline.sentence .big-gr { font-size: 21px; font-weight: 650; }
.prompt-de { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); box-shadow: var(--shadow); border-radius: 20px; padding: 16px 18px; }
.prompt-de.sentence { font-weight: 600; font-size: 19px; }
.prompt-de small.say { display: block; width: 100%; font-size: 15px; font-weight: 500; color: var(--muted); }
.prompt-img { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.opts.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 600; min-height: 56px; transition: border-color .12s, background .12s, transform .08s; box-shadow: 0 1px 2px rgba(23, 28, 52, .04); }
.opt:hover { border-color: var(--line-2); }
.opt .num { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 12px; display: grid; place-items: center; font-weight: 700; }
@media (pointer: coarse) { .opt .num { display: none; } }
.opt.sel { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); }
.opt.sel .num { background: var(--primary); color: #fff; }
.opt.right { border-color: var(--ok); background: var(--ok-l); color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-l); color: var(--bad); animation: shake .35s; }
:root[data-theme="dark"] .opt.sel, :root[data-theme="dark"] .opt.right, :root[data-theme="dark"] .opt.wrong { color: var(--text); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.opt:active { transform: scale(.985); }
.gr-opt { display: flex; flex-direction: column; }
.gr-opt small { font-weight: 500; }
.opts.pics .opt { flex-direction: column; padding: 10px; }
.opts.pics .num { position: absolute; top: 8px; left: 8px; }
.pic { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.pic img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 12px; }
.pic-label { visibility: hidden; font-size: 14px; text-align: center; }
.opts.pics.revealed .pic-label { visibility: visible; }
.sound-opt, .letter-opt, .tr-opt { font-size: 21px; font-weight: 700; width: 100%; text-align: center; }
.letter-opt { font-size: 30px; }
.opts.grid .opt { justify-content: center; }
.answer-line { min-height: 116px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 6px; padding: 8px 0 12px;
  background: repeating-linear-gradient(transparent 0 54px, var(--line-2) 54px 55.5px); }
.bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; padding-top: 8px; }
.slot { display: inline-flex; min-width: 40px; min-height: 46px; border-radius: 12px; background: var(--line); }
.tile { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 600; box-shadow: 0 2px 0 var(--line-2); animation: pop .14s ease-out; }
.tile:active { transform: translateY(1px); box-shadow: none; }
@keyframes pop { from { transform: scale(.92); } }
.locked .tile { pointer-events: none; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match .col { display: flex; flex-direction: column; gap: 10px; }
.tile-m { justify-content: center; text-align: center; min-height: 58px; font-size: 16px; }
.tile-m.done { opacity: .35; background: var(--soft); color: var(--muted); pointer-events: none; box-shadow: none; }
.tile-m.flash { animation: flash .45s; }
@keyframes flash { 0% { background: var(--ok-l); border-color: var(--ok); opacity: 1; } }
.cloze-box { background: var(--surface); box-shadow: var(--shadow); border-radius: 20px; padding: 18px; }
.cloze { font-size: 22px; font-weight: 650; line-height: 1.9; }
.gap { display: inline-block; min-width: 84px; border-bottom: 3px solid var(--primary); text-align: center; color: var(--primary); }
.cloze-de { color: var(--muted); margin-top: 6px; font-size: 15px; }
.type-in { min-height: 110px; resize: none; font-size: 18px; border-radius: 16px; }
.gr-field { min-height: 64px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-l); font-size: 24px; font-weight: 650; word-break: break-word; }
.gr-field.empty::before { content: 'Griechisch tippen …'; color: var(--muted); font-weight: 500; font-size: 17px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--primary); vertical-align: -3px; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.kb-hint { font-size: 13px; color: var(--muted); }
.gr-kb { max-width: 560px; margin: 0 auto; user-select: none; }
.gr-kb .row { display: flex; gap: 5px; justify-content: center; margin-bottom: 6px; }
.gr-kb .key { flex: 1; max-width: 52px; height: 46px; border-radius: 10px; border: 0; background: var(--surface); box-shadow: 0 1px 0 var(--line-2), 0 1px 3px rgba(0, 0, 0, .06); font-size: 21px; font-weight: 500; padding: 0; }
.gr-kb .key.wide { max-width: 64px; flex: 1.4; font-size: 19px; background: var(--line); }
.gr-kb .key.space { max-width: 300px; font-size: 15px; }
.gr-kb .key:active { background: var(--primary-l); }
.badge-new { align-self: flex-start; background: var(--yellow); color: #7A5A00; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; }
:root[data-theme="dark"] .badge-new { color: var(--text); }
.intro-card, .letter-card { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--surface); box-shadow: var(--shadow); }
.intro-img { width: 200px; height: 200px; object-fit: contain; border-radius: 20px; background: #fff; }
.intro-word { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-word .big-gr { font-size: 36px; }
.intro-word .tr { font-size: 18px; }
.intro-de { font-size: 21px; font-weight: 700; color: var(--primary); }
.intro-pl { color: var(--muted); }
.intro-hint { background: var(--yellow-l); border-radius: 14px; padding: 10px 14px; font-size: 15px; text-align: left; color: var(--text-2); }
.letter-big { font-size: 96px; font-weight: 700; line-height: 1; display: flex; gap: 22px; align-items: baseline; justify-content: center; }
.letter-big span { color: var(--primary); }
.letter-big.small { font-size: 80px; padding: 14px 0; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.letter-name { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.letter-sound { font-size: 17px; background: var(--lavender-l); border-radius: 14px; padding: 10px 14px; }
.letter-sound b { color: var(--primary); font-size: 21px; }
.letter-ex { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 20px; font-weight: 650; }
.read-word { font-size: 44px; font-weight: 700; text-align: center; padding: 22px 0; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.speak-text .sw.hit { color: var(--ok); }
.speak-text .sw.miss { color: var(--bad); }
.speak-de { color: var(--muted); font-size: 15px; margin-top: 4px; }
.mic-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.mic-wrap { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.mic-level { position: absolute; inset: 10px; border-radius: 50%; background: var(--primary-l); transition: transform .08s; }
.mic { position: relative; width: 100px; height: 100px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: 0 16px 30px -12px rgba(108, 92, 231, .8); display: grid; place-items: center; }
.mic svg { width: 44px; height: 44px; }
.mic.rec { background: var(--bad); box-shadow: 0 16px 30px -12px rgba(229, 72, 77, .8); animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 50% { transform: scale(1.06); } }
.mic-status { color: var(--muted); font-weight: 600; text-align: center; min-height: 1.4em; }
.speak-result { text-align: center; }
.heard { font-size: 16px; color: var(--text-2); }
.score { font-size: 32px; font-weight: 750; }
.score.good { color: var(--ok); } .score.mid { color: var(--yellow-d); } .score.low { color: var(--bad); }
.self { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 18px calc(16px + var(--safe-b)); animation: up .2s cubic-bezier(.2, .9, .3, 1); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(23, 28, 52, .08); }
.sheet.good { background: var(--ok-l); }
.sheet.bad { background: var(--bad-l); }
.sheet-in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sheet-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; }
.sheet.good .sheet-title { color: var(--ok); } .sheet.bad .sheet-title { color: var(--bad); }
.sheet-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; }
.sheet.good .sheet-icon { background: var(--ok); } .sheet.bad .sheet-icon { background: var(--bad); }
.sheet-note { font-weight: 600; color: var(--text-2); }
.sol { display: flex; flex-direction: column; gap: 4px; }
.sol-gr { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.sol-gr .spk { width: 40px; height: 40px; border-radius: 12px; }
.sol-gr .spk svg { width: 20px; height: 20px; }
.sol-de { font-size: 15px; color: var(--text-2); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 18px; }
.mascot { width: 190px; height: 190px; object-fit: contain; background: #fff; border-radius: 50%; box-shadow: var(--shadow-l); }
.mascot-emoji { font-size: 90px; }
.done h2 { font-size: 28px; margin: 6px 0 0; }
.done-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 440px; }
.dtile { border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.dtile .dt-label { font-weight: 600; font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.dtile .dt-value { font-size: 24px; font-weight: 750; }
.dtile.gold { background: var(--yellow); color: #6B4E00; } .dtile.green { background: var(--mint); color: #11643F; } .dtile.blue { background: var(--lavender); color: #3D31A8; }
:root[data-theme="dark"] .dtile { color: var(--text); }
.done-note { margin: 0; font-weight: 600; color: var(--text-2); }
.done-note.big { font-size: 19px; color: var(--text); }
.done-note.warn { color: var(--bad); }
.boot-error { text-align: center; padding: 80px 20px; }
.letter-ex-box { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.letter-ex-box > small { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.letter-ex-box > small b { color: var(--primary); text-transform: none; font-size: 14px; }
.letter-ex mark { background: none; color: var(--primary); font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--lavender); }

/* ---------- Podcast ---------- */
body.in-podcast { overflow: hidden; }
.podcast { position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pc-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: calc(12px + var(--safe-t)) 18px 12px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pc-top h2 { margin: 0; font-size: 22px; } .pc-top small { font-size: 13px; }
.pc-body { max-width: 640px; margin: 0 auto; padding: 6px 18px calc(30px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; }
.pc-setup { display: flex; flex-direction: column; gap: 16px; }
.pc-field { display: flex; flex-direction: column; gap: 8px; }
.pc-field > b { font-size: 14px; color: var(--text-2); }
.pc-status { font-size: 14px; color: var(--muted); text-align: center; min-height: 1.2em; }
.pc-player { display: flex; flex-direction: column; gap: 16px; }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-head img { width: 72px; height: 72px; border-radius: 20px; object-fit: contain; background: linear-gradient(150deg, var(--sky), var(--lavender)); }
.pc-head h3 { margin: 0; font-size: 18px; }
.pc-kicker { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.pc-caption { min-height: 150px; border-radius: 20px; padding: 18px; background: linear-gradient(150deg, var(--sky-l), var(--lavender-l)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.pc-gr { font-size: 28px; font-weight: 700; line-height: 1.25; }
.pc-tr { color: var(--muted); font-style: italic; font-size: 15px; }
.pc-de { font-size: 17px; color: var(--text-2); font-weight: 550; margin-top: 4px; }
.pc-de.ask { color: var(--primary); font-weight: 700; }
.pc-time { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-range { flex: 1; accent-color: var(--primary); }
.pc-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.pc-play { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(108, 92, 231, .8); }
.pc-play .ico { width: 32px; height: 32px; fill: currentColor; }
.icon-btn.big { width: 54px; height: 54px; border-radius: 16px; font-weight: 700; font-size: 14px; }
.pc-unit { margin-top: 4px; }
.action.featured { background: linear-gradient(120deg, var(--sky-l), var(--lavender-l)); border-color: transparent; }

/* ---------- Rückmeldung mit Maus (Mac/PC): Hover, Anheben, kleine Bewegungen ---------- */
.btn, .kpi, .unit-card, .step, .action, .opt, .tile, .lt, .icon-btn, .spk, .side-item, .tab, .notice, .pc-play, .av, .mic { transition: transform .16s cubic-bezier(.2, .9, .3, 1), box-shadow .16s, background-color .16s, border-color .16s, color .16s; }
.btn .ico, .action .chev, .notice .chev, .side-item .ico { transition: transform .18s cubic-bezier(.2, .9, .3, 1); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.step.locked, .btn:disabled, .action:disabled { cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { transform: translateY(-2px); }
  .btn.primary:hover:not(:disabled) { box-shadow: 0 12px 26px -8px rgba(108, 92, 231, .65); }
  .btn.light:hover { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .35); background: #F4F2FF; color: var(--primary-d); }
  .btn.ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
  .btn.success:hover { background: #18915D; } .btn.danger:hover { background: #D63B40; }
  .btn:hover:not(:disabled) .ico { transform: translateX(3px); }
  .btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
  button.kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(23, 28, 52, .35); }
  .unit-card:not(.locked):hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
  .step:not(.locked):hover { transform: scale(1.1); }
  .step.done:hover { background: var(--primary-d); }
  .step.current:hover { animation: none; box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 7px var(--primary-l); }
  .step.locked:hover { animation: wiggle .4s; }
  .action:hover:not(:disabled) { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
  .action:hover:not(:disabled) .chev, .notice:hover .chev { transform: translateX(4px); color: var(--primary); }
  .action.featured:hover { border-color: transparent; }
  .notice:hover { background: color-mix(in srgb, var(--lavender-l) 70%, var(--lavender)); }
  .lt:not(.on):hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
  .opt:hover:not(.sel):not(.right):not(.wrong):not(.done) { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--primary-l) 45%, var(--surface)); transform: translateY(-1px); }
  .tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 0 var(--line-2); }
  .icon-btn:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
  .spk:hover { transform: scale(1.06); }
  .spk.slow:hover { color: var(--primary-d); }
  .pc-play:hover, .mic:hover { transform: scale(1.05); }
  .side-item:hover .ico { transform: translateX(2px); }
  .side-item:not(.active):hover { color: var(--text); }
  .tab:hover { color: var(--primary); }
  .av:hover { transform: scale(1.06); border-color: var(--primary); }
  .wrow:hover .wimg { transform: scale(1.04); }
  .wimg { transition: transform .16s; }
  .x:hover { color: var(--text); }
  a.back:hover { color: var(--primary); }
}
@keyframes wiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Symbole in runden/quadratischen Knöpfen exakt mittig (Safari richtet Inhalte in <button> sonst teils an der Grundlinie aus) */
.step, .icon-btn, .spk, .pc-play, .mic, .kpi-ico { position: relative; }
.step > .ico, .icon-btn > .ico, .spk > svg, .pc-play > .ico, .mic > svg, .kpi-ico > .ico { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
.icon-btn > .ico.flip { transform: translate(-50%, -50%) rotate(180deg); }
