/* Zirkelschlag — website. Design system "Ton" (v3).
   Colour values are copied from the app: Zirkelschlag/Design/Theme.swift (light and dark).
   Clay shadows from the Ton tokens (design system artifact, "shadow"). Geist + Geist Mono, self-hosted. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ton: #E9E3DA;
  --flaeche: #F5F0E8;
  --rand: #D9D0C3;
  --text: #26221E;
  --text-blass: #6B625A;
  --terra: #B9582F;
  --terra-hell: #F0D9CC;
  --terra-text: #934222;
  --auf-terra: #FFFFFF;
  --moos: #3F5B45;
  --moos-hell: #D9E2D6;
  --auf-moos: #FFFFFF;
  --ocker: #7A5A1E;
  --ocker-hell: #EEE1C4;
  --store: #000000;
  --auf-store: #FFFFFF;

  --clay-karte: 0 18px 32px -16px rgba(92,64,44,0.30), 0 2px 4px rgba(92,64,44,0.06), inset 0 2px 1px rgba(255,255,255,0.9), inset 0 -6px 14px rgba(140,100,70,0.10);
  --clay-mulde: inset 0 3px 6px rgba(92,64,44,0.16), inset 0 -1px 1px rgba(255,255,255,0.8);
  --clay-terra: 0 14px 24px -12px rgba(185,88,47,0.65), inset 0 2px 1px rgba(255,255,255,0.35), inset 0 -4px 8px rgba(80,30,10,0.25);
  --clay-moos: 0 18px 30px -16px rgba(63,91,69,0.70), inset 0 2px 1px rgba(255,255,255,0.25), inset 0 -6px 12px rgba(0,0,0,0.20);
  --clay-gedrueckt: inset 0 3px 8px rgba(80,30,10,0.35);

  --r-mulde: 16px;
  --r-innen: 22px;
  --r-karte: 28px;
  --r-pille: 999px;

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 40px;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --breite: 1120px;
  --lese: 680px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ton: #1A1714; --flaeche: #26221E; --rand: #3B352F; --text: #F2ECE3; --text-blass: #B8AEA2;
    --terra: #E08A63; --terra-hell: #40291E; --terra-text: #F0B497; --auf-terra: #1A1714;
    --moos: #8DB596; --moos-hell: #24322A; --auf-moos: #14201A; --ocker: #D8B26A; --ocker-hell: #3A311F;
    --store: #F2ECE3; --auf-store: #1A1714;
    --clay-karte: 0 18px 32px -16px rgba(0,0,0,0.60), 0 2px 4px rgba(0,0,0,0.30), inset 0 1px 1px rgba(255,255,255,0.08), inset 0 -6px 14px rgba(0,0,0,0.25);
    --clay-mulde: inset 0 3px 6px rgba(0,0,0,0.45), inset 0 -1px 1px rgba(255,255,255,0.05);
    --clay-terra: 0 14px 24px -12px rgba(0,0,0,0.70), inset 0 2px 1px rgba(255,255,255,0.25), inset 0 -4px 8px rgba(80,30,10,0.30);
    --clay-moos: 0 18px 30px -16px rgba(0,0,0,0.70), inset 0 2px 1px rgba(255,255,255,0.20), inset 0 -6px 12px rgba(0,0,0,0.25);
    --clay-gedrueckt: inset 0 3px 8px rgba(0,0,0,0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ton: #1A1714; --flaeche: #26221E; --rand: #3B352F; --text: #F2ECE3; --text-blass: #B8AEA2;
  --terra: #E08A63; --terra-hell: #40291E; --terra-text: #F0B497; --auf-terra: #1A1714;
  --moos: #8DB596; --moos-hell: #24322A; --auf-moos: #14201A; --ocker: #D8B26A; --ocker-hell: #3A311F;
  --store: #F2ECE3; --auf-store: #1A1714;
  --clay-karte: 0 18px 32px -16px rgba(0,0,0,0.60), 0 2px 4px rgba(0,0,0,0.30), inset 0 1px 1px rgba(255,255,255,0.08), inset 0 -6px 14px rgba(0,0,0,0.25);
  --clay-mulde: inset 0 3px 6px rgba(0,0,0,0.45), inset 0 -1px 1px rgba(255,255,255,0.05);
  --clay-terra: 0 14px 24px -12px rgba(0,0,0,0.70), inset 0 2px 1px rgba(255,255,255,0.25), inset 0 -4px 8px rgba(80,30,10,0.30);
  --clay-moos: 0 18px 30px -16px rgba(0,0,0,0.70), inset 0 2px 1px rgba(255,255,255,0.20), inset 0 -6px 12px rgba(0,0,0,0.25);
  --clay-gedrueckt: inset 0 3px 8px rgba(0,0,0,0.55);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ton); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--terra-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--terra-hell); color: var(--text); }
h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--flaeche); padding: 8px 14px; border-radius: var(--r-pille); }
.skip:focus { left: 16px; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--s-5); }
.caps { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-blass); }
.blass { color: var(--text-blass); }
.mono { font-family: var(--font-mono); }

.karte { background: var(--flaeche); border-radius: var(--r-karte); box-shadow: var(--clay-karte); }
.mulde { background: var(--ton); border-radius: var(--r-mulde); box-shadow: var(--clay-mulde); }

/* ---------- header ---------- */

.kopf { padding: var(--s-4) 0 0; }
.kopf .wrap { display: flex; align-items: center; gap: var(--s-4); }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.marke img { width: 36px; height: 36px; }
.marke .hell { display: none; }
:root[data-theme="dark"] .marke .tag { display: none; }
:root[data-theme="dark"] .marke .hell { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marke .tag { display: none; }
  :root:not([data-theme="light"]) .marke .hell { display: inline; }
}
.nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: var(--r-pille); }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pille);
  color: var(--text-blass); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--flaeche); color: var(--text); box-shadow: var(--clay-karte); }
.thema-knopf {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r-pille); cursor: pointer;
  background: var(--flaeche); color: var(--text); box-shadow: var(--clay-karte);
  display: inline-flex; align-items: center; justify-content: center;
}
.thema-knopf:active { box-shadow: var(--clay-gedrueckt); transform: translateY(1px); }
.thema-knopf .mond { display: none; }
:root[data-theme="dark"] .thema-knopf .sonne { display: none; }
:root[data-theme="dark"] .thema-knopf .mond { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thema-knopf .sonne { display: none; }
  :root:not([data-theme="light"]) .thema-knopf .mond { display: inline; }
}

/* ---------- buttons ---------- */

.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: var(--r-pille); background: var(--store); color: var(--auf-store);
  font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.005em;
  box-shadow: 0 14px 24px -14px rgba(0,0,0,0.55);
}
.store:hover { text-decoration: none; filter: brightness(1.12); }
.store svg { width: 18px; height: 18px; }
.store.klein { min-height: 44px; padding: 0 18px; font-size: 15px; }
.haupt {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border: 0; border-radius: var(--r-pille); background: var(--terra); color: var(--auf-terra);
  font: 600 17px/1.2 var(--font-sans); text-decoration: none; box-shadow: var(--clay-terra); cursor: pointer;
}
.haupt:active { box-shadow: var(--clay-gedrueckt); transform: translateY(2px); }
.weich {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-pille); background: var(--flaeche); color: var(--text);
  font: 500 15px/1.2 var(--font-sans); text-decoration: none; box-shadow: var(--clay-karte); cursor: pointer;
}
.weich:hover { color: var(--terra-text); }
.weich:active { box-shadow: var(--clay-gedrueckt); transform: translateY(1px); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: var(--r-pille);
  background: var(--flaeche); color: var(--text-blass); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  box-shadow: var(--clay-karte);
}
.chip.methode { background: var(--terra-hell); color: var(--terra-text); box-shadow: none; }
.chip.entwurf { background: var(--ocker-hell); color: var(--ocker); box-shadow: none; }

/* ---------- hero (Start) ---------- */

.held { padding: 72px 0 40px; }
.held .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.held h1 { font-size: 72px; line-height: 0.98; letter-spacing: -0.035em; }
.held .unter { margin-top: var(--s-4); font-size: 20px; line-height: 1.45; color: var(--text-blass); max-width: 30ch; }
.held .aktion { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.held .geraete { font-family: var(--font-mono); font-size: 13px; color: var(--text-blass); letter-spacing: 0.04em; }

.figur { padding: 26px; }
.figur svg.graph { display: block; width: 100%; height: auto; }
.graph .achse { stroke: var(--text-blass); }
.graph .gitter { stroke: var(--rand); }
.graph .kurve { stroke: var(--terra); }
.graph .punkt { fill: var(--flaeche); stroke: var(--text); }
.graph .lab { fill: var(--text); font: 600 14px var(--font-sans); }
.graph .lab-m { fill: var(--text-blass); font: 400 12px var(--font-mono); }
.graph .tangente { stroke: var(--moos); }

/* the step rail, as in the app */
.leiste { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.leiste::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--rand); }
.leiste .schritt { position: relative; display: flex; gap: 14px; align-items: center; min-height: 32px; }
.leiste .knoten { position: relative; z-index: 1; width: 32px; height: 32px; flex: none; border-radius: var(--r-pille); display: flex; align-items: center; justify-content: center; }
.leiste .knoten.ok { background: var(--moos); color: var(--auf-moos); }
.leiste .knoten.dran { background: var(--terra); box-shadow: 0 0 0 6px var(--terra-hell); }
.leiste .knoten.kommt { background: var(--ton); box-shadow: var(--clay-mulde); }
.leiste .zeile { display: flex; flex-direction: column; gap: 1px; font-size: 15px; line-height: 1.35; }
.leiste .offen { flex: 1; padding: 14px 16px; border-radius: var(--r-innen); background: var(--flaeche); box-shadow: var(--clay-karte); display: flex; flex-direction: column; gap: 10px; }
.leiste .offen .caps { color: var(--terra-text); }
.leiste .gleich { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 15px; }
.leiste .slot { min-width: 64px; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 12px; background: var(--ton); box-shadow: var(--clay-mulde), 0 0 0 2px var(--terra); }

/* ---------- feature rows (Start, Eltern) ---------- */

.reihen { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 96px; }
.reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.reihe:nth-child(even) .text { order: 2; }
.reihe .text { max-width: 440px; justify-self: center; }
.reihe h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; margin-top: 12px; }
.reihe p { margin-top: 14px; font-size: 18px; color: var(--text-blass); }
.reihe .text a.weiter { display: inline-block; margin-top: 18px; font-weight: 500; }
.bild { justify-self: center; padding: 14px; border-radius: 44px; width: min(100%, 320px); }
.bild img { display: block; width: 100%; height: auto; border-radius: 32px; }
.bild .dunkel { display: none; }
:root[data-theme="dark"] .bild .dunkel { display: block; }
:root[data-theme="dark"] .bild .hell { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bild .dunkel { display: block; }
  :root:not([data-theme="light"]) .bild .hell { display: none; }
}

.band { margin: 40px 0 0; padding: 56px 0; }
.band .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kachel { display: flex; flex-direction: column; gap: 8px; padding: 24px; color: var(--text); text-decoration: none; min-height: 160px; }
.kachel h3 { font-size: 22px; letter-spacing: -0.01em; }
.kachel p { color: var(--text-blass); font-size: 16px; }
.kachel .pfeil { margin-top: auto; color: var(--terra-text); font-weight: 500; font-size: 15px; }
a.kachel:hover h3 { color: var(--terra-text); }
.leise { text-align: center; padding-top: 32px; padding-bottom: 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--text-blass); }

/* ---------- Eltern ---------- */
.eltern-reihe { margin-top: 56px; }
.eltern-reihe .prosa { margin-top: 0; }
.eltern-reihe .prosa h2:first-child { margin-top: 0; }
.eltern-aktion { margin-top: 48px; }

/* ---------- page heads ---------- */

.seite { padding-top: 56px; padding-bottom: 40px; }
.seitenkopf { max-width: var(--lese); }
.seitenkopf h1 { font-size: 52px; line-height: 1.02; letter-spacing: -0.03em; margin-top: 12px; }
.seitenkopf .unter { margin-top: 16px; font-size: 19px; color: var(--text-blass); max-width: 52ch; }
.krumen { font-size: 14px; color: var(--text-blass); }
.krumen a { color: var(--text-blass); text-decoration: none; }
.krumen a:hover { color: var(--terra-text); text-decoration: underline; }

/* ---------- prose (articles, Eltern, legal) ---------- */

.prosa { max-width: var(--lese); margin-top: 40px; }
.prosa > * + * { margin-top: 18px; }
.prosa h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; margin-top: 48px; }
.prosa h3 { font-size: 19px; line-height: 1.3; margin-top: 28px; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: 6px; }
.prosa strong { font-weight: 600; }
.prosa table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prosa th, .prosa td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rand); }
.prosa th { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-blass); }
.prosa .antwort { font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; }
.prosa .m, .m { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prosa .formel { font-variant-numeric: tabular-nums; padding: 14px 18px; border-radius: var(--r-mulde); background: var(--ton); box-shadow: var(--clay-mulde); overflow-x: auto; white-space: nowrap; }
.prosa sup, .prosa sub { line-height: 0; }

/* vectors: an arrow drawn over the name (Geist has no combining arrow) */
.vec { position: relative; display: inline-block; padding-top: 0.32em; line-height: 1; }
.vec::before {
  content: ""; position: absolute; left: 0.04em; right: -0.08em; top: 0; height: 0.36em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4.6h35v-1.2H0z'/%3E%3Cpath d='M33 0l7 4-7 4z'/%3E%3C/svg%3E") no-repeat 100% 50% / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4.6h35v-1.2H0z'/%3E%3Cpath d='M33 0l7 4-7 4z'/%3E%3C/svg%3E") no-repeat 100% 50% / 100% 100%;
}

/* steps = the app's step rail */
.prosa ol.schritte { list-style: none; padding: 0; counter-reset: s; position: relative; margin-top: 24px; }
.prosa ol.schritte::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: var(--rand); }
.prosa ol.schritte > li { counter-increment: s; position: relative; padding-left: 52px; margin-top: 22px; }
.prosa ol.schritte > li:first-child { margin-top: 0; }
.prosa ol.schritte > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: var(--r-pille);
  display: flex; align-items: center; justify-content: center; background: var(--terra-hell); color: var(--terra-text);
  font: 500 14px/1 var(--font-mono); box-shadow: 0 0 0 5px var(--ton);
}
.prosa ol.schritte > li > h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.prosa ol.schritte > li > p, .prosa ol.schritte > li > ul, .prosa ol.schritte > li > .formel { margin-top: 6px; }
.prosa ol.schritte > li > p { color: var(--text); }

.prosa section.fehler, .prosa section.beispiel, .prosa aside.trick { padding: 26px 28px; border-radius: var(--r-karte); background: var(--flaeche); box-shadow: var(--clay-karte); margin-top: 40px; }
.prosa section > * + *, .prosa aside > * + * { margin-top: 14px; }
.prosa section.fehler h2, .prosa section.beispiel h2 { margin-top: 0; font-size: 22px; }
.prosa section .formel { background: var(--ton); }
.prosa aside.trick { background: var(--terra-hell); box-shadow: none; }
.prosa aside.trick .trick-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra-text); }
.prosa aside.trick p { color: var(--text); }
.prosa .kasten { position: relative; padding: 16px 18px; padding-right: 92px; border-radius: var(--r-mulde); background: var(--ton); box-shadow: var(--clay-mulde); font-size: 15.5px; line-height: 1.55; }
.prosa .kasten .kopieren {
  position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pille);
  background: var(--flaeche); color: var(--text-blass); font: 400 12px var(--font-mono); letter-spacing: 0.04em; box-shadow: var(--clay-karte); cursor: pointer;
}
.prosa .kasten .kopieren:hover { color: var(--terra-text); }
.prosa p.app {
  position: relative; margin-top: 56px; padding: 16px 20px 16px 60px; border-radius: var(--r-mulde); background: var(--ton); box-shadow: var(--clay-mulde);
  font-size: 15px; color: var(--text-blass);
}
.prosa p.app::before { content: ""; position: absolute; left: 18px; top: 50%; margin-top: -14px; width: 28px; height: 28px; background: url("/assets/img/zirkelschlag-ton.svg") center / contain no-repeat; }
:root[data-theme="dark"] .prosa p.app::before { background-image: url("/assets/img/zirkelschlag-ton-hell.svg"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prosa p.app::before { background-image: url("/assets/img/zirkelschlag-ton-hell.svg"); } }

.meta-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.kurz { margin-top: 48px; max-width: var(--lese); }
.kurz h2 { font-size: 22px; }
.kurz details { padding: 14px 0; border-bottom: 1px solid var(--rand); }
.kurz summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.kurz summary::-webkit-details-marker { display: none; }
.kurz summary::after { content: "+"; font-family: var(--font-mono); color: var(--text-blass); }
.kurz details[open] summary::after { content: "−"; }
.kurz details p { margin-top: 8px; color: var(--text-blass); }
.quellen { margin-top: 40px; max-width: var(--lese); font-size: 14px; color: var(--text-blass); }
.quellen h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.quellen ul { padding-left: 1.1em; margin: 10px 0 0; }
.quellen li + li { margin-top: 6px; }
.verwandt { margin-top: 56px; }
.verwandt h2 { font-size: 22px; margin-bottom: 16px; }

/* ---------- lists of articles ---------- */

.rubrik { margin-top: 56px; }
.rubrik > h2 { font-size: 26px; letter-spacing: -0.015em; }
.rubrik > p { color: var(--text-blass); margin-top: 6px; }
.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.liste a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r-innen); background: var(--flaeche); box-shadow: var(--clay-karte); color: var(--text); text-decoration: none; }
.liste a:hover .t { color: var(--terra-text); }
.liste .t { font-weight: 600; font-size: 17px; line-height: 1.3; }
.liste .d { font-size: 14.5px; color: var(--text-blass); line-height: 1.45; }
.liste .nr { font-family: var(--font-mono); font-size: 12px; color: var(--text-blass); letter-spacing: 0.04em; }
.sprung { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sprung a { text-decoration: none; }

/* ---------- worksheet topic pages ---------- */

.themen-az { columns: 2 300px; column-gap: 40px; margin-top: 24px; }
.themen-az h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--terra-text); margin: 18px 0 6px; break-after: avoid; }
.themen-az ul { list-style: none; margin: 0; padding: 0; }
.themen-az li { padding: 3px 0; break-inside: avoid; font-size: 15.5px; }
.themen-az li a { color: var(--text); text-decoration: none; }
.themen-az li a:hover { color: var(--terra-text); text-decoration: underline; }
.themen-az li span { color: var(--text-blass); font-size: 13px; }

/* ---------- footer ---------- */

.fuss { margin-top: 96px; padding: 40px 0 48px; border-top: 1px solid var(--rand); font-size: 14px; color: var(--text-blass); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fuss a { color: var(--text-blass); text-decoration: none; }
.fuss a:hover { color: var(--terra-text); text-decoration: underline; }
.fuss .klein { flex-basis: 100%; font-size: 13px; max-width: 70ch; }

/* ---------- phone: one column, smaller type, nothing heavy ---------- */

@media (max-width: 900px) {
  .held .wrap, .reihe { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .reihe:nth-child(even) .text { order: 0; }
  .reihe .text { justify-self: start; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .kopf .wrap { flex-wrap: wrap; gap: 12px; }
  .kopf .thema-knopf { margin-left: auto; }
  .nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0 14px; font-size: 14.5px; }
  .held { padding: 40px 0 24px; }
  .held h1 { font-size: 46px; }
  .held .unter { font-size: 18px; }
  .figur { padding: 18px; }
  .reihen { gap: 64px; }
  .reihe h2 { font-size: 28px; }
  .reihe p { font-size: 17px; }
  .bild { width: min(100%, 280px); border-radius: 38px; padding: 10px; }
  .seite { padding-top: 32px; padding-bottom: 24px; }
  .seitenkopf h1 { font-size: 36px; }
  .seitenkopf .unter { font-size: 17.5px; }
  .prosa { margin-top: 28px; }
  .prosa .antwort { font-size: 19px; }
  .prosa h2 { font-size: 23px; margin-top: 40px; }
  .prosa section.fehler, .prosa section.beispiel, .prosa aside.trick { padding: 20px 18px; border-radius: var(--r-innen); }
  .prosa .kasten { padding-right: 18px; padding-top: 48px; }
  .liste { grid-template-columns: minmax(0, 1fr); }
  .karte, .liste a, .weich, .chip { box-shadow: 0 8px 16px -10px rgba(92,64,44,0.35), inset 0 1px 0 rgba(255,255,255,0.6); }
  :root[data-theme="dark"] .karte, :root[data-theme="dark"] .liste a { box-shadow: 0 8px 16px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06); }
  .fuss { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  .kopf, .fuss, .thema-knopf, .store, .kurz, p.app { display: none !important; }
  body { background: #fff; color: #000; }
  .karte, .prosa section, .prosa aside { box-shadow: none !important; background: none !important; border: 1px solid #ccc; }
}

/* ---------- choice tiles (Arbeitsblätter finder, Ratgeber) ---------- */
.wahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.wahlen.klassen { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wahl {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 120px; padding: 20px 22px;
  border-radius: var(--r-innen); background: var(--flaeche); box-shadow: var(--clay-karte); color: var(--text); text-decoration: none;
}
.wahl:hover .wahl-t { color: var(--terra-text); }
.wahl:active { box-shadow: var(--clay-gedrueckt); transform: translateY(2px); }
.wahl-t { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.klassen .wahl-t { font-family: var(--font-mono); font-weight: 500; font-size: 40px; letter-spacing: -0.02em; }
.wahl-d { font-size: 15px; color: var(--text-blass); line-height: 1.4; }
.wahl-m { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-blass); }
.wahl.zuletzt { box-shadow: var(--clay-karte), 0 0 0 2px var(--terra); }
.wahl.fach::before { content: ""; position: absolute; top: 22px; right: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); opacity: 0.85; }
.wahl.f-mathe::before { background: var(--terra); }
.wahl.f-physik::before, .wahl.f-chemie::before { background: var(--ocker); }
.wahl.f-biologie::before { background: var(--moos); }
.wahl.f-deutsch::before, .wahl.f-englisch::before { background: var(--text-blass); }

/* ---------- Ratgeber start ---------- */
.rg-suche { display: flex; margin-top: 28px; }
.rg-suche input {
  flex: 1 1 auto; max-width: 620px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pille);
  background: var(--ton); box-shadow: var(--clay-mulde); color: var(--text); font: 400 16px var(--font-sans);
}
.rg-suche input:focus { outline: 2px solid var(--terra); outline-offset: 2px; }
#rg-treffer { margin-top: 28px; }
.saison { margin-top: 48px; }
.saison .caps { color: var(--terra-text); }
.liste.gross { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.liste.gross a { padding: 26px 26px 24px; min-height: 150px; }
.liste.gross .t { font-size: 21px; letter-spacing: -0.015em; }
.aktuell-kurz { margin-top: 48px; padding: 22px 26px; border-radius: var(--r-karte); background: var(--ton); box-shadow: var(--clay-mulde); }
.aktuell-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.aktuell-kopf a { font-size: 14px; }
.aktuell-kurz ul, .meldungen { list-style: none; margin: 10px 0 0; padding: 0; }
.aktuell-kurz li + li { border-top: 1px solid var(--rand); }
.aktuell-kurz li a, .meldungen li a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; color: var(--text); text-decoration: none; }
.aktuell-kurz li a:hover .t, .meldungen li a:hover .t { color: var(--terra-text); }
.datum { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-blass); }
.aktuell-kurz .t, .meldungen .t { font-weight: 600; }
.meldungen { margin-top: 32px; max-width: var(--lese); }
.meldungen li { border-bottom: 1px solid var(--rand); }
.meldungen li a { padding: 18px 0; }
.meldungen .t { font-size: 19px; }
.meldungen .d { color: var(--text-blass); font-size: 15px; }
.lagen { margin-top: 56px; }
.lagen h2 { font-size: 26px; letter-spacing: -0.015em; margin-bottom: 18px; }
.lagen .wahl { min-height: 128px; }
.lagen .wahl-t { font-size: 19px; }
details.mehr { margin-top: 14px; }
details.mehr > summary {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pille); cursor: pointer;
  background: var(--flaeche); box-shadow: var(--clay-karte); font-size: 14.5px; font-weight: 500; color: var(--text); list-style: none;
}
details.mehr > summary::-webkit-details-marker { display: none; }
details.mehr[open] > summary { display: none; }
details.mehr > .liste { margin-top: 16px; }
@media (max-width: 700px) {
  .wahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wahlen.klassen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wahlen.ziele { grid-template-columns: minmax(0, 1fr); }
  .wahl { min-height: 96px; padding: 16px; }
  .wahl-t { font-size: 19px; }
  .klassen .wahl-t { font-size: 32px; }
  .wahl { box-shadow: 0 8px 16px -10px rgba(92,64,44,0.35), inset 0 1px 0 rgba(255,255,255,0.6); }
  .liste.gross { grid-template-columns: minmax(0, 1fr); }
  .lagen .wahl { min-height: 104px; }
}
