/* ojola - warm, grün, rund.
   Haltung: hier hilft dir jemand. Nicht "amtlich und präzise", sondern
   "verständlich und auf deiner Seite". Deshalb weiche Radien, getönte Flächen,
   sanfte Schatten und viel Luft - statt Haarlinien und scharfer Kanten.
   Grün ist die Marke und trägt die Beträge. Apricot ist der freundliche Akzent.
   Die Rechentabelle bleibt exakt, wird aber freundlich verpackt. */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #F2F7F1;
  --ground-2: #E7F1E7;
  --surface: #FFFFFF;
  --surface-2: #F6FAF5;

  --ink: #16302A;
  --ink-2: #4C6A5F;
  --ink-3: #86A093;

  --gruen: #1B7A4E;
  --gruen-tief: #125A39;
  --gruen-hell: #34B36C;
  --gruen-wash: #E2F2E6;
  --gruen-rand: #CBE6D2;

  --apricot: #E8874A;
  --apricot-wash: #FDEFE3;
  --rose: #C0554D;
  --rose-wash: #FBEBE8;

  --schatten: 0 1px 2px rgba(22, 48, 42, .04), 0 8px 24px -8px rgba(22, 48, 42, .10);
  --schatten-hoch: 0 2px 4px rgba(22, 48, 42, .05), 0 16px 40px -12px rgba(22, 48, 42, .16);

  --r: 16px;
  --r-klein: 10px;
  --r-pille: 999px;

  --f-display: 'Outfit', ui-rounded, ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Instrument', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --spalte: 66ch;
  --breite: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0E1714;
    --ground-2: #14201C;
    --surface: #17241F;
    --surface-2: #1B2B25;

    --ink: #E8F1EC;
    --ink-2: #AAC4B8;
    --ink-3: #7B9789;

    --gruen: #4ECB88;
    --gruen-tief: #7EDCA8;
    --gruen-hell: #5FD996;
    --gruen-wash: #163324;
    --gruen-rand: #23452F;

    --apricot: #F0A171;
    --apricot-wash: #33231A;
    --rose: #E88C83;
    --rose-wash: #331E1C;

    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --schatten-hoch: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 44px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

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

.inner { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
main { max-width: var(--breite); margin: 0 auto; padding: 40px 24px 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: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
}
.kopf .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px;
}
.marke {
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  letter-spacing: -.03em; color: var(--gruen-tief); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.marke svg { width: 26px; height: 26px; flex: none; }
.kopf nav { display: flex; gap: 6px; flex-wrap: wrap; }
.kopf nav a {
  font-family: var(--f-display); 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 { background: var(--gruen-wash); color: var(--gruen-tief); }
.kopf nav a.aktiv { background: var(--gruen); color: #fff; }

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

h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 52px); line-height: 1.08; letter-spacing: -.03em;
  margin: 0 0 20px; text-wrap: balance; max-width: 20ch;
}
h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.022em;
  margin: 64px 0 16px; text-wrap: balance; max-width: 26ch;
}
h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 19.5px;
  line-height: 1.32; letter-spacing: -.012em; margin: 30px 0 8px;
}
h2 + h3, h1 + h3 { margin-top: 20px; }
p { margin: 0 0 15px; }
.lead { font-size: 20.5px; line-height: 1.62; color: var(--ink-2); }
ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 10px; }
li::marker { color: var(--gruen-hell); }
strong { font-weight: 600; }
a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gruen-tief); }
a:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--f-mono); font-size: .86em; }

/* ---------- Beleg-Stempel: jetzt eine weiche Karte ---------- */

.beleg {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  background: var(--gruen-wash); border-radius: var(--r-klein);
  padding: 14px 18px; margin: 0 0 18px;
}
.beleg .par {
  font-family: var(--f-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .01em; color: var(--gruen-tief); display: block; margin-bottom: 4px;
}

/* ---------- Gegenüberstellung: das Herzstück ---------- */

.gegen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 10px 0 34px;
}
.gegen > div {
  background: var(--surface); border-radius: var(--r);
  padding: 26px 28px 28px; box-shadow: var(--schatten);
}
.gegen > div + div {
  background: linear-gradient(160deg, var(--gruen) 0%, var(--gruen-tief) 100%);
  box-shadow: var(--schatten-hoch);
}
.gegen .lbl {
  font-family: var(--f-display); font-weight: 500; font-size: 13.5px;
  color: var(--ink-3); display: block; margin-bottom: 10px;
}
.gegen > div + div .lbl { color: rgba(255, 255, 255, .82); }
.gross {
  display: block; font-family: var(--f-display); font-weight: 600;
  /* Preisspannen sind lang. Umbruch nur zwischen den Zahlen, nie vor dem Euro. */
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--ink-3); text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.gegen > div + div .gross { color: #fff; }
.gegen p { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; max-width: 40ch; }
.gegen > div + div p { color: rgba(255, 255, 255, .88); }

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

.karten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px; margin: 0 0 26px;
}
.karte {
  background: var(--surface); border-radius: var(--r); padding: 24px 26px 26px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  gap: 8px; box-shadow: var(--schatten);
  transition: transform .18s ease, box-shadow .18s ease;
}
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.karte .sym {
  width: 44px; height: 44px; border-radius: 13px; background: var(--gruen-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: 19px; }
.karte p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.karte .n {
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  color: var(--gruen); margin-top: auto; padding-top: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tabellen: exakt, aber freundlich verpackt ---------- */

.tab {
  overflow-x: auto; margin: 0 0 26px; background: var(--surface);
  border-radius: var(--r); box-shadow: var(--schatten); padding: 6px 4px;
}
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th {
  font-family: var(--f-display); font-weight: 600; font-size: 12.5px;
  text-align: left; color: var(--ink-3); padding: 14px 18px 10px;
  white-space: nowrap;
}
td { padding: 13px 18px; border-top: 1px solid var(--gruen-rand); vertical-align: top; }
tbody tr:first-child td { border-top: 1px solid var(--gruen-rand); }
tbody tr:hover td { background: var(--surface-2); }
td.n, th.n { text-align: right; 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; }
tr.summe td { font-weight: 600; border-top: 1px solid var(--gruen-rand); }
tr.brutto td {
  background: var(--gruen-wash); color: var(--gruen-tief); font-weight: 700;
  font-size: 17.5px; border-top: 1px solid var(--gruen-rand);
}
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(--apricot-wash); border-radius: var(--r);
  padding: 20px 24px; margin: 0 0 28px;
}
.warn .lbl {
  font-family: var(--f-display); font-weight: 600; font-size: 13.5px;
  color: #9A5426; display: block; margin-bottom: 6px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .warn .lbl { color: var(--apricot); } }
.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: 80px; }
.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-radius: var(--r); padding: 24px 26px 26px;
  box-shadow: var(--schatten);
}
.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(--apricot); }
.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-display); font-size: 13px; font-weight: 500;
  color: var(--ink-3); background: var(--ground-2);
  padding: 5px 12px; border-radius: var(--r-pille); display: inline-block;
}

/* ---------- Prüfliste ---------- */

.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-radius: var(--r);
  padding: 20px 24px; box-shadow: var(--schatten);
}
.check li b {
  font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1;
  color: #fff; background: var(--gruen); 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-radius: var(--r);
  padding: 26px 28px 28px; margin: 0 0 26px; box-shadow: var(--schatten);
}
form.rechner label {
  display: block; font-family: var(--f-display); font-weight: 500; font-size: 14px;
  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(--gruen-rand); 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(--gruen-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 { background: var(--ground-2); margin-top: 88px; padding: 40px 0 48px; }
.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-family: var(--f-display); font-size: 15px; color: var(--ink-2); text-decoration: none; }
.fussnav a:hover { color: var(--gruen); }

@media (max-width: 620px) {
  body { font-size: 17px; }
  main { padding: 28px 18px 72px; }
  .inner { padding: 0 18px; }
  h2 { margin-top: 52px; }
  .kopf nav a { padding: 7px 11px; font-size: 14.5px; }
  .gegen, .karten, .ampelbox, .check { gap: 12px; }
  .tab { padding: 4px 0; }
  td, th { padding-left: 14px; padding-right: 14px; }
}

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

/* ================= Produkt-Ebene: Hero, Sofort-Check, Dialog ================= */

.claim {
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; color: var(--gruen); margin: 0 0 14px;
  display: inline-block; background: var(--gruen-wash);
  padding: 6px 14px; border-radius: var(--r-pille);
}

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 44px; align-items: start; margin: 8px 0 24px; max-width: none;
}
.hero-text { max-width: 34rem; }
.hero-text h1 { max-width: 17ch; }
.hero-text .lead { max-width: 46ch; }

.vertrauen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 24px; margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--gruen-rand);
}
.vertrauen b {
  display: block; font-family: var(--f-display); font-weight: 600; 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; }

/* ---- Sofort-Check ---- */

.check-karte {
  background: var(--surface); border-radius: 22px; padding: 30px 30px 32px;
  box-shadow: var(--schatten-hoch); position: sticky; top: 92px;
}
.check-titel { font-family: var(--f-display); font-weight: 600; 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: 600; font-size: 16.5px; margin: 0 0 14px; }

.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(--gruen-rand); 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: 600; font-size: 16.5px; }
.tierknopf:hover { transform: translateY(-2px); border-color: var(--gruen-hell); background: var(--gruen-wash); }
.tierknopf.an { 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(--gruen-rand); 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 { background: var(--gruen-wash); border-color: var(--gruen-hell); transform: translateY(-1px); }

.spanne {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.05; letter-spacing: -.035em; 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(--gruen-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: 600; 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; }
.knopf {
  font-family: var(--f-display); font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--gruen); color: #fff; padding: 12px 20px; border-radius: var(--r-pille);
  display: inline-block; transition: background .16s ease, transform .16s ease;
}
.knopf:hover { background: var(--gruen-tief); color: #fff; transform: translateY(-1px); }
.knopf.still { background: var(--gruen-wash); color: var(--gruen-tief); }
.knopf.still:hover { background: var(--gruen-rand); color: var(--gruen-tief); }

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

.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: 76px; }
.gegen-block h2 { margin-top: 0; }
.gegen-block > p, .gegen-block > .beleg { max-width: var(--spalte); }

/* ---- Geführter Rechnungs-Dialog ---- */

.dialog {
  background: var(--surface); border-radius: 22px; padding: 30px 32px 34px;
  box-shadow: var(--schatten-hoch); margin: 26px 0 40px; max-width: none;
}
.fortschritt { height: 5px; background: var(--gruen-wash); border-radius: var(--r-pille); overflow: hidden; }
.balken { height: 100%; width: 0; background: var(--gruen); border-radius: var(--r-pille); transition: width .35s ease; }
.zaehler { font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--ink-3); margin: 12px 0 20px; }
.dfrage { animation: einblenden .28s ease both; }
.dfrage h2 { margin: 0 0 10px; font-size: clamp(21px, 2.6vw, 27px); max-width: 22ch; }
.dfrage p { color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.jn { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.jn button {
  font-family: var(--f-display); font-weight: 600; font-size: 15.5px; cursor: pointer;
  background: var(--gruen); color: #fff; border: none; padding: 13px 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: var(--gruen-wash); color: var(--gruen-tief); }
.jn button.still:hover { background: var(--gruen-rand); }

.befund { animation: einblenden .3s ease both; }
.befund-titel { font-family: var(--f-display); font-weight: 600; 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); }
.befund p { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }
.baustein { background: var(--gruen-wash); border-radius: var(--r-klein); padding: 16px 18px; margin: 16px 0 4px; }
.baustein p:last-child { margin: 0; color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .check-karte { position: static; }
}
@media (max-width: 620px) {
  .check-karte, .dialog { padding: 24px 20px 26px; border-radius: 18px; }
  .vertrauen { gap: 16px; }
  .jn button { flex: 1 1 auto; }
}

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

/* Sektionsrhythmus: kleines Label, grosse zentrierte Ueberschrift, Unterzeile.
   Gibt langen Seiten eine Gliederung, die man beim Scrollen mitliest. */
.sektion-label {
  display: block; text-align: center; margin: 0 auto 14px;
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gruen);
  max-width: none;
}
.sektion-label::before { content: '● '; font-size: 10px; vertical-align: 2px; }
.sektion-titel {
  text-align: center; max-width: 20ch; margin: 0 auto 16px;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12;
}
.sektion-lead {
  text-align: center; max-width: 62ch; margin: 0 auto 52px;
  font-size: 18px; line-height: 1.62; color: var(--ink-2);
}

/* Ablauf: Text und Aufnahme nebeneinander, im Wechsel der Seite. */
.ablauf { margin: 84px 0; max-width: none; }
.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(--gruen); color: #fff;
  font-family: var(--f-display); font-weight: 600; 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; color: var(--ink-2);
}
.haken li::before {
  content: ''; position: absolute; left: 4px; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid var(--gruen);
  border-bottom: 2px solid var(--gruen); transform: rotate(-45deg);
}

/* Rahmen um eine Aufnahme. Der Rahmen ist Markup, nicht ins Bild gebrannt -
   so bleibt die Aufnahme scharf und der Rahmen folgt dem Farbschema. */
.geraet { margin: 0; }
.geraet img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--gruen-rand);
  box-shadow: var(--schatten-hoch); background: var(--surface);
}

@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 setzt diese Klasse, und zwar
   auf einer Kopie des Builds. Auf der ausgelieferten Seite kommt sie nie vor. */
.aufnahme .kopf,
.aufnahme .fuss,
.aufnahme .krumen,
.aufnahme .claim { display: none; }
.aufnahme main { padding-top: 22px; }

/* Rechnungspruefer. Das Werkzeug, wegen dem Leute wiederkommen: die eigene
   Rechnung, Zeile fuer Zeile nachgerechnet. */
.pruefer { margin: 44px 0; max-width: none; }
.pruefer h2 { margin-top: 40px; }
.pruefer table input { width: 100%; box-sizing: border-box; }
.pruefer .p-name { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.pruefer tr.auffaellig td { background: var(--apricot-wash); }

.knopf {
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: var(--r-pille); cursor: pointer;
  background: var(--gruen); color: #fff; border: 1px solid var(--gruen);
  transition: background .18s ease;
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); }
.knopf.leise { background: var(--surface); color: var(--ink-2); border-color: var(--gruen-rand); font-size: 13.5px; padding: 8px 14px; }
.knopf.leise:hover { background: var(--gruen-wash); color: var(--gruen-tief); }

/* Ein Befund je Regel. Die Farbe sagt, wie dringend, der Paragraf sagt, woher. */
.bfd {
  border-radius: var(--r-klein); padding: 16px 20px; margin: 0 0 10px;
  border-left: 4px solid var(--ink-3); background: var(--surface-2);
}
.bfd .lbl {
  display: block; font-family: var(--f-display); font-weight: 600;
  font-size: 13px; margin-bottom: 4px;
}
.bfd p { margin: 0; font-size: 15px; }
.bfd .par {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); margin-left: 4px;
}
.bfd.rot { background: var(--rose-wash); border-left-color: var(--rose); }
.bfd.rot .lbl { color: var(--rose); }
.bfd.gelb { background: var(--apricot-wash); border-left-color: var(--apricot); }
.bfd.gelb .lbl { color: var(--apricot); }
.bfd.gruen { background: var(--gruen-wash); border-left-color: var(--gruen); }
.bfd.gruen .lbl { color: var(--gruen-tief); }

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

/* Einreichung. Der Uebergang von "rechnet bei dir" zu "geht an uns" - deshalb
   optisch abgesetzt und mit einer Vorschau dessen, was wirklich rausgeht. */
.einreichung {
  margin: 56px 0; padding: 34px 34px 28px; max-width: none;
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--gruen-rand); box-shadow: var(--schatten);
}
.einreichung h2 { margin-top: 0; }
.einreichung h3 { margin-top: 30px; }
.einreichung .rechner { background: var(--surface-2); margin-top: 18px; }
.einreichung textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 11px 14px; border-radius: var(--r-klein);
  border: 1px solid var(--gruen-rand); background: var(--surface); color: var(--ink);
}
.vorschau {
  background: var(--gruen-wash); border: 1px solid var(--gruen-rand);
  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: 1px 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: 600; 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; }

/* Zustimmung: Kaestchen und Text nebeneinander, Text bleibt lesbar */
.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); }

/* Koederfeld gegen Maschinen. Nicht display:none, das erkennen manche. */
.hinweisfeld {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

/* Mengen-Rechner auf Krankheitsseiten: der Schieber, der zeigt, woher die
   Spanne kommt. Genau diese Rechnung fehlt bei allen anderen Anbietern. */
.mengen {
  background: var(--gruen-wash); border: 1px solid var(--gruen-rand);
  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-display); font-weight: 600; font-size: 17px;
  color: var(--gruen-tief); min-width: 12ch; text-align: right;
}
.mengen .tab { margin: 0 0 6px; }
.mengen .beleg { margin-bottom: 0; }

/* Die verwendeten Ziffern als anklickbare Kette */
.ziffernliste { display: flex; flex-wrap: wrap; gap: 7px; max-width: none; }
.ziffernliste a {
  font-family: var(--f-mono); font-size: 13.5px; padding: 5px 11px;
  border-radius: var(--r-klein); background: var(--surface-2);
  border: 1px solid var(--gruen-rand); color: var(--ink-2); text-decoration: none;
}
.ziffernliste a:hover { background: var(--gruen-wash); color: var(--gruen-tief); }

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

/* Tierart-Umschalter: gleiches Gewicht fuer Hund und Katze, keine Vorauswahl */
.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(--gruen-wash); color: var(--gruen-tief); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  border: 1px solid var(--gruen-rand); transition: background .18s ease, color .18s ease;
}
.tierumschalter a:hover { background: var(--gruen); color: #fff; border-color: var(--gruen); }

.krumen { font-size: 13.5px; color: var(--ink-3); margin: 0 0 14px; max-width: none; }
.krumen a { color: var(--ink-3); text-decoration: none; }
.krumen a:hover { color: var(--gruen); text-decoration: underline; }
.krumen i { font-style: normal; margin: 0 8px; opacity: .5; }

/* FAQ */
.faq { margin-top: 72px; max-width: none; }
.faq h2 { margin-top: 0; }
.fitem {
  background: var(--surface); border-radius: var(--r-klein);
  margin-bottom: 8px; box-shadow: var(--schatten); overflow: hidden;
}
.fitem summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--f-display); font-weight: 600; 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: 72px; background: var(--surface); border-radius: var(--r); padding: 30px 32px 32px; box-shadow: var(--schatten); 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 solid var(--gruen-rand); }
.quelltabelle > div:last-child { border-bottom: 1px solid var(--gruen-rand); }
.quelltabelle dt { font-family: var(--f-display); font-weight: 500; font-size: 14.5px; 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: 72px; max-width: none; }
.weiter h2 { margin-top: 0; }
.hilfe-hinweis { margin-top: 64px; background: var(--gruen-wash); 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; }
.karte.statisch { cursor: default; }
.karte.statisch:hover { transform: none; box-shadow: var(--schatten); }

/* Person */
.person {
  display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start;
  background: var(--surface); border-radius: var(--r); padding: 28px 30px 30px;
  box-shadow: var(--schatten); 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: linear-gradient(160deg, var(--gruen) 0%, var(--gruen-tief) 100%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.02em;
}

/* 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-radius: var(--r); padding: 22px 24px 24px; box-shadow: var(--schatten); }
.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-display); font-weight: 600; font-size: 12px;
  padding: 4px 11px; border-radius: var(--r-pille); display: inline-block;
}
.rolle-status.ok { background: var(--gruen-wash); color: var(--gruen-tief); }
.rolle-status.offen { background: var(--apricot-wash); color: #9A5426; }

/* Fuss */
.fuss-oben { display: grid; grid-template-columns: minmax(260px, 1.1fr) 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-display); font-weight: 500; font-size: 12.5px;
  background: var(--surface); color: var(--gruen-tief);
  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: 9px; }
.fuss-titel { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); margin: 0 0 2px; }
.fuss-spalten a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.fuss-spalten a:hover { color: var(--gruen); }
.fuss-unten { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--gruen-rand); }

@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(--gruen-rand);
  font-family: var(--f-display); font-weight: 500; font-size: 14px; 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: 18px; line-height: 1.72; }
.artikel-text ul, .artikel-text ol { font-size: 18px; }
.artikel-text blockquote {
  margin: 22px 0; padding: 20px 24px; background: var(--gruen-wash);
  border-radius: var(--r-klein); font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
}
.artikel-text hr { border: none; border-top: 1px solid var(--gruen-rand); margin: 44px 0; }
.karte .kat {
  font-family: var(--f-display); font-weight: 600; font-size: 12px;
  color: var(--gruen); background: var(--gruen-wash);
  padding: 4px 11px; border-radius: var(--r-pille); align-self: flex-start; margin-bottom: 4px;
}
