/* ojola v2 - Papier, Fichtengruen, Textmarker.
   Standard seit 16.08.2026 (Vorlage: ojola-startseite-v2, Entscheidung Matthias).
   Haltung bleibt: hier hilft dir jemand. Neu ist die Anmutung: warmes Papier
   statt Creme-Gruen, kraeftige Bricolage-Ueberschriften, Zahlen in Plex Mono,
   Karten mit feiner Linie statt Schatten - und der Textmarker (Gelb) als das
   eine Signal: die Stelle, auf die es ankommt. */

/* Zwei statische Gewichte (je ~22 KB) statt der variablen Datei (77 KB):
   das CSS nutzt nur 700 und 800, die Achsen der Variablen zahlten wir
   auf jedem Seitenaufruf mit - Lighthouse-Befund vom 17.08.2026. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'PlexSans';
  src: url('/fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PlexSans';
  src: url('/fonts/plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'PlexSans';
  src: url('/fonts/plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
/* ACHTUNG: fredoka-600.woff2 ist ein Subset mit NUR den Glyphen der
   Wortmarke "ojola" (1,4 KB statt 16 KB). Fredoka darf deshalb nirgends
   sonst eingesetzt werden - fremde Zeichen fielen auf die Display-Schrift
   zurueck. */
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
/* Metrisch angepasste Ersatzschriften gegen Springen beim Font-Wechsel. */
@font-face {
  font-family: 'Bricolage-Ersatz';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 104%;
}
@font-face {
  font-family: 'PlexSans-Ersatz';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 101%;
}

:root {
  color-scheme: light only;
  --ground: #FBF6EC;        /* warmes Papier */
  --ground-2: #F4EDDF;
  --surface: #FFFFFF;
  --surface-2: #FBF9F3;

  --ink: #28231A;
  --ink-2: #4A4335;
  --ink-3: #6E6553;         /* gerechnet: >= 4,5:1 auch auf ground-2 */
  --dekor: #A89C86;

  --rule: #E5DCCB;          /* die feine Linie, die Schatten ersetzt */

  --gruen: #17594A;         /* Fichtengruen - Knoepfe, Werkzeuge */
  --gruen-tief: #0F4237;
  --gruen-hell: #1D7A4F;
  --gruen-wash: #E3EEE7;
  --gruen-rand: #C7DACD;

  --marker: #FFDD55;        /* der Textmarker */
  --marker-tief: #F2C61D;
  --marker-wash: #FFF6D6;

  --apricot: #F2C61D;       /* Achtung laeuft in v2 ueber den Marker */
  --apricot-text: #7A5A00;
  --apricot-wash: #FFF6D6;
  --rose: #B3261E;
  --rose-wash: #FBDCD8;

  --schatten: 0 1px 2px rgba(40, 35, 26, .04);
  --schatten-hoch: 0 30px 60px -28px rgba(40, 35, 26, .30), 0 2px 6px rgba(40, 35, 26, .06);

  --r: 18px;
  --r-klein: 12px;
  --r-pille: 999px;

  --f-display: 'Bricolage', 'Bricolage-Ersatz', system-ui, sans-serif;
  --f-body: 'PlexSans', 'PlexSans-Ersatz', system-ui, -apple-system, sans-serif;
  --f-mono: 'PlexMono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --f-logo: 'Fredoka', var(--f-display);

  --spalte: 66ch;
  --breite: 1180px;
  --abschnitt: clamp(56px, 9vw, 88px);
}

/* Bewusst nur eine Fassung: hell. Entscheidung Matthias, 11.08.2026,
   bestaetigt mit v2 am 16.08.2026 (color-scheme: light only). */

* { box-sizing: border-box; }

::selection { background: var(--marker); color: var(--ink); }

[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.sr-nur {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Sprunglink: erster Tab-Halt, sichtbar nur per Tastatur. */
.sprung {
  position: absolute; left: 16px; top: -52px; z-index: 30;
  background: var(--gruen); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 0 0 var(--r-klein) var(--r-klein);
}
.sprung:focus-visible { top: 0; color: #fff; outline-offset: 0; }

/* Fokus in Markerfarbe - das eine Signal der Marke. */
:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--marker-tief); outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.inner { max-width: var(--breite); margin: 0 auto; padding: 0 28px; }
main { max-width: var(--breite); margin: 0 auto; padding: 40px 28px 96px; }
main > * { max-width: var(--spalte); }
main > .tab, main > .gegen, main > .karten, main > .ampel, main > .check,
main > form, main > .warn, main > #aus { max-width: none; }
main.breit { max-width: 1300px; }
main.breit > * { max-width: none; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 236, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.kopf .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.marke {
  font-family: var(--f-logo); font-weight: 600; font-size: 27px;
  letter-spacing: -.01em; color: var(--gruen); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.marke svg { width: 34px; height: 34px; flex: none; }
.kopf nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kopf nav a {
  font-family: var(--f-body); font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-pille);
}
.kopf nav a:hover { color: var(--gruen); background: var(--ground-2); }
.kopf nav a.aktiv { background: var(--gruen); color: #fff; }
/* Der letzte Nav-Punkt ist die Aktion der Site: voller Knopf, nicht Link. */
.kopf nav a.nav-aktion {
  font-family: var(--f-display); font-weight: 700;
  background: var(--gruen); color: #fff; border: 2px solid var(--gruen);
}
.kopf nav a.nav-aktion:hover, .kopf nav a.nav-aktion.aktiv { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; }

/* Der immer sichtbare Weg zum Pruefer, wenn die Navigation hinter dem
   Menueknopf verschwindet. Auf breiten Schirmen traegt ihn die Nav selbst. */
.kopf-cta {
  display: none; font-family: var(--f-display); font-weight: 700; font-size: 15px;
  background: var(--gruen); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: var(--r-pille); white-space: nowrap;
  border: 2px solid var(--gruen);
}
.kopf-cta:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; }
.kopf-cta .kurz { display: none; }

/* Menueknopf: auf breiten Schirmen unsichtbar, unter 900px der einzige Zugang. */
.menuknopf {
  display: none; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 15.5px;
  color: var(--gruen); background: var(--surface);
  border: 2px solid var(--rule); border-radius: var(--r-pille);
  padding: 10px 18px; cursor: pointer;
  min-height: 44px;
}
.menuknopf:hover { border-color: var(--gruen); }
.balken, .balken::before, .balken::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .18s ease, opacity .18s ease;
}
.balken { position: relative; }
.balken::before, .balken::after { content: ''; position: absolute; left: 0; }
.balken::before { top: -6px; }
.balken::after { top: 6px; }
.menuknopf[aria-expanded='true'] .balken { background: transparent; }
.menuknopf[aria-expanded='true'] .balken::before { transform: translateY(6px) rotate(45deg); }
.menuknopf[aria-expanded='true'] .balken::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Typografie ---------- */

h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.015em;
  margin: 0 0 20px; text-wrap: balance; max-width: 22ch;
}
h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.015em;
  margin: 64px 0 16px; text-wrap: balance; max-width: 28ch;
}
h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 21px;
  line-height: 1.3; letter-spacing: -.01em; margin: 30px 0 8px;
}
h2 + h3, h1 + h3 { margin-top: 20px; }
/* Deutsche Komposita ("Gebuehrenverzeichnis") sind in Bricolage 800 breiter
   als eine Telefonspalte - ohne Trennung schiebt EIN Wort die ganze Seite
   seitlich auf. Auf schmalen Schirmen trennt der Browser (lang="de"),
   break-word bleibt als Netz fuer Worte, die er nicht kennt. */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 700px) {
  h1, h2 { hyphens: auto; }
}
p { margin: 0 0 15px; }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-2); }
ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 10px; }
li::marker { color: var(--gruen); }
strong { font-weight: 600; }
a { color: var(--gruen); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gruen-tief); text-decoration-color: var(--marker-tief); text-decoration-thickness: 3px; }
code, .mono { font-family: var(--f-mono); font-size: .88em; font-variant-numeric: tabular-nums; }

/* Der Textmarker im Fliesstext - sparsam einsetzen. */
.mark { background: linear-gradient(transparent 55%, var(--marker) 55%); padding: 0 .1em; }

/* Hinweise, die nur auf schmalen Schirmen etwas erklaeren. Die Basisregel
   MUSS vor den Media-Queries stehen - stand sie dahinter, gewann sie die
   Kaskade gegen das mobile display:block, und der Hinweis war nirgends
   sichtbar (so geschehen beim v2-Umbau, von der Nachpruefung gefangen). */
.nur-mobil { display: none; }

/* Kleines Mono-Dachzeilen-Label ("eyebrow"). */
.eyebrow {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Beleg: das woertliche Zitat traegt jetzt den Marker ---------- */

.beleg {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  background: var(--marker-wash);
  border-left: 4px solid var(--marker-tief);
  border-radius: 0 var(--r-klein) var(--r-klein) 0;
  padding: 12px 16px; margin: 0 0 18px;
}
.beleg .par {
  font-family: var(--f-mono); font-weight: 500; font-size: 12.5px;
  color: var(--ink-2); display: block; margin-bottom: 2px;
}
/* Der Herkunftshinweis bleibt gruen: er ist Einordnung, kein Zitat. */
.beleg.herkunft {
  background: var(--gruen-wash); border-left-color: var(--gruen);
}
.beleg.herkunft .par { color: var(--gruen-tief); font-family: var(--f-display); font-weight: 700; font-size: 13px; }

/* ---------- Gegenueberstellung ---------- */

.gegen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 10px 0 34px;
}
.gegen > div {
  background: var(--ground-2); border: 1px dashed var(--rule);
  border-radius: var(--r); padding: 26px 28px 28px;
}
/* Die rechte (echte) Karte hebt sich ueber Weiss und Vollton-Linie ab -
   ohne Schatten, wie die Vorlage: Linien statt Schatten ist das v2-Prinzip. */
.gegen > div + div {
  background: var(--surface); border: 1px solid var(--rule); border-style: solid;
}
.gegen .lbl {
  font-size: 14px; font-weight: 500;
  color: var(--ink-3); display: block; margin-bottom: 10px;
}
.gross {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--ink); text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.gegen > div + div .gross { color: var(--ink); }
.gegen p { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; max-width: 42ch; }

/* ---------- Karten ---------- */

.karten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px; margin: 0 0 26px;
}
.karte {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 24px 26px 26px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.karte:hover { transform: translateY(-2px); border-color: var(--gruen); box-shadow: 0 8px 20px -12px rgba(40, 35, 26, .25); }
.karte .sym {
  width: 44px; height: 44px; border-radius: 13px; background: var(--marker-wash);
  display: grid; place-items: center; margin-bottom: 4px; color: var(--gruen);
}
.karte .sym svg { width: 24px; height: 24px; }
.karte h3 { margin: 0; font-size: 20px; }
.karte p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.karte .n {
  font-family: var(--f-mono); font-weight: 500; font-size: 15px;
  color: var(--gruen); margin-top: auto; padding-top: 12px;
  font-variant-numeric: tabular-nums;
}
.karte .kat {
  font-family: var(--f-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); align-self: flex-start; margin-bottom: 4px;
}
.karte.statisch { cursor: default; }
.karte.statisch:hover { transform: none; border-color: var(--rule); box-shadow: none; }

/* ---------- Tabellen ---------- */

.tab {
  overflow-x: auto; margin: 0 0 26px;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 6px 4px;
  /* Wisch-Schatten: sichtbar nur, solange seitlich Inhalt liegt. */
  background:
    linear-gradient(90deg, var(--surface) 30%, rgba(255, 255, 255, 0)) 0 0,
    linear-gradient(270deg, var(--surface) 30%, rgba(255, 255, 255, 0)) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(40, 35, 26, .16), rgba(40, 35, 26, 0)) 0 0,
    radial-gradient(farthest-side at 100% 50%, rgba(40, 35, 26, .16), rgba(40, 35, 26, 0)) 100% 0,
    var(--surface);
  background-repeat: no-repeat;
  background-size: 60px 100%, 60px 100%, 14px 100%, 14px 100%, auto;
  background-attachment: local, local, scroll, scroll, local;
}
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th {
  font-family: var(--f-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase;
  text-align: left; color: var(--ink-3); padding: 14px 18px 10px;
  white-space: nowrap; border-bottom: 1px solid var(--rule);
}
td { padding: 13px 18px; border-top: 1px dashed var(--rule); vertical-align: top; }
tbody tr:first-child td { border-top: none; }
tbody tr:hover td { background: var(--surface-2); }
td.n, th.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.mono { font-family: var(--f-mono); font-size: 13px; color: var(--gruen); }
td.par { white-space: nowrap; font-size: 11.5px; font-family: var(--f-mono); }
tr.summe td { font-weight: 600; border-top: 1px solid var(--rule); }
/* Die wichtigste Zeile traegt den Textmarker. */
tr.brutto td {
  background: var(--marker-wash); color: var(--ink); font-weight: 600;
  font-size: 16.5px; border-top: 1px solid var(--marker-tief);
}
tr.brutto td:first-child { border-radius: var(--r-klein) 0 0 var(--r-klein); }
tr.brutto td:last-child { border-radius: 0 var(--r-klein) var(--r-klein) 0; }

/* ---------- Hinweis ---------- */

.warn {
  background: var(--surface); border: 2px solid var(--marker-tief);
  border-radius: var(--r);
  padding: 20px 24px; margin: 0 0 28px;
}
.warn .lbl {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--apricot-text); display: block; margin-bottom: 6px;
}
.warn p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-2); max-width: 64ch; }
.warn p:last-child { margin: 0; }

/* ---------- Ampel ---------- */

.ampel { margin-top: var(--abschnitt); }
.ampel h2 { margin-top: 0; }
.ampelbox {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.ampelbox .a {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 24px 26px 26px;
}
.ampelbox .punkt {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
  margin-right: 9px; vertical-align: 1px;
}
.ampelbox .rot .punkt { background: var(--rose); }
.ampelbox .gelb .punkt { background: var(--marker-tief); }
.ampelbox .gruen .punkt { background: var(--gruen-hell); }
.ampelbox h3 { margin: 0 0 10px; font-size: 18px; }
.ampelbox p { font-size: 15px; margin: 0 0 10px; color: var(--ink-2); }
.ampelbox p:last-child { margin: 0; }
.bald {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  color: var(--ink-3); background: var(--ground-2);
  padding: 5px 12px; border-radius: var(--r-pille); display: inline-block;
}

/* ---------- Pruefliste ---------- */

.check { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.check li {
  display: flex; gap: 18px; align-items: flex-start; margin: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 20px 24px;
}
.check li b {
  font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1;
  color: var(--ink); background: var(--marker); flex: none;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
}
.check li div { color: var(--ink-2); }
.check li strong { color: var(--ink); }

/* ---------- Formulare ---------- */

form.rechner {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 26px 28px 28px; margin: 0 0 26px;
}
form.rechner label {
  display: block; font-family: var(--f-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 7px;
}
form.rechner input, form.rechner select {
  font-family: var(--f-body); font-size: 16.5px; padding: 12px 14px;
  border: 1.5px solid var(--rule); background: var(--surface-2); color: var(--ink);
  width: 100%; border-radius: var(--r-klein);
}
form.rechner input:focus, form.rechner select:focus {
  outline: none; border-color: var(--gruen); background: var(--surface);
  box-shadow: 0 0 0 4px var(--marker-wash);
}
form.rechner .reihe { margin-bottom: 18px; }
form.rechner .reihe:last-child { margin-bottom: 0; }
form.rechner .zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }

/* ---------- Fuss ---------- */

.fuss { border-top: 1px solid var(--rule); margin-top: var(--abschnitt); padding: 52px 0 44px; }
.fuss .inner { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.klein { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); max-width: 60ch; margin: 0 0 10px; }
.klein strong { color: var(--ink-2); }
.fussnav { display: flex; flex-direction: column; gap: 10px; }
.fussnav a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.fussnav a:hover { color: var(--gruen); }

/* Ab hier passen die Links nicht mehr in eine Zeile: Navigation hinter den
   Menueknopf. Grenze gemessen am neuen, breiteren Nav-Inhalt. */
@media (max-width: 900px) {
  .kopf .inner { flex-wrap: nowrap; gap: 12px; }
  .menuknopf { display: inline-flex; }
  .kopf-cta { display: inline-block; margin-left: auto; }
  /* Nur zuklappen, wenn das Skript lief - ohne Skript lieber unschoen als kaputt. */
  .mit-menue .kopf nav { display: none; }
  .kopf nav.offen {
    display: flex; flex-direction: column; gap: 2px; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 30px 60px -28px rgba(40, 35, 26, .3);
    padding: 10px 18px 16px;
  }
  .kopf nav.offen a {
    display: block; padding: 13px 16px; font-size: 17px;
    border-radius: var(--r-klein);
  }
  .kopf nav.offen a.nav-aktion { border-radius: var(--r-pille); text-align: center; }
  .kopf { position: sticky; }
  .kopf .inner { position: relative; }
}

@media (max-width: 620px) {
  /* Die Vorlage VERGROESSERT den Fliesstext am Telefon leicht - Lesetext
     auf kleinen Schirmen braucht eher mehr als weniger. */
  body { font-size: 17.5px; }
  main { padding: 28px 18px 72px; }
  .inner { padding: 0 18px; }
  h2 { margin-top: 52px; }
  .menuknopf { padding: 10px 14px; }
  .menuwort { display: none; }
  .kopf-cta { padding: 10px 13px; }
  .kopf-cta .lang { display: none; }
  .kopf-cta .kurz { display: inline; }
  .gegen, .karten, .ampelbox, .check { gap: 12px; }
  .tab { padding: 4px 0; }
  td, th { padding-left: 14px; padding-right: 14px; }
  .nur-mobil { display: block; }
  .tab.satz th:nth-child(4), .tab.satz td:nth-child(4),
  .tab.satz th:nth-child(5), .tab.satz td:nth-child(5) { display: none; }
  .gegen { grid-template-columns: 1fr; }
  .gegen.vergleich > div + div { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* Die Pruef-Sticker und der Stempel werden von ihrer Animation eingeblendet -
     ohne Animation muessen sie von Anfang an sichtbar sein, sonst verliert
     die Hero-Rechnung genau ihr Ergebnis. */
  .tag, .stamp { opacity: 1; }
}

/* ================= Startseite v2 ================= */

.hero {
  margin: 36px 0 24px; max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: 'text buehne' 'vertrauen buehne';
  gap: 0 60px; align-items: start;
}
.hero-text { grid-area: text; max-width: 34rem; }
.hero .invoice-stage { grid-area: buehne; }
.hero .vertrauen { grid-area: vertrauen; max-width: 34rem; }
.hero-text h1 { max-width: 16ch; margin-top: 14px; }
.hero-text .lead { max-width: 30rem; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.hero-einstieg { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.hero-einstieg b, .hero-einstieg strong { color: var(--ink); font-weight: 600; }

.vertrauen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 24px; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.vertrauen b {
  display: block; font-family: var(--f-display); font-weight: 800; font-size: 26px;
  color: var(--gruen); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.vertrauen span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin-top: 5px; }

/* ---- Die nachgerechnete Beispielrechnung (Signatur der Startseite) ---- */

.invoice-stage { position: relative; padding: 44px 74px 70px 0; }
.invoice {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--schatten-hoch);
  padding: 30px 32px 26px; font-family: var(--f-mono); font-size: 13.5px;
  transform: rotate(-1.2deg); position: relative;
}
/* Klebestreifen */
.invoice::before {
  content: ''; position: absolute; top: -8px; right: 34px; width: 74px; height: 18px;
  background: rgba(255, 221, 85, .9); border-radius: 2px; transform: rotate(3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
/* Der Hund schaut ueber die eigene Rechnung */
.peek { position: absolute; top: -10px; left: 34px; width: 128px; height: auto; transform: rotate(-2deg); z-index: 2; }
.inv-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px;
}
.inv-head .name { font-family: var(--f-body); font-weight: 600; font-size: 15px; }
.inv-head small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; font-family: var(--f-mono); }
.inv-title { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th {
  font-family: var(--f-mono); font-weight: 500; color: var(--ink-3); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; text-align: left;
  padding: 4px 0 8px; border-bottom: 1px solid var(--rule); white-space: normal;
}
.inv-lines td { padding: 9px 0; border-top: none; border-bottom: 1px dashed var(--rule); vertical-align: middle; position: relative; }
.inv-lines tr:hover td { background: none; }
.inv-lines td:last-child, .inv-lines th:last-child { text-align: right; white-space: nowrap; }
.inv-lines td.desc { font-family: var(--f-body); font-size: 13px; padding-right: 8px; }
.inv-lines td.desc small { color: var(--ink-3); display: block; font-family: var(--f-mono); font-size: 11.5px; }
.inv-lines tr.hi td {
  background: linear-gradient(transparent 12%, rgba(255, 221, 85, .9) 12%, rgba(255, 221, 85, .9) 88%, transparent 88%);
}
.inv-total { display: flex; justify-content: space-between; font-weight: 600; padding-top: 14px; font-size: 15px; }
.inv-total span:last-child { font-size: 20px; }
/* Sticker-Befunde je Zeile */
.tag {
  position: absolute; right: -14px; top: 50%;
  transform: translate(100%, -50%) rotate(-3deg);
  font-family: var(--f-body); font-size: 12.5px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--r-pille); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(40, 35, 26, .18); border: 2px solid #fff;
  opacity: 0; animation: pop .5s cubic-bezier(.2, .9, .3, 1.3) forwards;
}
.tag.ok { background: #D9F0E2; color: #0F4C30; }
.tag.alert { background: var(--rose-wash); color: #7E150E; }
.tag .f { font-family: var(--f-mono); font-weight: 500; margin-right: 6px; }
/* Die Choreografie (Tags nacheinander, Stempel zuletzt) bleibt, aber
   gestrafft: die alte Staffel bis 2,9s + Stempel bei 3,4s WAR der
   Speed Index von 3,9s - der Viewport galt erst als fertig, wenn der
   letzte Sticker saß (Lighthouse-Befund 17.08.2026). */
.inv-lines tr:nth-child(1) .tag { animation-delay: .2s; }
.inv-lines tr:nth-child(2) .tag { animation-delay: .35s; }
.inv-lines tr:nth-child(3) .tag { animation-delay: .5s; }
.inv-lines tr:nth-child(4) .tag { animation-delay: .65s; }
.inv-lines tr:nth-child(5) .tag { animation-delay: .8s; }
.inv-lines tr:nth-child(6) .tag { animation-delay: .95s; }
@keyframes pop {
  from { opacity: 0; transform: translate(100%, -50%) rotate(-3deg) scale(.7); }
  to { opacity: 1; transform: translate(100%, -50%) rotate(-3deg) scale(1); }
}
.stamp {
  position: absolute; bottom: -2px; left: 8px;
  font-family: var(--f-display); font-weight: 800; font-size: 16px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--rose);
  border: 3px solid var(--rose); border-radius: 10px; padding: 8px 12px;
  transform: rotate(-6deg); opacity: 0;
  animation: stamp .4s 1.15s cubic-bezier(.2, .9, .3, 1.4) forwards;
  background: rgba(255, 255, 255, .82);
}
.stamp small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-6deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@media (max-width: 1180px) {
  .invoice-stage { padding-right: 0; }
  .tag { right: 6px; transform: translate(0, -50%) rotate(-3deg); top: auto; bottom: -6px; }
  @keyframes pop {
    from { opacity: 0; transform: translate(0, -50%) scale(.7); }
    to { opacity: 1; transform: translate(0, -50%) scale(1); }
  }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'buehne' 'vertrauen'; gap: 40px; }
  .hero .vertrauen { margin-top: 0; }
}
@media (max-width: 620px) {
  .invoice { padding: 20px 14px; font-size: 13px; transform: none; }
  .inv-lines td.desc { font-size: 14px; }
  .inv-lines td.desc small { font-size: 12px; }
  .inv-lines th:nth-child(3), .inv-lines td:nth-child(3) { display: none; }
  .inv-lines td:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .tag { position: static; transform: none !important; animation: fade .4s ease forwards; opacity: 0; font-size: 11.5px; padding: 3px 8px; box-shadow: none; }
  @keyframes fade { to { opacity: 1; } }
  .invoice::before { right: 20px; }
  .stamp { bottom: -58px; left: 12px; font-size: 14px; }
  .invoice-stage { padding-bottom: 84px; padding-top: 40px; }
  .peek { width: 104px; top: -6px; left: 18px; }
}

/* ---- Vergleichs-Aufschluesselung (Startseite) ---- */

.ledger { font-family: var(--f-mono); font-size: 13.5px; margin-top: 20px; border-top: 1px solid var(--rule); }
.ledger div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.ledger div span:first-child { color: var(--ink-2); font-family: var(--f-body); font-size: 14px; }
.ledger div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger div.sum { border-bottom: none; font-weight: 600; padding-top: 12px; }
.ledger div.sum span { font-family: var(--f-mono); font-size: 15px; }

/* ---- Preisliste mit Tier-Tabs (Startseite) ---- */

.plist-block { max-width: none; margin-top: var(--abschnitt); }
.plist-block h2 { margin: 12px 0 22px; }
.plist-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.plist-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  padding: 10px 18px; border-radius: var(--r-pille);
  border: 2px solid var(--rule); background: var(--surface); cursor: pointer; color: var(--ink);
}
.plist-tabs button svg { width: 22px; height: 22px; color: var(--gruen); }
.plist-tabs button[aria-selected='true'] { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.plist-tabs button[aria-selected='true'] svg { color: #fff; }
.plist-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 26px; }
.plist { width: 100%; border-collapse: collapse; }
.plist tr { border-bottom: 1px solid var(--rule); }
.plist tr:last-child { border-bottom: none; }
.plist td { padding: 17px 0; vertical-align: top; border-top: none; }
.plist tr:hover td { background: none; }
.plist td:first-child { width: 34%; }
.plist a.t { font-family: var(--f-display); font-weight: 700; font-size: 19px; text-decoration: none; color: var(--ink); }
.plist a.t:hover { text-decoration: underline; text-decoration-color: var(--marker-tief); text-decoration-thickness: 4px; text-underline-offset: 3px; color: var(--ink); }
.plist td.why { color: var(--ink-2); font-size: 15px; padding-right: 24px; }
.plist td.price { text-align: right; font-family: var(--f-mono); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist td.price small { display: block; color: var(--ink-3); font-size: 12.5px; font-family: var(--f-body); }
.plist-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--ink-3); }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .plist-wrap { padding: 4px 18px; }
  .plist td { display: block; padding: 6px 0; }
  .plist td:first-child { padding-top: 16px; width: auto; }
  .plist td.price { text-align: left; padding-bottom: 16px; }
}

/* Ehrlichkeits-Sektion und Quellen-Streifen brauchen die volle Breite. */
.honest { max-width: none; margin-top: var(--abschnitt); }

/* ---- Knoepfe ---- */

.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  padding: 14px 24px; border-radius: var(--r-pille); text-decoration: none;
  border: 2px solid var(--gruen); cursor: pointer;
  background: var(--gruen); color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(23, 89, 74, .5); }
.knopf:active, .jn button:active { transform: translateY(0) scale(.98); }
/* Zweite Wahl: die Geist-Variante der Vorlage. */
.knopf.still {
  background: transparent; color: var(--gruen);
}
.knopf.still:hover { background: rgba(23, 89, 74, .07); color: var(--gruen); box-shadow: none; }
.knopf.leise {
  background: var(--surface); color: var(--ink-2); border-color: var(--rule);
  font-size: 13.5px; padding: 8px 14px; font-weight: 600;
}
.knopf.leise:hover { border-color: var(--gruen); color: var(--gruen); box-shadow: none; transform: none; }

.zurueck {
  font: inherit; font-size: 14px; cursor: pointer; background: none; border: none;
  color: var(--ink-3); padding: 12px 8px 12px 0; text-decoration: underline; text-underline-offset: 3px;
}
.zurueck:hover { color: var(--gruen); }

/* ---- Sofort-Check-Bausteine: seit v2 auf keiner Seite mehr im Einsatz.
   Die Regeln bleiben bewusst stehen: die Negativtests des SEO-Validators
   nutzen .tierwahl/.schritt als Pruefobjekte, und ein Wiedereinbau des
   Checks auf einer Unterseite faende sein Kleid vor. Kein Ballast im
   kritischen Pfad - nur Bytes im Stylesheet. ---- */

.claim {
  font-family: var(--f-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px; display: inline-block;
}
.check-karte {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 22px;
  padding: 30px 30px 32px; box-shadow: var(--schatten-hoch);
}
.check-titel { font-family: var(--f-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin: 0 0 6px; }
.check-unter { font-size: 15px; color: var(--ink-3); margin: 0 0 22px; }
.frage { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; margin: 0 0 14px; }
.check-ausweich { margin: 16px 0 0; }

.tierwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tierknopf {
  font: inherit; cursor: pointer; background: var(--surface-2); color: var(--ink);
  border: 2px solid var(--rule); border-radius: var(--r); padding: 26px 12px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tierknopf svg { width: 46px; height: 46px; stroke-width: 1.5; color: var(--gruen); }
.tierknopf span { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; }
.tierknopf:hover { transform: translateY(-2px); border-color: var(--gruen); }
.tierknopf.an, .tierknopf[aria-pressed='true'] { border-color: var(--gruen); background: var(--gruen-wash); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.chip {
  font: inherit; cursor: pointer; background: var(--surface-2); color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: var(--r-pille);
  padding: 9px 16px 9px 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.chip svg { width: 18px; height: 18px; color: var(--gruen); }
.chip:hover { border-color: var(--gruen); transform: translateY(-1px); }

.spanne {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.05; letter-spacing: -.03em; color: var(--gruen-tief);
  font-variant-numeric: tabular-nums; margin: 6px 0 4px;
}
.spanne .bis, .spanne .waehrung { font-size: .5em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.erg-unter { font-size: 13.5px; color: var(--ink-3); margin: 0 0 14px; }
.erg-hinweis { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); background: var(--marker-wash); border-radius: var(--r-klein); padding: 12px 15px; margin: 0 0 16px; }

.rechenweg { margin: 0 0 18px; }
.rechenweg summary {
  cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 14.5px;
  color: var(--gruen); list-style: none; padding: 9px 0;
}
.rechenweg summary::-webkit-details-marker { display: none; }
.rechenweg summary::before { content: '+ '; }
.rechenweg[open] summary::before { content: '- '; }
.rechenweg table { font-size: 14px; }
.rechenweg td { padding: 8px 6px; }
.rechenweg .klein { margin-top: 10px; }
.erg-aktion { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.schritt[data-schritt] { animation: einblenden .28s ease both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gegen-block { max-width: none; margin-top: var(--abschnitt); }
.gegen-block h2 { margin-top: 0; }
.gegen-block > p, .gegen-block > .beleg { max-width: var(--spalte); }

.zaehler { font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--ink-3); margin: 12px 0 20px; }
.jn { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.jn button {
  font-family: var(--f-display); font-weight: 700; font-size: 15.5px; cursor: pointer;
  background: var(--gruen); color: #fff; border: 2px solid var(--gruen); padding: 12px 24px;
  border-radius: var(--r-pille); transition: background .16s ease, transform .16s ease;
}
.jn button:hover { background: var(--gruen-tief); transform: translateY(-1px); }
.jn button.still { background: transparent; color: var(--gruen); }
.jn button.still:hover { background: rgba(23, 89, 74, .07); }

.befund { animation: einblenden .3s ease both; }
.befund-titel { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.8vw, 29px); letter-spacing: -.02em; margin: 0 0 10px; }
.befund.gut .befund-titel { color: var(--gruen); }
.befund.achtung .befund-titel { color: var(--apricot-text); }
.befund p { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }
.baustein { background: var(--marker-wash); border-radius: var(--r-klein); padding: 16px 18px; margin: 16px 0 4px; }
.baustein p:last-child { margin: 0; color: var(--ink); }

/* ================= Sektionsrhythmus / Vertrauens-Ebene ================= */

.sektion-label {
  display: block; margin: 0 0 14px;
  font-family: var(--f-mono); font-weight: 500; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  max-width: none;
}
.sektion-titel {
  max-width: 24ch; margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1;
}
.sektion-lead {
  max-width: 62ch; margin: 0 0 44px;
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
}

/* Werkzeuge: der dunkelgruene Block der Vorlage. */
.ablauf {
  margin: var(--abschnitt) 0; max-width: none;
  background: var(--gruen); color: #fff;
  border-radius: 32px; padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
}
/* Gleicher Ton wie der Lead: #9FC5B8 lag mit 4,35:1 knapp unter der
   Kontrastgrenze auf dem Fichtengruen. */
.ablauf .sektion-label { color: #CFE3DB; }
.ablauf .sektion-titel { color: #fff; }
.ablauf .sektion-lead { color: #CFE3DB; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool {
  background: var(--gruen-tief); border-radius: var(--r);
  padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 14px;
}
.tool .k { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--marker); letter-spacing: .06em; text-transform: uppercase; }
.tool h3 { color: #fff; margin: 0; }
.tool p { color: #CFE3DB; font-size: 15.5px; flex: 1; margin: 0; }
.tool a { color: #fff; font-family: var(--f-display); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tool a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } .ablauf { border-radius: 24px; } }

/* Ehrlichkeits-Box (Versicherungs-Frage) */
.honest-box {
  border: 2px solid var(--gruen); border-radius: var(--r);
  padding: 34px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--surface); max-width: none;
}
.honest-box h2 { font-size: 30px; margin: 0; }
.honest-box > div > p { color: var(--ink-2); margin-top: 12px; }
.honest-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.honest-box li { display: flex; gap: 12px; font-size: 15.5px; margin: 0; }
.honest-box li b {
  font-family: var(--f-mono); font-weight: 500; color: var(--ink-3);
  min-width: 110px; font-size: 13px; padding-top: 2px; flex: none;
}
@media (max-width: 900px) { .honest-box { grid-template-columns: 1fr; padding: 26px; } }

/* Quellen-Streifen der Startseite */
.source {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 26px; background: var(--ground-2); border-radius: var(--r);
  display: flex; gap: 12px 26px; flex-wrap: wrap; align-items: baseline;
  font-size: 13.5px; color: var(--ink-2); max-width: none;
  margin-top: var(--abschnitt);
}
.source b { color: var(--ink); font-weight: 600; }
.source .mono { color: var(--ink-3); }
.source a { color: var(--gruen); font-weight: 600; }

/* Rahmen um eine Aufnahme (Unterseiten, falls verwendet). */
.geraet { margin: 0; }
.geraet img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--rule);
  box-shadow: var(--schatten-hoch); background: var(--surface);
}
.ablauf-schritt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.ablauf-schritt.gedreht .ablauf-text { order: 2; }
.ablauf-schritt h3 { margin: 14px 0 12px; font-size: clamp(22px, 2.2vw, 30px); }
.ablauf-schritt p { max-width: none; }
.nummer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--marker); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
}
.haken { list-style: none; padding: 0; margin: 18px 0 24px; }
.haken li { position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 15.5px; }
.haken li::before {
  content: ''; position: absolute; left: 4px; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid var(--marker);
  border-bottom: 2px solid var(--marker); transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .ablauf-schritt { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .ablauf-schritt.gedreht .ablauf-text { order: 0; }
  .sektion-titel { max-width: none; }
}

/* Aufnahme-Modus (nur scripts/build-aufnahmen.mjs, nie ausgeliefert). */
.aufnahme .kopf, .aufnahme .fuss, .aufnahme .krumen, .aufnahme .claim { display: none; }
.aufnahme main { padding-top: 22px; }

/* ================= Rechnungspruefer ================= */

.pruefer { margin: 0; max-width: none; }

/* Vertrauensband unter dem Lead. */
.privatband {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 14px 0 0; padding: 8px 16px;
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--r-pille);
  font-size: 14px; color: var(--ink-2); max-width: none;
}
.privatband svg { width: 17px; height: 17px; flex: none; color: var(--gruen); }

/* Drei Wege hinein. */
.einstiege {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 26px 0 10px; max-width: none;
}
.einstieg {
  font-family: var(--f-body); text-align: left; text-decoration: none;
  background: var(--surface); border: 2px solid var(--rule); border-radius: var(--r);
  padding: 18px 18px 16px; cursor: pointer; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.einstieg:hover { border-color: var(--gruen); transform: translateY(-2px); }
.einstieg svg { width: 24px; height: 24px; color: var(--gruen); display: block; margin-bottom: 10px; }
.einstieg strong { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; display: block; }
.einstieg span { font-size: 13.5px; color: var(--ink-3); display: block; margin-top: 4px; line-height: 1.45; }

/* Zweispaltig: links erfassen, rechts klebt der Befund. */
.pruef-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px; align-items: start; margin: 26px 0 44px; max-width: none;
}
.pruef-links { min-width: 0; }
.pruef-links > .feld-panel + .feld-panel { margin-top: 18px; }
.feld-panel {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 22px 24px;
}
.feld-panel h2 { margin-top: 0; font-size: 22px; }
.panel-hint { margin-top: 2px; }
.pruef-seite { min-width: 0; }
.pruef-kleben { position: sticky; top: 84px; }
/* Waechst der Befund ueber den Viewport, scrollt das Panel innen - sonst laege
   der Knopf "Von einem Menschen ansehen lassen" unsichtbar unterm Falz. Die
   Pfote bleibt draussen (Kind von .pruef-kleben), sonst wuerde ihr Ueberstand
   geclippt. */
.befund-panel { max-height: calc(100vh - 130px); overflow-y: auto; scroll-margin-top: 92px; }
.pruef-kleben .peek {
  /* left: auto ist Pflicht - die Basisregel .peek setzt left: 34px, und bei
     left+right+width gewinnt links (CSS 2.1): ohne Reset saesse die Pfote links. */
  position: absolute; top: -38px; left: auto; right: 20px; width: 100px; z-index: 2;
  transform: none; animation: none; opacity: 1;
}
.befund-panel { position: relative; padding-top: 30px; }
.befund-cta { display: grid; gap: 8px; margin-top: 16px; }
.befund-cta .knopf { text-align: center; justify-content: center; }
.befund-cta .klein { text-align: center; }
.befund-mail { margin-top: 10px; display: grid; gap: 8px; }
.befund-mail > .knopf { width: 100%; text-align: center; justify-content: center; }
.befund-mail .rechner { margin: 0; }

/* Schalter: Betraege und Notdienst. */
.schalter { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.seg {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1.5px solid var(--rule); border-radius: var(--r-pille); padding: 3px;
}
.seg-wort { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); padding: 0 8px 0 10px; }
.seg button {
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  border: none; background: transparent; border-radius: var(--r-pille);
  padding: 7px 14px; cursor: pointer; color: var(--ink-2);
}
.seg button[aria-pressed="true"] { background: var(--gruen); color: #fff; }

/* Eine Position als Karte. */
.prow {
  position: relative; background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.prow.ueber { border-color: var(--rose); background: var(--rose-wash); }
.prow.unter { border-color: var(--marker-tief); }
.prow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 84px 132px; gap: 10px; }
.pfeld label {
  display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}
.pfeld input {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  font-family: var(--f-body); font-size: 15.5px; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff;
}
.pfeld input:focus { border-color: var(--gruen); }
.pfeld input:focus:not(:focus-visible) { outline: none; }
.p-anz, .p-bet { font-family: var(--f-mono); }
.pfeld.such { position: relative; }
.sugg {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: 12px;
  margin-top: 4px; box-shadow: var(--schatten-hoch); max-height: 250px; overflow: auto;
}
.sugg button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  width: 100%; text-align: left; font-family: var(--f-body); font-size: 14px;
  padding: 10px 13px; border: none; background: transparent; cursor: pointer; color: var(--ink);
}
.sugg button:hover { background: var(--surface-2); }
.sugg .s-nr { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.prow-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; min-height: 24px;
}
.prow-meta .p-name { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.p-basis { font-size: 12px; color: var(--ink-3); }
.p-offen { font-size: 12.5px; color: var(--ink-3); }
.p-urteil { margin-left: auto; }
.p-weg {
  /* Sichtbar klein, Trefferflaeche 40px (WCAG 2.5.8). Der z-index ist
     Pflicht: .pfeld.such ist ebenfalls positioniert und kommt spaeter im
     DOM - ohne z-index faengt am schmalen Schirm dessen Label jeden Tipp
     aufs x ab und oeffnet die Tastatur statt zu loeschen. */
  position: absolute; top: 0; right: 0; width: 40px; height: 40px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--ink-3); font-size: 17px; line-height: 1; cursor: pointer;
}
.p-weg:hover { color: var(--rose); }

/* GOT-Suche: ein Feld, drei Trefferarten (Nummer, Leistung, Behandlung).
   Nutzt denselben Vorschlagskasten (.sugg) wie der Rechnungspruefer. */
.got-suche {
  position: relative; display: flex; gap: 10px;
  margin: 20px 0 28px; max-width: 640px;
}
.got-suche input {
  flex: 1; min-width: 0; font-family: var(--f-body); font-size: 16.5px;
  color: var(--ink); background: var(--surface);
  padding: 13px 16px; border: 2px solid var(--rule); border-radius: 12px;
}
.got-suche input:focus { border-color: var(--gruen); }
.got-suche input:focus:not(:focus-visible) { outline: none; }
.got-suche.kompakt { max-width: 540px; margin: 16px 0 22px; }
.got-suche.kompakt input { font-size: 15px; padding: 10px 13px; }
.got-suche .sugg { top: calc(100% + 2px); }
.sugg a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  width: 100%; font-family: var(--f-body); font-size: 14px; text-decoration: none;
  padding: 10px 13px; color: var(--ink);
}
.sugg a:hover, .sugg a:focus-visible { background: var(--surface-2); }
.sugg a.s-alle { font-family: var(--f-display); font-weight: 700; color: var(--gruen); border-top: 1px solid var(--rule); }
@media (max-width: 620px) {
  .got-suche { flex-wrap: wrap; }
  .got-suche .knopf { flex: 1; justify-content: center; }
}
@media print {
  .got-suche { display: none; }
}

/* Sticker wie der Stempel auf der Startseiten-Rechnung. */
.urteil {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 11px;
  border-radius: var(--r-pille); border: 2px solid #fff;
  box-shadow: var(--schatten); transform: rotate(-2deg);
}
.urteil .f { font-family: var(--f-mono); font-weight: 500; }
.urteil a { color: inherit; }
.urteil.ok { background: var(--gruen-wash); color: var(--gruen-tief); }
.urteil.ueber { background: var(--rose-wash); color: #7E150E; }
.urteil.unter { background: var(--marker-wash); color: #7A5B00; }

/* Kopf des Befund-Panels. */
.pillen { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 14px; }
.pille {
  font-family: var(--f-mono); font-size: 12.5px; padding: 5px 11px;
  border-radius: var(--r-pille); background: var(--surface-2); color: var(--ink-2);
}
.pille.gut { background: var(--gruen-wash); color: var(--gruen-tief); }
.pille.rot { background: var(--rose-wash); color: #7E150E; }
.pille.gelb { background: var(--marker-wash); color: #7A5B00; }
.mehrbetrag { border-top: 1px dashed var(--rule); padding: 12px 0 14px; }
.mb-wort { display: block; font-size: 13.5px; color: var(--ink-3); }
.mehrbetrag strong {
  font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em;
}
.mehrbetrag strong.rot { color: var(--rose); }

/* Schmale Schirme: eine Spalte, Befund unten, Kurzleiste fixiert. */
.pruef-leiste { display: none; }
@media (max-width: 980px) {
  .pruef-layout { grid-template-columns: minmax(0, 1fr); }
  .pruef-kleben { position: static; }
  .pruef-kleben .peek { display: none; }
  .pruef-leiste {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
    background: var(--gruen); color: #fff; border: none; border-radius: 14px;
    padding: 12px 16px; cursor: pointer;
    font-family: var(--f-mono); font-size: 13px;
    box-shadow: var(--schatten-hoch);
  }
  .pruef-leiste svg { width: 18px; height: 18px; flex: none; }
  .pruef-leiste #leiste-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:has(.pruef-leiste) .fuss { padding-bottom: 100px; }
  /* Fokussierte Felder nicht unter der fixierten Leiste verstecken. */
  html:has(.pruef-leiste) { scroll-padding-bottom: 80px; }
  .seg button { min-height: 40px; }
}
@media (max-width: 760px) {
  .einstiege { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  /* Rechts Platz fuer den Loesch-Knopf: das Suchfeld belegt hier die volle
     Zeile, und ein Finger im Feld-Eck darf nicht versehentlich loeschen. */
  .prow { padding-right: 48px; }
  .prow-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prow-grid .pfeld.such { grid-column: 1 / -1; }
  .p-urteil { margin-left: 0; }
  .feld-panel { padding: 16px 14px; }
}
@media print {
  .pruef-leiste, .einstiege, .pruef-kleben .peek, .schalter, .p-weg,
  .werkzeugzeile, .befund-cta, .befund-mail, .einreichung { display: none; }
  .pruef-layout { grid-template-columns: minmax(0, 1fr); }
  .pruef-kleben { position: static; }
  .befund-panel { max-height: none; overflow: visible; }
}

/* Ein Befund je Regel. */
.bfd {
  border-radius: var(--r-klein); padding: 16px 20px; margin: 0 0 10px;
  border-left: 4px solid var(--ink-3); background: var(--surface-2);
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.bfd .lbl {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: 13.5px; margin-bottom: 4px;
}
.bfd p { margin: 0; font-size: 15px; }
.bfd .par { display: inline-block; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.bfd.rot { background: var(--rose-wash); border-left-color: var(--rose); }
.bfd.rot .lbl { color: #7E150E; }
.bfd.gelb { background: var(--marker-wash); border-left-color: var(--marker-tief); }
.bfd.gelb .lbl { color: var(--apricot-text); }
.bfd.gruen { background: #D9F0E2; border-left-color: var(--gruen-hell); }
.bfd.gruen .lbl { color: #0F4C30; }

.summe-zeile {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 4px; border-top: 1px solid var(--rule); font-size: 15px;
}
.summe-zeile strong { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Einreichung */
.einreichung {
  margin: 56px 0; padding: 34px 34px 28px; max-width: none;
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--rule); box-shadow: var(--schatten-hoch);
}
.einreichung h2 { margin-top: 0; }
.einreichung h3 { margin-top: 30px; }
.einreichung .rechner { background: var(--surface-2); margin-top: 18px; border-style: dashed; }
.einreichung textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 11px 14px; border-radius: var(--r-klein);
  border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink);
}
.vorschau {
  background: var(--marker-wash); border: 1px solid var(--marker-tief);
  border-radius: var(--r-klein); padding: 18px 22px; margin: 14px 0 0;
}
.einreichung input[type="file"] {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px;
  padding: 13px 14px; border-radius: var(--r-klein); cursor: pointer;
  border: 2px dashed var(--gruen); background: var(--gruen-wash); color: var(--ink-2);
}
.einreichung input[type="file"]::file-selector-button {
  font: inherit; font-family: var(--f-display); font-weight: 700; font-size: 14px;
  margin-right: 14px; padding: 8px 16px; border-radius: var(--r-pille);
  border: none; background: var(--gruen); color: #fff; cursor: pointer;
}
#e-dateien { margin: 8px 0 0; line-height: 1.7; }
.vorschau ul { margin: 0 0 10px; padding-left: 20px; }
.vorschau li { font-size: 14.5px; line-height: 1.7; }
.vorschau p:last-child { margin-bottom: 0; }
.reihe.zustimmung { display: flex; align-items: flex-start; gap: 12px; }
.reihe.zustimmung input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--gruen); }
.reihe.zustimmung label { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--f-body); }

/* Koederfeld gegen Maschinen. */
.hinweisfeld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Mengen-Rechner auf Krankheitsseiten */
.mengen {
  background: var(--marker-wash); border: 1px solid var(--marker-tief);
  border-radius: var(--r); padding: 30px 32px 26px; margin: 48px 0;
  max-width: none;
}
.mengen h2 { margin-top: 0; }
.mengen .rechner { background: var(--surface); margin: 22px 0 18px; }
.mengen input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--gruen); height: 28px; cursor: pointer; }
.mengen output {
  font-family: var(--f-mono); font-weight: 500; font-size: 17px;
  color: var(--gruen-tief); min-width: 12ch; text-align: right;
  font-variant-numeric: tabular-nums;
}
.mengen .tab { margin: 0 0 6px; }
.mengen .beleg { margin-bottom: 0; }

/* Ziffern-Kette */
.ziffernliste { display: flex; flex-wrap: wrap; gap: 7px; max-width: none; }
.ziffernliste a {
  font-family: var(--f-mono); font-size: 13.5px; padding: 9px 13px;
  border-radius: var(--r-klein); background: var(--surface);
  border: 1px solid var(--rule); color: var(--ink-2); text-decoration: none;
}
.ziffernliste a:hover { border-color: var(--gruen); color: var(--gruen); }

/* Weiterfuehrende Wege am Seitenende. */
.nachbarn {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 40px 0 8px; padding-top: 26px;
  border-top: 1px solid var(--rule); max-width: none;
}
.nachbarn a {
  display: inline-block; padding: 9px 16px; border-radius: var(--r-pille);
  background: var(--surface); color: var(--ink-2); text-decoration: none;
  font-size: 14.5px; border: 1px solid var(--rule);
  transition: border-color .18s ease, color .18s ease;
}
.nachbarn a:hover { border-color: var(--gruen); color: var(--gruen); }

/* Tierart-Umschalter */
.tierumschalter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; max-width: none; }
.tierumschalter a {
  display: inline-block; padding: 11px 22px; border-radius: var(--r-pille);
  background: var(--surface); color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 15.5px;
  border: 2px solid var(--rule); transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.tierumschalter a:hover { border-color: var(--gruen); color: var(--gruen); }

.krumen { font-size: 13px; font-family: var(--f-mono); color: var(--ink-3); margin: 0 0 14px; max-width: none; }
.krumen a { color: var(--ink-3); text-decoration: none; display: inline-block; padding: 5px 2px; }
.krumen a:hover { color: var(--gruen); text-decoration: underline; }
.krumen i { font-style: normal; margin: 0 8px; color: var(--dekor); }

/* Sprungmarken auf langen Seiten */
.sprungleiste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; max-width: none; }
.sprungleiste a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-pille);
  background: var(--surface); border: 1px solid var(--rule);
  color: var(--ink-2); text-decoration: none;
  font-family: var(--f-body); font-weight: 500; font-size: 14px;
}
.sprungleiste a:hover { border-color: var(--gruen); color: var(--gruen); }

/* Anlass-Hinweis: der meistgestempelte Pruef-Einstieg. */
.anlass {
  background: var(--marker-wash); border-radius: var(--r-klein);
  border: 1px solid var(--marker-tief);
  padding: 14px 18px; font-size: 15.5px; color: var(--ink-2);
}
.anlass a { font-family: var(--f-display); font-weight: 700; }

/* Pruef-Block: der Handlungs-Baustein, im Werkzeug-Look der Vorlage. */
.pruef-block {
  background: var(--gruen); color: #fff; border-radius: var(--r);
  padding: 30px 32px; margin-top: 44px; max-width: none;
}
.pruef-block h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.pruef-block p { color: #CFE3DB; max-width: 62ch; }
.pruef-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.pruef-block .knopf { background: #fff; color: var(--gruen); border-color: #fff; }
.pruef-block .knopf:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); box-shadow: none; }
.pruef-block .knopf.still { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.pruef-block .knopf.still:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

/* Alltagsdeutsch unter dem H1 der Ziffernseiten */
.klartext {
  font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 4px solid var(--marker);
  border-radius: 0 var(--r-klein) var(--r-klein) 0;
  padding: 10px 16px; margin: 0 0 18px;
}

/* FAQ */
.faq { margin-top: var(--abschnitt); max-width: none; }
.faq h2 { margin-top: 0; }
.fitem {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-klein);
  margin-bottom: 8px; overflow: hidden;
}
.fitem summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.fitem summary::-webkit-details-marker { display: none; }
.fitem summary::after { content: '+'; color: var(--gruen); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.fitem[open] summary::after { content: '-'; }
.fitem summary:hover { color: var(--gruen); }
.fitem > div { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; max-width: 68ch; }
.fitem em { font-style: normal; font-family: var(--f-mono); font-size: 12.5px; color: var(--gruen); display: block; margin-top: 10px; }

/* Quellen */
.quellen { margin-top: var(--abschnitt); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 30px 32px 32px; max-width: none; }
.quellen h2 { margin-top: 0; }
.quellen p { max-width: 62ch; }
.quelltabelle { margin: 20px 0; display: grid; gap: 0; }
.quelltabelle > div { display: grid; grid-template-columns: minmax(160px, 230px) 1fr; gap: 16px; padding: 11px 0; border-top: 1px dashed var(--rule); }
.quelltabelle > div:last-child { border-bottom: 1px dashed var(--rule); }
.quelltabelle dt { font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--ink-3); margin: 0; }
.quelltabelle dd { margin: 0; font-size: 15px; }
.quelltabelle dd.mono { font-size: 12.5px; color: var(--ink-3); word-break: break-all; }

/* Weiterlesen und Hilfe-Hinweis */
.weiter { margin-top: var(--abschnitt); max-width: none; }
.weiter h2 { margin-top: 0; }
.hilfe-hinweis { margin-top: var(--abschnitt); background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 30px 28px; max-width: none; }
.hilfe-hinweis h2 { margin: 0 0 8px; font-size: 22px; }
.hilfe-hinweis p { color: var(--ink-2); max-width: 60ch; }
.hilfe-hinweis p:last-child { margin: 0; }

/* Person */
.person {
  display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 28px 30px 30px; margin: 26px 0 8px; max-width: none;
}
.person h2 { margin-top: 0; }
.person p { color: var(--ink-2); max-width: 60ch; }
.portrait {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--gruen);
  color: #fff; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em;
}
img.portrait {
  /* Echtes Foto statt Initialen: runder Ausschnitt, Marken-Wash als Grund
     (das Portraet bringt einen transparenten Hintergrund mit), feiner Rand. */
  object-fit: cover; background: var(--gruen-wash);
  border: 2px solid var(--gruen); flex: none;
}

/* Rollen */
.rollen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 26px; max-width: none; }
.rollen > div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px 24px 24px; }
.rollen h3 { margin: 10px 0 8px; font-size: 18px; }
.rollen p { font-size: 15px; color: var(--ink-2); margin: 0; }
.rolle-status {
  font-family: var(--f-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pille); display: inline-block;
}
.rolle-status.ok { background: #D9F0E2; color: #0F4C30; }
.rolle-status.offen { background: var(--marker-wash); color: var(--apricot-text); }

/* Fuss */
.fuss-oben { display: grid; grid-template-columns: minmax(260px, 1.4fr) 2.4fr; gap: 44px; }
.fuss-marke .marke { font-size: 24px; margin-bottom: 12px; }
.siegel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.siegel span {
  font-family: var(--f-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2);
  padding: 6px 12px; border-radius: var(--r-pille);
}
.fuss-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 24px; }
.fuss-spalten > div { display: flex; flex-direction: column; gap: 4px; }
.fuss-titel {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; font-weight: 500;
}
.fuss-spalten a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.fuss-spalten a:hover { color: var(--gruen); }
.fuss-unten { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; gap: 18px; }
  .portrait { width: 78px; height: 78px; font-size: 26px; }
  .fuss-oben { grid-template-columns: 1fr; gap: 32px; }
  .quelltabelle > div { grid-template-columns: 1fr; gap: 3px; }
}

/* ---- Artikel ---- */
.artikel { max-width: none; }
.artikel-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 34px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--ink-3);
}
.artikel-text { max-width: var(--spalte); }
.artikel-text h2 { font-size: clamp(23px, 2.9vw, 30px); margin-top: 52px; }
.artikel-text h3 { margin-top: 34px; }
.artikel-text p { font-size: 17.5px; line-height: 1.72; }
.artikel-text ul, .artikel-text ol { font-size: 17.5px; }
.artikel-text blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--marker-wash);
  border-left: 4px solid var(--marker-tief);
  border-radius: 0 var(--r-klein) var(--r-klein) 0;
  font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
}
.artikel-text hr { border: none; border-top: 1px solid var(--rule); margin: 44px 0; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; font-size: 11pt; color: #000; }
  .kopf, .fuss, .weiter, .ampel, .hilfe-hinweis, .nachbarn, .menuknopf,
  .kopf-cta, .sprung, .anlass, .pruef-block, .sprungleiste, .krumen,
  .tierumschalter, .check-karte, .hero-einstieg, .invoice-stage { display: none !important; }
  main { padding: 0; max-width: none; }
  .tab, .beleg, .karte, .quellen, .gegen > div { box-shadow: none; border: 1px solid #bbb; }
  .tab { overflow: visible; background: #fff; }
  tr.brutto td { background: #fff; color: #000; }
  a { color: inherit; text-decoration: none; }
  .quellen a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  .fitem summary::after { content: ''; }
}

/* Links auf Seiten, die nach data/seo/veroeffentlichung.json noch nicht ausgeliefert
   werden, haben kein href (das Ziel steht in data-folgt). Sie lesen sich als Text,
   nicht als kaputter Link. */
a:not([href]) { color: inherit; text-decoration: none; cursor: default; }
a.karte:not([href]) { opacity: 0.55; }
