/* ===================== lernka – Website =====================
   Richtung: ruhig, genau, ein bisschen warm. Welt: der Schreibtisch in der Klausurphase.
   Signatur: der Textmarker (so sieht in lernka eine Lücke aus).
   Überarbeitet nach „unslop“ von Damir Sokolovsky (@heydamir), CC BY 4.0. */

/* Inter lokal statt von Google Fonts (keine IP-Übertragung an Google). Variable Schrift: eine Datei, alle Stärken.
   Lizenz: SIL Open Font License 1.1, siehe assets/fonts/OFL.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Hell/Dunkel folgt dem System; <meta name="color-scheme"> kann es festlegen */
  color-scheme: light dark;
  --color-scheme: light;
  @media (prefers-color-scheme: dark) { --color-scheme: dark; }
  &:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; --color-scheme: light; }
  &:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; --color-scheme: dark; }

  --bg-l: #f8f6f1; --bg-d: #161513;
  --side-l: #f3f0e9; --side-d: #12110f;
  --card-l: #fffdf9; --card-d: #1c1a18;
  --raised-l: #efebe3; --raised-d: #262421;
  --text-l: #1f1b16; --text-d: #efe9de;
  --text-2-l: #5e554a; --text-2-d: #aaa398;
  --muted-l: #766d61; --muted-d: #8a847a;
  --line-l: rgb(31 27 22 / .08); --line-d: rgb(239 233 222 / .08);
  --line-2-l: rgb(31 27 22 / .14); --line-2-d: rgb(239 233 222 / .14);
  --accent-l: #2f6fdb; --accent-d: #5b93ec;
  --accent-ink-l: #2459b8; --accent-ink-d: #8fb4f2;
  --btn-bg-l: #2f6fdb; --btn-bg-d: #efe9de;
  --btn-bg-hover-l: #2760c4; --btn-bg-hover-d: #e0d9cc;
  --btn-fg-l: #ffffff; --btn-fg-d: #161513;
  --s-new-l: #378add; --s-new-d: #5ea2e8;
  --s-learning-l: #ba7517; --s-learning-d: #e0a240;
  --s-mature-l: #3b8a2a; --s-mature-d: #6cbf55;
  --s-shaky-l: #d14b3d; --s-shaky-d: #ec6b5e;
  --ok-bg-l: #e8f3e5; --ok-bg-d: #16281a;
  --ok-fg-l: #2d6e1f; --ok-fg-d: #8fd27c;
  --ok-bd-l: #cfe5c6; --ok-bd-d: #22402a;
  --warn-bg-l: #fbf0e0; --warn-bg-d: #2e2312;
  --warn-fg-l: #8a560f; --warn-fg-d: #f0c27a;
  --warn-bd-l: #f1ddbd; --warn-bd-d: #4a3818;
  --mark-bg-l: #fdf1c9; --mark-bg-d: #4a3a12;
  --mark-fg-l: #6b4a00; --mark-fg-d: #f6dc95;
  --mark-line-l: #e2b93b; --mark-line-d: #b8902a;
  --code-bg-l: #1f1b16; --code-bg-d: #12110f;
  --code-fg-l: #efe9de; --code-fg-d: #efe9de;
  --code-op-l: #9cc0f5; --code-op-d: #8fb4f2;
  --cursor-fill-l: #1f1b16; --cursor-fill-d: #efe9de;
  --cursor-stroke-l: #ffffff; --cursor-stroke-d: #161513;

  --bg: var(--bg-l);
  --side: var(--side-l);
  --card: var(--card-l);
  --raised: var(--raised-l);
  --text: var(--text-l);
  --text-2: var(--text-2-l);
  --muted: var(--muted-l);
  --line: var(--line-l);
  --line-2: var(--line-2-l);
  --accent: var(--accent-l);
  --accent-ink: var(--accent-ink-l);
  --btn-bg: var(--btn-bg-l);
  --btn-bg-hover: var(--btn-bg-hover-l);
  --btn-fg: var(--btn-fg-l);
  --s-new: var(--s-new-l);
  --s-learning: var(--s-learning-l);
  --s-mature: var(--s-mature-l);
  --s-shaky: var(--s-shaky-l);
  --ok-bg: var(--ok-bg-l);
  --ok-fg: var(--ok-fg-l);
  --ok-bd: var(--ok-bd-l);
  --warn-bg: var(--warn-bg-l);
  --warn-fg: var(--warn-fg-l);
  --warn-bd: var(--warn-bd-l);
  --mark-bg: var(--mark-bg-l);
  --mark-fg: var(--mark-fg-l);
  --mark-line: var(--mark-line-l);
  --code-bg: var(--code-bg-l);
  --code-fg: var(--code-fg-l);
  --code-op: var(--code-op-l);
  --cursor-fill: var(--cursor-fill-l);
  --cursor-stroke: var(--cursor-stroke-l);
  /* Rückfall ohne light-dark() */
  @media (prefers-color-scheme: dark) {
    --bg: var(--bg-d);
    --side: var(--side-d);
    --card: var(--card-d);
    --raised: var(--raised-d);
    --text: var(--text-d);
    --text-2: var(--text-2-d);
    --muted: var(--muted-d);
    --line: var(--line-d);
    --line-2: var(--line-2-d);
    --accent: var(--accent-d);
    --accent-ink: var(--accent-ink-d);
    --btn-bg: var(--btn-bg-d);
    --btn-bg-hover: var(--btn-bg-hover-d);
    --btn-fg: var(--btn-fg-d);
    --s-new: var(--s-new-d);
    --s-learning: var(--s-learning-d);
    --s-mature: var(--s-mature-d);
    --s-shaky: var(--s-shaky-d);
    --ok-bg: var(--ok-bg-d);
    --ok-fg: var(--ok-fg-d);
    --ok-bd: var(--ok-bd-d);
    --warn-bg: var(--warn-bg-d);
    --warn-fg: var(--warn-fg-d);
    --warn-bd: var(--warn-bd-d);
    --mark-bg: var(--mark-bg-d);
    --mark-fg: var(--mark-fg-d);
    --mark-line: var(--mark-line-d);
    --code-bg: var(--code-bg-d);
    --code-fg: var(--code-fg-d);
    --code-op: var(--code-op-d);
    --cursor-fill: var(--cursor-fill-d);
    --cursor-stroke: var(--cursor-stroke-d);
  }
  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--bg-l), var(--bg-d));
    --side: light-dark(var(--side-l), var(--side-d));
    --card: light-dark(var(--card-l), var(--card-d));
    --raised: light-dark(var(--raised-l), var(--raised-d));
    --text: light-dark(var(--text-l), var(--text-d));
    --text-2: light-dark(var(--text-2-l), var(--text-2-d));
    --muted: light-dark(var(--muted-l), var(--muted-d));
    --line: light-dark(var(--line-l), var(--line-d));
    --line-2: light-dark(var(--line-2-l), var(--line-2-d));
    --accent: light-dark(var(--accent-l), var(--accent-d));
    --accent-ink: light-dark(var(--accent-ink-l), var(--accent-ink-d));
    --btn-bg: light-dark(var(--btn-bg-l), var(--btn-bg-d));
    --btn-bg-hover: light-dark(var(--btn-bg-hover-l), var(--btn-bg-hover-d));
    --btn-fg: light-dark(var(--btn-fg-l), var(--btn-fg-d));
    --s-new: light-dark(var(--s-new-l), var(--s-new-d));
    --s-learning: light-dark(var(--s-learning-l), var(--s-learning-d));
    --s-mature: light-dark(var(--s-mature-l), var(--s-mature-d));
    --s-shaky: light-dark(var(--s-shaky-l), var(--s-shaky-d));
    --ok-bg: light-dark(var(--ok-bg-l), var(--ok-bg-d));
    --ok-fg: light-dark(var(--ok-fg-l), var(--ok-fg-d));
    --ok-bd: light-dark(var(--ok-bd-l), var(--ok-bd-d));
    --warn-bg: light-dark(var(--warn-bg-l), var(--warn-bg-d));
    --warn-fg: light-dark(var(--warn-fg-l), var(--warn-fg-d));
    --warn-bd: light-dark(var(--warn-bd-l), var(--warn-bd-d));
    --mark-bg: light-dark(var(--mark-bg-l), var(--mark-bg-d));
    --mark-fg: light-dark(var(--mark-fg-l), var(--mark-fg-d));
    --mark-line: light-dark(var(--mark-line-l), var(--mark-line-d));
    --code-bg: light-dark(var(--code-bg-l), var(--code-bg-d));
    --code-fg: light-dark(var(--code-fg-l), var(--code-fg-d));
    --code-op: light-dark(var(--code-op-l), var(--code-op-d));
    --cursor-fill: light-dark(var(--cursor-fill-l), var(--cursor-fill-d));
    --cursor-stroke: light-dark(var(--cursor-stroke-l), var(--cursor-stroke-d));
  }

  --shine: rgb(255 255 255 / .9);
  --glow-fill: #111111; --glow-a: rgb(17 17 17 / .28); --glow-b: rgb(17 17 17 / .14);
  --shadow-sm: 0 1px 2px rgb(31 27 22 / .05);
  --shadow-float: 0 1px 2px rgb(31 27 22 / .06), 0 12px 32px rgb(31 27 22 / .08);
  --mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms; --t-mid: 200ms; --t-slow: 400ms;
  --max: 1160px;
}

/* Dunkel: Tiefe über Flächenstufen und Haarlinien, nur schwebende Fenster behalten einen weichen Schatten */
@container style(--color-scheme: dark) {
  body { --shadow-sm: none; --shadow-float: 0 16px 40px rgb(0 0 0 / .35); --shine: rgb(255 255 255 / .07);
    --glow-fill: #ffffff; --glow-a: rgb(255 255 255 / .8); --glow-b: rgb(255 255 255 / .35); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size-adjust: from-font;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; accent-color: var(--accent);
  scrollbar-color: color-mix(in srgb, var(--text) 30%, transparent) transparent; }
body { margin: 0; line-height: 1.5; overflow-x: hidden; transition: background-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease); }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--mark-bg); color: var(--mark-fg); }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 500; }
p, li, .sub { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .875em; background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
kbd { font-family: var(--mono); font-size: .75rem; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line-2); color: var(--text-2); white-space: nowrap; }
mark { background: var(--mark-bg); color: var(--mark-fg); padding: 0 4px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }

/* Icons: eine Größe, eine Strichstärke, Farbe der Textrolle */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--xs { width: 14px; height: 14px; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 24px; height: 24px; }
@container style(--color-scheme: dark) { .logo-mark { filter: invert(1); } }

/* Signatur: Textmarker-Strich wie eine Lücke in lernka */
.hl { background: linear-gradient(transparent 58%, var(--mark-bg) 58%, var(--mark-bg) 92%, transparent 92%); padding-inline: 2px; margin-inline: -2px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 12px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-block-size: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.0625rem; justify-self: start; }
.nav__links { display: flex; gap: 4px; font-size: .875rem; color: var(--text-2); }
.nav__links a { padding: 8px 12px; border-radius: 8px; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav__links a:hover { color: var(--text); background: var(--raised); }
.nav__links a[aria-current="true"] { color: var(--text); background: var(--raised); }
.nav__cta { display: flex; gap: 8px; justify-self: end; align-items: center; }
.theme-btn, .lang-btn { min-inline-size: 36px; min-block-size: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--text-2); font-size: .75rem; font-weight: 600; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.theme-btn:hover, .lang-btn:hover { color: var(--text); background: var(--raised); }
.theme-btn .i { grid-area: 1 / 1; }
.theme-btn .i--moon { display: none; }
@container style(--color-scheme: dark) { .theme-btn .i--sun { display: none; } .theme-btn .i--moon { display: block; } }
.nav__burger { display: none; background: none; border: 0; min-inline-size: 40px; min-block-size: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; justify-self: end; }
.nav__burger span { height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t-fast) var(--ease); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-size: .9375rem; min-block-size: 40px; padding: 8px 16px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: .875rem; min-block-size: 36px; padding: 4px 12px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--lg { font-size: 1rem; min-block-size: 48px; padding: 8px 20px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--raised); }

/* ---------- Hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 96px 32px 0; text-align: center; }
.hero__title { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 auto 24px; max-inline-size: 20ch; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--text-2); max-inline-size: 36rem; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__meta { font-size: .8125rem; color: var(--muted); margin: 16px 0 0; }

/* Corporate-Moment: das lernka-Logo als Neon-Zeichen, transparent mit Glow (einziger Leuchteffekt im Hero).
   Hell: schwarzes Logo mit weichem dunklen Schein. Dunkel: weißes Neon wie das Original-Logo. */
.brand-glow { display: block; width: 72px; height: 72px; margin: 0 auto 32px;
  filter: drop-shadow(0 0 3px var(--glow-a)) drop-shadow(0 0 12px var(--glow-a)) drop-shadow(0 0 32px var(--glow-b)); }
.brand-glow::before { content: ''; display: block; width: 100%; height: 100%; background: var(--glow-fill);
  -webkit-mask: url("assets/logo-mask.png") center / contain no-repeat; mask: url("assets/logo-mask.png") center / contain no-repeat; }

/* ---------- App-Vorschau ---------- */
.mock { position: relative; margin: 64px auto 0; max-width: 1040px; text-align: left; }
/* Ein ganz leichter, statischer weißer Schein hinter der Vorschau – der Neon-Look der Marke, nur an dieser Stelle */
.mock::before { content: ''; position: absolute; inset: -48px -96px auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, var(--shine), transparent 70%); }
.win { position: relative; border-radius: 16px; background: var(--card); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-float); }
.win__bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 0 0 16px; border-bottom: 1px solid var(--line); background: var(--side); font-size: .8125rem; }
.win__title { display: flex; align-items: center; gap: 8px; font-weight: 500; width: 180px; }
.win__search { position: relative; flex: 1; max-width: 360px; margin: 0 auto; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px 4px 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; transition: border-color var(--t-fast) var(--ease); }
.win__search.is-focus { border-color: var(--accent); color: var(--text); }
.search-text { flex: 1; white-space: nowrap; overflow: hidden; }
.win__search.is-focus .search-text::after { content: ''; display: inline-block; width: 1px; height: 12px; background: var(--text); margin-left: 1px; vertical-align: -2px; }
.win__search kbd { font-size: .6875rem; }
.search-pop { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--card); border-radius: 10px; padding: 4px; border: 1px solid var(--line-2); box-shadow: var(--shadow-float); opacity: 0; translate: 0 -4px; transition: opacity var(--t-mid) var(--ease), translate var(--t-mid) var(--ease); pointer-events: none; z-index: 5; }
.search-pop.is-open { opacity: 1; translate: none; }
.search-pop__item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; color: var(--text-2); }
.search-pop__item em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .6875rem; }
.search-pop__item.is-on { background: var(--raised); color: var(--text); }
.win__ctrl { display: flex; height: 100%; color: var(--muted); }
.win__ctrl i { width: 44px; height: 100%; display: grid; place-items: center; }
.win__ctrl .i { width: 12px; height: 12px; }
.win__body { display: grid; grid-template-columns: 224px 1fr; height: 472px; }

.side { position: relative; background: var(--side); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; color: var(--text-2); }
.side__hl { position: absolute; left: 8px; right: 8px; top: 0; height: 32px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); transform: translateY(var(--hy, 12px)); transition: transform var(--t-slow) var(--ease); pointer-events: none; }
.side__item { position: relative; display: flex; align-items: center; gap: 8px; min-block-size: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; transition: color var(--t-fast) var(--ease); }
.side__item:hover, .side__item.is-hover { color: var(--text); }
.side__item.is-on { color: var(--text); font-weight: 500; }
.side__item .i { color: var(--muted); }
.side__item em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.side__label { font-size: .75rem; font-weight: 500; color: var(--muted); padding: 24px 12px 8px; }
.side__spacer { flex: 1; }
.sw { width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin: 0 4px; flex: none; }
.sw--lg { width: 32px; height: 32px; border-radius: 8px; margin: 0; }

.views { position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; opacity: 0; translate: 0 8px; transition: opacity var(--t-mid) var(--ease), translate var(--t-slow) var(--ease); pointer-events: none; }
.view.is-on { opacity: 1; translate: none; pointer-events: auto; }
.view h3 { margin: 4px 0 0; font-size: 1.5rem; letter-spacing: -.02em; }
.view .muted { font-size: .8125rem; }
.today__head { display: flex; justify-content: space-between; align-items: flex-end; }
.mini-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; background: var(--btn-bg); color: var(--btn-fg); border: 0; border-radius: 8px; min-block-size: 32px; padding: 4px 12px; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.mini-btn.is-press { transform: scale(.96); }
.plan, .tile, .box, .flash, .table { border: 1px solid var(--line); border-radius: 12px; }
.plan { padding: 16px; }
.plan__row { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 500; margin-bottom: 12px; }
.plan__row .muted { font-variant-numeric: tabular-nums; font-weight: 400; }
.bar { display: flex; gap: 4px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--raised); }
.bar i, .cov__bar i { width: 0; background: var(--c); border-radius: 4px; transition: width 900ms var(--ease); }
.plan__legend, .legend4 { display: flex; gap: 16px; margin-top: 12px; font-size: .75rem; color: var(--text-2); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.plan__legend b, .legend4 b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 4px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.tile.is-hover { border-color: var(--line-2); background: var(--raised); }
.tile__top { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 500; }
.tile__big { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; padding: 1px 8px; border-radius: 6px; background: var(--raised); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.tag--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-bd); }
.tag--off { background: transparent; color: var(--muted); border-style: dashed; }
.flash { overflow: hidden; font-size: .875rem; transition: border-color var(--t-fast) var(--ease); }
.flash.is-hover { border-color: var(--line-2); }
.flash__q { padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.flash__hint { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 400; transition: opacity var(--t-fast) var(--ease); }
.flash.is-open .flash__hint { opacity: 0; }
.flash__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); background: var(--side); }
.flash__a > div { overflow: hidden; padding: 0 16px 0 36px; color: var(--text-2); }
.flash.is-open .flash__a { grid-template-rows: 1fr; border-top: 1px dashed var(--line-2); }
.flash.is-open .flash__a > div { padding: 12px 16px 12px 36px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transition: background-color var(--t-mid) var(--ease); }

.subj__head { display: flex; align-items: center; gap: 12px; }
.subj__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--text-2); }
.subj__tabs span { padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subj__tabs span.is-on { color: var(--text); font-weight: 500; border-color: var(--text); }
.subj__tabs em { font-style: normal; font-family: var(--mono); font-size: .6875rem; color: var(--muted); margin-left: 4px; }
.subj__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.box { padding: 16px; }
.box__t { font-size: .8125rem; font-weight: 500; margin-bottom: 12px; }
.cov { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: .75rem; color: var(--text-2); margin-top: 8px; }
.cov__bar { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; display: flex; }
.ring { position: relative; width: 72px; height: 72px; margin: 0 auto 4px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring__bg { stroke: var(--raised); }
.ring__fg { stroke: var(--s-mature); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 900ms var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.legend4 { gap: 8px 12px; margin-top: 8px; font-size: .6875rem; }
.next { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); padding: 12px 16px; border-radius: 12px; background: var(--raised); }
.next b { color: var(--text); font-weight: 500; }
.next .i { color: var(--muted); }

.cards__head { display: flex; justify-content: space-between; align-items: center; }
.chips { display: flex; gap: 4px; font-size: .75rem; }
.chips span { padding: 4px 8px; border-radius: 6px; color: var(--text-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chips span.is-on { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.table { overflow: hidden; font-size: .8125rem; }
.tr { display: grid; grid-template-columns: 24px 1fr 104px 72px; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); transition: background-color var(--t-fast) var(--ease); }
.tr:first-child { border-top: 0; }
.th { font-size: .75rem; color: var(--muted); background: var(--side); font-weight: 500; }
.tr span:nth-child(3), .tr span:nth-child(4) { color: var(--muted); }
.tr.is-hover { background: var(--raised); }
.tr.is-hidden { display: none; }

.toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; background: var(--text); color: var(--bg); opacity: 0; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); pointer-events: none; z-index: 6; }
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* Mauszeiger der Demo */
.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 20; pointer-events: none; opacity: 0; transform: translate(var(--cx, 600px), var(--cy, 400px)); transition: transform .9s var(--ease), opacity var(--t-mid) var(--ease); filter: drop-shadow(0 1px 2px rgb(0 0 0 / .25)); }
.cursor svg { width: 100%; height: 100%; transition: transform var(--t-fast) var(--ease); transform-origin: 20% 10%; }
.cursor path { fill: var(--cursor-fill); stroke: var(--cursor-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.cursor.is-on { opacity: 1; }
.cursor.is-down svg { transform: scale(.85); }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; z-index: 19; animation: ripple 500ms var(--ease) forwards; }
@keyframes ripple { from { transform: scale(.5); opacity: .8; } to { transform: scale(3.5); opacity: 0; } }

.mock__foot { display: flex; justify-content: center; }
.review-foot { display: flex; justify-content: flex-end; }
.demo-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .8125rem; font-weight: 500; color: var(--text-2); padding: 4px 12px; min-block-size: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.demo-toggle:hover { color: var(--text); background: var(--raised); }
.demo-toggle .i { width: 12px; height: 12px; }
.demo-toggle[data-paused="true"] .if-playing, .demo-toggle:not([data-paused="true"]) .if-paused { display: none; }

/* ---------- Abschnitte ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 128px 32px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; }
.sub { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); margin: 0; }
.glass { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }

/* ---------- Funktions-Tabs ---------- */
.tabs { position: relative; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; max-inline-size: 100%; margin: 0 auto 24px; padding: 4px; width: fit-content; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; font-size: .875rem; font-weight: 500; color: var(--text-2); background: none; border: 0; min-block-size: 36px; padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; flex: none; transition: color var(--t-fast) var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tabs__hl { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 8px; background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform var(--t-slow) var(--ease), width var(--t-slow) var(--ease), height var(--t-slow) var(--ease); }
/* Auswahl nicht nur über Farbe: Unterstrich als Rahmen, gleitet mit */
.tabs__hl::after { content: ""; position: absolute; inset-inline: 16px; inset-block-end: 4px; border-block-end: 2px solid var(--accent); border-radius: 2px; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 12px; }
.panel p { color: var(--text-2); font-size: 1rem; line-height: 1.6; margin: 0 0 20px; }
.panel p a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(-45deg); }
.checks b { color: var(--text); font-weight: 500; }

.doc { padding: 24px 28px; font-size: .9375rem; position: relative; background: var(--side); }
.doc__h { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }
.doc p { font-size: .9375rem; color: var(--text); }
.fc { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin: 16px 0; background: var(--card); }
.fc__row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.fc__row b { font-size: .75rem; font-weight: 500; color: var(--muted); width: 56px; flex: none; }
.fc__row--a { border-top: 1px dashed var(--line-2); padding-left: 36px; }
.formula { width: fit-content; font-family: 'Times New Roman', serif; font-style: normal; font-size: 1.125rem; padding: 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.typing { margin-top: 16px; font-size: .9375rem; color: var(--text-2); font-family: var(--mono); }
.caret { display: inline-block; width: 1.5px; height: 16px; background: var(--accent); vertical-align: -3px; margin-left: 1px; }
.slash { position: absolute; right: -16px; bottom: -24px; width: 208px; background: var(--card); border-radius: 12px; padding: 4px; border: 1px solid var(--line-2); box-shadow: var(--shadow-float); font-size: .875rem; }
.slash__item { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-radius: 8px; color: var(--text-2); }
.slash__item > span { display: flex; align-items: center; gap: 8px; }
.slash__item.is-on { background: var(--raised); color: var(--text); }
.slash__item kbd { font-size: .6875rem; box-shadow: none; }

.goals { padding: 8px; }
.goals__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.goals__sum { padding: 12px 16px 8px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.week { padding: 24px; }
.week__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 176px; align-items: end; }
.week__days div { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; font-size: .75rem; color: var(--muted); }
.week__days b { width: 100%; height: var(--h); transform-origin: bottom; border-radius: 6px; background: var(--raised); min-height: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.week__days b.hi { background: var(--accent); box-shadow: none; }
.why { margin-top: 20px; font-size: .875rem; color: var(--text-2); padding: 12px 16px; border-radius: 10px; background: var(--raised); }
.why b { color: var(--text); display: block; margin-bottom: 4px; font-weight: 500; }
.tree { padding: 16px; font-size: .9375rem; }
.tree__row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; }
.tree__row .i { color: var(--muted); }
.tree__row.in { padding-left: 32px; color: var(--text-2); }
.tree__row em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.tree__row .tag { margin-left: auto; }
.tree__code, .fmt > code { font-family: var(--mono); font-size: .8125rem; border-radius: 10px; background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); }
.tree__code { margin-top: 12px; padding: 12px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.op { color: var(--code-op); font-weight: 500; }
.pdf { padding: 28px; display: grid; grid-template-columns: 1fr auto 1.3fr; align-items: center; gap: 16px; }
.pdf__page { aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--line-2); padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.pdf__page i { height: 8px; border-radius: 4px; background: var(--raised); }
.pdf__page i:first-child { height: 12px; width: 70%; background: var(--line-2); }
.pdf__page i.s { width: 60%; }
.pdf__arrow { color: var(--muted); }
.pdf__md { font-family: var(--mono); font-size: .8125rem; display: grid; gap: 8px; padding: 16px; border-radius: 10px; background: var(--raised); }

/* ---------- Lernmodus ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split .sub { margin-bottom: 24px; }
.review { position: relative; padding: 20px; overflow: hidden; }
.review__top { display: flex; justify-content: space-between; font-size: .8125rem; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.review__progress { height: 4px; border-radius: 2px; background: var(--raised); margin-bottom: 16px; overflow: hidden; }
.review__progress i { display: block; height: 100%; width: 37%; background: var(--accent); border-radius: 2px; transition: width var(--t-slow) var(--ease); }
.review__card { min-height: 224px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; cursor: pointer; background: var(--side); transition: border-color var(--t-fast) var(--ease), transform var(--t-slow) var(--ease), opacity var(--t-mid) var(--ease); }
.review__card:hover, .review__card.is-hover { border-color: var(--text-2); }
.review__card.is-out { transform: translateX(-24px); opacity: 0; }
.review__card.is-in { transform: translateX(24px); opacity: 0; transition: none; }
.review__q { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; max-width: 420px; }
.review__a { font-size: 1.125rem; color: var(--text); margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); width: 70%; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.review__a { background: none; }
.review__card.is-flipped .review__a { opacity: 1; }
.review__card.is-flipped .review__hint { opacity: 0; }
.review__hint { font-size: .8125rem; color: var(--muted); margin-top: 16px; transition: opacity var(--t-fast) var(--ease); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.grades button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.grades button:hover, .grades button.is-hover { background: var(--raised); }
.grades button.on { border-color: var(--accent); background: var(--raised); }
.grades b { font-size: .875rem; font-weight: 500; }
.grades span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.grades kbd { margin-top: 4px; }

/* ---------- Weitere Funktionen ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-fast) var(--ease); }
.card:hover { border-color: var(--line-2); }
.card__ico { color: var(--text-2); margin-bottom: 16px; }
.card h4 { margin: 0 0 4px; font-size: 1rem; }
.card p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--text-2); }

/* ---------- Deine Daten ---------- */
.privacy { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.privacy__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pitem { padding: 20px; border-radius: 12px; background: var(--side); border: 1px solid var(--line); display: grid; gap: 4px; }
.pitem b { font-size: .9375rem; font-weight: 500; }
.pitem span { font-size: .875rem; color: var(--text-2); }

/* ---------- Download ---------- */
.dl { text-align: center; padding: 64px 32px 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.dl__logo { width: 48px; height: 48px; margin: 0 auto 24px; }
.dl__sub { color: var(--text-2); font-size: 1.0625rem; margin: 0 0 32px; }
.dl__options { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; text-align: left; }
.dlopt { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; background: var(--side); border: 1px solid var(--line); color: var(--text); transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.dlopt:hover { background: var(--raised); border-color: var(--line-2); }
.dlopt > .i { color: var(--text-2); }
.dlopt--main { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.dlopt--main > .i { color: inherit; }
.dlopt--main:hover { background: var(--btn-bg-hover); border-color: transparent; }
.dlopt--main small { color: inherit !important; opacity: .8; }
.dlopt__t { display: grid; flex: 1; }
.dlopt__t b { font-size: 1rem; font-weight: 500; }
.dlopt__t small { font-size: .8125rem; color: var(--muted); }
.dlopt--soon { cursor: default; color: var(--text-2); }
.dlopt--soon:hover { background: var(--side); border-color: var(--line); }
.dl__req { font-size: .8125rem; color: var(--muted); margin: 24px 0 0; }
.dl__req a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.dl__req a:hover { color: var(--text); }

/* ---------- KI-Skill ---------- */
.skill { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; }
.steps > li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps__n { display: grid; place-items: center; min-inline-size: 28px; min-block-size: 28px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--mono); font-size: .8125rem; }
.steps h3 { margin: 2px 0 4px; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.setup { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: .875rem; color: var(--text-2); }
.setup b { color: var(--text); font-weight: 500; }
.setup code, .steps code { overflow-wrap: anywhere; }
.prompt { border-radius: 12px; background: var(--side); border: 1px solid var(--line); padding: 16px; margin-bottom: 20px; }
.prompt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.prompt__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.prompt__text { margin: 0; font-size: .9375rem; line-height: 1.6; }
.copy { position: relative; display: inline-flex; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-block-size: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); font-size: .8125rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.copy-button:hover { color: var(--text); background: var(--raised); }
.copy-button .if-done { display: none; }
.copy-button[data-copied] { color: var(--ok-fg); }
.copy-button[data-copied] .if-idle { display: none; }
.copy-button[data-copied] .if-done { display: inline; }
.copy-button[data-failed] { color: var(--s-shaky); }
.tip { position: absolute; inset-block-end: calc(100% + 8px); inset-inline-end: 0; white-space: nowrap; font-size: .75rem; font-weight: 500; padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--bg); opacity: 0; transition: opacity var(--t-fast) var(--ease); pointer-events: none; }
.tip:not(:empty) { opacity: 1; }
.skill__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gen { padding: 16px; display: grid; gap: 12px; background: var(--side); }
.gen__chat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .875rem; }
.gen__chat p { margin: 0; }
.gen__avatar { flex: none; display: grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line-2); color: var(--text-2); }
.gen__file { border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; background: var(--card); }
.gen__tab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: .8125rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--text-2); }
.gen__badge { margin-left: auto; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--ok-fg); }
.gen__code { padding: 12px 16px; font-family: var(--mono); font-size: .8125rem; line-height: 1.7; color: var(--text-2); }
.gl { white-space: pre-wrap; overflow-wrap: anywhere; }
.gl--h { color: var(--text); font-weight: 500; }
.gl--gap { block-size: 8px; }
.gl--new { color: var(--text); background: color-mix(in srgb, var(--mark-bg) 55%, transparent); margin-inline: -16px; padding-inline: 14px 16px; border-inline-start: 2px solid var(--mark-line); }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.fmt { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
@supports (grid-template-rows: subgrid) {
  .fmt { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.fmt > code { display: flex; flex-direction: column; justify-content: center; min-block-size: 5.5em; padding: 12px; margin-bottom: 16px; line-height: 1.6; }
.fmt h4 { margin: 0 0 4px; font-size: 1rem; }
.fmt p { margin: 0; font-size: .875rem; color: var(--text-2); }
.skill__note { margin: 20px auto 0; max-inline-size: 720px; text-align: center; font-size: .875rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faqwrap { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.faq__side { position: sticky; top: 96px; }
.faq__side h2 { margin-bottom: 12px; }
.faq__side .sub { font-size: 1rem; margin-bottom: 24px; }
.faq__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-block-size: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); color: var(--muted); transition: border-color var(--t-fast) var(--ease); }
.faq__search:focus-within { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.faq__search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: .9375rem; color: var(--text); }
.faq__search input::placeholder { color: var(--muted); }
.faq__help { margin-top: 20px; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 4px; justify-items: start; }
.faq__help b { font-size: .9375rem; font-weight: 500; }
.faq__help span { font-size: .875rem; color: var(--text-2); margin-bottom: 12px; }
.faq__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fcat { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--text-2); min-block-size: 36px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.fcat:hover { color: var(--text); background: var(--raised); }
.fcat em { font-style: normal; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcat.is-on { background: var(--raised); color: var(--text); border-color: var(--text-2); }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-fast) var(--ease); }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: var(--line-2); }
.faq details.is-hidden { display: none; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 500; font-size: 1rem; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; flex: none; inline-size: 16px; block-size: 16px; background-color: var(--muted); rotate: -90deg;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain; }
.faq summary:dir(rtl)::before { rotate: 90deg; }
.faq details[open] > summary::before { rotate: 0deg; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
.faq__a p { margin: 0; padding: 0 20px 20px 48px; color: var(--text-2); font-size: .9375rem; line-height: 1.65; }
.faq__a b { color: var(--text); font-weight: 500; }
.faq__a a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.faq mark.hit { background: var(--mark-bg); color: var(--mark-fg); }
.faq__empty { color: var(--text-2); padding: 24px; text-align: center; border-radius: 12px; border: 1px dashed var(--line-2); }
.faq__empty a { color: var(--accent-ink); }

/* ---------- Abschluss ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 8px; }
.cta .sub { font-size: 1rem; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { margin-top: 128px; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 64px 32px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--text-2); font-size: .875rem; max-width: 320px; margin: 16px 0 12px; }
.footer__status { font-size: .8125rem; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; }
.footer__col h5 { margin: 0 0 4px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.footer__col a { color: var(--text-2); width: fit-content; transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__h5-gap { margin-top: 16px !important; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
.footer__bottom-links { display: flex; align-items: center; gap: 20px; }
.footer__bottom-links a:hover { color: var(--text); }
.totop { min-inline-size: 32px; min-block-size: 32px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.totop .i { transform: rotate(-90deg); }
.totop:hover { color: var(--text); background: var(--raised); }

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 32px 0; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); letter-spacing: -.02em; margin: 16px 0 8px; }
.legal .lead { color: var(--text-2); margin: 0 0 32px; }
.legal__card { padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.legal h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 32px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.legal a { color: var(--accent-ink); }
.legal .ph { background: var(--warn-bg); color: var(--warn-fg); border: 1px dashed var(--warn-bd); border-radius: 4px; padding: 0 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--text-2); }
.back .i { transform: rotate(180deg); }
.back:hover { color: var(--text); }

/* ---------- Zugänglichkeit ---------- */
:where(a:any-link, button, summary, [tabindex], input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.faq__search input:focus-visible { outline: none; }
.visually-hidden:not(:focus-within, :active) { clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 500; }
#content:focus { outline: none; }
@container style(--color-scheme: dark) { .if-light { display: none !important; } }
@container not style(--color-scheme: dark) { .if-dark { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid, .formats { grid-template-columns: repeat(2, 1fr); }
  .panel, .split, .privacy, .faqwrap, .skill { grid-template-columns: 1fr; gap: 32px; }
  .faq__side { position: static; }
  .privacy, .skill { padding: 32px; }
  .slash { right: 8px; }
  .nav__cta .btn--ghost { display: none; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) {
  .nav__inner { grid-template-columns: 1fr auto auto; gap: 8px; padding-inline: 20px; }
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 12px; right: 12px; background: var(--card); padding: 8px; gap: 2px; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: var(--shadow-float); }
  .nav.is-open .nav__links a { padding: 12px; font-size: .9375rem; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .hero { padding: 48px 20px 0; }
  .section { padding: 96px 20px 0; }
  .win__body { grid-template-columns: 1fr; height: 504px; }
  .side, .win__search { display: none; }
  .view { padding: 20px; }
  .tiles, .subj__grid { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 24px 1fr 64px; }
  .tr span:nth-child(3) { display: none; }
  .panel { padding: 24px; }
  .grid, .privacy__list, .formats { grid-template-columns: 1fr; }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .pdf { grid-template-columns: 1fr; }
  .pdf__arrow { transform: rotate(90deg); justify-self: center; }
  .slash { display: none; }
  .dl { padding: 48px 20px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta, .skill, .privacy { padding: 24px; }
  .legal { padding-inline: 20px; }
  .legal__card { padding: 24px 20px; }
}
@media (pointer: coarse) { .nav__links a, .footer__col a, .footer__bottom-links a { padding-block: 8px; } }

/* ---------- Bewegung: eine Kurve, ein Einstieg ---------- */
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: introIn 480ms var(--ease) both; animation-delay: var(--d, 0ms); }
  @keyframes introIn { from { opacity: 0; translate: 0 8px; } }
  .panel:not([hidden]) { animation: panelIn 360ms var(--ease) both; }
  @keyframes panelIn { from { opacity: 0; translate: 0 8px; } }
  .panel:not([hidden]) .week__days b { animation: barGrow 600ms var(--ease) both; animation-delay: calc(120ms + var(--k, 0) * 50ms); }
  @keyframes barGrow { from { scale: 1 0; } }
  .faq details::details-content { transition: block-size 300ms var(--ease), content-visibility 300ms var(--ease) allow-discrete; }
  .faq summary::before { transition: rotate var(--t-fast) var(--ease); }
  /* KI schreibt die Karten einmal, sobald der Abschnitt sichtbar ist */
  .gen--armed .gl--new, .gen--armed .gen__badge { opacity: 0; }
  .gen--armed.is-run .gl--new, .gen--armed.is-run .gen__badge { opacity: 1; transition: opacity 300ms var(--ease); transition-delay: calc(400ms + var(--n, 7) * 160ms); }
  @view-transition { navigation: auto; }
}

/* Klausurmodus: Phasen bis zur Klausur */
.exam { padding: 24px; }
.exam__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; font-size: .9375rem; }
.exam__head b { font-weight: 500; }
.exam__head .muted { font-size: .8125rem; }
.exam__track { display: flex; gap: 4px; }
.exam__track > div { flex: 0 0 calc(var(--w) - 3px); min-width: 0; display: grid; gap: 4px; font-size: .75rem; color: var(--muted); }
.exam__track i { display: block; height: 8px; border-radius: 4px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.exam__track i.is-done { background: var(--text-2); box-shadow: none; }
.exam__track i.is-now { background: var(--accent); box-shadow: none; }
.exam__track b { font-weight: 500; font-size: .8125rem; color: var(--text); }
.exam__after { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; }

/* ---------- Blog ---------- */
/* Übersicht und Artikel nutzen dieselbe Breite wie Navigation und Footer */
.blog, .article { max-width: var(--max); margin: 0 auto; padding: 64px 32px 0; }
.blog__head { max-width: 640px; margin: 0 0 48px; }
.blog__head h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.post-meta { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Artikelkarten mit Titelbild; das Bild ist aus Elementen der Website gebaut (Kurve, Klausurplan) */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-grid--single { grid-template-columns: minmax(0, 1fr); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease); }
.post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-float); }
.post-card__cover { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 28px 40px; border-bottom: 1px solid var(--line);
  background-color: var(--side); background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px); background-size: 20px 20px; background-position: center; }
.post-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 28px 28px; }
.post-card :is(h2, h3) { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; }
.post-card p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.post-card__more { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 8px; font-size: .875rem; font-weight: 500; color: var(--accent-ink); }
.post-card__more .i { transition: translate var(--t-fast) var(--ease); }
.post-card:hover .post-card__more .i { translate: 3px 0; }
.post-card--wide { flex-direction: row; }
.post-card--wide .post-card__cover { flex: 0 0 48%; aspect-ratio: auto; min-height: 240px; padding: 24px; border-bottom: 0; border-right: 1px solid var(--line); }
.post-card--wide .post-card__body { justify-content: center; padding: 28px 32px; }
.post-card--wide .post-card__more { margin-top: 4px; }
/* Das SVG wird in den Kasten eingepasst, damit es die Höhe nicht aufdrückt (alle Titelbilder gleich hoch) */
.cover-chart { position: absolute; inset: 28px 40px; width: calc(100% - 80px); height: calc(100% - 56px); overflow: visible; }
.cover-chart .chart-line { stroke-width: 2.5; }
.cover-chart .chart-dot { fill: var(--side); }
.cover-chart__band { fill: var(--mark-bg); opacity: .7; }
.cover-exam { width: 100%; max-width: 400px; padding: 18px 20px 20px; box-shadow: var(--shadow-float); }
.cover-exam .exam__head { margin-bottom: 16px; font-size: .875rem; }
.cover-exam .exam__track b { font-size: .75rem; white-space: nowrap; }
.cover-exam .exam__track > div { font-size: .6875rem; }

/* Artikel: Lesespalte (fast) mittig, rechts ein mitlaufendes Inhaltsverzeichnis.
   Die linke Spalte ist etwas schmaler als die rechte, damit die Einträge nicht umbrechen; die Spalte rückt dadurch nur ~40 px aus der Mitte. */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) 200px; column-gap: 48px; }
.article > * { grid-column: 2; }
.article > .back { grid-row: 1; justify-self: start; }
.article > article { grid-row: 2; }
.article > .related { grid-row: 3; }
.article > .toc { grid-column: 3; grid-row: 2; align-self: start; position: sticky; top: 96px; margin-top: 32px; }
.toc__title { margin: 0 0 12px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; font-size: .8125rem; line-height: 1.4; color: var(--text-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); border-left-color: var(--text); }
.article h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin: 24px 0 16px; }
.article > article > .post-meta { margin: 0 0 40px; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.prose > p:first-child { font-size: 1.1875rem; line-height: 1.65; color: var(--text); margin-bottom: 24px; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; color: var(--text); margin: 56px 0 12px; }
.prose h3 { font-size: 1.125rem; color: var(--text); margin: 32px 0 8px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 20px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--mark-line); }
.prose figure { margin: 32px 0 36px; padding: 24px 24px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.prose figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
/* Quellen: leise Fußnote statt einer weiteren großen Zwischenüberschrift */
.prose h2:has(+ .sources) { margin: 56px 0 12px; padding-top: 32px; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.prose .sources { padding-left: 16px; font-size: .875rem; line-height: 1.6; }
.prose .sources li { margin-bottom: 6px; }

/* Diagramm: Beschriftung in der Textschrift, Legende als HTML (bleibt auf dem Handy lesbar) */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-line--with { stroke: var(--accent); }
.chart-line--without { stroke: var(--muted); }
.chart-dot { fill: var(--card); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-axis { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-target { stroke: var(--mark-line); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-label { font-size: 13px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: .8125rem; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key { inline-size: 16px; block-size: 0; border-top: 2px solid var(--muted); }
.chart-key--with { border-color: var(--accent); }
.chart-key--target { border-top: 1px dashed var(--mark-line); }

.callout { display: flex; align-items: center; gap: 20px; margin: 56px 0 0; padding: 20px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.callout img { flex: none; }
.callout p { flex: 1; margin: 0; font-size: .9375rem; color: var(--text-2); line-height: 1.55; }
.callout b { color: var(--text); font-weight: 600; }
.callout .btn { flex: none; }

.related { margin-top: 72px; }
.related > h2 { font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin: 0 0 16px; }

/* 404-Seite */
.notfound { max-width: 640px; margin: 0 auto; padding: 120px 32px 0; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 40px; }
.notfound__en { font-size: .875rem; color: var(--muted); }
.notfound__en a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Ohne Platz für das Inhaltsverzeichnis: eine Spalte, wie die Rechtsseiten */
@media (max-width: 1100px) {
  .article { display: block; max-width: 760px; }
  .article > .toc { display: none; }
}
/* Tablet: zwei Karten nebeneinander wären zu eng, deshalb untereinander im Querformat (Bild links, Text rechts) */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-card { flex-direction: row; }
  .post-card .post-card__cover { flex: 0 0 48%; aspect-ratio: auto; min-height: 240px; padding: 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card .post-card__body { justify-content: center; padding: 28px 32px; }
  .post-card .post-card__more { margin-top: 4px; }
}

/* Unterseiten zeigen nur die untere Footer-Zeile: ohne zweite Haarlinie und leeres Band */
.footer:has(.footer__bottom:only-child) { margin-top: 96px; }
.footer__inner:has(> .footer__bottom:only-child) { padding-block: 24px 32px; }
.footer__bottom:only-child { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 760px) {
  .blog, .article { padding: 40px 20px 0; }
  .blog__head { margin-bottom: 32px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-card, .post-card--wide { flex-direction: column; }
  .post-card .post-card__cover { flex: none; aspect-ratio: 2 / 1; min-height: 0; padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-card .post-card__cover:has(.cover-exam) { aspect-ratio: auto; padding: 28px 16px; }
  .cover-chart { inset: 16px 20px; width: calc(100% - 40px); height: calc(100% - 32px); }
  .post-card .post-card__body { padding: 20px 20px 24px; }
  .post-card .post-card__more { margin-top: auto; }
  .post-card :is(h2, h3) { font-size: 1.25rem; }
  .prose { font-size: 1rem; }
  .prose > p:first-child { font-size: 1.125rem; }
  .prose h2 { font-size: 1.3125rem; margin-top: 48px; }
  .prose figure { margin-inline: -4px; padding: 16px 12px 16px 8px; }
  .prose figcaption, .chart-legend { padding-left: 4px; }
  /* Das SVG wird auf dem Handy auf etwa die Hälfte verkleinert, die Beschriftung wächst mit */
  .chart-label { font-size: 22px; }
  .chart-label--minor { display: none; }
  .callout { flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 20px; }
  .callout p { flex-basis: calc(100% - 52px); }
  .callout .btn { margin-left: 52px; }
  .footer__inner:has(> .footer__bottom:only-child) { padding-inline: 20px; }
}

/* Panels: Spalten dürfen schmaler werden als ihr längstes Wort, lange Wörter werden getrennt (sonst schneidet das Handy den Text ab) */
.panel > * { min-width: 0; }
.panel { overflow-wrap: anywhere; hyphens: auto; }
.panel code, .panel kbd { overflow-wrap: normal; hyphens: manual; }

/* Der Schein hinter der Vorschau ragt seitlich über den Bildschirmrand; seitlich abschneiden (am Rand ist er schon transparent),
   damit Handys (v. a. Safari) die Seite nicht seitlich verschieben lassen. clip statt hidden: kein eigener Scrollbereich. */
.hero { overflow-x: clip; }

/* Beispielkarte auf dem Handy: Label über dem Text statt daneben, damit lange Wörter Platz haben */
@media (max-width: 760px) {
  .doc { padding: 20px 16px; }
  .fc__row { flex-wrap: wrap; row-gap: 4px; }
  .fc__row .dot { order: -2; }
  .fc__row b { flex: 1 0 calc(100% - 20px); order: -1; }
  .fc__row--a { padding-left: 16px; }
}

/* Release-Schalter (RELEASED in tools/build_blog.py): ausgeblendete Variante wirklich ausblenden,
   auch wenn .btn oder .dlopt selbst ein display setzen */
[data-release][hidden] { display: none !important; }
