/* DA Elektrotechnik – Stylesheet
   Ein Akzent: das Verteilerfeld im Leistungsbereich. Alles andere bleibt ruhig. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Farben – aus dem Logo und dem Verteilergehäuse abgeleitet */
  --rot: #d7141a;          /* Aktion: Buttons, Links-Hover (weiß darauf 5,2:1) */
  --rot-dunkel: #b01015;   /* Hover/aktiv */
  --rot-logo: #ed1c24;     /* nur kleine Akzente, z. B. Schalter „ein“ */
  --graphit: #2b2f33;      /* Text, dunkle Flächen */
  --grau: #50565b;         /* Sekundärtext (7,0:1 auf Weiß) */
  --ral7035: #d6d9d5;      /* Lichtgrau wie ein Verteilergehäuse */
  --hell: #eef0ee;         /* ruhige helle Fläche */
  --linie: #c3c7c4;        /* Trennlinien, Feldränder */
  --schiene: #9da3a6;      /* Hutschiene */
  --weiss: #ffffff;

  --schrift: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --schrift-schmal: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;

  /* Typo-Skala */
  --fs-klein: 0.9375rem;
  --fs-text: 1.125rem;
  --fs-gross: 1.3125rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.9rem + 4.4vw, 5.25rem);

  --breite: 75rem;          /* 1200 px */
  --rand: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --abschnitt: clamp(4rem, 3rem + 5vw, 7.5rem);
  --kopf-hoehe: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--graphit);
  font-family: var(--schrift);
  font-size: var(--fs-text);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
.partner :focus-visible, .fuss :focus-visible, .aufruf :focus-visible { outline-color: var(--weiss); }
::selection { background: var(--rot); color: var(--weiss); }

h1, h2, h3 {
  overflow-wrap: break-word;
  hyphens: manual;
  font-family: var(--schrift-schmal);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.wrap { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abschnitt); }
.einleitung { font-size: var(--fs-gross); line-height: 1.5; color: var(--grau); max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--graphit); color: var(--weiss); padding: 0.6rem 1rem; }
.skiplink:focus { top: 1rem; color: var(--weiss); }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 600 1.0625rem/1.2 var(--schrift);
  text-decoration: none; border: 2px solid var(--rot); border-radius: 3px;
  background: var(--rot); color: var(--weiss); cursor: pointer;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.knopf--rahmen { background: transparent; color: var(--graphit); border-color: var(--graphit); }
.knopf--rahmen:hover { background: var(--graphit); border-color: var(--graphit); color: var(--weiss); }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen { display: flex; align-items: center; gap: 1.5rem; min-height: var(--kopf-hoehe); }
.kopf__logo { display: block; width: 9.5rem; flex: none; }
.kopf__logo img { width: 100%; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { font-weight: 500; text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--graphit); border-bottom-color: var(--rot); }
.kopf__telefon { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.kopf__telefon svg { width: 1.1rem; height: 1.1rem; color: var(--rot); }
.kopf .knopf { min-height: 2.6rem; padding: 0.5rem 1.1rem; }
.menue-knopf { display: none; }
.nav a, .kopf .knopf, .kopf__telefon { white-space: nowrap; }
@media (min-width: 62.01rem) and (max-width: 75rem) {
  .kopf__innen { gap: 1rem; }
  .nav ul { gap: 1.1rem; }
  .kopf__telefon span { display: none; }
}

@media (max-width: 62rem) {
  .kopf__innen { gap: 0.75rem; }
  .kopf__logo { width: 8rem; }
  .menue-knopf {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 2.9rem; height: 2.9rem; padding: 0; border: 1px solid var(--linie); border-radius: 3px;
    background: var(--weiss); color: var(--graphit); cursor: pointer;
  }
  .menue-knopf svg { width: 1.4rem; height: 1.4rem; }
  .kopf__telefon span, .kopf .knopf { display: none; }
  .kopf__telefon { order: 2; width: 2.9rem; height: 2.9rem; justify-content: center; border: 1px solid var(--linie); border-radius: 3px; }
  .menue-knopf { order: 3; margin-left: 0; }
  .kopf__telefon { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); margin: 0; }
  .nav.ist-offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--rand) 1rem; }
  .nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--hell); font-size: 1.1875rem; }
}

/* ---------- Startbereich ---------- */
.start { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.start__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.start h1 { margin-bottom: 0.35em; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); }
.start__unterzeile { font-family: var(--schrift-schmal); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; margin: 0 0 1.25rem; color: var(--graphit); }
.start__text { font-size: var(--fs-gross); line-height: 1.55; color: var(--grau); margin-bottom: 2rem; max-width: 52ch; }
.start__bild { margin: 0; position: relative; }
.start__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 3px; }
.start__bild figcaption { font-size: var(--fs-klein); color: var(--grau); margin-top: 0.6rem; }
@media (max-width: 52rem) {
  .start__raster { grid-template-columns: minmax(0, 1fr); }
  .start__bild img { aspect-ratio: 16 / 9; }
}

/* ---------- Eckdaten ---------- */
.eckdaten { border-block: 1px solid var(--linie); background: var(--hell); }
.eckdaten dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.eckdaten div { padding: 1.4rem 1.25rem 1.5rem; border-left: 1px solid var(--linie); }
.eckdaten div:first-child { border-left: 0; padding-left: 0; }
.eckdaten dt { font-family: var(--schrift-schmal); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.eckdaten dd { margin: 0.25rem 0 0; color: var(--grau); font-size: var(--fs-klein); line-height: 1.45; }
@media (max-width: 52rem) {
  .eckdaten dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eckdaten div { padding: 1.1rem 1rem 1.2rem 0; border-left: 0; border-top: 1px solid var(--linie); }
  .eckdaten div:nth-child(-n+2) { border-top: 0; }
  .eckdaten div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--linie); }
}

/* ---------- Verteilerfeld (Leistungen) – das eine auffällige Element ---------- */
.leistungen__kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.leistungen__kopf h2 { margin: 0; }
.leistungen__kopf p { margin: 0; color: var(--grau); }
@media (max-width: 52rem) { .leistungen__kopf { grid-template-columns: 1fr; gap: 1rem; } }

.feld {
  background: var(--ral7035);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35);
}
.feld__reihe {
  --schienen-y: 5.6rem;     /* Höhe der Hutschiene in jeder Reihe */
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--spalten, 4), minmax(0, 1fr));
  gap: 0;
  position: relative;
  background:
    linear-gradient(var(--schiene), var(--schiene)) 0 var(--schienen-y) / 100% 0.9rem no-repeat;
}
.feld__reihe + .feld__reihe { margin-top: clamp(1rem, 0.5rem + 2vw, 2rem); padding-top: clamp(1rem, 0.5rem + 2vw, 2rem); border-top: 1px dashed var(--linie); }
.feld__reihe + .feld__reihe { --schienen-y: calc(5.6rem + clamp(1rem, 0.5rem + 2vw, 2rem)); }
.feld__reihe--drei { --spalten: 3; }

.modul { margin: 0; padding: 0 clamp(0.6rem, 0.3rem + 1vw, 1.25rem) 0.5rem; display: flex; flex-direction: column; border-left: 1px solid rgba(80, 86, 91, 0.18); }
.modul:first-child { border-left: 0; }

/* Beschriftungsschild über dem Schalter */
.schild {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin: 0 0 0.75rem; padding: 0.3rem 0.55rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 2px;
  font-family: var(--schrift-schmal); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  max-width: none;
}
.schild__bmk { color: var(--grau); font-weight: 600; }

/* Leitungsschutzschalter als Zeichnung */
.schalter {
  position: relative; width: 3.4rem; height: 4.4rem; margin: 0 0 1.25rem 0.25rem;
  background: #f7f7f5; border: 1px solid #b9bdbb; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 3px rgba(43, 47, 51, 0.18);
}
.schalter::before { /* Hebelschlitz */
  content: ""; position: absolute; left: 50%; top: 0.75rem; width: 1.15rem; height: 2.3rem; transform: translateX(-50%);
  background: #dfe2e0; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.schalter__hebel {
  position: absolute; left: 50%; top: 1.85rem; width: 0.95rem; height: 1.1rem; transform: translateX(-50%);
  background: var(--graphit); border-radius: 2px;
  transition: top 160ms ease-out, background-color 160ms ease-out;
}
.schalter__anzeige { /* Schaltstellungsanzeige */
  position: absolute; left: 50%; bottom: 0.35rem; width: 1.3rem; height: 0.3rem; transform: translateX(-50%);
  background: #8fd18f; border-radius: 1px;
  transition: background-color 160ms ease-out;
}
.modul:hover .schalter__hebel, .modul:focus-within .schalter__hebel { top: 0.85rem; background: var(--rot-logo); }
.modul:hover .schalter__anzeige, .modul:focus-within .schalter__anzeige { background: var(--rot-logo); }
@media (prefers-reduced-motion: reduce) { .schalter__hebel, .schalter__anzeige { transition: none; } }

.modul h3 { font-size: 1.375rem; margin-bottom: 0.4rem; }
.modul p { font-size: 1rem; line-height: 1.55; color: var(--graphit); margin-bottom: 0.9rem; }
.modul__link { margin-top: auto; font-weight: 600; font-size: 1rem; color: var(--graphit); }
.modul__link:hover { color: var(--rot); }

@media (max-width: 62rem) {
  .feld__reihe, .feld__reihe--drei { --spalten: 2; background: none; }
  .modul { border-left: 0; padding: 1rem 0.75rem; border-top: 1px solid rgba(80, 86, 91, 0.18); }
  .modul:nth-child(-n+2) { border-top: 0; }
  .feld__reihe + .feld__reihe { border-top: 1px solid rgba(80, 86, 91, 0.18); padding-top: 0; margin-top: 0; }
}
@media (max-width: 36rem) {
  .feld__reihe, .feld__reihe--drei { --spalten: 1; }
  .modul { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem 0.25rem; }
  .modul:nth-child(2) { border-top: 1px solid rgba(80, 86, 91, 0.18); }
  .modul .schild { grid-column: 1 / -1; }
  .modul .schalter { grid-row: span 3; margin: 0; width: 3rem; height: 3.9rem; }
  .modul .schalter__hebel { top: 1.6rem; }
  .modul:hover .schalter__hebel, .modul:focus-within .schalter__hebel { top: 0.75rem; }
  .modul > :not(.schild):not(.schalter) { grid-column: 2; }
}

/* ---------- Partnerbetriebe ---------- */
.partner { background: var(--graphit); color: var(--weiss); }
.partner a:not(.knopf) { color: var(--weiss); }
.partner__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.partner p { color: #d9dcda; }
.partner .einleitung { color: #e9ebe9; }
.partner ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.partner li { margin: 0; padding: 0.9rem 0 0.9rem 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); position: relative; }
.partner li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.75rem; height: 2px; background: var(--rot-logo); }
.partner .knopf--rahmen { color: var(--weiss); border-color: var(--weiss); }
.partner .knopf--rahmen:hover { background: var(--weiss); color: var(--graphit); }
@media (max-width: 52rem) { .partner__raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ablauf (echte Reihenfolge) ---------- */
.ablauf ol { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: schritt; position: relative; }
.ablauf ol::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 1.2rem; height: 2px; background: var(--linie); }
.ablauf li { counter-increment: schritt; margin: 0; position: relative; }
.ablauf li::before {
  content: counter(schritt); display: grid; place-items: center; position: relative;
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--weiss); border: 2px solid var(--graphit);
  font-family: var(--schrift-schmal); font-weight: 700; font-size: 1.25rem;
}
.ablauf li:last-child::before { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.ablauf h3 { font-size: 1.3125rem; margin-bottom: 0.3rem; }
.ablauf li p { font-size: 1rem; color: var(--grau); margin: 0; }
@media (max-width: 62rem) {
  .ablauf ol { grid-template-columns: 1fr; gap: 0; }
  .ablauf ol::before { left: 1.2rem; right: auto; top: 1.25rem; bottom: 1.25rem; width: 2px; height: auto; }
  .ablauf li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1.1rem; padding-bottom: 1.5rem; }
  .ablauf li::before { grid-row: span 2; margin: 0; }
}

/* ---------- Projekte / Bilder ---------- */
.projekte__raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.projekte figure { margin: 0; }
.projekte img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.projekte figcaption { font-size: var(--fs-klein); color: var(--grau); margin-top: 0.5rem; }
.projekte figure:nth-child(1) { grid-column: span 5; }
.projekte figure:nth-child(2) { grid-column: span 4; }
.projekte figure:nth-child(3) { grid-column: span 3; }
.projekte { padding-top: 0; }
.projekte .bildrahmen { height: clamp(18rem, 12rem + 16vw, 30rem); overflow: hidden; }
@media (max-width: 52rem) {
  .projekte__raster { grid-template-columns: 1fr 1fr; }
  .projekte figure:nth-child(n) { grid-column: span 1; }
  .projekte figure:nth-child(1) { grid-column: span 2; }
  .projekte .bildrahmen { height: clamp(13rem, 8rem + 20vw, 20rem); }
}

/* ---------- Über uns ---------- */
.ueber { background: var(--hell); border-top: 1px solid var(--linie); }
.ueber__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.ueber dl { margin: 0; }
.ueber dl div { padding: 0.9rem 0; border-bottom: 1px solid var(--linie); }
.ueber dl div:first-child { border-top: 1px solid var(--linie); }
.ueber dt { font-weight: 600; }
.ueber dd { margin: 0.15rem 0 0; color: var(--grau); }
@media (max-width: 52rem) { .ueber__raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kontakt ---------- */
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (min-width: 52.01rem) { .kontakt__raster .formular { grid-column: 1; grid-row: 1; } .kontakt__raster .kontakt__direkt { grid-column: 2; grid-row: 1; } }
@media (max-width: 52rem) { .kontakt__raster { grid-template-columns: minmax(0, 1fr); } }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.formular .voll { grid-column: 1 / -1; }
@media (max-width: 36rem) { .formular { grid-template-columns: minmax(0, 1fr); } }
.feldgruppe label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }
.feldgruppe .hinweis { font-weight: 400; color: var(--grau); }
.feldgruppe input, .feldgruppe select, .feldgruppe textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--graphit);
  padding: 0.7rem 0.8rem; min-height: 3rem;
  background: var(--weiss); border: 1px solid #8f969a; border-radius: 3px;
}
.feldgruppe textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.feldgruppe select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphit) 50%), linear-gradient(135deg, var(--graphit) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.feldgruppe input:focus, .feldgruppe select:focus, .feldgruppe textarea:focus { outline: 3px solid var(--rot); outline-offset: 1px; border-color: var(--graphit); }
.feldgruppe input:user-invalid, .feldgruppe textarea:user-invalid { border-color: var(--rot); }
.formular__falle { display: none !important; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formular__datenschutz { font-size: var(--fs-klein); color: var(--grau); margin: 0; max-width: 48ch; }
.meldung { grid-column: 1 / -1; padding: 0.9rem 1rem; border-left: 4px solid var(--rot); background: #fbecec; margin: 0; }
.meldung[hidden] { display: none; }
.kontakt__direkt { border-top: 3px solid var(--graphit); padding-top: 1.25rem; }
.kontakt__titel { font: 600 var(--fs-h3)/1.15 var(--schrift-schmal); margin: 0 0 1rem; color: var(--graphit); }
.formular__hinweis { margin: 0; font-size: var(--fs-klein); color: var(--grau); }
.kontakt__telefon { display: block; font-family: var(--schrift-schmal); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); line-height: 1.1; text-decoration: none; margin-bottom: 0.25rem; }
.kontakt__direkt address { font-style: normal; margin: 1.25rem 0; line-height: 1.6; }
.kontakt__direkt p { color: var(--grau); }

/* ---------- Textseiten (Impressum, Datenschutz, Leistungsseiten) ---------- */
.textseite { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--abschnitt); }
.textseite .inhalt { max-width: 46rem; }
.textseite h1 { font-size: clamp(2.5rem, 1.9rem + 3vw, 4rem); }
.textseite h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); margin-top: 2.2em; }
.textseite h3 { font-size: 1.3125rem; margin-top: 1.6em; }
.textseite address { font-style: normal; margin-bottom: 1em; }
.platzhalter { background: #fff1b8; outline: 1px dashed #b38f00; padding: 0 0.2em; }
.brotkrumen { font-size: var(--fs-klein); color: var(--grau); margin-bottom: 1.5rem; }
.brotkrumen a { color: var(--grau); }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--graphit); color: #d9dcda; padding-block: 3.5rem 2rem; font-size: 1rem; }
.fuss a { color: #ffffff; }
.fuss a:hover { color: #ffffff; text-decoration-color: var(--rot-logo); text-decoration-thickness: 2px; }
.fuss__raster { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 2rem; }
.fuss__logo { width: 10rem; margin-bottom: 1rem; }
.fuss h2 { font-size: 1.25rem; color: var(--weiss); margin-bottom: 0.75rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.45rem; }
.fuss address { font-style: normal; }
.fuss__unten { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: var(--fs-klein); }
@media (max-width: 52rem) { .fuss__raster { grid-template-columns: 1fr 1fr; } .fuss__marke { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .fuss__raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Schnellleiste am Handy ---------- */
.schnellleiste { display: none; }
@media (max-width: 40rem) {
  .schnellleiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--weiss); border-top: 1px solid var(--linie);
  }
  .schnellleiste .knopf { min-height: 2.9rem; width: 100%; }
  body { padding-bottom: 4.25rem; }
}

@media print {
  .kopf, .schnellleiste, .fuss, .formular { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- Leistungsseiten und Partnerseite ---------- */
.leistung-kopf { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--linie); }
.leistung-kopf__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.leistung-kopf .schild { display: inline-flex; margin-bottom: 1rem; }
.leistung-kopf h1 { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem); margin-bottom: 0.4em; }
.leistung-kopf .einleitung { margin-bottom: 1.75rem; }
.leistung-kopf figure { margin: 0; }
.leistung-kopf figure img { width: 100%; aspect-ratio: 4 / 5; max-height: 34rem; object-fit: cover; border-radius: 3px; }
@media (max-width: 52rem) { .leistung-kopf figure img { aspect-ratio: 4 / 3; } }
.leistung-kopf figcaption { font-size: var(--fs-klein); color: var(--grau); margin-top: 0.5rem; }
@media (max-width: 52rem) { .leistung-kopf__raster { grid-template-columns: minmax(0, 1fr); } }

.leistung-inhalt { padding-block: var(--abschnitt); }
.leistung-inhalt__raster { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.leistung-inhalt__text > h2:first-child { margin-top: 0; }
.leistung-inhalt__text h2 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.375rem); margin-top: 1.8em; }
.leistung-inhalt__text h3 { font-size: 1.3125rem; margin-top: 1.4em; }
.leistung-inhalt__text ul { padding-left: 0; list-style: none; }
.leistung-inhalt__text ul li { position: relative; padding-left: 1.4rem; }
.leistung-inhalt__text ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7rem; height: 2px; background: var(--rot); }
@media (max-width: 62rem) { .leistung-inhalt__raster { grid-template-columns: minmax(0, 1fr); } }

.kurz { background: var(--hell); border: 1px solid var(--linie); border-top: 3px solid var(--graphit); padding: 1.25rem 1.25rem 1.4rem; position: sticky; top: calc(var(--kopf-hoehe) + 1.5rem); }
.kurz h2 { font-size: 1.375rem; margin: 0 0 0.75rem; }
.kurz dl { margin: 0 0 1.25rem; }
.kurz dl div { padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.kurz dt { font-weight: 600; font-size: 1rem; }
.kurz dd { margin: 0.1rem 0 0; color: var(--grau); font-size: 1rem; line-height: 1.5; }
.kurz .knopf { width: 100%; }
@media (max-width: 62rem) { .kurz { position: static; } }

.fragen { margin-top: 1rem; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font-weight: 600; font-size: 1.125rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 0.5rem; top: 1.35rem; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--graphit); border-bottom: 2px solid var(--graphit); transform: rotate(45deg); transition: transform 150ms ease-out; }
.fragen details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.fragen details > :not(summary) { margin: 0 0 1rem; color: var(--graphit); }
@media (prefers-reduced-motion: reduce) { .fragen summary::after { transition: none; } }

.aufruf { background: var(--graphit); color: var(--weiss); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.aufruf__raster { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.aufruf h2 { margin: 0 0 0.3em; font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.625rem); }
.aufruf p { margin: 0; color: #d9dcda; }
.aufruf .knopf--rahmen { color: var(--weiss); border-color: var(--weiss); }
.aufruf .knopf--rahmen:hover { background: var(--weiss); color: var(--graphit); }

.weitere { padding-block: var(--abschnitt); }
.weitere ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.weitere li { margin: 0; }
.weitere a { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.85rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: 2px; text-decoration: none; font-family: var(--schrift-schmal); font-weight: 600; font-size: 1.125rem; }
.weitere a:hover { border-color: var(--graphit); color: var(--graphit); }
.weitere a span { color: var(--grau); }
.leistung-kopf__raster--ohne-bild { grid-template-columns: minmax(0, 52rem); }
.leistung-inhalt__text ol { list-style: none; padding-left: 0; counter-reset: punkt; }
.leistung-inhalt__text ol li { counter-increment: punkt; position: relative; padding-left: 2.4rem; margin-bottom: 0.8em; }
.leistung-inhalt__text ol li::before { content: counter(punkt); position: absolute; left: 0; top: 0.1em; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 2px solid var(--graphit); border-radius: 50%; font-family: var(--schrift-schmal); font-weight: 700; font-size: 1rem; line-height: 1; }
.leistung-kopf figure img { object-position: 50% 35%; }

/* QA-Korrekturen 02.10.2026 */
@media (max-width: 40rem) {
  html { scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  body:has(.formular:focus-within) .schnellleiste { display: none; }
}
.modul { position: relative; }
.modul__link::after { content: ""; position: absolute; inset: 0; }
.modul:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.modul p, .eckdaten dd { hyphens: auto; }
@media (max-width: 36rem) {
  .modul { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0; align-items: center; }
  .modul .schalter { grid-column: 1; grid-row: 1; grid-row-end: auto; margin: 0; }
  .modul .schild { grid-column: 2; grid-row: 1; margin: 0; }
  .modul > :not(.schild):not(.schalter) { grid-column: 1 / -1; }
  .modul h3 { margin-top: 0.9rem; }
}
