/* Pferde-Rechner – zentrales Stylesheet (v2 „Weide & Leder“, 16.11.2026)
   Design: entwuerfe/entwurf-a-weide-leder.html (Nutzerwahl 16.11.2026). Creme, Dunkelgrün, Cognac;
   Überschriften Fraunces, Text Source Sans 3, beide lokal. Navigation und FAQ nach Modern Web Guidance (navbar, accordion). */

/* ===== Schriften (SIL Open Font License, fonts/*-LICENSE.txt), lokal, nur lateinischer Zeichensatz ===== */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
/* Ersatzschriften mit angepassten Maßen (aus den Schriftdateien berechnet), damit beim Tausch nichts springt */
@font-face {
  font-family: "Fraunces Ersatz";
  src: local("Georgia");
  size-adjust: 114.8%; ascent-override: 85.2%; descent-override: 22.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans 3 Ersatz";
  src: local("Arial"), local("Helvetica");
  size-adjust: 85.2%; ascent-override: 120.2%; descent-override: 46.9%; line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --grund: #F6F1E7;     /* Creme */
  --karte: #FFFDF8;
  --gruen: #2F4A3A;     /* Dunkelgrün */
  --gruen-700: #24392c;
  --gruen-500: #4a6b55;
  --gruen-hell: #E3EADF;
  --cognac: #A35F2C;
  --cognac-dunkel: #87491d;
  --cognac-hell: #f5e6d8;
  --text: #2A2622;
  --leise: #6B6258;
  --linie: #E2D8C7;
  --weiss: #ffffff;
  --serif: "Fraunces", "Fraunces Ersatz", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans 3 Ersatz", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 16px;
  --radius-klein: 10px;
  --schatten-1: 0 1px 3px rgba(60, 45, 25, .08);
  --schatten-2: 0 6px 18px rgba(60, 45, 25, .08);
  --schatten-3: 0 14px 40px rgba(60, 45, 25, .12);
  --kopf-hoehe: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 12px); }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--gruen); text-underline-offset: 3px; text-decoration-color: rgba(47, 74, 58, .35); }
a:hover { color: var(--cognac); text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.15; color: var(--gruen); margin: 0 0 .4em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cognac); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== Kopfzeile: eine Navigation für alle Breiten (Popover schmal, Zeile breit) ===== */
.site-header { background: var(--grund); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--kopf-hoehe); gap: var(--s4); }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gruen); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--gruen); }

.menu-button {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  background: var(--karte); border: 1px solid var(--linie); color: var(--gruen);
  border-radius: 999px; padding: 6px 16px; font: 600 1rem var(--sans); cursor: pointer;
  anchor-name: --menu-button;
}
.menu-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-button:hover { border-color: var(--gruen-500); }

.site-menu {
  list-style: none; margin: 0; padding: var(--s2);
  position: fixed; inset: auto;
  inset-block-start: calc(var(--kopf-hoehe) + 4px);
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 22rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: .5rem;
  overflow: auto;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-3); color: var(--text);
}
.site-header:not(.is-wide) .site-menu:not(:is(:popover-open, .offen)) { display: none; }
.site-menu::backdrop { background: rgba(42, 38, 34, .2); }
.site-menu a { display: block; color: var(--text); text-decoration: none; padding: 10px var(--s3); border-radius: var(--radius-klein); font-weight: 600; }
.site-menu a:hover { background: var(--gruen-hell); color: var(--cognac); }
.site-menu a[aria-current="page"] { color: var(--gruen); text-decoration: underline; text-decoration-color: var(--cognac); text-decoration-thickness: 2px; text-underline-offset: 7px; }

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: var(--s2);
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: var(--s2) var(--s3); }
.site-header.is-wide .site-menu a:hover { background: transparent; }
.site-header.is-measuring * { transition: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .site-header:not(.is-wide) .site-menu {
    transition: opacity .15s, translate .15s, display .15s, overlay .15s;
    transition-behavior: allow-discrete;
  }
  .site-header:not(.is-wide) .site-menu:not(:popover-open) { opacity: 0; translate: 0 -6px; }
  @starting-style {
    .site-header:not(.is-wide) .site-menu:popover-open { opacity: 0; translate: 0 -6px; }
  }
}
@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid CanvasText; }
}

/* ===== Knöpfe ===== */
.btn, .knopf {
  display: inline-block; background: var(--cognac); color: var(--weiss); border: 0; border-radius: 999px;
  padding: 14px 26px; font: 600 1.05rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .12s, transform .12s;
}
.btn:hover, .knopf:hover { background: var(--cognac-dunkel); color: var(--weiss); }
.btn:active, .knopf:active { transform: translateY(1px); }

/* ===== Startseite: Hero mit Foto und Frage ===== */
.hero {
  position: relative; min-height: 470px; display: flex; align-items: flex-end; color: var(--weiss); overflow: hidden;
  /* Platzhalter-Verlauf, solange kein Foto freigegeben ist */
  background: linear-gradient(160deg, #9BB08A 0%, #6F8B5E 45%, #4D6A43 70%, #3A5233 100%);
}
.hero-foto { position: absolute; inset: 0; margin: 0; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 60%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 30, 22, .55) 0%, rgba(20, 30, 22, 0) 65%), linear-gradient(180deg, rgba(20, 30, 22, .05) 30%, rgba(20, 30, 22, .7)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 96px; }
.hero h1 { color: var(--weiss); font-size: clamp(2rem, 5vw, 3.3rem); max-width: 15ch; margin-bottom: .3em; }
.hero p { max-width: 46ch; font-size: 1.15rem; margin: 0; color: #fbf8f2; }

/* Schwebender Schnell-Check */
.check { margin-top: -60px; position: relative; z-index: 2; }
.check-box {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 28px;
  box-shadow: var(--schatten-3); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px;
}
.check h2 { font-size: 1.5rem; }
.check label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
.feld { display: flex; border: 1.5px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--weiss); }
.feld:focus-within { border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(47, 74, 58, .2); }
.feld input { flex: 1; min-width: 0; border: 0; padding: 14px; font: inherit; font-size: 1.15rem; background: transparent; color: var(--text); }
.feld input:focus-visible { outline: none; }
.feld span { padding: 14px; background: var(--gruen-hell); color: var(--gruen); font-weight: 600; }
.check .knopf { margin-top: 1.1rem; }
.check-quelle { font-size: .85rem; color: var(--leise); margin: var(--s3) 0 0; }
.ergebnis { background: var(--gruen); color: var(--grund); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: var(--s1); }
.ergebnis small { opacity: .85; font-size: .9rem; }
.ergebnis .zahl { font-family: var(--serif); font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ergebnis a { color: var(--grund); font-weight: 600; margin-top: var(--s2); }

/* Abschnitte */
.abschnitt { padding-block: var(--s8); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 26px; }
.abschnitt-kopf h2 { font-size: 1.9rem; margin: 0; }
.abschnitt-kopf p { color: var(--leise); margin: 0; max-width: 52ch; }

/* Rechner-Karten mit Foto */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.karte { transition: transform .15s, box-shadow .15s; }
a.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-2); color: inherit; }
.karte .bild { aspect-ratio: 16 / 10; margin: 0; background: var(--gruen-hell); }
.karte .bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte .inhalt { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { font-size: 1.25rem; }
.karte p { margin: 0; color: var(--leise); flex: 1; }
.karte .mehr { display: inline-block; margin-top: .7rem; color: var(--cognac); font-weight: 600; }
.karte.bald .mehr { color: var(--leise); }
.bald-marke { align-self: flex-start; margin-top: .7rem; font-size: .8rem; font-weight: 600; color: var(--cognac-dunkel); background: var(--cognac-hell); border-radius: 999px; padding: 2px 10px; }
/* Platzhalter-Verläufe aus dem Entwurf, bis die Fotos freigegeben sind */
.karte .b1 { background: linear-gradient(135deg, #C9B28A, #A88A5C); } .karte .b2 { background: linear-gradient(135deg, #8FA77E, #5E7A50); }
.karte .b3 { background: linear-gradient(135deg, #B99572, #7E5A3C); } .karte .b4 { background: linear-gradient(135deg, #9AA8A0, #5D6E66); }
.karte .b5 { background: linear-gradient(135deg, #C7A98C, #8C6A4E); } .karte .b6 { background: linear-gradient(135deg, #A9B48A, #6B7A4A); }

/* Kasten „Zahlen mit Herkunft“ */
.herkunft { background: var(--gruen-hell); border-radius: 18px; padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.herkunft .kreis { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen); color: var(--grund); display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; }
.herkunft p { margin: 0; }

/* ===== Inhaltsseiten ===== */
.breadcrumb { font-size: .9rem; color: var(--leise); padding: var(--s4) 0 0; }
.breadcrumb a { color: var(--leise); }
main.wrap > h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: var(--s3) 0; max-width: 820px; }
main.wrap > p { color: var(--text); max-width: 72ch; font-size: 1.05rem; }
.text-seite { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--s6); margin: var(--s4) 0 var(--s7); }
.text-seite > * { max-width: 72ch; }
.text-seite h2 { font-size: 1.3rem; margin-top: var(--s6); }

.kurzantwort { background: var(--gruen-hell); border-left: 4px solid var(--gruen); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s5); margin: var(--s4) 0 var(--s5); }
.kurzantwort p { margin: 0; }
.kurzantwort strong { color: var(--gruen); }

/* ===== Rechner ===== */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; margin: var(--s5) 0 var(--s7); }
.calc-card { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: var(--s6); box-shadow: var(--schatten-2); }
.calc-card h2 { margin-top: 0; }
.section-label { font-weight: 600; color: var(--cognac-dunkel); margin: var(--s5) 0 var(--s3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: var(--s3); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
form > .section-label:first-child { margin-top: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 var(--s4); }
.form-group { margin-bottom: var(--s4); }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--leise); font-weight: 400; font-size: .9rem; }
input[type=number], input[type=text], select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: 12px;
  font: inherit; font-size: max(1rem, 16px); background: var(--weiss); color: var(--text);
}
input[type=number]:hover, input[type=text]:hover, select:hover { border-color: #cdbfa8; }
.calc-card input:focus-visible, .calc-card select:focus-visible { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(47, 74, 58, .2); }
input:user-invalid { border-color: #b3261e; }
.calc-card .knopf, .calc-card .btn { width: 100%; margin-top: var(--s2); }

.result-box { display: none; margin-top: var(--s5); background: var(--gruen); color: var(--grund); border-radius: 14px; padding: var(--s5) var(--s5) var(--s4); }
.result-box.show { display: block; }
.result-box h3 { color: #c9d8c4; font-family: var(--sans); font-weight: 600; margin: 0 0 var(--s1); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.result-main { font-family: var(--serif); font-size: 2.6rem; margin-bottom: var(--s4); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.result-row:last-of-type { border-bottom: 0; }
.result-row > span:first-child { opacity: .85; }
.result-row .value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.result-row .highlight { color: #f0c79f; }
.result-tip { margin-top: var(--s4); font-size: .95rem; background: rgba(255,255,255,.08); border-left: 3px solid #f0c79f; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; padding: var(--s3) var(--s4); }
.result-tip p { margin: 0 0 var(--s2); }
.result-tip p:last-child { margin-bottom: 0; }
.schaetzung { display: inline-block; background: var(--cognac-hell); color: var(--cognac-dunkel); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 600; vertical-align: middle; }
.result-box .schaetzung { background: rgba(240, 199, 159, .2); color: #f0c79f; }
.hinweis-tier { font-size: .92rem; background: var(--cognac-hell); border-radius: var(--radius-klein); padding: var(--s3) var(--s4); margin: var(--s4) 0 0; }

.sidebar-card { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s5); }
.sidebar-card h4, .sidebar-card .h4 { margin: 0 0 var(--s3); font-size: 1.1rem; }
.sidebar-card ul { padding-left: 1.1em; margin: 0; }
.sidebar-card li { margin-bottom: var(--s2); }

.info-text { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--s6) var(--s7); margin-bottom: var(--s7); }
.info-text > * { max-width: none; }
.info-text h2 { font-size: 1.45rem; margin: var(--s6) 0 var(--s3); }
.info-text h2:first-child { margin-top: 0; }
.quellen { font-size: .92rem; color: var(--leise); }
.quellen li { margin-bottom: var(--s1); }

.tabelle-wrap { overflow-x: auto; margin: var(--s3) 0 var(--s4); border-radius: var(--radius-klein); border: 1px solid var(--linie); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--karte); font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 9px 12px; text-align: left; }
.tabelle th { background: var(--gruen-hell); color: var(--gruen); font-size: .85rem; }
.tabelle tbody tr:nth-child(even) td { background: #faf6ee; }
.tabelle th:not(:first-child), .tabelle td:not(:first-child) { text-align: right; }

/* ===== Häufige Fragen: details/summary, Pfeil direkt vor der Frage ===== */
.faq { padding-bottom: var(--s7); }
.faq h2 { margin-bottom: var(--s4); font-size: 1.9rem; }
.faq details { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: var(--s4) var(--s5); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--gruen); list-style: none; display: flex; align-items: baseline; gap: .6ch; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; inline-size: .9em; block-size: .9em; flex-shrink: 0; align-self: center;
  background-color: var(--cognac);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8l7 8 7-8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq details[open] > summary::before { rotate: 0deg; }
.faq details p { margin: var(--s3) 0 0; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate .2s; }
  .faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: .25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* ===== Fußzeile ===== */
.site-footer { border-top: 1px solid var(--linie); padding: var(--s7) 0 var(--s5); color: var(--leise); font-size: .97rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--cognac); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s5); }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s2); }
.footer-unten { border-top: 1px solid var(--linie); margin-top: var(--s6); padding-top: var(--s4); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Handy ===== */
@media (max-width: 820px) {
  .check-box { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .abschnitt-kopf { display: block; }
  .abschnitt-kopf p { margin-top: var(--s2); }
  .hero { min-height: 420px; }
  .hero .wrap { padding-bottom: 84px; }
  .herkunft { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .abschnitt { padding-block: var(--s7); }
  .footer-grid { grid-template-columns: 1fr; }
  .text-seite, .info-text { padding: var(--s5) var(--s4); }
  .calc-card { padding: var(--s5) var(--s4); }
  .ergebnis .zahl { font-size: 2.6rem; }
  .check .knopf { width: 100%; }
  /* Rechner-Karten am Handy waagerecht: kleines Bild links, Text rechts (3–4 Karten je Bildschirm) */
  .karten { gap: 12px; }
  .karte { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
  .karte .bild { flex: 0 0 104px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; }
  .karte .inhalt { padding: 0; min-width: 0; align-self: stretch; justify-content: center; }
  .karte h3 { font-size: 1.1rem; margin-bottom: .2em; }
  .karte p { font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; flex: 0 1 auto; }
  .karte .mehr, .bald-marke { margin-top: .45rem; }
}

/* ===== Rechner-Bausteine (v3, 16.11.2026; Modern Web Guidance „forms“, „validate-input-after-interaction“) ===== */
.calc-card form { margin: 0; }
.calc-card .feld { margin-top: 0; }
.calc-card .feld input { min-height: 48px; font-size: max(1rem, 16px); }
.form-group > label, .wahl > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.form-group .hint { display: block; margin: -2px 0 6px; }
.wahl { border: 0; padding: 0; margin: 0 0 var(--s4); min-inline-size: 0; }
.optionen { display: flex; flex-wrap: wrap; gap: var(--s2); }
.option {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 8px 14px;
  border: 1.5px solid var(--linie); border-radius: 999px; background: var(--weiss); cursor: pointer; font-weight: 500;
}
.option:has(input:checked) { border-color: var(--gruen); background: var(--gruen-hell); font-weight: 600; }
.option:has(input:focus-visible) { outline: 3px solid var(--cognac); outline-offset: 2px; }
.option input { accent-color: var(--gruen); inline-size: 18px; block-size: 18px; margin: 0; }
.fehler { display: none; color: #a12b1f; font-size: .92rem; margin-top: 4px; }
.form-group:has(:user-invalid) .fehler { display: block; }
.form-group:has(:user-invalid) .feld, input:user-invalid { border-color: #a12b1f; background: #fdf0ee; }
.mehr-felder { border: 1px dashed var(--linie); border-radius: 12px; padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.mehr-felder > summary { cursor: pointer; font-weight: 600; color: var(--gruen); }
.mehr-felder[open] > summary { margin-bottom: var(--s3); }
.result-box output, .result-main { display: block; }
.result-box .tabelle-wrap { border-color: rgba(255,255,255,.15); }
.result-box .tabelle { background: transparent; color: inherit; }
.result-box .tabelle th { background: rgba(255,255,255,.1); color: #fff; }
.result-box .tabelle tbody tr:nth-child(even) td { background: rgba(255,255,255,.05); }
.result-box .tabelle tr.treffer td { color: #f0c79f; font-weight: 700; }
.status { font-weight: 700; }
.status.ok::before { content: "✓ "; }
.status.warn::before { content: "! "; }
.status.stopp::before { content: "✗ "; }
.status.warn, .status.stopp { color: #f0c79f; }
.result-box .hinweis-tier { background: rgba(255,255,255,.08); color: inherit; }
.seiten-bild { margin: 0 0 var(--s5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); }
.seiten-bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.weitere { list-style: none; padding: 0 !important; margin: 0; }
.weitere li { border-bottom: 1px solid var(--linie); margin: 0 !important; }
.weitere li:last-child { border-bottom: 0; }
.weitere a, .weitere span { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.weitere span { color: var(--leise); font-weight: 400; }
.info-text ol, .info-text ul { padding-left: 1.3em; }
.info-text li { margin-bottom: var(--s1); }
.formel { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; background: var(--gruen-hell); border-radius: 8px; padding: 2px 6px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.result-box .tabelle td { white-space: nowrap; }
.result-box .tabelle th[scope="row"] { font-weight: 600; text-transform: none; letter-spacing: 0; background: transparent; color: inherit; font-size: inherit; }
@media (max-width: 640px) {
  .result-box { padding-inline: var(--s4); }
  .result-box .tabelle { font-size: .9rem; }
  .result-box .tabelle th, .result-box .tabelle td { padding: 8px 6px; }
}
.result-box .tabelle-wrap { border: 0; }
@media (max-width: 640px) {
  .tabelle.geraete th:nth-child(2), .tabelle.geraete td:nth-child(2) { display: none; }
  .result-box .tabelle.geraete th[scope="row"] { white-space: normal; }
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* Bündig (Nutzer 17.11.2026): rechte Spalte endet mit dem Rechner, letzte Karte füllt den Rest */
.calc-layout { align-items: stretch; }
.calc-layout > aside { display: flex; flex-direction: column; }
.calc-layout > aside > :last-child { flex: 1; }
