/* Cushing Pferd – Gestaltung „Das Pferdejahr“ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --raureif: #eceff2;     /* Grundfläche: kühler Morgen auf der Koppel */
  --weiss: #ffffff;
  --nacht: #1c2733;       /* Text und dunkle Flächen */
  --schiefer: #4f5a66;    /* Nebentext */
  --fuchs: #a3461c;       /* Akzent: Fellfarbe Fuchs, Links und Knöpfe */
  --fuchs-dunkel: #843812;
  --heu: #e0b354;         /* Akzent auf Dunkel, ACTH-Kurve */
  --herbst: #c9852d;
  --heu-hell: #f4ead0;
  --linie: #c9d0d7;

  /* Schrift */
  --schrift: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-klein: 0.9375rem;
  --t-text: 1.125rem;
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  --t-h1: clamp(2.25rem, 1.2rem + 3.8vw, 4.5rem);
  --t-start: clamp(2.6rem, 1.1rem + 5.6vw, 6.4rem);

  /* Abstände */
  --a1: 0.5rem;
  --a2: 1rem;
  --a3: 1.5rem;
  --a4: 2.5rem;
  --a5: 4rem;
  --block: clamp(4rem, 3rem + 5vw, 7.5rem);
  --rand: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  --kurve: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
body {
  margin: 0;
  background: var(--raureif);
  color: var(--nacht);
  font-family: var(--schrift);
  font-size: var(--t-text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--a2); text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 var(--a2); }
p { text-wrap: pretty; }
strong { font-weight: 700; }
a { color: var(--fuchs); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--fuchs-dunkel); text-decoration-thickness: 2.5px; }
code { font-family: inherit; font-weight: 700; }

:focus-visible { outline: 3px solid var(--fuchs); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--a2); top: -4rem; z-index: 100;
  background: var(--nacht); color: var(--weiss); padding: var(--a1) var(--a2); border-radius: 4px;
}
.skip-link:focus { top: var(--a2); color: var(--weiss); }

.rahmen { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--rand); }
.klein { font-size: var(--t-klein); color: var(--schiefer); }

/* ------------------------------------------------------------ Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--raureif) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: var(--a3); min-height: 4.5rem; }
.marke { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--nacht); text-decoration: none; }
.marke:hover { color: var(--nacht); }
.marke-ring { flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.marke-zusatz { font-size: 0.8125rem; color: var(--schiefer); }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.hauptnav a {
  display: block; padding: 0.55rem 0.75rem; color: var(--nacht); text-decoration: none;
  font-size: 1rem; border-radius: 4px;
  transition: background-color .18s var(--kurve);
}
.hauptnav a:hover { background: var(--weiss); color: var(--nacht); }
.hauptnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--fuchs); border-radius: 0; }
.nav-kontakt a { background: var(--nacht); color: var(--weiss); margin-left: 0.5rem; padding-inline: 1.1rem; border-radius: 999px; }
.nav-kontakt a:hover { background: var(--fuchs); color: var(--weiss); }
.nav-kontakt a[aria-current="page"] { box-shadow: none; border-radius: 999px; background: var(--fuchs); }

.menue-knopf {
  display: none; align-items: center; gap: 0.6rem;
  font: inherit; font-size: 1rem; font-weight: 700; color: var(--nacht);
  background: transparent; border: 1.5px solid var(--nacht); border-radius: 999px;
  padding: 0.5rem 1rem; min-height: 44px; cursor: pointer; touch-action: manipulation;
}
.menue-striche, .menue-striche::before, .menue-striche::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform .2s var(--kurve);
}
.menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; }
.menue-striche::before { top: -6px; }
.menue-striche::after { top: 6px; }
.menue-knopf[aria-expanded="true"] .menue-striche { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-striche::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-striche::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .js .menue-knopf { display: inline-flex; }
  .js .hauptnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--raureif); border-bottom: 1px solid var(--linie);
    padding: var(--a2) var(--rand) var(--a3);
    display: none;
  }
  .js .hauptnav.ist-offen { display: block; }
  .hauptnav ul { flex-direction: column; align-items: stretch; }
  .no-js .hauptnav ul { flex-wrap: wrap; flex-direction: row; }
  .hauptnav a { padding: 0.8rem 0.5rem; font-size: 1.125rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .hauptnav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--fuchs); padding-left: 1rem; }
  .nav-kontakt a { margin: var(--a2) 0 0; text-align: center; border-bottom: 0; }
  .no-js .kopf-innen { flex-wrap: wrap; padding-block: var(--a1); }
}
@media (max-width: 420px) { .marke-zusatz { display: none; } }

/* ------------------------------------------------------------ Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--a3); }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid var(--fuchs);
  background: var(--fuchs); color: var(--weiss); font: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--kurve), border-color .18s var(--kurve), color .18s var(--kurve);
}
.knopf:hover { background: var(--fuchs-dunkel); border-color: var(--fuchs-dunkel); color: var(--weiss); text-decoration: none; }
.knopf-linie { background: transparent; color: var(--nacht); border-color: var(--nacht); }
.knopf-linie:hover { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.knopf-hell { background: var(--heu); border-color: var(--heu); color: var(--nacht); }
.knopf-hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--nacht); }
.abschluss .knopf-linie { color: var(--weiss); border-color: rgba(255, 255, 255, .7); }
.abschluss .knopf-linie:hover { background: var(--weiss); color: var(--nacht); border-color: var(--weiss); }
.mehr-link { font-weight: 700; }

/* ------------------------------------------------------------ Startseite */
.start { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.start h1 { font-size: var(--t-start); line-height: 0.98; max-width: 15ch; margin-bottom: var(--a4); }
.start-unten { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--a4); align-items: end; }
.start-unten .knoepfe { justify-content: flex-end; margin: 0 0 var(--a2); }
.vorspann { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.5; max-width: 60ch; color: var(--nacht); }
.start-bild { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.start-bild img { width: 100%; aspect-ratio: 2 / 1; max-height: 78vh; object-fit: cover; object-position: 50% 30%; }
.sprung { padding-block: var(--a3); }
.sprung ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.sprung a { color: var(--nacht); text-decoration: none; font-size: 1rem; display: inline-block; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.sprung a:hover { border-bottom-color: var(--fuchs); color: var(--nacht); }

@media (max-width: 860px) {
  .start-unten { grid-template-columns: 1fr; gap: 0; }
  .start-unten .knoepfe { justify-content: flex-start; }
  .start-bild img { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------ Blöcke */
.block { padding-block: var(--block); }
.block-weiss { background: var(--weiss); }
.block-linie { border-top: 1px solid var(--linie); }
.block-heu { background: var(--heu-hell); }
.fliesstext { max-width: 40rem; }

.zweier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.zweier-bild-links { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.zweier-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.hochbild { margin-top: clamp(0rem, 4vw, 5rem); }
.hochbild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 4px; }
.querbild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

.kopfzeile { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--a4); align-items: end; margin-bottom: var(--a4); }
.kopfzeile h2 { margin: 0; max-width: 16ch; }
.kopfzeile p { margin: 0; max-width: 46ch; color: var(--schiefer); }

.dreier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.dreier > div { padding: var(--a2) var(--a3) 0; border-left: 1px solid var(--linie); }
.dreier > div:first-child { padding-left: 0; border-left: 0; }
.dreier p { color: var(--schiefer); margin: 0; }

@media (max-width: 860px) {
  .zweier, .zweier-bild-links, .zweier-faq, .kopfzeile { grid-template-columns: 1fr; }
  .kopfzeile { gap: var(--a2); }
  .dreier { grid-template-columns: 1fr; }
  .dreier > div { padding: var(--a3) 0; border-left: 0; border-top: 1px solid var(--linie); }
  .dreier > div:first-child { border-top: 0; padding-top: 0; }
}

/* Hinweise */
.hinweis { border-left: 4px solid var(--herbst); padding: 0.25rem 0 0.25rem var(--a3); margin-block: var(--a3); }
.notfall { background: #f6e1d6; border-left: 4px solid var(--fuchs); padding: var(--a2) var(--a3); border-radius: 0 4px 4px 0; margin-block: var(--a3); }

/* Listen */
.pruefliste { list-style: none; padding: 0; }
.pruefliste li { position: relative; padding-left: 2rem; margin-bottom: 0.65rem; }
.pruefliste li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.95rem; height: 0.55rem;
  border-left: 3px solid var(--fuchs); border-bottom: 3px solid var(--fuchs); transform: rotate(-45deg);
}
.pruefliste-nein li::before { width: 0.9rem; height: 0; top: 0.8em; border-left: 0; transform: none; }

.zeichen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--a4) var(--a3); margin-bottom: var(--a3); }
.zeichen > div { border-top: 2px solid var(--nacht); padding-top: var(--a2); }
.zeichen dt { font-weight: 700; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.zeichen dd { margin: 0; color: var(--schiefer); font-size: 1rem; }
@media (max-width: 1023px) { .zeichen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zeichen { grid-template-columns: 1fr; gap: var(--a3); } }

.bausteine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a3) var(--a4); margin-bottom: var(--a3); }
.bausteine > div { border-top: 1px solid var(--linie); padding-top: var(--a2); }
.bausteine dt { font-weight: 700; font-size: var(--t-h3); margin-bottom: 0.3rem; }
.bausteine dd { margin: 0; }
.bausteine-eng dt { font-size: 1.125rem; }
@media (max-width: 640px) { .bausteine { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Jahreslauf (Signatur) */
.jahr { background: var(--nacht); color: #e8ecf0; padding-block: var(--block); }
.jahr h2, .jahr h3 { color: var(--weiss); }
.jahr-kopf { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--a4); align-items: end; margin-bottom: var(--a4); }
.jahr-kopf h2 { margin: 0; }
.jahr-kopf p { margin: 0; max-width: 46ch; color: #c5ced7; }
.jahr a { color: var(--heu); }
.jahr a:hover { color: var(--weiss); }

.kurve { margin: 0 0 var(--a4); }
.kurve svg { display: block; width: 100%; height: auto; overflow: visible; }
.kurve-herbst { fill: var(--heu); opacity: .1; }
.kurve-basis { stroke: currentColor; stroke-opacity: .3; stroke-width: 2; }
.kurve-linie { fill: none; stroke: var(--heu); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kurve-monate {
  list-style: none; margin: 0.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  font-size: 0.8125rem; color: #aab5c0; text-align: center;
}
.kurve figcaption { font-size: var(--t-klein); color: #aab5c0; margin-top: var(--a2); }

.artikel .kurve { background: var(--nacht); color: #e8ecf0; padding: var(--a3); border-radius: 4px; margin-block: var(--a3); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .kurve-linie {
      animation: kurve-zeichnen linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }
    .kurve-herbst {
      animation: herbst-zeigen linear both;
      animation-timeline: view();
      animation-range: cover 30% cover 50%;
    }
  }
}
@keyframes kurve-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes herbst-zeigen { from { opacity: 0; } to { opacity: .1; } }

.jahr-zeiten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--a3); }
.jahr-zeiten li { border-top: 2px solid rgba(255, 255, 255, .3); padding-top: var(--a2); }
.jahr-zeiten .jahr-herbst { border-top-color: var(--heu); }
.jahr-zeiten p { font-size: 1rem; color: #c5ced7; }
.jahr-zeiten strong { color: var(--weiss); }
.jahr-zeiten a { white-space: nowrap; }
@media (max-width: 1023px) { .jahr-zeiten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a4) var(--a3); } }
@media (max-width: 640px) {
  .jahr-kopf, .jahr-zeiten { grid-template-columns: 1fr; }
  .kurve-monate { font-size: 0.6875rem; }
  .kurve-monate li:nth-child(even) { visibility: hidden; }
  .jahr-zeiten a { white-space: normal; }
}

/* ------------------------------------------------------------ Produkt */
.produkt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.produkt-bild img { width: 100%; max-width: 26rem; margin-inline: auto; border-radius: 4px; }
.produkt-marke { font-weight: 700; color: var(--fuchs); margin-bottom: 0.25rem; }
.gutschein { display: inline-block; border: 2px dashed var(--herbst); border-radius: 4px; padding: 0.7rem 1rem; background: var(--weiss); }
.gutschein code { font-size: 1.125rem; color: var(--fuchs); letter-spacing: 0.02em; }
.merkmale { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.merkmale li { border: 1.5px solid var(--nacht); border-radius: 999px; padding: 0.2rem 0.85rem; font-size: 0.9375rem; }
@media (max-width: 860px) { .produkt { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ FAQ */
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--a2); padding: var(--a3) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.1875rem; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background:
    linear-gradient(var(--fuchs), var(--fuchs)) center / 12px 2px no-repeat,
    linear-gradient(var(--fuchs), var(--fuchs)) center / 2px 12px no-repeat;
  border: 1.5px solid var(--fuchs);
  transition: transform .2s var(--kurve);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--fuchs); }
.faq-antwort { padding-bottom: var(--a3); max-width: 44rem; }

/* ------------------------------------------------------------ Abschluss & Fuß */
.abschluss { background: var(--nacht); color: #e8ecf0; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.abschluss-innen { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--a4); align-items: end; }
.abschluss h2 { color: var(--weiss); margin: 0; max-width: 18ch; }
.abschluss p { color: #c5ced7; }
.abschluss .knoepfe { margin-bottom: 0; }
@media (max-width: 860px) { .abschluss-innen { grid-template-columns: 1fr; } }

.fuss { padding-block: var(--a5) var(--a3); font-size: 1rem; }
.fuss-satz { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; margin-bottom: var(--a5); }
.fuss-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a4); padding-top: var(--a3); border-top: 1px solid var(--linie); }
.fuss-titel { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--a1); }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss a, .link-knopf { color: var(--nacht); }
.fuss a:hover, .link-knopf:hover { color: var(--fuchs); }
.link-knopf { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; cursor: pointer; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--a1) var(--a3); margin-top: var(--a4); padding-top: var(--a3); border-top: 1px solid var(--linie); font-size: var(--t-klein); color: var(--schiefer); }
.fuss-unten a { color: var(--schiefer); }
@media (max-width: 760px) { .fuss-spalten { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Unterseiten */
.seitenkopf { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.seitenkopf h1 { max-width: 20ch; margin-bottom: var(--a4); }
.seitenkopf-schmal h1 { margin-bottom: 0; }
.seitenkopf-unten { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--a4); align-items: start; }
.seitenkopf-unten .vorspann { margin: 0; }
@media (max-width: 860px) { .seitenkopf-unten { grid-template-columns: 1fr; } }

.pfad ol { list-style: none; margin: 0 0 var(--a3); padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: var(--t-klein); color: var(--schiefer); }
.pfad li + li::before { content: "/"; margin-right: 0.35rem; color: var(--linie); }
.pfad a { color: var(--schiefer); }

.jahresmarke { font-size: var(--t-klein); }
.jahresmarke ol { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.jahresmarke li { border-top: 6px solid var(--linie); padding-top: 0.35rem; color: var(--schiefer); line-height: 1.25; font-size: 0.8125rem; }
.jahresmarke li.ist-aktiv { border-top-color: var(--herbst); color: var(--nacht); font-weight: 700; }
.jahresmarke p { margin: 0; color: var(--schiefer); }

.seitenbild { margin-bottom: var(--a5); }
.seitenbild figure { max-width: 60rem; }
.seitenbild img, .gen { width: 100%; border-radius: 4px; }

.artikel-raster {
  display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 15rem);
  grid-template-areas: "artikel kapitel"; justify-content: space-between; gap: var(--a5);
  padding-bottom: var(--block);
}
.artikel { grid-area: artikel; min-width: 0; }
.kapitel { grid-area: kapitel; position: sticky; top: 6.5rem; align-self: start; font-size: 1rem; }
.kapitel summary { font-weight: 700; cursor: pointer; padding-bottom: var(--a1); list-style: none; }
.kapitel summary::-webkit-details-marker { display: none; }
.kapitel ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--linie); }
.kapitel a { display: block; padding: 0.35rem 0 0.35rem var(--a2); margin-left: -2px; border-left: 2px solid transparent; color: var(--schiefer); text-decoration: none; line-height: 1.35; }
.kapitel a:hover { color: var(--nacht); }
.kapitel a.ist-hier { border-left-color: var(--fuchs); color: var(--nacht); font-weight: 700; }

@media (max-width: 1023px) {
  .artikel-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kapitel" "artikel"; gap: var(--a4); }
  .kapitel { position: static; background: var(--weiss); border-radius: 4px; padding: var(--a2) var(--a3); }
  .kapitel summary { padding: 0; display: flex; justify-content: space-between; align-items: center; min-height: 2rem; }
  .kapitel summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--fuchs); }
  .kapitel[open] summary::after { content: "–"; }
  .kapitel[open] summary { padding-bottom: var(--a2); }
}

.artikel > section { margin-bottom: var(--a5); }
.artikel h2 { padding-top: var(--a3); border-top: 2px solid var(--nacht); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.artikel h3 { margin-top: var(--a4); }
.artikel ul:not([class]) { padding-left: 1.25rem; }
.artikel ul:not([class]) li { margin-bottom: 0.5rem; }
.artikel ul:not([class]) li::marker { color: var(--fuchs); }
.artikel figure { margin-block: var(--a4); }
.artikel figure img { width: 100%; border-radius: 4px; }
.artikel figure.figur-hoch { max-width: 26rem; }
.artikel figcaption { font-size: var(--t-klein); color: var(--schiefer); margin-top: var(--a1); }
.artikel .zeichen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .artikel .zeichen { grid-template-columns: 1fr; } }

.schritte { list-style: none; padding: 0; counter-reset: schritt; margin-block: var(--a3); }
.schritte li { counter-increment: schritt; position: relative; padding: 0 0 var(--a2) 3.5rem; min-height: 2.75rem; }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: -0.15rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--fuchs); color: var(--weiss);
  display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums;
}

.tabelle { overflow-x: auto; margin-block: var(--a3); }
.tabelle table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 30rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--linie); }
.tabelle thead th { border-bottom: 2px solid var(--nacht); font-size: var(--t-klein); color: var(--schiefer); }
.tabelle tbody th { width: 34%; }

.produkt-abschnitt .produkt-bild { max-width: 22rem; }

.weiter h2 { border-top-color: var(--fuchs); }
.weiter ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a3); }
.weiter a { display: block; text-decoration: none; color: var(--nacht); padding-top: var(--a1); }
.weiter strong { display: block; font-size: var(--t-h3); color: var(--fuchs); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.weiter span { display: block; font-size: 1rem; color: var(--schiefer); margin-top: 0.25rem; }
.weiter a:hover strong { text-decoration-thickness: 3px; }
@media (max-width: 640px) { .weiter ul { grid-template-columns: 1fr; } }

.quellen { font-size: 1rem; color: var(--schiefer); }
.quellen h2 { color: var(--nacht); font-size: 1.375rem; border-top-width: 1px; border-top-color: var(--linie); }
.quellen ul { padding-left: 1.25rem; }
.quellen li { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------ Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-bottom: var(--block); }
.kontakt-wege h2 { font-size: 1.5rem; }
.wege { list-style: none; padding: 0; margin-bottom: var(--a4); }
.wege li { border-top: 1px solid var(--linie); padding: var(--a2) 0; }
.wege li:last-child { border-bottom: 1px solid var(--linie); }
.wege span { display: block; font-size: var(--t-klein); color: var(--schiefer); }
.wege a { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }
.kontakt-bild { max-width: 20rem; margin-bottom: var(--a4); }

.formular { background: var(--weiss); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: 6px; }
.formular h2 { font-size: 1.75rem; }
.feld-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a2); }
.feld { margin-bottom: var(--a3); }
.feld label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--nacht); background: var(--weiss);
  border: 1.5px solid #8a95a1; border-radius: 4px; padding: 0.75rem 0.9rem; min-height: 48px;
  transition: border-color .15s var(--kurve);
}
.feld textarea { resize: vertical; min-height: 10rem; }
.feld input:hover, .feld textarea:hover { border-color: var(--nacht); }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--fuchs); outline-offset: 1px; border-color: var(--nacht); }
.feld input:user-invalid, .feld textarea:user-invalid { border-color: #b3261e; }
.feld ::placeholder { color: #6b7682; }
.pflicht { color: var(--fuchs); }
.zustimmung { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-bottom: var(--a3); font-size: 1rem; }
.zustimmung input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--fuchs); }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } .formular { order: -1; } }
@media (max-width: 520px) { .feld-reihe { grid-template-columns: 1fr; gap: 0; } }

/* ------------------------------------------------------------ Rechtstexte & 404 */
.rechtstext { max-width: 48rem; margin-inline: 0; padding-bottom: var(--block); min-height: 30vh; }
.fehlerseite { padding-block: var(--block); }
.fehlerseite h1 { font-size: var(--t-start); line-height: 1; max-width: 14ch; }
.fehler-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--a4); }
.fehler-links a { display: inline-block; padding: 0.6rem 1.2rem; border: 2px solid var(--nacht); border-radius: 999px; color: var(--nacht); text-decoration: none; font-weight: 700; }
.fehler-links a:hover { background: var(--nacht); color: var(--weiss); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.gen { background: var(--heu-hell); }
.knopf { text-align: center; }
.artikel .kurve figcaption { color: #aab5c0; }
