/* was-frisst-mein-pferd – ruhiges, neutrales Design. Keine externen Schriften (Datenschutz). */
:root {
  --bg: #f7f5f0;
  --flaeche: #ffffff;
  --text: #26302a;
  --text-leise: #5d675f;
  --akzent: #3f6647;
  --akzent-hell: #e6eee7;
  --rand: #dcd8cf;
  --fuss-bg: #eceade;
  --hinweis-bg: #fbf3dc;
  --hinweis-rand: #e4d3a1;
  --unbekannt: #8a6d3b;
  /* Balken in der Vergleichstabelle – gedeckte Erdtöne, keine Bewertung */
  --balken-neutral: #5c8163;
  --balken-niedrig: #5c8163;
  --balken-mittel: #b1913f;
  --balken-hoch: #a4624a;
  --balken-spur: rgba(38, 48, 42, 0.12);
  --r1: 0.5rem;
  --r2: 1rem;
  --r3: 1.5rem;
  --r4: 2.5rem;
  --r5: 3.5rem;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* weich auslaufende Kurve für alle Bewegungen am Schieberegler */
  --feder: cubic-bezier(0.16, 1, 0.3, 1);
  /* Pfeil der Auswahlfelder – als Bild, damit alle gleich aussehen */
  --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4 11 1.6' fill='none' stroke='%235d675f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pfeil-akzent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4 11 1.6' fill='none' stroke='%233f6647' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --breite: 1120px;
  --text-breite: 760px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
img { max-width: 100%; }
a { color: var(--akzent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
/* Interne Links tragen keine Unterstreichung, sie erscheint bei Hover und Tastaturfokus.
 * Links nach außen (Shops, Affiliate) behalten ihre Unterstreichung – "//" steht nur in
 * absoluten Adressen. */
a[href]:not([href*="//"]):not(.knopf) { text-decoration: none; }
a[href]:not([href*="//"]):not(.knopf):hover,
a[href]:not([href*="//"]):not(.knopf):focus-visible { text-decoration: underline; }
/* Im Fließtext bleiben sie ohne Unterstreichung an Farbe und Schriftstärke erkennbar */
.artikel-text p a, .artikel-text li a,
.info-text p a, .info-text li a,
.text-seite p a, .text-seite li a,
#produkt p a { font-weight: 600; }
:focus-visible { outline: 3px solid #8fb396; outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: #1e2a22; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.leise { color: var(--text-leise); }
.klein { font-size: 0.875rem; }

main {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--r3) 16px var(--r4);
  /* Auf kurzen Seiten füllt der Inhalt den Bildschirm – der Fußbereich kommt erst beim Scrollen */
  min-height: 100vh;
  min-height: 100dvh;
}
.text-seite { max-width: var(--text-breite); }

/* ---------- Startseite: `main` über die volle Breite ----------
 * Damit das Startbild wirklich von Rand zu Rand geht, bringt hier jeder
 * Abschnitt seine Einrückung selbst mit statt `main`. Das ist verlässlicher
 * als ein Ausbruch mit negativen Prozent-Abständen (die rechnen nicht in
 * jedem Browser gleich). */
.start-seite main { max-width: none; padding-inline: 0; }
.start-seite .quiz-bereich { max-width: none; }
.start-seite main > .abschnitt,
.quiz-rahmen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Kopf ---------- */
header#kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--akzent);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
header#kopf.gescrollt { border-bottom-color: rgba(0, 0, 0, 0.18); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
/* Der grüne Balken ist dunkel – der Tastaturfokus braucht darauf Weiß */
header#kopf :focus-visible { outline-color: #fff; }
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--text); text-decoration: none; }
.logo span { color: var(--text-leise); font-weight: 400; }
/* Im grünen Kopf weiß, im hellen Fußbereich grün */
#kopf .logo { color: #fff; }
#kopf .logo span { color: rgba(255, 255, 255, 0.78); }
#hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
#hauptnav a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
}
#hauptnav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
#hauptnav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; }
.menu-knopf { display: none; }

.menu-strich { display: none; }

@media (max-width: 760px) {
  .kopf-innen { padding: 0.6rem 16px; }
  .menu-knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: inherit;
    font-size: 0.925rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    color: #fff;
    cursor: pointer;
  }
  /* Drei Striche, die beim Öffnen zum Kreuz werden */
  .menu-strich, .menu-strich::before, .menu-strich::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-strich { position: relative; }
  .menu-strich::before, .menu-strich::after { content: ""; position: absolute; left: 0; }
  .menu-strich::before { top: -5px; }
  .menu-strich::after { top: 5px; }
  .menu-knopf[aria-expanded="true"] .menu-strich { background: transparent; }
  .menu-knopf[aria-expanded="true"] .menu-strich::before { transform: translateY(5px) rotate(45deg); }
  .menu-knopf[aria-expanded="true"] .menu-strich::after { transform: translateY(-5px) rotate(-45deg); }

  #hauptnav { display: none; width: 100%; }
  #hauptnav.offen { display: block; margin-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  #hauptnav ul { flex-direction: column; gap: 0; }
  #hauptnav.offen a { border-radius: 0; padding: 0.7rem 0.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  #hauptnav.offen li:last-child a { border-bottom: 0; }
}

/* ---------- Newsletter: eigener Abschnitt über dem Fußbereich ----------
 * Liegt auf dem Seitenhintergrund, der Fußbereich darunter bleibt sandfarben. */
.newsletter-bereich { margin-top: auto; padding: var(--r5) 0; background: var(--bg); }
/* Gleiche Breite und Kante wie der Seiteninhalt darüber */
.newsletter-innen { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
/* Ohne Kasten: Illustration und Text stehen direkt auf dem Seitenhintergrund */
.newsletter-inhalt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--r3), 4vw, var(--r5));
}
.newsletter-bild { width: clamp(200px, 20vw, 280px); }
.newsletter-illu { display: block; width: 100%; height: auto; }
.newsletter-text { min-width: 0; }
.newsletter-text h2 { margin: 0 0 var(--r2); font-size: 1.35rem; line-height: 1.3; }

/* Vorteile als ruhige Chips statt als Liste */
.newsletter-vorteile { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem 0.5rem; padding: 0; margin: 0 0 var(--r3); }
.newsletter-vorteile li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--akzent-hell);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
}
.newsletter-vorteile .haken { color: var(--akzent); font-weight: 700; }

/* Eingabefeld und Schaltfläche als eine Einheit: gemeinsamer Rahmen, keine Lücke */
.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.newsletter-form:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(63, 102, 71, 0.16); }
.newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.8rem 1rem;
  appearance: none;
}
.newsletter-form input::placeholder { color: var(--text-leise); opacity: 1; }
.newsletter-form input:focus, .newsletter-form input:focus-visible { outline: none; }
.newsletter-form .knopf {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0;
  padding: 0.8rem 1.25rem;
}
.newsletter-form .knopf:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); }
.newsletter-meldung { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.5; }
.newsletter-meldung:empty { display: none; }
.newsletter-meldung.erfolg { color: var(--akzent); }
.newsletter-meldung.fehler { color: #9a3412; }
.newsletter-klein { margin: 0.7rem 0 0; font-size: 0.85rem; line-height: 1.5; }
.newsletter-klein a { color: var(--text-leise); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.newsletter-klein a:hover { color: var(--text); }

@media (max-width: 760px) {
  .newsletter-bereich { padding: var(--r4) 0; }
  .newsletter-inhalt { grid-template-columns: 1fr; justify-items: start; gap: var(--r2); }
  .newsletter-bild { width: 160px; }
  .newsletter-form { max-width: none; flex-direction: column; }
  .newsletter-form input { border-bottom: 1px solid var(--rand); }
  .newsletter-form .knopf { width: 100%; }
}

/* ---------- Fußbereich ----------
 * Alle Zonen liegen im selben 12-Spalten-Raster, damit die Kanten übereinanderliegen. */
footer#fuss {
  background: var(--fuss-bg);
  border-top: 1px solid var(--rand);
  color: var(--text);
}
.fuss-innen {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--r5) clamp(16px, 4vw, 48px);
}
.fuss-raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--r4);
  row-gap: var(--r3);
}

/* Zone 2: Marke und Linkspalten */
.fuss-mitte { padding-bottom: var(--r5); }
.fuss-marke { grid-column: 1 / span 6; }
.fuss-marke .logo { font-size: 1.15rem; color: var(--akzent); }
.fuss-marke .logo span { color: var(--text-leise); }
.fuss-marke p { margin: 0.5rem 0 0; font-size: 0.925rem; line-height: 1.6; color: var(--text-leise); max-width: 38ch; }
.fuss-spalten { display: contents; }
.fuss-spalte:first-child { grid-column: 7 / span 3; }
.fuss-spalte:last-child { grid-column: 10 / span 3; }
.fuss-spalte h3 { margin: 0 0 0.75rem; font-family: var(--sans); font-size: 0.925rem; line-height: 1.4; letter-spacing: 0.02em; }
.fuss-spalte ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.925rem; line-height: 1.4; }
.fuss-spalte a { color: var(--text-leise); }
.fuss-spalte a:hover { color: var(--text); }

/* Zone 3: Pflichthinweise als Kleingedrucktes */
.fuss-notizen-text { grid-column: 1 / -1; font-size: 0.75rem; line-height: 1.45; color: #7c857e; max-width: 90ch; }
.fuss-notizen-text p { margin: 0 0 0.15rem; }
.fuss-notizen-text p:last-child { margin-bottom: 0; }

/* Zone 4: Abschlusszeile */
.fuss-unten {
  align-items: center;
  row-gap: 0.75rem;
  margin-top: var(--r5);
  padding-top: var(--r3);
  border-top: 1px solid var(--rand);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-leise);
}
.fuss-copyright { grid-column: 1 / span 6; margin: 0; }
.fuss-recht { grid-column: 7 / span 6; justify-self: end; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; }
.fuss-recht a { color: var(--text-leise); }
.fuss-recht a:hover { color: var(--text); }

/* Schwebende Schaltfläche: fest in der Ecke, verschwindet an der Abschlusszeile */
.nach-oben {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(16px, 2vw, 32px);
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rand);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
}
.nach-oben.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:hover { border-color: var(--akzent); color: var(--akzent); }

/* Tablet: Marke über die halbe Breite, Linkspalten daneben */
@media (max-width: 1000px) {
  .fuss-marke { grid-column: span 6; }
  .fuss-spalte:first-child { grid-column: 7 / span 3; }
  .fuss-spalte:last-child { grid-column: 10 / span 3; }
}

/* Handy: alles untereinander, linksbündig */
@media (max-width: 760px) {
  .fuss-innen { padding: var(--r4) 16px; }
  .fuss-raster { column-gap: var(--r3); row-gap: var(--r3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-marke, .fuss-notizen-text, .fuss-copyright, .fuss-recht { grid-column: 1 / -1; }
  .fuss-spalte:first-child { grid-column: 1 / span 1; }
  .fuss-spalte:last-child { grid-column: 2 / span 1; }
  .fuss-recht { justify-self: start; }
  .fuss-mitte { padding-bottom: var(--r4); }
  .fuss-unten { margin-top: var(--r4); }
  .nach-oben { width: 2.5rem; height: 2.5rem; }
}

/* ---------- Bausteine ---------- */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schatten);
}
.badge-beispiel {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b5518;
  background: var(--hinweis-bg);
  border: 1px solid var(--hinweis-rand);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.unbekannt { color: var(--unbekannt); font-style: italic; }
.ja { color: var(--akzent); }
.nein { color: var(--text-leise); }
.hinweis {
  background: var(--hinweis-bg);
  border: 1px solid var(--hinweis-rand);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.925rem;
}
.hinweis p:last-child { margin-bottom: 0; }

.knopf {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  background: var(--akzent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: #33563b; }
.knopf.zweit { background: transparent; color: var(--akzent); border: 1px solid var(--akzent); }
.knopf.zweit:hover { background: var(--akzent-hell); }

/* ---------- Formulare ---------- */
label { font-weight: 600; font-size: 0.925rem; }
input[type="number"], select {
  font: inherit;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rand);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.feld { display: flex; flex-direction: column; gap: 0.3rem; }
.check { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; }
.check input { margin-top: 0.3rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; padding: 0; }

/* ---------- Kategorie: Filter + Tabelle ---------- */
/* Der Filter steckt im Ausklappmenü der Werkzeugleiste, nicht mehr in einer
 * eigenen Spalte – die Tabelle hat dadurch immer die volle Breite. */
.kat-layout { display: block; }
.filter { display: grid; gap: 0.85rem; }
.filter .ref { border-top: 1px solid var(--rand); padding-top: 0.75rem; display: grid; gap: 0.75rem; }

.tabelle-wrap { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid #ece9e2; vertical-align: top; }
th { background: #f1efe9; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
.produktname { font-weight: 600; }
.marke { display: block; font-size: 0.8rem; color: var(--text-leise); font-weight: 400; }

/* Tabellen auf dem Handy als Karten */
@media (max-width: 700px) {
  .tabelle-karten, .tabelle-karten tbody, .tabelle-karten tr, .tabelle-karten td { display: block; width: 100%; }
  .tabelle-karten thead { position: absolute; left: -9999px; }
  .tabelle-karten tr { border-bottom: 1px solid var(--rand); padding: 0.75rem 0.25rem; }
  .tabelle-karten td { border: 0; padding: 0.2rem 0.75rem; text-align: left !important; display: flex; justify-content: space-between; gap: 1rem; }
  .tabelle-karten td::before { content: attr(data-label); color: var(--text-leise); font-size: 0.85rem; }
  .tabelle-karten td.titel-zelle { display: block; margin-bottom: 0.3rem; }
  .tabelle-karten td.titel-zelle::before { content: none; }
  .tabelle-karten td.aktion::before { content: none; }
}
.leer { padding: 1.5rem; text-align: center; color: var(--text-leise); }

/* ---------- Produktseite ---------- */
.brotkrumen { font-size: 0.875rem; color: var(--text-leise); margin-bottom: 1rem; }
.brotkrumen a { color: var(--text-leise); }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.eckdaten div { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px; padding: 0.7rem 0.9rem; }
.eckdaten dt { font-size: 0.8rem; color: var(--text-leise); }
.eckdaten dd { margin: 0; font-weight: 600; }

/* ---------- Rechner (eingebettet auf der Produktseite) ---------- */
.rechner-bereich { margin-top: var(--r4); }
.rechner-bereich > h2 { margin-top: 0; }
.rechner-layout { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .rechner-layout { grid-template-columns: 1fr; } }
.ergebnis-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.ergebnis-zahlen div { background: var(--akzent-hell); border-radius: 8px; padding: 0.8rem 1rem; }
.ergebnis-zahlen .gross { font-size: 1.5rem; font-weight: 700; font-family: var(--serif); display: block; }
.ergebnis-zahlen .beschr { font-size: 0.85rem; color: var(--text-leise); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kat-layout > *, .finder-layout > *, .rechner-layout > * { min-width: 0; }

/* ---------- Werkzeugleiste über der Tabelle ----------
 * Anzahl links, Bedienelemente rechts: Ansicht, Sortieren, Filter. Alle drei
 * sind gleich hoch und gleich gerahmt, damit die Leiste als eine Einheit wirkt.
 * Sortieren und Filter sind dasselbe Ausklappmenü, nur mit anderem Inhalt. */
.tabellen-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}
.leisten-anzahl { margin: 0; flex: 1 1 15rem; min-width: 0; }
.leisten-werkzeuge { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.25rem; }

/* Gemeinsame Form aller Bedienelemente der Leiste: gleiche Höhe, gleicher Rahmen */
.steuer {
  height: 2.5rem;
  border: 1px solid var(--rand);
  border-radius: 8px;
  background-color: var(--flaeche);
  box-shadow: var(--schatten);
  transition: border-color 0.18s var(--feder), background-color 0.18s var(--feder);
}
.steuer:hover { border-color: #c2bcae; }

/* Ausklappmenüs der Leiste: Sortieren und Filter sehen außen gleich aus */
.ausklapp { position: relative; }
.ausklapp > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.ausklapp > summary::-webkit-details-marker { display: none; }
.ausklapp > summary::after {
  content: "";
  width: 12px;
  height: 8px;
  background: var(--pfeil) center / 12px 8px no-repeat;
  transition: transform 0.2s var(--feder);
}
.ausklapp[open] > summary { border-color: var(--akzent); background-color: var(--akzent-hell); color: var(--akzent); }
.ausklapp[open] > summary::after {
  transform: rotate(180deg);
  background-image: var(--pfeil-akzent);
}
/* Zahl gesetzter Filter; ohne Inhalt verschwindet die Plakette ganz */
.ausklapp-zahl:empty { display: none; }
.ausklapp-zahl:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--akzent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.ausklapp-inhalt {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(76vh, 38rem);
  overflow-y: auto;
  padding: 1rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(38, 48, 42, 0.16);
}
.ausklapp-inhalt:has(.ausklapp-fuss) { padding-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ausklapp[open] > .ausklapp-inhalt { animation: menue-auf 0.18s var(--feder); }
}

/* Auswahlliste im Menü (Sortierung): eine Zeile je Option, die gewählte hinterlegt */
.menue-liste { display: grid; margin: 0; }
.menue-liste .check {
  align-items: center;
  gap: 0.6rem;
  margin-inline: -0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.menue-liste .check input { margin: 0; }
.menue-liste .check:hover { background: var(--bg); }
.menue-liste .check:has(input:checked) { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
@keyframes menue-auf { from { opacity: 0; transform: translateY(-4px); } }
.ausklapp-inhalt select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: var(--pfeil);
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px 8px;
}
/* Eigene Gruppe im Menü: Anzeigen steht über den Filtern, durch eine Linie getrennt */
.menue-gruppe { display: grid; gap: 0.45rem; padding-bottom: 0.85rem; margin-bottom: 0.85rem; border-bottom: 1px solid var(--rand); }
.menue-gruppe-titel { font-weight: 600; font-size: 0.925rem; }
.menue-gruppe .ansicht-schalter { display: flex; width: 100%; }
.menue-gruppe .ansicht-schalter label { flex: 1; }
.menue-gruppe .ansicht-schalter span { flex: 1; min-width: 0; }
.ausklapp-fuss {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem -1rem 0;
  padding: 0.75rem 1rem 1rem;
  background: var(--flaeche);
  border-top: 1px solid var(--rand);
}
.ausklapp-fuss .knopf { flex: 1; padding: 0.55rem 0.7rem; font-size: 0.925rem; text-align: center; }

/* Umschalter Balken / Zahlen: feste Hälften, damit die Leiste beim Umschalten
 * nicht die Breite ändert */
.ansicht-schalter { display: inline-flex; overflow: hidden; }
.ansicht-schalter label { position: relative; display: flex; }
.ansicht-schalter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ansicht-schalter span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0 0.75rem;
  font-size: 0.925rem;
  color: var(--text-leise);
}
.ansicht-schalter label + label span { border-left: 1px solid var(--rand); }
.ansicht-schalter input:checked + span { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.ansicht-schalter input:focus-visible + span { outline: 3px solid #8fb396; outline-offset: -3px; }

@media (max-width: 700px) {
  /* Enger gesetzt, damit die drei Elemente in eine Zeile passen; muss doch
   * einmal umbrochen werden, bleibt alles rechtsbündig untereinander. */
  .leisten-werkzeuge { width: 100%; justify-content: flex-end; gap: 0.4rem; position: relative; }
  /* Die Menüs richten sich hier an der ganzen Zeile aus, nicht am einzelnen
   * Knopf – sonst ragt das Sortiermenü links aus dem Bildschirm. */
  .ausklapp { position: static; }
  /* Auf dem Telefon soll das Menü nicht über den Bildschirmrand hinauswachsen */
  .ausklapp-inhalt { max-height: min(60vh, 30rem); }
  .ausklapp > summary { padding: 0 0.6rem; gap: 0.4rem; }
}

/* ---------- Transponierte Vergleichstabelle ---------- */
.vergleich-wrap {
  position: relative;
  isolation: isolate;
  --merkmal-breite: 190px;
  --spalten-min: 170px;
  --spalten-breite: var(--spalten-min);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--merkmal-breite);
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}
table.vergleich { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.vergleich th, .vergleich td { border-bottom: 1px solid #ece9e2; padding: 0.75rem 0.9rem; }
.vergleich tbody tr:last-child > * { border-bottom: 0; }

/* Produktspalten */
.vergleich td, .vergleich .produkt-kopf { width: var(--spalten-breite); min-width: var(--spalten-breite); max-width: var(--spalten-breite); }
.vergleich td { text-align: right; white-space: nowrap; font-size: 1.05rem; }
.vergleich .produkt-kopf {
  vertical-align: top;
  white-space: normal;
  font-size: 1rem;
  line-height: 1.35;
  scroll-snap-align: start;
}
.vergleich .produkt-kopf .marke { margin: 0.15rem 0 0.35rem; }
/* Produktbild im Spaltenkopf – wie überall ein Beispielbild, die Kennzeichnung
 * steht als echter Text darunter. */
.vergleich-bild { width: 100%; border-radius: 8px; margin-bottom: 0.3rem; }
.vergleich .produkt-kopf .bild-marke { display: block; width: fit-content; margin-bottom: 0.4rem; }
.vergleich .filter-unsicher { display: block; margin-top: 0.35rem; font-weight: 400; }

/* Erste Spalte (Merkmale) bleibt beim seitlichen Scrollen stehen */
.vergleich .merkmal {
  position: sticky;
  left: 0;
  z-index: 1;
  width: var(--merkmal-breite);
  min-width: var(--merkmal-breite);
  max-width: var(--merkmal-breite);
  text-align: left;
  white-space: normal;
  font-weight: 600;
  font-size: 0.95rem;
  background: #f6f4ef;
  border-right: 1px solid var(--rand);
  box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.12);
}
.vergleich thead th { background: #f1efe9; }
.vergleich thead .ecke { z-index: 2; vertical-align: bottom; color: var(--text-leise); font-weight: 400; }

/* Zebra-Streifen + hervorgehobene Sortierzeile */
.vergleich tbody tr:nth-child(even) td { background: #fbfaf7; }
.vergleich tbody tr.sortiert td { background: var(--akzent-hell); font-weight: 600; }
.vergleich tbody tr.sortiert .merkmal { background: #dde8de; color: var(--akzent); }
.sort-pfeil { font-weight: 700; }
.vergleich .aktion-zeile td { font-size: 0.95rem; white-space: normal; text-align: left; }
.vergleich .leer { width: auto; max-width: none; text-align: center; white-space: normal; }

.wisch-hinweis { display: block; margin: 0 0 0.4rem; text-align: right; }
.wisch-hinweis[hidden] { display: none; }
@media (max-width: 700px) {
  .vergleich-wrap { --merkmal-breite: 108px; --spalten-min: 148px; }
  .vergleich th, .vergleich td { padding: 0.6rem 0.65rem; }
  .vergleich td { font-size: 0.95rem; }
  .vergleich .merkmal { font-size: 0.85rem; }
  .vergleich .produkt-kopf { font-size: 0.925rem; }
}

/* ---------- Balken in der Vergleichstabelle ----------
 * Der Wert steht immer als Zahl darüber; der Balken zeigt ihn zusätzlich,
 * beginnt bei null und bezieht sich auf den höchsten Wert der Zeile. */
.vergleich .balken-zelle { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.balken-zahl { display: block; }
.balken {
  display: block;
  height: 9px;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: var(--balken-spur);
  overflow: hidden;
}
.balken > span {
  display: block;
  height: 100%;
  width: var(--anteil, 0%);
  background: var(--balken-farbe, var(--balken-neutral));
  border-radius: 999px;
}
.balken.ohne-wert > span { width: 0; }
/* Nur Balken gewählt: die Zahl ist ausgeblendet, der Abstand darüber entfällt */
.vergleich.nur-balken .balken { margin-top: 0; }

/* Fußnoten unter der Tabelle: Rechenweg und Farberklärung stehen zusammen */
.tabellen-fuss { margin-top: 0.6rem; display: grid; gap: 0.25rem; }
.tabellen-fuss p { margin: 0; }
.legende-punkt { display: inline-block; width: 1.5rem; height: 9px; border-radius: 999px; vertical-align: middle; }
.legende-punkt.niedrig { background: var(--balken-niedrig); }
.legende-punkt.mittel { background: var(--balken-mittel); }
.legende-punkt.hoch { background: var(--balken-hoch); }

/* ---------- Seitenaufbau: gleicher Rhythmus auf allen Seiten ---------- */
.seiten-kopf { max-width: var(--text-breite); margin-bottom: var(--r3); }
.seiten-kopf.mittig { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: var(--r4); }
.seiten-kopf h1 { margin-bottom: var(--r1); }
.lead { font-size: 1.075rem; color: var(--text-leise); margin: 0; }
.abschnitt { margin-top: var(--r4); }
.abschnitt > h2:first-child { margin-top: 0; }
.abschnitt-aktion { margin: var(--r2) 0 0; }
main > .brotkrumen { margin-bottom: var(--r2); }

/* Karte, die zu einer anderen Seite führt */

/* ---------- Quiz ---------- */

.quiz-titel { margin: 0 0 0.25rem; font-size: 1.5rem; }
.quiz-untertitel { color: var(--text-leise); font-size: 0.95rem; margin-bottom: var(--r3); }
.quiz-fortschritt { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--r3); }
.quiz-schritt { margin: 0; font-size: 0.85rem; color: var(--text-leise); white-space: nowrap; }
.quiz-balken { flex: 1; height: 6px; background: var(--rand); border-radius: 999px; overflow: hidden; }
.quiz-balken span { display: block; height: 100%; background: var(--akzent); transition: width 0.25s ease; }
.quiz-frage { margin: 0 0 0.35rem; font-size: 1.3rem; }
.quiz-frage:focus { outline: none; }
.quiz-hilfe { color: var(--text-leise); font-size: 0.925rem; margin-bottom: var(--r3); }
.quiz-optionen { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quiz-option {
  font: inherit;
  text-align: left;
  display: grid;
  gap: 0.1rem;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  color: inherit;
}
.quiz-option:hover { border-color: var(--akzent); }
.quiz-option.gewaehlt { border-color: var(--akzent); background: var(--akzent-hell); box-shadow: inset 0 0 0 1px var(--akzent); }
.quiz-option-titel { font-weight: 600; }
.quiz-option-text { font-size: 0.875rem; color: var(--text-leise); }
.quiz-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: var(--r3); }
.knopf.still { background: none; border: 0; color: var(--text-leise); padding: 0.6rem 0.3rem; text-decoration: underline; }
.knopf.still:hover { background: none; color: var(--text); }

.quiz-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 var(--r2); }
.quiz-chips li { background: var(--akzent-hell); color: var(--akzent); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; }
/* ---------- Testergebnis: dieselbe Tabelle, daneben der Weg zu allen Treffern ---------- */
.ergebnis-vergleich {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: var(--r2);
  align-items: center;
}
.alle-ansehen { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; color: var(--akzent); text-decoration: none; font-weight: 600; }
.alle-pfeil { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--akzent); color: #fff; font-size: 1.7rem; line-height: 1; transition: transform 0.15s; }
.alle-ansehen:hover .alle-pfeil, .alle-ansehen:focus-visible .alle-pfeil { transform: translateX(4px); }
.alle-zahl { font-size: 0.8rem; font-weight: 400; color: var(--text-leise); }
.ergebnis-neu { margin: var(--r2) 0 0; }
@media (max-width: 900px) {
  .ergebnis-vergleich { grid-template-columns: minmax(0, 1fr) 4.5rem; gap: 0.75rem; }
  .alle-pfeil { width: 2.8rem; height: 2.8rem; font-size: 1.4rem; }
}
/* Sachlicher Hinweis unter der ersten Spalte – bewusst kein Siegel, nur Text */
.spalten-platz { display: block; margin-top: 0.4rem; font-size: 0.78rem; font-weight: 400; line-height: 1.4; color: var(--text-leise); white-space: normal; }

@media (max-width: 600px) {
  .quiz-optionen { grid-template-columns: 1fr; }
  .quiz-fuss .knopf { width: 100%; text-align: center; }
}

/* Einfache Textlink-Liste (z. B. Direkteinstiege auf der Startseite) */
.text-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; }
.text-links a { font-weight: 600; }

/* ---------- Quiz: Startseite ohne Karte ----------
 * Auf der Startseite füllt der Test den ersten Bildschirm; der Ratgeber folgt darunter. */
.quiz-bereich {
  max-width: var(--breite);
  margin: 0;
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--kopf-hoehe, 61px) - var(--r3));
  min-height: calc(100svh - var(--kopf-hoehe, 61px) - var(--r3));
}
.quiz-bereich + .abschnitt { margin-top: var(--r5); }
@media (max-width: 700px) {
  .quiz-bereich + .abschnitt { margin-top: var(--r4); }
}
.quiz-bereich .quiz-hilfe { margin-bottom: var(--r3); }
.quiz-fortschritt { flex-direction: row-reverse; gap: 0.6rem; }
.quiz-zurueck {
  font: inherit;
  font-size: 0.925rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-leise);
  text-decoration: underline;
  cursor: pointer;
}
.quiz-zurueck:hover { color: var(--text); }

/* ---------- Der Test als Hauptsache der Startseite: alles eine Nummer größer ---------- */
.quiz-bereich .quiz-frage { font-size: clamp(1.55rem, 3vw, 2.3rem); margin-bottom: 0.5rem; }
.quiz-bereich .quiz-hilfe { font-size: clamp(1rem, 1.4vw, 1.1rem); margin-bottom: var(--r3); }
.quiz-bereich .quiz-balken { height: 10px; }
.quiz-bereich .quiz-schritt { font-size: 1rem; }
.quiz-bereich .quiz-optionen { gap: var(--r2); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quiz-bereich .quiz-option { padding: 1.2rem 1.35rem; border-radius: 14px; gap: 0.3rem; }
.quiz-bereich .quiz-option-titel { font-size: 1.2rem; }
.quiz-bereich .quiz-option-text { font-size: 1rem; line-height: 1.5; }
.quiz-bereich .quiz-fuss { margin-top: var(--r4); gap: var(--r2); }
.quiz-bereich .quiz-fuss .knopf { font-size: 1.05rem; padding: 0.75rem 1.5rem; }

/* ---------- Gleicher Rahmen für jede Frage ----------
 * Fortschritt und Überschrift stehen oben, die Knöpfe unten, der Inhalt füllt den
 * Rest und wird darin senkrecht zentriert. Dadurch springt beim Weiterklicken
 * nichts mehr, obwohl die Fragen unterschiedlich hoch sind. */
.quiz-seite {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: calc(100vh - var(--kopf-hoehe, 61px) - var(--r3));
  min-height: calc(100svh - var(--kopf-hoehe, 61px) - var(--r3));
  /* Abstand nach unten, damit die Knöpfe nicht am Bildschirmrand kleben */
  padding-bottom: var(--r4);
  text-align: center;
}
/* Frage, Antwort und Knöpfe stehen mittig in der Spalte */
/* justify-self statt margin:auto – auto-Ränder würden den Rasterplatz
 * aufheben und den Regler auf Inhaltsbreite zusammenschrumpfen. */
.quiz-seite .quiz-schieber { width: 100%; justify-self: center; }
.quiz-seite .schieber-wert { justify-content: center; }
.quiz-seite .quiz-fuss { justify-content: center; }
.quiz-seite .quiz-option { text-align: center; justify-items: center; }
/* Bei ungerader Kartenzahl bliebe die letzte Karte im Raster links liegen.
 * Als Flexzeile rückt sie mittig unter die übrigen. */
.quiz-seite .quiz-optionen:not(.gross) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.quiz-seite .quiz-optionen:not(.gross) .quiz-option { flex: 1 1 300px; max-width: 340px; }
.quiz-seite .quiz-fortschritt { margin-bottom: var(--r3); }
/* Die Hilfszeile steht immer im Aufbau, auch ohne Text – sie hält den Platz frei,
 * damit die Überschrift bei jeder Frage auf derselben Höhe sitzt. */
.quiz-seite .quiz-kopf { margin-bottom: var(--r3); }
.quiz-seite .quiz-frage { margin-bottom: 0.5rem; }
.quiz-seite .quiz-hilfe { margin: 0; min-height: 1.6em; }
.quiz-inhalt { display: grid; align-content: center; }
/* Frage 1 kommt ohne Knöpfe aus (die Karten führen direkt weiter). Der Platz
 * bleibt trotzdem reserviert – Maß wie ein Knopf, damit der Inhaltsbereich
 * bei allen Fragen gleich hoch ist. */
.quiz-seite .quiz-fuss { margin: var(--r4) 0 0; min-height: calc(1.05rem * 1.6 + 1.5rem); }

/* Frage 1: große Karten. Das Symbol ist bewusst größer als die Karte hoch wirkt
 * und ragt oben über den Rand hinaus – wie aufgeklebt. */
.quiz-optionen.gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-optionen.gross .quiz-option {
  min-height: 250px;
  padding: var(--r3);
  align-content: space-between;
}
.quiz-optionen.gross .quiz-option-bild {
  width: clamp(150px, 15vw, 210px);
  height: auto;
  margin-top: clamp(-84px, -6vw, -56px);
  margin-bottom: var(--r2);
}
.quiz-optionen.gross .quiz-option-titel { font-size: clamp(1.35rem, 1.9vw, 1.6rem); }
.quiz-optionen.gross .quiz-option-text { font-size: 1.05rem; }

/* ---------- Schieberegler für Gewicht und Arbeit ---------- */
.quiz-schieber { display: grid; gap: var(--r2); max-width: 760px; }
/* Bühne für die Pferde-Illustrationen: alle Zeichnungen teilen sich eine viewBox
 * von 700 × 540 Einheiten, die Bodenlinie liegt 24 Einheiten (4,444 %) über der
 * Unterkante. Die Zeichnungen liegen übereinander und werden überblendet. */
.pferd-buehne {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 700 / 540;
  margin-inline: auto;
}
.pferd-bilder { position: absolute; inset: 0; }
.pferd-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(var(--pferd-groesse, 1));
  transform-origin: 50% 95.556%; /* Bodenlinie – das Pferd wächst nach oben */
  transition: opacity 0.28s var(--feder), transform 0.45s var(--feder);
}
.pferd-bild.ist-aktiv { opacity: 1; }

.schieber-wert { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.schieber-wert strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--akzent);
}
.schieber-wert span { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-leise); }

.schieber { width: 100%; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.schieber:focus { outline: none; }
.schieber::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--rand); }
.schieber::-moz-range-track { height: 10px; border-radius: 999px; background: var(--rand); }
.schieber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--akzent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--feder), box-shadow 0.25s var(--feder);
}
.schieber::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--akzent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--feder), box-shadow 0.25s var(--feder);
}
.schieber:hover::-webkit-slider-thumb,
.schieber:active::-webkit-slider-thumb { transform: scale(1.15); }
.schieber:hover::-moz-range-thumb,
.schieber:active::-moz-range-thumb { transform: scale(1.15); }
.schieber:focus-visible::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(63, 102, 71, 0.3);
}
.schieber:focus-visible::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(63, 102, 71, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .pferd-bild { transition: none; }
  .schieber::-webkit-slider-thumb { transition: none; }
  .schieber::-moz-range-thumb { transition: none; }
}
@media (max-width: 700px) {
  .quiz-optionen.gross { grid-template-columns: 1fr; }
  .quiz-optionen.gross .quiz-option { min-height: 0; padding: var(--r2); }
  /* Untereinander stehende Karten: ein Überstand würde in die Karte darüber ragen.
   * Das Symbol wächst hier nur so weit, dass beide Karten auf den Bildschirm passen. */
  .quiz-optionen.gross .quiz-option-bild { width: 110px; margin-top: 0; }
  .quiz-optionen.gross .quiz-option-titel { font-size: 1.25rem; }
  .quiz-optionen.gross .quiz-option-text { font-size: 1rem; }
  .quiz-bereich .quiz-option { padding: 1rem 1.1rem; }
  /* Auf dem Telefon wird der Platz knapp: Frage 1 hat ohnehin keine Knöpfe,
   * der reservierte Streifen entfällt hier zugunsten des Bildschirms. */
  .quiz-seite { padding-bottom: var(--r1); }
  .quiz-seite .quiz-fuss { min-height: 0; }
  .pferd-buehne { max-width: 320px; }
}

/* ---------- Artikel (Ratgeber) ---------- */
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--r2); flex-wrap: wrap; }
.abschnitt-kopf h2 { margin: 0; }
.abschnitt-link { font-weight: 600; white-space: nowrap; }
.artikel-raster { display: grid; gap: var(--r2); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--r3); }
.artikel-karte {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--schatten);
}
.artikel-karte h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.artikel-karte h3 a { color: inherit; }
.artikel-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0; }
.artikel-kategorie {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--akzent);
  background: var(--akzent-hell);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}
.artikel-teaser { margin: 0; color: var(--text-leise); font-size: 0.925rem; line-height: 1.55; }
.artikel-fuss { margin: auto 0 0; padding-top: 0.3rem; font-size: 0.85rem; color: var(--text-leise); }
.artikel-text { max-width: 68ch; line-height: 1.75; }
.artikel-text h2 { margin-top: var(--r4); font-size: 1.25rem; }
.artikel-text p { margin-bottom: var(--r2); }

/* ---------- Infobereich unter der Vergleichstabelle ---------- */
.info-bereich { border-top: 1px solid var(--rand); margin-top: var(--r5); padding-top: var(--r5); }
.info-titel { margin: 0 0 var(--r3); font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
/* Die Spalte ist so breit, dass auch der hervorgehobene (fette) Eintrag
 * in eine Zeile passt – sonst springt das Verzeichnis beim Scrollen um. */
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--r4); align-items: start; }
.info-text { grid-column: 1; grid-row: 1; max-width: 68ch; line-height: 1.75; }
.info-text h2 { margin: var(--r4) 0 var(--r2); font-size: 1.2rem; scroll-margin-top: 90px; }
.info-text p { margin-bottom: var(--r2); }
.info-kasten {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: var(--r3);
  line-height: 1.6;
}
.info-kasten h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.info-kasten ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.95rem; }

/* Inhaltsverzeichnis: rechts, bleibt beim Scrollen stehen */
.info-inhalt { grid-column: 2; grid-row: 1; position: sticky; top: 88px; font-size: 0.9rem; }
.info-inhalt > summary { font-weight: 600; cursor: pointer; list-style: none; padding-bottom: 0.5rem; }
.info-inhalt > summary::-webkit-details-marker { display: none; }
.info-inhalt ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; color: var(--text-leise); }
.info-inhalt a { color: var(--text-leise); }
.info-inhalt a:hover { color: var(--text); }
.info-inhalt a.aktuell { color: var(--akzent); font-weight: 600; }

@media (min-width: 901px) {
  .info-inhalt > summary { pointer-events: none; }
}
@media (max-width: 900px) {
  .info-layout { grid-template-columns: 1fr; gap: var(--r3); }
  .info-text, .info-inhalt { grid-column: 1; }
  .info-inhalt {
    grid-row: 1;
    position: static;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
  }
  .info-text { grid-row: 2; }
  .info-inhalt > summary::after { content: "anzeigen"; float: right; color: var(--akzent); text-decoration: underline; font-weight: 400; }
  .info-inhalt[open] > summary::after { content: "ausblenden"; }
}

/* ---------- Bilder ----------
 * Jedes Bild sitzt in einer <figure class="bild"> mit festem Seitenverhältnis (--vh),
 * damit beim Laden nichts springt. Fehlt die Datei, bleibt eine neutrale Fläche stehen. */
.bild {
  margin: 0;
  aspect-ratio: var(--vh, 3 / 2);
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e3d8;
}
.bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bild.leer { display: grid; place-items: center; border: 1px dashed var(--rand); background: #eeebe2; }
.bild.leer::after {
  content: "Bild folgt: " attr(data-datei);
  font-size: 0.78rem;
  color: var(--text-leise);
  padding: 0 0.75rem;
  text-align: center;
}
.bild-quelle { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--text-leise); }

/* Startbildschirm des Tests mit Bild */
/* ---------- Startbild: Foto über die volle Fensterbreite ----------
 * Der Abschnitt steht im eingerückten `main`; das Bild bricht über die
 * negative Außenkante daraus aus und reicht bis unter den Seitenkopf.
 * Gilt nur für den Startbildschirm – die Fragen danach bleiben wie sie sind. */
.start-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: calc(var(--r3) * -1);
  min-height: calc(100vh - var(--kopf-hoehe, 61px));
  min-height: calc(100svh - var(--kopf-hoehe, 61px));
  display: grid;
  align-items: center;
  overflow: hidden;
  /* Farbe für den Moment vor dem Laden – weiße Schrift ist sofort lesbar */
  background: #1b211c;
}
.start-hero-bild { position: absolute; inset: 0; z-index: 0; }
.start-hero-bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
/* Abdunklung: links kräftig für den Text, rechts fast offen für das Pferd */
.start-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(18, 24, 19, 0.84) 0%, rgba(18, 24, 19, 0.64) 38%, rgba(18, 24, 19, 0.16) 72%, rgba(18, 24, 19, 0.3) 100%),
    linear-gradient(to top, rgba(18, 24, 19, 0.42) 0%, rgba(18, 24, 19, 0) 42%);
}
.start-hero-inhalt {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding: var(--r4) 16px;
  color: #fff;
}
.start-hero .start-hero-titel {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  max-width: 17ch;
  margin: 0 0 var(--r3);
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.start-hero-aktion { margin: 0; }
/* Grüner Knopf auf dem Foto: heller Saum und Schatten geben ihm eine Kante,
 * sonst verliert sich das Dunkelgrün im abgedunkelten Bild. */
.start-hero-aktion .knopf {
  font-size: 1.05rem;
  padding: 0.8rem 1.8rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--feder), box-shadow 0.2s var(--feder), background-color 0.2s var(--feder);
}
.start-hero-aktion .knopf:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 14px 34px rgba(0, 0, 0, 0.5);
}
.start-hero-aktion .knopf:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .start-hero-aktion .knopf { transition: none; }
  .start-hero-aktion .knopf:hover { transform: none; }
}
@media (max-width: 700px) {
  /* Hochformat schneidet das Bild stark an: Pferd und Eimer bleiben im Bild,
   * abgedunkelt wird von unten nach oben. */
  .start-hero-bild img { object-position: 64% 50%; }
  .start-hero::after {
    background: linear-gradient(to top, rgba(18, 24, 19, 0.88) 0%, rgba(18, 24, 19, 0.66) 46%, rgba(18, 24, 19, 0.38) 100%);
  }
  /* Text nach unten: das Gesicht des Pferdes bleibt darüber frei */
  .start-hero { align-items: end; }
  .start-hero-inhalt { padding: var(--r3) 16px var(--r5); }
  .start-hero .start-hero-titel { max-width: none; }
}

/* Symbole in den Antwortfeldern */
.quiz-option { align-items: start; }
.quiz-option-bild { width: 44px; height: 44px; margin-bottom: 0.35rem; object-fit: contain; }
/* Größer, solange der Zeiger auf der Antwort steht – danach wieder wie vorher */
.quiz-option-bild { transition: transform 0.3s var(--feder); }
.quiz-option:hover .quiz-option-bild,
.quiz-option:focus-visible .quiz-option-bild { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .quiz-option-bild { transition: none; }
  .quiz-option:hover .quiz-option-bild,
  .quiz-option:focus-visible .quiz-option-bild { transform: none; }
}

/* Artikel */
.artikel-karte .bild { margin: -1.1rem -1.15rem 0.2rem; border-radius: var(--radius) var(--radius) 0 0; }
.artikel-kopfbild { margin: 0 0 var(--r3); }

/* Infobereich */
.info-bild { margin-bottom: var(--r3); }

/* Produktseite: klar als Platzhalter erkennbar, kein Produktfoto */
.produkt-bild { max-width: 260px; margin-bottom: var(--r2); }

/* Beispielbild-Markierung: steht unter dem Bild, verdeckt also kein Produkt */
.bild { position: relative; display: block; }
.bild-marke {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #6b5518;
  background: var(--hinweis-bg);
  border: 1px solid var(--hinweis-rand);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.bild-marke.klein { font-size: 0.6rem; padding: 0 0.45rem; }

/* Produktseite */
.produkt-bild { margin: 0 0 var(--r2); max-width: 360px; }

/* Bilder im Infobereich, mit Bildunterschrift */
.info-foto { margin: var(--r3) 0; }
.info-foto figcaption { margin-top: 0.45rem; font-size: 0.85rem; line-height: 1.5; color: var(--text-leise); }
