/* ============ Español · Design-System ============ */
:root {
  --bg: #f7f5f0;
  --surface: rgba(255, 255, 255, .8);
  --solid: #ffffff;
  --chip: rgba(24, 22, 30, .05);
  --text: #18161e;
  --muted: #6f6b78;
  --faint: #a6a2ae;
  --line: rgba(24, 22, 30, .09);
  --line-2: rgba(24, 22, 30, .17);
  --glass: rgba(255, 255, 255, .72);

  --coral: #ff6a4d;
  --sun: #ffbd2e;
  --teal: #16b3a3;
  --violet: #7d5fff;
  --pink: #ff74b5;
  --blue: #3d8bff;
  --good: #12a150;
  --bad: #e5484d;
  --warn: #e3900b;

  --blob-o: .26;
  --shadow: 0 14px 34px -22px rgba(40, 24, 80, .35);
  --r: 22px;
  --r-sm: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Charter", "Georgia", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111015; --surface: rgba(30, 28, 37, .82); --solid: #1d1b23; --chip: rgba(255, 255, 255, .06);
    --text: #f4f2f7; --muted: #a29eac; --faint: #6c6876; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --glass: rgba(29, 27, 35, .72); --blob-o: .15; --shadow: 0 14px 34px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111015; --surface: rgba(30, 28, 37, .82); --solid: #1d1b23; --chip: rgba(255, 255, 255, .06);
  --text: #f4f2f7; --muted: #a29eac; --faint: #6c6876; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(29, 27, 35, .72); --blob-o: .15; --shadow: 0 14px 34px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.i { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Farbkleckse im Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg span { position: absolute; border-radius: 50%; opacity: var(--blob-o); will-change: transform; animation: drift 30s ease-in-out infinite alternate; }
.bg span:nth-child(1) { width: 62vmax; height: 62vmax; left: -24vmax; top: -28vmax; background: radial-gradient(closest-side, var(--coral), transparent); }
.bg span:nth-child(2) { width: 48vmax; height: 48vmax; right: -24vmax; top: 6vh; background: radial-gradient(closest-side, var(--sun), transparent); animation-duration: 36s; animation-delay: -9s; }
.bg span:nth-child(3) { width: 56vmax; height: 56vmax; left: -18vmax; bottom: -34vmax; background: radial-gradient(closest-side, var(--teal), transparent); animation-duration: 42s; }
.bg span:nth-child(4) { width: 42vmax; height: 42vmax; right: -16vmax; bottom: -14vmax; background: radial-gradient(closest-side, var(--violet), transparent); animation-duration: 33s; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.1); } }

.c-coral { --c: var(--coral); } .c-teal { --c: var(--teal); } .c-violet { --c: var(--violet); }
.c-sun { --c: var(--sun); } .c-pink { --c: var(--pink); } .c-blue { --c: var(--blue); }

/* ---------- Layout ---------- */
.view {
  position: relative; z-index: 1; max-width: 680px; margin: 0 auto; outline: none;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 112px);
}
.view.enter > * { animation: rise .36s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .03s; } .view.enter > *:nth-child(3) { animation-delay: .06s; }
.view.enter > *:nth-child(4) { animation-delay: .09s; } .view.enter > *:nth-child(5) { animation-delay: .11s; }
.view.enter > *:nth-child(n+6) { animation-delay: .13s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
section + section, .card + .card, .card + section, section + .card { margin-top: 14px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 20px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-weight: 650; }
.title { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.04; letter-spacing: -.035em; font-weight: 760; margin: 6px 0 0; }
.lead { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; margin: 28px 4px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title a { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; margin: 0 0 8px -6px; padding: 6px; border-radius: 10px; }
.back .i { width: 20px; height: 20px; }

/* ---------- Karten ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.link { display: block; text-decoration: none; transition: transform .25s var(--ease), border-color .2s; }
.card.link:hover { border-color: var(--line-2); }
.card.link:active, .row-link:active { transform: scale(.985); }
.card.list { padding: 0; overflow: hidden; }
.clip { overflow: hidden; }

.deco { position: absolute; pointer-events: none; background: var(--c); border-radius: 42% 58% 66% 34% / 47% 41% 59% 53%; }
.deco.d1 { width: 190px; height: 170px; right: -56px; top: -70px; opacity: .9; }
.deco.d2 { width: 70px; height: 64px; right: 96px; top: -36px; opacity: .55; background: var(--c2, var(--sun)); border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; }

.blob-dot {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: #fff;
  font-weight: 750; font-size: 15px; letter-spacing: -.02em; background: var(--c);
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
}
.blob-dot.sm { width: 14px; height: 14px; }
.blob-dot .i { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 1px solid var(--line-2); background: var(--solid); color: var(--text);
  font-weight: 650; font-size: 16px; padding: 12px 18px; min-height: 48px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  text-decoration: none; transition: transform .15s var(--ease), background .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.accent { background: var(--c, var(--violet)); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn .i { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .i { width: 20px; height: 20px; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px);
  transform: translateX(-50%); display: flex; gap: 2px; padding: 6px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -20px rgba(20, 10, 50, .45);
  transition: transform .45s var(--ease), opacity .3s;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 70px; padding: 7px 12px 6px;
  border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none;
  transition: color .2s, background .25s;
}
.tab .i { width: 23px; height: 23px; }
.tab.active { color: var(--text); background: var(--chip); }
.tab.active .i { color: var(--coral); }
body.immersive .tabbar { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .tabbar { top: 16px; bottom: auto; }
  body.immersive .tabbar { transform: translate(-50%, -160%); }
  .tab { flex-direction: row; gap: 7px; font-size: 14px; padding: 9px 16px; }
  .tab .i { width: 19px; height: 19px; }
  .view { padding-top: 100px; padding-bottom: 60px; }
}

/* ---------- Home ---------- */
.hero { overflow: hidden; padding: 22px; }
.hero .deco.d1 { width: 230px; height: 210px; right: -70px; top: -90px; }
.hero-num { display: flex; align-items: baseline; gap: 10px; position: relative; }
.hero-num b { font-size: 64px; line-height: 1; letter-spacing: -.05em; font-weight: 780; }
.hero-num span { font-weight: 650; font-size: 17px; }
.hero-meta { color: var(--muted); font-size: 14px; margin: 6px 0 18px; position: relative; }
.hero .btn-row { position: relative; }

.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c, var(--teal)) calc(var(--p) * 1%), var(--chip) 0); }
.ring::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: var(--solid); grid-area: 1/1; }
.ring > * { grid-area: 1/1; position: relative; font-size: 12px; font-weight: 750; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px; }
.stat b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.035em; font-weight: 760; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat .i { width: 20px; height: 20px; color: var(--coral); vertical-align: -1px; }

.week { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 54px; margin-top: 10px; }
.week i { display: block; border-radius: 6px; background: var(--chip); min-height: 6px; transition: height .6s var(--ease); }
.week i.on { background: linear-gradient(180deg, var(--coral), var(--sun)); }
.week i.today { outline: 1.5px solid var(--line-2); outline-offset: 2px; }
.goal-row { display: flex; align-items: center; gap: 14px; }
.goal-row .txt { flex: 1; }
.goal-row b { font-size: 16px; }

.tile { display: flex; flex-direction: column; gap: 10px; min-height: 132px; overflow: hidden; }
.tile b { font-size: 17px; letter-spacing: -.01em; }
.tile span { color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------- Listen ---------- */
.deck-card { display: flex; align-items: center; gap: 14px; }
.deck-card .body { flex: 1; min-width: 0; }
.deck-card .t { font-weight: 680; font-size: 16.5px; letter-spacing: -.01em; }
.deck-card .m { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.deck-card .progress { margin-top: 10px; }
.deck-card > .i { color: var(--faint); }

.progress { height: 6px; background: var(--chip); border-radius: 99px; overflow: hidden; flex: 1; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--sun)); transition: width .5s var(--ease); }
.progress.c > i { background: var(--c); }

.row-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none;
  border-top: 1px solid var(--line); transition: background .2s;
}
.row-link:first-child { border-top: 0; }
.row-link:hover { background: var(--chip); }
.row-link .body { flex: 1; min-width: 0; }
.row-link .t { font-weight: 650; }
.row-link .m { color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 1px; }
.row-link > .i { color: var(--faint); width: 18px; height: 18px; }

.word-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.word-row:first-child { border-top: 0; }
.word-row:active { background: var(--chip); }
.word-row .es { font-weight: 650; }
.word-row .de { color: var(--muted); font-size: 14px; }
.word-row .ex { color: var(--faint); font-size: 13px; font-style: italic; margin-top: 2px; }
.group-head { padding: 14px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; background: var(--chip); }
.gdot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.g-m { background: var(--blue); } .g-f { background: var(--coral); } .g-mf { background: linear-gradient(90deg, var(--blue) 50%, var(--coral) 50%); }

.lvl { display: inline-flex; gap: 2.5px; align-items: flex-end; }
.lvl i { width: 4px; border-radius: 2px; background: var(--line-2); }
.lvl i:nth-child(1) { height: 7px; } .lvl i:nth-child(2) { height: 10px; } .lvl i:nth-child(3) { height: 13px; }
.lvl[data-l="1"] i:nth-child(1) { background: var(--sun); }
.lvl[data-l="2"] i:nth-child(-n+2) { background: var(--teal); }
.lvl[data-l="3"] i { background: var(--good); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.badge.c { background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }

.search { position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 19px; height: 19px; }
.search input { padding-left: 42px; font-size: 16px; }

.level-strip { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--chip); gap: 2px; }
.level-strip i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dot); }

/* ---------- Formulare ---------- */
.field + .field { margin-top: 18px; }
.label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 2px 8px; }
.help { font-size: 13.5px; color: var(--muted); margin: 8px 2px 0; line-height: 1.4; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--chip); border: 1px solid var(--line); border-radius: 15px; }
.seg button { border: 0; background: transparent; border-radius: 11px; padding: 10px 6px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; line-height: 1.2; }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--solid); padding: 8px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.input, select.input {
  width: 100%; font: inherit; font-size: 19px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--solid); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
select.input { font-size: 16px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.input.ok { border-color: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 16%, transparent); }
.input.almost { border-color: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 16%, transparent); }
.input.bad { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 14%, transparent); animation: shake .38s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.accents { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.accents button { min-width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--solid); font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .1s; }
.accents button:active { transform: scale(.9); background: var(--chip); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.switch-row:first-child { border-top: 0; }
.switch-row .t { font-weight: 600; }
.switch-row .m { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Session ---------- */
.session { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; }
.session-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.session-top .count { font-size: 13px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.stage { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.combo { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 70px); transform: translateX(-50%); z-index: 60; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 750; font-size: 14px; padding: 7px 14px; border-radius: 99px; opacity: 0; }
.combo.show { animation: pop 1.3s var(--ease); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }

.prompt {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--solid);
  padding: 28px 22px 26px; text-align: center; box-shadow: var(--shadow); min-height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.prompt .deco.d1 { width: 120px; height: 108px; right: -38px; top: -46px; opacity: .85; }
.prompt .deco.d2 { width: 44px; height: 40px; right: auto; left: -14px; top: auto; bottom: -14px; background: var(--c); opacity: .35; }
.prompt .eyebrow { position: relative; }
.word { font-family: var(--serif); font-size: clamp(30px, 8.6vw, 44px); line-height: 1.12; letter-spacing: -.012em; font-weight: 600; position: relative; overflow-wrap: anywhere; }
.word.de { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; font-size: clamp(27px, 7.6vw, 38px); }
.word.sm { font-size: clamp(22px, 6vw, 30px); }
.sub { color: var(--muted); font-size: 14.5px; position: relative; }
.ex-line { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text); opacity: .85; position: relative; margin-top: 6px; line-height: 1.4; }
.ex-de { font-size: 13.5px; color: var(--muted); position: relative; }
.note { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--chip); padding: 4px 10px; border-radius: 99px; position: relative; }
.tap-hint { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 12px; color: var(--faint); }
.speak { position: relative; }

.flash { perspective: 1400px; height: clamp(280px, 46vh, 400px); cursor: pointer; outline: none; }
.flash-inner { position: relative; width: 100%; height: 100%; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.flash .prompt { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 0; }
.flash .back { transform: rotateY(180deg); }

.rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rate button { border: 1px solid var(--line-2); background: var(--solid); border-radius: 16px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: transform .12s var(--ease); }
.rate button:active { transform: scale(.95); }
.rate b { font-size: 14px; }
.rate small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rate .r1 b { color: var(--bad); } .rate .r2 b { color: var(--warn); } .rate .r3 b { color: var(--good); } .rate .r4 b { color: var(--violet); }

.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line-2); background: var(--solid); border-radius: 16px; padding: 15px 16px; font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .12s var(--ease), background .2s, border-color .2s; min-height: 56px; }
.opt:active { transform: scale(.98); }
.opt .k { width: 26px; height: 26px; border-radius: 8px; background: var(--chip); display: grid; place-items: center; font-size: 12.5px; color: var(--muted); flex: none; }
.opt.ok { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--solid)); }
.opt.ok .k { background: var(--good); color: #fff; }
.opt.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--solid)); animation: shake .38s; }
.opt.dim { opacity: .5; }
.opt[disabled] { cursor: default; }

.fb { border-radius: 16px; padding: 13px 16px; border: 1px solid; font-size: 15px; line-height: 1.45; animation: rise .35s var(--ease) both; }
.fb b { font-weight: 700; }
.fb.ok { background: color-mix(in srgb, var(--good) 10%, var(--solid)); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.fb.almost { background: color-mix(in srgb, var(--warn) 12%, var(--solid)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.fb.bad { background: color-mix(in srgb, var(--bad) 9%, var(--solid)); border-color: color-mix(in srgb, var(--bad) 32%, transparent); }
.fb .head { font-weight: 750; display: flex; align-items: center; gap: 6px; }
.fb .head .i { width: 18px; height: 18px; }
.fb .answer { font-family: var(--serif); font-size: 21px; margin-top: 2px; }
.fb .ex-line { margin-top: 6px; font-size: 15px; }
.fb .override { margin-top: 8px; }

.blank { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--c, var(--violet)); color: var(--c, var(--violet)); font-style: normal; font-weight: 700; padding: 0 4px; }
.blank.filled-ok { color: var(--good); border-color: var(--good); }
.blank.filled-bad { color: var(--bad); border-color: var(--bad); }
.cloze { font-family: var(--serif); font-size: clamp(21px, 5.6vw, 26px); line-height: 1.45; position: relative; }

.actions { margin-top: auto; padding-top: 4px; display: grid; gap: 10px; }
.intro .word { font-size: clamp(34px, 9.5vw, 48px); }

.done { text-align: center; overflow: hidden; padding: 34px 22px 22px; }
.done .big { font-size: 46px; font-weight: 790; letter-spacing: -.04em; line-height: 1; }
.done .stats { margin: 22px 0 18px; text-align: left; }
.done .deco.d1 { width: 260px; height: 230px; left: -90px; right: auto; top: -140px; }
.mistakes { text-align: left; margin-top: 4px; }
.mistakes .word-row { cursor: default; }

/* ---------- Prosa (Grammatik/Notizen) ---------- */
.prose { font-size: 16.5px; line-height: 1.6; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; margin: 30px 0 10px; font-weight: 740; }
.prose h3 { font-size: 18px; letter-spacing: -.015em; margin: 22px 0 8px; }
.prose h4 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--c, var(--coral)); }
.prose em { font-family: var(--serif); font-size: 1.04em; }
.prose strong { font-weight: 700; }
.prose mark { background: color-mix(in srgb, var(--c, var(--coral)) 22%, transparent); color: inherit; padding: 0 2px; border-radius: 4px; font-weight: 700; }
.prose code { font-size: .9em; background: var(--chip); padding: 1px 6px; border-radius: 6px; }
.prose a { color: var(--c, var(--violet)); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--sun) 15%, var(--solid)); border: 1px solid color-mix(in srgb, var(--sun) 42%, transparent); }
.prose blockquote p { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.prose th, .prose td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.prose thead th { border-top: 0; background: var(--chip); font-size: 13px; font-weight: 700; color: var(--muted); }
.prose tbody tr:first-child td { border-top: 0; }
.prose thead + tbody tr:first-child td { border-top: 1px solid var(--line); }

.head-card { overflow: hidden; padding: 24px 20px; }
.head-card .title { font-size: clamp(28px, 7.5vw, 38px); position: relative; }
.head-card .eyebrow, .head-card .lead { position: relative; }
.sticky-cta { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 16px); margin-top: 18px; z-index: 5; }
.sticky-cta .btn { box-shadow: 0 16px 34px -14px rgba(20, 10, 50, .5); }

/* Konjugationstabellen */
.conj { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conj .card { padding: 14px 16px; }
.conj h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.conj table { width: 100%; border-collapse: collapse; font-size: 15px; }
.conj td { padding: 4px 0; }
.conj td:first-child { color: var(--faint); font-size: 13px; width: 42%; }
.conj td:last-child { font-weight: 600; cursor: pointer; }
.conj mark { background: color-mix(in srgb, var(--coral) 20%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
@media (max-width: 520px) { .conj { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -150%);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: 14.5px;
  transition: transform .45s var(--ease); max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); }

.empty { text-align: center; padding: 40px 20px; }
.empty .blob-dot { margin: 0 auto 14px; width: 64px; height: 64px; }
.empty .blob-dot .i { width: 28px; height: 28px; }
.empty h2 { margin: 0 0 6px; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.hero-num b .i { width: 54px; height: 54px; stroke-width: 2.2; color: var(--good); }
.stats > .card, .grid2 > .card, .stack > .card, .conj > .card { margin-top: 0; }
.stat span { white-space: nowrap; }
.btn { white-space: nowrap; }
[hidden] { display: none !important; }
.accents { flex-wrap: nowrap; gap: 5px; }
.accents button { flex: 1 1 0; min-width: 0; padding: 0; }
@media (max-width: 899px) { .sticky-cta { bottom: calc(env(safe-area-inset-bottom) + 92px); } }
.card.deck-card { display: flex; }
.card.tile { display: flex; }
