/*
 * Erscheinungsbild „Signal“ für Elektro Blitz, liegt über site.css der Vorlage.
 * Gelbes Feld mit schräger Kante im Winkel des Blitzes, schräge Knöpfe und Etiketten,
 * gelbe Ecke an jeder Leistungskarte.
 */

:root {
  --schraeg: -12deg;
  --raute: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  --kopf-abstand: 0px;
}

/* ---------- Schriftgrößen: eine Skala für alle Seiten ---------- */
h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Hervorgehobene Wörter sehen aus wie der restliche Titel (kein Marker, keine Kursivschrift) */
h1 em,
h2 em,
.footer__satz em,
.hero h1 em,
.cta__box h2 em,
.section--dark h2 em {
  display: inline;
  padding: 0;
  background: none;
  color: inherit;
  font-style: normal;
  font-weight: inherit;
}

/* ---------- Etiketten: überall gleich groß, dunkel mit gelber Schrift ---------- */
.eyebrow,
.section-head .eyebrow,
.cta .eyebrow,
.cta__box .eyebrow {
  gap: 0;
  margin: 0 0 18px;
  padding: 7px 16px;
  background: var(--tinte);
  color: var(--akzent);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.12em;
  clip-path: var(--raute);
}
.eyebrow::before,
.cta .eyebrow::before {
  content: none;
}
/* Etikett in der Hauptüberschrift: eigene Zeile, sieht aus wie jedes andere Etikett */
h1 .eyebrow {
  display: flex;
  width: fit-content;
  font-family: var(--sans);
}
.section--dark .eyebrow,
.section--dark .section-head .eyebrow {
  background: var(--akzent);
  color: var(--tinte);
}

/* ---------- Knöpfe: schräge Fläche hinter dem Text ---------- */
.btn {
  --b-fg: var(--tinte);
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: none;
  padding-inline: 30px;
  font-weight: 800;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px solid var(--b-bd);
  background: var(--b-bg);
  transform: skewX(var(--schraeg));
  transition: background 0.25s, border-color 0.25s;
}
.btn:hover {
  --b-bg: var(--tinte);
  --b-bd: var(--tinte);
  --b-fg: var(--akzent);
  box-shadow: none;
}
.btn--dark {
  --b-fg: var(--akzent);
}
.btn--dark:hover {
  --b-bg: var(--tinte-3);
  --b-bd: var(--tinte-3);
  box-shadow: none;
}
/* Konturknöpfe füllen sich beim Darüberfahren dunkel, die Schrift wird hell */
.btn--outline:hover,
.btn--outline-dark:hover {
  --b-fg: var(--flaeche);
}
.btn--outline-dark {
  --b-bd: var(--tinte);
}
/* Konturknopf auf dunklem Grund (Menü, Köpfe): helle Schrift, sonst überschreibt .btn oben die Farbe der Vorlage */
.btn--ghost,
.btn--ghost:hover {
  --b-fg: var(--flaeche);
}
/* In den dunklen Köpfen (Startseite und Unterseiten): Hauptknopf in der Akzentfarbe, zweiter Knopf als helle Kontur */
.hero__text .btn:not(.btn--outline):hover,
.page-hero .btn:not(.btn--ghost):hover {
  --b-bg: var(--flaeche);
  --b-bd: var(--flaeche);
  --b-fg: var(--tinte);
}
.hero__text .btn--outline,
.page-hero .btn--ghost {
  --b-bg: transparent;
  --b-bd: color-mix(in srgb, var(--flaeche) 40%, transparent);
  --b-fg: var(--flaeche);
  background: none;
}
.hero__text .btn--outline:hover,
.page-hero .btn--ghost:hover {
  --b-bg: color-mix(in srgb, var(--flaeche) 10%, transparent);
  --b-bd: var(--flaeche);
  --b-fg: var(--flaeche);
}
.link-arrow {
  border-bottom-width: 3px;
}

/* ---------- Kopfleiste: durchgehende helle Leiste ---------- */
.kopf {
  padding-top: 0;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  pointer-events: auto;
}
.kopf-hell .kopf__insel {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.kopf__tel,
.kopf__stoerung {
  border-radius: 0;
  clip-path: var(--raute);
}
.kopf__burger,
.kopf-hell .kopf__burger {
  border-radius: 0;
  background: var(--tinte);
  color: var(--akzent);
  clip-path: var(--raute);
}
.menue {
  background: var(--tinte);
}
.menue__haupt > li > a,
.menue__gruppe summary {
  font-weight: 800;
}
.menue__leistungen a {
  border-radius: 0;
  border-left: 3px solid var(--akzent);
}
@media (min-width: 1024px) {
  .kopf__insel {
    height: 80px;
  }
  .nav__link,
  .kopf-hell .nav__link {
    border-radius: 0;
    color: var(--tinte);
    font-weight: 700;
  }
  .nav__link:hover {
    color: var(--tinte);
    background: none;
    box-shadow: inset 0 -3px 0 var(--akzent);
  }
  .nav__link.is-active,
  .kopf-hell .nav__link.is-active {
    color: var(--tinte);
    box-shadow: inset 0 -3px 0 var(--akzent);
  }
  .nav__droplink > svg {
    border-radius: 0;
    background: var(--tinte);
    color: var(--akzent);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  }
  .kopf__tel {
    clip-path: none;
    color: var(--tinte);
  }
  .kopf__tel svg {
    color: var(--tinte);
  }
  .kopf__cta {
    --b-bg: var(--tinte);
    --b-bd: var(--tinte);
    --b-fg: var(--akzent);
  }
  .kopf__cta:hover {
    --b-bg: var(--tinte-3);
    --b-bd: var(--tinte-3);
  }
}
html {
  scroll-padding-top: calc(var(--kopf-h) + 24px);
}

/* ---------- Titelbereich: dunkles Feld mit schräger Kante, Akzent nur als Linie an der Kante ---------- */
.hero {
  margin-top: 0;
  padding-top: 0;
  background: var(--tinte);
  color: var(--flaeche);
}
.hero__licht {
  display: none;
}
.hero__inner {
  padding-bottom: 0;
}
.hero__text {
  position: relative;
  z-index: 0;
  padding: 48px 0 72px;
  color: var(--flaeche);
}
.hero__text::before,
.hero__text::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  background: var(--tinte);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}
/* Akzentlinie knapp innerhalb der schrägen Unterkante */
.hero__text::after {
  background: var(--akzent);
  clip-path: polygon(100% calc(100% - 42px), 100% calc(100% - 36px), 0 100%, 0 calc(100% - 6px));
}
.hero h1 {
  color: var(--flaeche);
}
.hero h1 em {
  background: none;
  padding: 0;
}
.hero__lead {
  color: color-mix(in srgb, var(--flaeche) 78%, transparent);
  font-weight: 500;
}
.hero .eyebrow {
  background: var(--akzent);
  color: var(--akzent-text);
}
.hero .kennzahlen {
  padding: 28px 0 32px;
}
.hero .kennzahlen li {
  border-radius: 0;
  background: rgb(255 255 255 / 0.05);
  box-shadow: none;
  border-left: 3px solid var(--akzent);
}
.hero .kennzahlen strong {
  color: var(--akzent);
  font-weight: 800;
}
.hero .kennzahlen span {
  color: var(--grau-hell);
}
@media (min-width: 1000px) {
  .hero {
    padding-top: 0;
  }
  .hero__inner {
    gap: 110px;
    align-items: stretch;
    padding-bottom: 0;
  }
  .hero__text {
    padding: 88px 0 96px;
  }
  .hero__text::before,
  .hero__text::after {
    inset: 0 -130px 0 -100vw;
    clip-path: polygon(0 0, 100% 0, calc(100% - 130px) 100%, 0 100%);
  }
  .hero__text::after {
    clip-path: polygon(calc(100% - 7px) 0, 100% 0, calc(100% - 130px) 100%, calc(100% - 137px) 100%);
  }
  /* Foto füllt die rechte Seite bis zum Bildschirmrand und liegt unter dem gelben Feld:
     die schräge Kante schneidet es an, oben und unten ohne Rand */
  .hero__bild {
    position: relative;
    z-index: -1;
    align-self: stretch;
    margin-left: -112px;
    margin-right: calc((min(100vw - 2 * var(--rand), var(--breite)) - 100vw) / 2);
  }
  .hero__bild .foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
  .hero__bild::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(to top, color-mix(in srgb, var(--tinte) 70%, transparent), transparent);
    pointer-events: none;
  }
  .hero__bild .foto--platzhalter svg {
    transform: translateX(56px);
  }
  .hero .kennzahlen {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .hero .kennzahlen li {
    padding: 28px 24px;
    background: none;
    border-left: 0;
  }
  .hero .kennzahlen li + li {
    border-left: 1px solid var(--linie-dunkel);
  }
}

/* ---------- Leistungskarten: weiß, gelbe Ecke, dunkle Kante ---------- */
.lk {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  border-radius: 0;
  border-bottom: 4px solid var(--tinte);
  background: var(--flaeche);
  color: var(--text);
  transition: transform 0.25s var(--kurve), border-color 0.25s;
}
.lk::after {
  inset: 0 0 auto auto;
  z-index: 1;
  width: 40px;
  height: 40px;
  background: var(--akzent);
  clip-path: polygon(40% 0, 100% 0, 100% 100%);
  transition: width 0.25s var(--kurve), height 0.25s var(--kurve);
}
.lk:hover {
  transform: translateY(-4px);
  border-color: var(--akzent);
}
.lk:hover::after {
  width: 56px;
  height: 56px;
}
.lk__bild {
  position: static;
  z-index: auto;
  height: auto;
  aspect-ratio: 16 / 10 !important;
}
.lk__bild.foto--platzhalter {
  display: none;
}
.lk:hover .lk__bild {
  transform: none;
}
.lk__icon {
  position: static;
  width: 50px;
  height: 50px;
  margin: 28px 28px 0;
  border-radius: 0;
  background: var(--tinte);
  color: var(--akzent);
  backdrop-filter: none;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.lk__body {
  flex: 1;
  align-content: start;
  padding: 20px 28px 26px;
}
.lk__titel {
  color: var(--tinte);
  font-size: 1.3rem;
  font-weight: 700;
}
.lk__text {
  color: var(--grau);
}
.lk__mehr {
  justify-self: start;
  padding-bottom: 2px;
  border-bottom: 3px solid var(--akzent);
  color: var(--tinte);
}
.lk--gross {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
}
.lk--gross .lk__titel {
  font-size: 1.3rem;
}
.lk--gross .lk__text {
  font-size: 0.95rem;
}

/* ---------- Warum wir ---------- */
.licht-sektion::before {
  content: none;
}
.grund__nr {
  font-style: normal;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--akzent);
}

/* ---------- Ablauf ---------- */
.schritt__num {
  border-radius: 0;
  font-style: normal;
  font-weight: 800;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.schritt:not(:last-child)::before {
  border-left: 3px solid var(--akzent);
}
@media (min-width: 900px) {
  .schritt:not(:last-child)::before {
    border-left: 0;
    border-top: 3px solid var(--akzent);
  }
}

/* ---------- Aufruf am Seitenende: helles Band mit gerader Oberkante (passt über jeden Abschnitt), kurzer Akzentbalken ---------- */
.cta {
  padding-bottom: 0;
  overflow: clip;
}
.cta__box {
  margin-inline: calc(50% - 50vw);
  padding: clamp(56px, 8vw, 96px) max(var(--rand), calc(50vw - var(--breite) / 2)) clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--linie);
  border-radius: 0;
  background: var(--flaeche);
}
.cta__box::after {
  content: '';
  inset: -1px auto auto max(var(--rand), calc(50vw - var(--breite) / 2));
  width: 96px;
  height: 6px;
  border-radius: 0;
  background: var(--akzent);
  -webkit-mask: none;
  mask: none;
  clip-path: var(--raute);
}

/* ---------- Unterseiten: dunkler Kopf, Akzentlinie an der schrägen Unterkante ---------- */
.page-hero {
  --kante: clamp(20px, 3vw, 36px);
  margin-top: 0;
  padding: clamp(40px, 7vw, 80px) 0 calc(clamp(40px, 6vw, 72px) + var(--kante));
  border-bottom: 0;
  background: var(--tinte);
  color: var(--flaeche);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--kante)), 0 100%);
}
.page-hero::before {
  content: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: calc(var(--kante) + 6px);
  background: var(--akzent);
  clip-path: polygon(100% 0, 100% 6px, 0 100%, 0 calc(100% - 6px));
}
.page-hero h1 {
  color: var(--flaeche);
}
.page-hero__lead {
  color: color-mix(in srgb, var(--flaeche) 78%, transparent);
  font-weight: 500;
}
.page-hero .eyebrow {
  background: var(--akzent);
  color: var(--akzent-text);
}
.page-hero .breadcrumbs ol,
.page-hero .breadcrumbs li + li::before {
  color: color-mix(in srgb, var(--flaeche) 65%, transparent);
}
.page-hero .breadcrumbs a:hover {
  color: var(--akzent);
}

/* ---------- Fußzeile ---------- */
.footer__satz {
  font-weight: 800;
}
.footer__tel {
  border-bottom-width: 3px;
}

/* ---------- Schnellkontakt am Handy ---------- */
/* Leicht leuchtendes Glas in den Farben der Marke: getönt mit Tinte, oben ein heller Lichtsaum,
   ein schwacher Schein in der Akzentfarbe; hebt sich über dunklen und hellen Flächen ab */
.actionbar {
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 18% 0%, color-mix(in srgb, var(--akzent) 22%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--flaeche) 14%, transparent), color-mix(in srgb, var(--flaeche) 4%, transparent)),
    color-mix(in srgb, var(--tinte) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--flaeche) 38%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--flaeche) 18%, transparent),
    0 0 24px -4px color-mix(in srgb, var(--akzent) 35%, transparent),
    0 18px 40px -10px color-mix(in srgb, var(--tinte) 60%, transparent);
}
.actionbar a {
  border-radius: 6px;
}
/* Nebenknöpfe als helleres Glas im Glas */
.actionbar a:not(.actionbar__main) {
  background: color-mix(in srgb, var(--flaeche) 12%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--flaeche) 22%, transparent);
}
.actionbar a:not(.actionbar__main) svg {
  color: var(--akzent);
}
.actionbar .actionbar__main {
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--akzent) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--flaeche) 45%, transparent);
}
.cta .eyebrow {
  color: var(--akzent);
}

/* ---------- Lesbarkeit und Proportionen ---------- */
.footer__satz {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lk__titel {
  letter-spacing: -0.01em;
}
.licht {
  border-radius: 0;
  border-bottom: 6px solid var(--akzent);
}
/* Letzte Karte im Leistungsraster: Aufruf zur Anfrage, dunkel mit Akzentecke */
.lk--anfrage {
  background: var(--tinte);
  border-bottom-color: var(--akzent);
}
.lk--anfrage .lk__icon {
  background: var(--akzent);
  color: var(--akzent-text);
}
.lk--anfrage .lk__titel,
.lk--anfrage .lk__mehr {
  color: var(--flaeche);
}
.lk--anfrage .lk__text {
  color: var(--grau-hell);
}
.lk--anfrage:hover {
  border-color: var(--akzent);
}
.licht-sektion__kopf .eyebrow {
  font-size: 0.75rem;
  color: var(--tinte);
}
.grund__nr {
  min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
}

/* ---------- Bedienung: Fokus, Tippflächen, Handy ---------- */
/* Fokusrahmen dunkel auf hellem und gelbem Grund, gelb auf dunklem */
:focus-visible {
  outline-color: var(--tinte);
  border-radius: 0;
}
.hero :focus-visible,
.page-hero :focus-visible,
.section--dark :focus-visible,
.footer :focus-visible,
.menue :focus-visible,
.actionbar :focus-visible {
  outline-color: var(--akzent);
}
/* clip-path schneidet den Fokusrahmen ab: im Fokus eckig statt schräg */
.kopf__tel:focus-visible,
.kopf__stoerung:focus-visible,
.kopf__burger:focus-visible {
  clip-path: none;
}
/* Blätterknöpfe unter den Wischreihen in der Formensprache der Marke */
.reihe__knopf {
  border-radius: 0;
}
.reihe__balken {
  border-radius: 0;
}
.reihe__spur {
  border-radius: 0;
}
@media (max-width: 639px) {
  /* Knöpfe im Titelbereich über die volle Breite, gut mit dem Daumen erreichbar */
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 999px) {
  /* Handy und Tablet: echtes Foto randlos unter der schrägen Unterkante des gelben Felds (ohne Foto kein leerer Kasten) */
  .hero__bild:not(:has(.foto--platzhalter)) {
    display: block;
    z-index: -1;
    margin: -76px calc(-1 * var(--rand)) 0;
  }
  .hero__bild .foto {
    width: 100%;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
  /* Ungerade Anzahl Kennzahlen: die letzte Kachel füllt die Zeile */
  .hero .kennzahlen li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
/* Lange deutsche Wörter in Überschriften trennen statt über den Rand laufen */
h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Touch: Links in der Fußzeile mit ausreichend großer Tippfläche */
@media (pointer: coarse) {
  .footer__list {
    gap: 0;
  }
  .footer__list a,
  .footer__bottom a {
    display: inline-block;
    padding-block: 10px;
  }
  .footer__tel {
    padding-block: 6px;
  }
  /* Kontakt: große Tippfläche ohne Versatz zum Symbol (Polsterung wird mit negativem Rand ausgeglichen) */
  .footer__contact {
    gap: 14px;
  }
  .footer__contact a {
    padding-block: 10px;
    margin-block: -10px;
  }
}
/* Kontaktzeilen: Symbol auf Höhe der ersten Textzeile, lange Mail-Adressen umbrechen statt überlaufen */
.footer__contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: calc((1lh - 18px) / 2);
}
.footer__contact li {
  align-items: flex-start;
  overflow-wrap: anywhere;
}
/* Fußzeile unten: Rechtliches und „by GSM“ */
.footer__bottom ul {
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 4px;
}
.footer__bottom .footer__gsm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__gsm img {
  width: 18px;
  height: 18px;
}
@media (max-width: 899px) {
  /* Handy: Copyright und Links untereinander, linksbündig */
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- Zusagen: schräge dunkle Marke mit gelbem Haken ---------- */
.zusagen {
  border-top-width: 2px;
  border-top-color: var(--tinte);
}
.zusagen__marke {
  width: 32px;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.hero .zusagen,
.page-hero .zusagen {
  border-top-color: color-mix(in srgb, var(--flaeche) 30%, transparent);
  color: var(--flaeche);
}
.hero .zusagen__marke,
.page-hero .zusagen__marke {
  background: var(--akzent);
  color: var(--akzent-text);
}

/* ---------- Einsatzgebiet: Ortskarten in der Formensprache der Leistungskarten ---------- */
.ort-karte {
  border: 0;
  border-bottom: 3px solid var(--tinte);
  border-radius: 0;
}
.ort-karte:hover {
  border-color: var(--akzent);
}
.ort-karte__pin {
  border-radius: 0;
  background: var(--tinte);
  color: var(--akzent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.ort-karte__text strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (min-width: 1000px) {
  /* Drei schmale Spalten im Titelbereich: Marke über dem Text, damit jede Zusage höchstens zwei Zeilen braucht */
  .hero .zusagen li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.page-hero .zusagen {
  max-width: 820px;
}
@media (min-width: 1024px) {
  /* Der schwebende WhatsApp-Knopf darf Impressum und Datenschutz nicht verdecken */
  body:has(.wa-float) .footer__bottom {
    padding-right: 170px;
  }
}

/* ---------- Pflichtfelder und Meldungen am Feld ---------- */
.pflicht {
  color: var(--rot);
  font-weight: 800;
}
.form-pflicht {
  margin: 0 0 14px;
  color: var(--grau);
  font-size: 0.85rem;
}
.feld-fehler {
  margin: 2px 0 0;
  color: var(--rot);
  font-size: 0.85rem;
  font-weight: 600;
}
.is-fehler > .input,
.is-fehler > .textarea,
.is-fehler > .select {
  border-color: var(--rot);
}
.check.is-fehler {
  flex-wrap: wrap;
}
.check > .feld-fehler {
  flex-basis: 100%;
}

/* ---------- Live-Anzeige der Erreichbarkeit ---------- */
.erreichbar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.erreichbar[hidden] {
  display: none;
}
.erreichbar__punkt {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grau-hell, var(--grau));
}
.erreichbar.is-offen .erreichbar__punkt {
  background: var(--gruen);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gruen) 60%, transparent);
  animation: puls 2.4s ease-out infinite;
}
@keyframes puls {
  to {
    box-shadow: 0 0 0 10px transparent;
  }
}
.zeiten .erreichbar {
  margin: 0 0 12px;
}
.kontakt__speichern {
  display: flex;
  width: fit-content;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.kontakt__speichern[hidden],
.teilen[hidden] {
  display: none;
}
.side-link.teilen {
  width: 100%;
  border-inline: 0;
  border-bottom: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.artikel__haupt > .teilen {
  margin-top: 28px;
}

/* ---------- Typografie: ausgewogene Zeilen ---------- */
h1,
h2,
h3,
.footer__satz {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

/* ---------- Häufige Fragen: weich auf- und zuklappen, immer nur eine offen ---------- */
html {
  interpolate-size: allow-keywords;
}
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.3s var(--kurve), content-visibility 0.3s allow-discrete;
}
.faq__item[open]::details-content {
  block-size: auto;
}

/* ---------- Fußzeile: aufklappbare Gruppen ---------- */
.footer__klappe summary {
  list-style: none;
}
.footer__klappe summary::-webkit-details-marker {
  display: none;
}
@media (min-width: 900px) {
  .footer__klappe summary {
    cursor: default;
  }
}
@media (max-width: 899px) {
  .footer__grid {
    gap: 0;
  }
  .footer__brand {
    padding-bottom: 28px;
  }
  .footer__grid > .footer__klappe {
    grid-column: 1 / -1;
  }
  .footer__klappe {
    border-top: 1px solid var(--linie-dunkel);
  }
  .footer__orte {
    padding-block: 0;
    border-top: 0;
  }
  .footer__orte .footer__klappe {
    border-bottom: 1px solid var(--linie-dunkel);
  }
  .footer__klappe summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    cursor: pointer;
  }
  .footer__klappe summary .footer__title {
    margin: 0;
  }
  .footer__klappe summary::after {
    content: '';
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--akzent);
    border-bottom: 2px solid var(--akzent);
    transform: rotate(45deg);
    transition: transform 0.25s var(--kurve);
  }
  .footer__klappe[open] summary::after {
    transform: rotate(-135deg);
  }
  .footer__klappe > ul {
    padding-bottom: 20px;
  }
  .footer__grid > div:last-child {
    padding-top: 28px;
    border-top: 1px solid var(--linie-dunkel);
  }
  .footer__bottom {
    padding-top: 24px;
  }
}

/* ---------- Handy: dichter, klarer, weniger Scrollen ---------- */
main {
  overflow-x: clip; /* randlose Fotos dürfen beim Hereingleiten nicht seitlich überstehen */
}
a,
button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 759px) {
  .section {
    padding-block: 56px;
  }
  .hero__text {
    padding-top: 36px;
  }
  .hero__lead {
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .hero .zusagen {
    margin-top: 18px;
    padding-top: 6px;
  }
  .hero .zusagen li {
    padding-block: 9px;
    font-size: 0.93rem;
  }
  .section-head p:not(.eyebrow) {
    font-size: 0.98rem;
  }
  /* Darauf achten wir: Nummer, Titel und Text als kompakte Zeile */
  .grund {
    gap: 14px;
    padding: 18px 0;
  }
  .grund__nr {
    font-size: 1.45rem;
  }
  .grund h3 {
    margin-bottom: 4px;
    font-size: 1.14rem;
  }
  .grund p {
    font-size: 0.96rem;
  }
  /* Leistungsseite: Bild randlos, weitere Leistungen als Wischreihe */
  .leistung__main > .foto,
  .artikel__bild {
    width: calc(100% + 2 * var(--rand));
    max-width: none;
    margin-inline: calc(-1 * var(--rand));
    border-radius: 0;
  }
  .leistung > *,
  .leistung__side > * {
    min-width: 0;
  }
  .side-nav {
    display: flex;
    gap: 8px;
    margin-inline: calc(-1 * var(--side-rand, 22px));
    padding: 2px var(--side-rand, 22px) 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--side-rand, 22px);
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar {
    display: none;
  }
  .side-nav li {
    flex: none;
    scroll-snap-align: start;
  }
  .side-nav a {
    min-height: 46px;
    padding: 8px 14px;
    border: 1.5px solid var(--linie);
    border-radius: 0;
    white-space: nowrap;
    font-size: 0.9rem;
  }
  /* Wischreihen: die Karte in der Mitte tritt hervor */
  @supports (animation-timeline: view(inline)) {
    @media (prefers-reduced-motion: no-preference) {
      .leistungen > *,
      .stimmen > * {
        animation: karte-mitte linear both;
        animation-timeline: view(inline);
      }
      @keyframes karte-mitte {
        0%,
        100% {
          opacity: 0.6;
          scale: 0.96;
        }
        25%,
        75% {
          opacity: 1;
          scale: 1;
        }
      }
    }
  }
  /* Tippen fühlbar machen */
  .lk:active,
  .kanal:active,
  .ort-karte:active,
  .bk:active {
    scale: 0.985;
  }
  .btn:active {
    scale: 0.98;
  }
}

/* ---------- Bewegung, die der Browser selbst berechnet (ältere Browser zeigen einfach alles sofort) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Weicher Seitenwechsel, Kopfleiste und Schnellkontakt bleiben dabei stehen */
  @view-transition {
    navigation: auto;
  }
  .kopf {
    view-transition-name: kopf;
  }
  .actionbar {
    view-transition-name: schnellkontakt;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.22s;
  }

  @supports (animation-timeline: scroll()) {
    /* Lesefortschritt als feine Linie am oberen Rand */
    body::before {
      content: '';
      position: fixed;
      z-index: 200;
      inset: 0 0 auto;
      height: 3px;
      background: var(--akzent);
      transform-origin: left;
      animation: lesefortschritt linear both;
      animation-timeline: scroll(root);
    }
    @keyframes lesefortschritt {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
    /* Ablauf: Die Linie zwischen den Schritten füllt sich beim Scrollen */
    @media (max-width: 899px) {
      .schritt:not(:last-child)::before {
        transform-origin: top;
        animation: linie-fuellen linear both;
        animation-timeline: view();
        animation-range: entry 60% cover 60%;
      }
      @keyframes linie-fuellen {
        from {
          transform: scaleY(0);
        }
        to {
          transform: scaleY(1);
        }
      }
    }
    /* Fotos im Text gleiten beim Hereinscrollen aus leichter Vergrößerung an ihren Platz */
    .leistung__main > .foto,
    .artikel__bild,
    .referenz__bild {
      animation: foto-ein linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes foto-ein {
      from {
        opacity: 0.35;
        scale: 1.04;
      }
      to {
        opacity: 1;
        scale: 1;
      }
    }
  }
}
