/* AMS Mauerkirchner · Startseite, Richtung „Persönlich und warm“ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --papier: #F4EFE7;         /* Grund der Seite */
  --sand: #E6DED1;           /* Linien und Ränder auf Papier */
  --weiss: #FFFFFF;
  --navy: #12222E;
  --navy-hell: #22384A;
  --orange: #E8833A;         /* Hauptaktion, navy Text darauf 5,98:1 */
  --orange-hell: #F09A57;
  --orange-text: #A84F12;    /* Orange für Text auf Weiß, 5,54:1 */
  --feldrand: #8C8273;       /* Rand von Eingabefeldern, über 3:1 auf Weiß */
  --feldrand-aktiv: #5E5649;
  --platzhalter: #6A7680;
  --gruen-text: #2F7A2B;     /* Grün für große Zahlen auf Weiß */
  --pfirsich: #FFD9A8;
  --pfirsich-zart: #FFF1DE;
  --gruen: #4FA84A;          /* nur für „elektrisch“ */
  --gruen-zart: #E5F2E2;
  --text-leise: #4A5864;     /* Fließtext zweiter Ordnung, 7:1 auf Weiß */
  --text-hell: #C9D2D9;      /* Fließtext auf Navy */
  --fehler: #B3261E;

  /* Schrift */
  --schrift: "Bricolage Grotesque", system-ui, sans-serif;
  --h1: clamp(2.75rem, 1.3rem + 5.4vw, 5.5rem);
  --h2: clamp(2.125rem, 1.3rem + 2.9vw, 3.75rem);
  --h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --text: 1.125rem;
  --text-gross: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --klein: 0.9375rem;

  /* Raster, Abstände, Rundungen */
  --rand: clamp(16px, 4vw, 56px);
  --buehne-rand: clamp(8px, 2.6vw, 40px);
  --breite: 1312px;
  --abschnitt: clamp(80px, 9vw, 136px);
  --luecke: clamp(16px, 2vw, 24px);
  --spalte: clamp(24px, 3.5vw, 56px);
  --r-buehne: clamp(20px, 2.2vw, 32px);
  --r-karte: 22px;
  --r-feld: 12px;

  /* Bewegung */
  --aus: cubic-bezier(.16, 1, .3, 1);
  --weich: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px;
  scrollbar-color: var(--navy) var(--papier); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--navy); font-family: var(--schrift); font-optical-sizing: auto;
  font-size: var(--text); line-height: 1.6; font-variant-numeric: tabular-nums; caret-color: var(--orange); overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
::selection { background: var(--pfirsich); color: var(--navy); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--papier); }
::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--papier); border-radius: 12px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.anfrage-karte :focus-visible, .elektrisch :focus-visible, .anfrage .direkt :focus-visible, .leistung-navy :focus-visible { outline-color: var(--weiss); }

.huelle { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.sprung { position: absolute; left: var(--rand); top: -100px; z-index: 50; background: var(--navy); color: var(--weiss);
  padding: 12px 18px; font-weight: 700; border-radius: var(--r-feld); }
.sprung:focus { top: 12px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--h2); line-height: 1.02; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.02em; }
.einleitung { font-size: var(--text-gross); line-height: 1.55; max-width: 60ch; color: var(--text-leise); }

/* Markierung hinter einem Schlüsselwort, wie mit dem Textmarker */
.marker { background: linear-gradient(var(--pfirsich), var(--pfirsich)) left 55% / var(--marker, 100%) 78% no-repeat;
  padding: 0 .1em; margin: 0 -.05em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons */
.knopf { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px;
  padding: 0 22px; border: 0; border-radius: var(--r-feld); font: 700 1.0625rem/1.3 var(--schrift); text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, transform .25s var(--aus), box-shadow .25s var(--aus); }
.knopf svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--aus); }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(18, 34, 46, .45); }
.knopf:hover svg { transform: translateX(4px); }
.knopf:active { transform: translateY(0); box-shadow: none; }
.knopf-navy { background: var(--navy); color: var(--weiss); }
.knopf-navy:hover { background: var(--navy-hell); }
.knopf-orange { background: var(--orange); color: var(--navy); }
.knopf-orange:hover { background: var(--orange-hell); }
.knopf[disabled] { opacity: .55; cursor: progress; transform: none; }
.textlink { font-weight: 700; color: var(--orange-text); text-decoration: underline; text-decoration-color: var(--pfirsich); }
.textlink:hover { text-decoration-color: currentColor; }

/* Linien-Symbole */
.symbol { width: 48px; height: 48px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.punkt-farbe { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--papier); transition: box-shadow .3s ease; }
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--sand), 0 12px 24px -20px rgba(18, 34, 46, .35); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; max-width: none; padding: 0 calc(var(--buehne-rand) + 24px); }
.marke { display: block; flex: none; }
.marke img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.knopf) { text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: 6px 2px; border-radius: 8px;
  background: linear-gradient(var(--pfirsich), var(--pfirsich)) left 85% / 0 40% no-repeat; transition: background-size .35s var(--aus); }
.nav a:not(.knopf):hover, .nav a.ist-aktiv { background-size: 100% 40%; }
.nav .knopf { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.menue-knopf { display: none; }

/* ---------- Einstieg ---------- */
.buehne { position: relative; margin: 0 var(--buehne-rand); border-radius: var(--r-buehne); background: var(--weiss); overflow: hidden; }
.einstieg .buehne { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--spalte);
  padding: var(--einstieg-oben, clamp(36px, 5vw, 72px)) clamp(24px, 4.4vw, 72px) clamp(56px, 6vw, 88px); min-height: min(640px, calc(100svh - 200px)); }
.einstieg-text { position: relative; z-index: 1; }
.einstieg h1 { font-size: var(--h1-gross, var(--h1)); }
.unterzeile { margin-top: var(--unterzeile-abstand, 28px); max-width: 38ch; font-size: var(--text-gross); line-height: 1.55; color: var(--text-leise); }
.wer { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-size: 1rem; font-weight: 500; color: var(--text-leise); }
.wer .zeichen { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); flex: none; }
.wer .zeichen img { height: 32px; width: auto; }

.anfrage-karte { position: relative; z-index: 1; align-self: start; translate: 0 var(--karte-y, 0px); display: grid; gap: 14px; padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-karte); background: var(--navy); color: var(--weiss); box-shadow: 0 30px 60px -36px rgba(18, 34, 46, .7); }
.anfrage-karte h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; margin-bottom: 4px; }
.karten-feld { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--r-feld); background: var(--weiss);
  color: var(--navy); cursor: text; transition: box-shadow .2s ease; }
.karten-feld:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.karten-feld span { font-weight: 600; font-size: 0.875rem; color: var(--text-leise); }
.karten-feld input { border: 0; padding: 0; background: none; font: 400 1.125rem/1.4 var(--schrift); color: var(--navy); outline: none; width: 100%; }
.karten-feld input::placeholder { color: var(--platzhalter); }
.anfrage-karte .knopf { min-height: 60px; font-size: 1.125rem; margin-top: 4px; }
.anfrage-karte .notiz { font-size: var(--klein); color: var(--text-hell); }

.silhouette { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: var(--silhouette-h, clamp(110px, 13vw, 180px)); color: var(--navy); opacity: .16; pointer-events: none; }
.silhouette path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.einstieg .silhouette { left: auto; width: 56%; }
@media (max-width: 1080px) { .einstieg .silhouette { width: 100%; } }
.fakten { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 28px calc(var(--buehne-rand) + clamp(24px, 4.4vw, 72px)) 0; font-weight: 600; font-size: 1.125rem; }
.fakten li { display: flex; align-items: center; gap: 10px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abschnitt) 0; }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--spalte); align-items: end; }

/* Leistungen */
.leistungen-raster { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--luecke); }
.leistung { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-karte);
  transition: transform .4s var(--aus), box-shadow .4s var(--aus); }
.leistung:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(18, 34, 46, .5); }
.leistung .symbol { width: 56px; height: 56px; margin-bottom: 8px; }
.leistung p { color: var(--text-leise); max-width: 52ch; }
.leistung-gross { grid-row: span 2; background: var(--weiss); }
.leistung-gross h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); }
.leistung-gross .bild { flex: 1; display: flex; align-items: flex-end; min-height: 180px; padding-top: 24px; }
.leistung-gross .bild svg { width: 100%; height: 100%; max-height: 360px; overflow: visible; }
.direkt-weg { stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.leistung-pfirsich { background: var(--pfirsich-zart); }
.leistung-navy { background: var(--navy); color: var(--weiss); }
.leistung-navy p { color: var(--text-hell); }
.merkmale { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.merkmale li { font-size: var(--klein); font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--papier); }
.leistung-pfirsich .merkmale li { background: var(--weiss); }
.leistung-navy .merkmale li { background: var(--navy-hell); color: var(--weiss); }

.versichert { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: var(--luecke);
  padding: 22px clamp(24px, 3vw, 44px); border-radius: var(--r-karte); border: 2px solid var(--sand); }
.versichert .symbol { color: var(--orange-text); }
.versichert p { flex: 1 1 300px; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* Elektrisch */
.elektrisch .buehne { background: var(--navy); color: var(--weiss); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--spalte); align-items: center; padding: clamp(32px, 5vw, 80px) clamp(24px, 4.4vw, 72px); }
.elektrisch h2 { color: var(--weiss); }
.elektrisch .plakette { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--gruen); color: var(--navy); font-weight: 700; margin-top: 24px; }
.elektrisch .plakette svg { width: 26px; height: 26px; fill: var(--navy); }
.elektrisch p { margin-top: 22px; color: var(--text-hell); font-size: var(--text-gross); line-height: 1.55; }
.film-bild { position: relative; border-radius: var(--r-karte); overflow: hidden; background: var(--papier);
  transform: scale(var(--film-skala, 1)); transition: transform .1s linear; }
.film video, .film img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-knopf { position: absolute; right: 14px; top: 14px; width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: var(--weiss); display: grid; place-items: center; transition: background-color .2s ease, transform .25s var(--aus); }
.film-knopf:hover { background: var(--orange); color: var(--navy); transform: scale(1.06); }
.film-knopf svg { width: 18px; height: 18px; }
.film figcaption { font-size: var(--klein); color: var(--text-hell); padding-top: 14px; }

/* Ablauf: drei Halte auf einer Straße */
.ablauf h2 { max-width: 16ch; }
.strecke { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.strecke-weg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.strecke-weg path { fill: none; stroke-width: 4; stroke-linecap: round; }
.strecke-weg .grund { stroke: var(--sand); stroke-dasharray: 2 12; }
.strecke-weg .gefahren { stroke: var(--orange); stroke-dasharray: var(--weg-laenge, 1) var(--weg-laenge, 1); stroke-dashoffset: calc(var(--weg-laenge, 1) * (1 - var(--fortschritt, 1))); }
.schritte { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spalte); }
.schritt { padding-top: 0; }
.schritt .nummer { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--weiss);
  border: 3px solid var(--sand); font-size: 1.875rem; font-weight: 800; transition: background-color .4s ease, border-color .4s ease, color .4s ease, transform .5s var(--aus); }
.schritt.ist-erreicht .nummer { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }
.schritt:nth-child(2) { margin-top: 44px; }
.schritt h3 { margin-top: 22px; }
.schritt p { margin-top: 8px; color: var(--text-leise); max-width: 32ch; }
.ansprechpartner { margin-top: clamp(48px, 6vw, 72px); display: inline-flex; align-items: center; gap: 18px; padding: 18px 28px 18px 18px;
  border-radius: 999px; background: var(--weiss); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 700; line-height: 1.3; }
.ansprechpartner .rund { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pfirsich); flex: none; }
.ansprechpartner .symbol { width: 32px; height: 32px; }

/* Sonderleistungen */
.sonder .buehne { background: transparent; border: 2px solid var(--sand); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--spalte); padding: clamp(32px, 4vw, 56px) clamp(24px, 4.4vw, 72px); }
.sonder h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); }
.sonder-symbole { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.sonder-symbole li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--weiss);
  font-size: var(--klein); font-weight: 600; line-height: 1.3; }
.sonder-symbole .symbol { width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: var(--papier); color: var(--text-leise); stroke-width: 2.2; }
.sonder p { color: var(--text-leise); font-size: var(--text-gross); line-height: 1.55; max-width: 58ch; }
.sonder .textlink { display: inline-block; margin-top: 18px; }

/* Über uns */
.ueber .buehne { background: var(--pfirsich-zart); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--spalte);
  padding: clamp(36px, 5vw, 88px) clamp(24px, 4.4vw, 72px); }
.ueber .text { display: grid; gap: 18px; margin-top: 28px; font-size: var(--text-gross); line-height: 1.6; max-width: 58ch; color: var(--text-leise); }
.ueber .text .betont { color: var(--navy); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.4; letter-spacing: -0.01em; }
.ueber .gf { color: var(--navy); font-weight: 700; }
.ueber-seite { display: grid; gap: var(--luecke); align-content: space-between; }
.bavaria-rund { justify-self: end; align-self: start; display: grid; place-items: center; width: clamp(120px, 14vw, 180px); height: clamp(120px, 14vw, 180px); border-radius: 50%; background: var(--navy);
  transform: translateY(calc(var(--bavaria, 0) * 1px)); }
.bavaria-rund { overflow: hidden; }
.bavaria-rund img { width: 44%; height: auto; }
.jahre { display: grid; gap: 12px; }
.jahre div { display: flex; align-items: baseline; gap: 18px; padding: 18px 24px; border-radius: var(--r-karte); background: var(--weiss); }
.jahre dt { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.jahre dd { font-weight: 600; color: var(--text-leise); }
.jahre div:last-child dt { color: var(--gruen-text); }

/* Fragen */
.fragen .huelle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spalte); align-items: start; }
.fragen h2 { position: sticky; top: 120px; }
.fragenliste { display: grid; gap: 10px; }
.fragenliste details { border-radius: 18px; background: var(--weiss); transition: box-shadow .3s ease; }
.fragenliste details[open] { box-shadow: 0 18px 36px -30px rgba(18, 34, 46, .55); }
.fragenliste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 24px; font-weight: 700; font-size: 1.125rem; line-height: 1.35; border-radius: 18px; }
.fragenliste summary::-webkit-details-marker { display: none; }
.fragenliste summary:hover .plus { background: var(--pfirsich); }
.plus { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--papier); transition: background-color .2s ease, transform .35s var(--aus); }
.plus::before, .plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15.5px; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--aus); }
.plus::after { transform: rotate(90deg); }
.fragenliste details[open] .plus { background: var(--orange); transform: rotate(180deg); }
.fragenliste details[open] .plus::after { transform: rotate(0deg); }
.fragenliste .antwort { padding: 0 24px 22px; color: var(--text-leise); max-width: 64ch; }
.fragenliste .antwort a { font-weight: 700; color: var(--orange-text); }

/* Anfrage */
.anfrage .buehne { background: var(--navy); color: var(--weiss); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--spalte); padding: clamp(36px, 5vw, 80px) clamp(20px, 4.4vw, 72px); }
.anfrage h2 { color: var(--weiss); }
.anfrage .einleitung { margin-top: 18px; color: var(--text-hell); }
.direkt { margin-top: 36px; display: grid; gap: 6px; font-size: 1.0625rem; color: var(--text-hell); }
.direkt h3 { color: var(--weiss); font-size: 1.5rem; margin-bottom: 4px; }
.direkt a { color: var(--weiss); font-weight: 700; text-decoration-color: var(--orange); }
.direkt .telefon { display: inline-flex; align-self: start; padding: 10px 18px; margin: 4px 0; border-radius: 999px; background: var(--orange); color: var(--navy);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); text-decoration: none; transition: background-color .2s ease; }
.direkt .telefon:hover { background: var(--orange-hell); }
.direkt address { font-style: normal; margin-top: 12px; }

#form-wrap { background: var(--weiss); color: var(--navy); padding: clamp(22px, 3vw, 44px); border-radius: var(--r-karte); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld.breit { grid-column: 1 / -1; }
.feld > label { font-weight: 700; font-size: 1rem; }
.feld .optional { font-weight: 400; color: var(--text-leise); }
.feld .hinweis { font-size: var(--klein); color: var(--text-leise); }
.feld input:not([type="checkbox"]), .feld select, .feld textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--feldrand); border-radius: var(--r-feld); background: var(--weiss);
  color: var(--navy); font: 400 1.0625rem/1.4 var(--schrift); transition: border-color .2s ease, box-shadow .2s ease; appearance: none; }
.feld textarea { min-height: 128px; resize: vertical; }
.feld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2312222E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--feldrand-aktiv); }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--pfirsich); }
.feld input::placeholder, .feld textarea::placeholder { color: var(--platzhalter); }
.feld.has-error input, .feld.has-error select, .feld.has-error textarea { border-color: var(--fehler); }
.field-error { display: none; color: var(--fehler); font-size: var(--klein); font-weight: 600; }
.feld.has-error .field-error { display: block; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; line-height: 1.45; }
.haken input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--navy); border-radius: 7px; background: var(--weiss);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease; }
.haken input:checked { background: var(--navy); }
.haken input:checked::after { content: ""; width: 11px; height: 6px; border: solid var(--weiss); border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.haken a { color: var(--orange-text); font-weight: 700; }
.ist-aus { opacity: .5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.absenden { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.absenden .knopf { min-width: 260px; }
.form-status { font-size: var(--klein); }
.form-status.is-error { color: var(--fehler); font-weight: 600; }
.form-status a { color: inherit; }
#form-wrap.is-sent form { display: none; }
#form-success { outline: none; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
#form-success[hidden] { display: none; }
#form-success .rund { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--pfirsich); }
#form-success h3 { font-size: var(--h3); }
#form-success p { margin-top: 10px; color: var(--text-leise); }

/* ---------- Fußzeile ---------- */
.fuss { position: relative; padding: clamp(150px, 15vw, 210px) 0 40px; color: var(--text-leise); font-size: var(--klein); }
.fuss .silhouette { top: 24px; bottom: auto; height: clamp(90px, 10vw, 140px); opacity: .22; }
.fuss .huelle { position: relative; display: grid; grid-template-columns: 4fr 4fr 3fr 2fr; gap: var(--spalte); }
.fuss img { height: 60px; width: auto; margin-bottom: 18px; }
.fuss a { color: var(--navy); }
.fuss a:hover { color: var(--orange-text); }
.fuss address { font-style: normal; display: grid; gap: 4px; align-content: start; }
.fuss strong { color: var(--navy); }
.fuss .rechtliches { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.fuss .copy { grid-column: 1 / -1; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--sand); }

/* ---------- Unterseiten ---------- */
.rechtstext { padding: clamp(32px, 4vw, 56px) 0 var(--abschnitt); }
.rechtstext .buehne { padding: clamp(32px, 5vw, 72px) clamp(24px, 4.4vw, 72px); }
.rechtstext h1 { font-size: var(--h2); }
.rechtstext h2 { font-size: var(--h3); margin-top: 40px; }
.rechtstext p, .rechtstext address { margin-top: 14px; max-width: 68ch; font-style: normal; }
.rechtstext .offen { margin-top: 32px; padding: 20px 24px; border-radius: var(--r-feld); background: var(--pfirsich-zart); max-width: 68ch; }

/* ---------- Leistungsseiten ---------- */
.pfad { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 22px; font-size: var(--klein); font-weight: 600; color: var(--text-leise); }
.pfad a { color: var(--text-leise); text-decoration-color: var(--sand); }
.pfad a:hover { color: var(--navy); text-decoration-color: currentColor; }
.einstieg-unter h1 { font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.375rem); line-height: 1.02; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }

.reihen { display: grid; }
.reihe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spalte); padding: clamp(40px, 5vw, 64px) 0; border-top: 2px solid var(--sand); }
.reihe:first-child { border-top: 0; padding-top: 0; }
.reihe h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); }
.reihe .text { display: grid; gap: 18px; font-size: var(--text-gross); line-height: 1.6; color: var(--text-leise); max-width: 60ch; }
.reihe .text .betont { color: var(--navy); font-weight: 600; }
.reihe .text a:not(.knopf):not(.telefon-gross) { font-weight: 700; color: var(--orange-text); }
.reihe .telefon-gross { justify-self: start; display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--orange); color: var(--navy);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 700; text-decoration: none; transition: background-color .2s ease; }
.reihe .telefon-gross:hover { background: var(--orange-hell); }

/* Bühne mit Text und Zeichnung, z. B. Direktfahrt oder Tour */
.zeichnung .buehne { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spalte); align-items: center;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 4.4vw, 72px); }
.zeichnung h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); }
.zeichnung .text { display: grid; gap: 18px; margin-top: 24px; font-size: var(--text-gross); line-height: 1.6; color: var(--text-leise); }
.zeichnung svg.weg-bild { width: 100%; height: auto; overflow: visible; }

/* Navy-Bühne für Fließtext, wie „Elektrisch“ */
.dunkel .buehne { background: var(--navy); color: var(--weiss); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spalte);
  padding: clamp(32px, 5vw, 80px) clamp(24px, 4.4vw, 72px); }
.dunkel h2 { color: var(--weiss); font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); }
.dunkel .text { display: grid; gap: 18px; font-size: var(--text-gross); line-height: 1.6; color: var(--text-hell); max-width: 60ch; }
.dunkel .plakette { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--gruen); color: var(--navy); font-weight: 700; }
.dunkel .plakette svg { width: 26px; height: 26px; fill: var(--navy); }
.dunkel :focus-visible { outline-color: var(--weiss); }
.einstieg + .zeichnung, .einstieg + .dunkel, .einstieg + .merkliste { margin-top: clamp(48px, 6vw, 96px); }
.merkliste + .dunkel, .dunkel + .merkliste, .zeichnung + .dunkel, .dunkel + .zeichnung { margin-top: var(--luecke); }

/* Preisfaktoren als nummerierte Karten */
.faktoren { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luecke); }
.faktor { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-karte); background: var(--weiss); }
.faktor .nummer { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--sand); font-size: 1.375rem; font-weight: 800; }
.faktor h3 { margin-top: 6px; }
.faktor p { color: var(--text-leise); }

/* Merkliste auf Pfirsich */
.merkliste .buehne { background: var(--pfirsich-zart); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spalte);
  padding: clamp(32px, 5vw, 80px) clamp(24px, 4.4vw, 72px); }
.merkliste h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); }
.merkliste .text { margin-top: 20px; font-size: var(--text-gross); line-height: 1.6; color: var(--text-leise); max-width: 46ch; }
.merkliste ul { display: grid; gap: 10px; align-content: start; }
.merkliste li { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 18px; background: var(--weiss); font-weight: 600; line-height: 1.4; }

/* Drei kurze Tipps */
.tipps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luecke); margin-top: clamp(32px, 4vw, 48px); }
.tipps p { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-karte); background: var(--weiss); color: var(--text-leise); }
.tipps .symbol { width: 36px; height: 36px; padding: 6px; margin-bottom: 14px; border-radius: 10px; background: var(--papier); color: var(--navy); stroke-width: 2.2; }

/* Weitere Leistungen: Karten als Links */
.mehr-raster { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luecke); }
.mehr-raster a { height: 100%; text-decoration: none; }
.mehr-raster .leistung { gap: 10px; }
.mehr-raster .leistung p { flex: 1; }
.mehr-raster .weiter { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 6px; }
.mehr-raster .weiter svg { width: 20px; height: 20px; transition: transform .3s var(--aus); }
.mehr-raster a:hover .weiter svg { transform: translateX(4px); }
.mehr-raster .leistung-weiss { background: var(--weiss); }
.mehr-raster .leistung-weiss .weiter, .mehr-raster .leistung-pfirsich .weiter { color: var(--orange-text); }
.mehr-raster a:focus-visible { border-radius: var(--r-karte); }

/* Links aus den Leistungskarten der Startseite */
.leistung .textlink { align-self: flex-start; }
.leistung-navy .textlink { color: var(--weiss); text-decoration-color: var(--orange); }

/* Fußzeile: Leistungen */
.fuss .leistungen-links { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.fuss .leistungen-links strong { margin-bottom: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .js .zeichnet .direkt-weg { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--weich) .4s; }
  .js .zeichnet.ist-sichtbar .direkt-weg { stroke-dashoffset: 0; }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: Silhouette zeichnet sich, Markierung streicht über das Wort, Karte schwebt herein */
  .js .einstieg .silhouette path { stroke-dasharray: var(--l, 3000); stroke-dashoffset: var(--l, 3000); animation: zeichnen 2.6s .3s var(--weich) forwards; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
  .js .einstieg .marker { --marker: 0%; animation: markieren .8s 1.1s var(--aus) forwards; }
  @keyframes markieren { to { --marker: 100%; } }
  .js .anfrage-karte { animation: hereinschweben 1s .35s var(--aus) both; }
  @keyframes hereinschweben { from { opacity: 0; transform: translateY(32px) rotate(1.5deg); } }

  /* Überschriften steigen Wort für Wort auf */
  .js .woerter .wort { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .js .woerter .wort > span { display: inline-block; transform: translateY(105%); transition: transform .85s var(--aus); transition-delay: calc(var(--w) * 55ms); }
  .js .woerter.ist-sichtbar .wort > span { transform: none; }

  /* Inhalte blenden weich ein, Geschwister nacheinander */
  .js .auftauchen { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--aus), transform .8s var(--aus); transition-delay: calc(.1s + var(--i, 0) * 110ms); }
  .js .auftauchen.ist-sichtbar { opacity: 1; transform: none; }

  /* Die Direktfahrt-Strecke zeichnet sich, wenn die Karte sichtbar wird */
  .js .leistung-gross .direkt-weg { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--weich) .5s; }
  .js .leistung-gross.ist-sichtbar .direkt-weg { stroke-dashoffset: 0; }

  /* Bühnen wachsen beim Hereinscrollen auf volle Breite */
  .js .waechst { clip-path: inset(0 4% round var(--r-buehne)); transition: clip-path 1.1s var(--aus); }
  .js .waechst.ist-sichtbar { clip-path: inset(0 0 round var(--r-buehne)); }
}
@property --marker { syntax: "<percentage>"; inherits: true; initial-value: 100%; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1080px) {
  .einstieg .buehne, .kopfzeile, .elektrisch .buehne, .sonder .buehne, .ueber .buehne, .fragen .huelle, .anfrage .buehne,
  .reihe, .zeichnung .buehne, .dunkel .buehne, .merkliste .buehne { grid-template-columns: 1fr; }
  .faktoren, .mehr-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss .huelle { grid-template-columns: 1fr 1fr; }
  .einstieg .buehne { min-height: 0; }
  .anfrage-karte { max-width: 560px; }
  .fragen h2 { position: static; }
  .ueber-seite { grid-template-columns: auto 1fr; align-items: center; }
  .bavaria-rund { justify-self: start; }
}
@media (max-width: 860px) {
  .sonder-symbole { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .nav { display: none; position: absolute; left: var(--buehne-rand); right: var(--buehne-rand); top: 82px; background: var(--weiss); flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-radius: var(--r-karte); box-shadow: 0 24px 40px -24px rgba(18, 34, 46, .45); }
  .nav.ist-offen { display: flex; }
  .nav a:not(.knopf) { padding: 14px 0; border-bottom: 1px solid var(--sand); font-size: 1.25rem; border-radius: 0; background: none; }
  .nav .knopf { margin-top: 16px; min-height: 54px; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 0; border-radius: var(--r-feld);
    background: var(--navy); color: var(--weiss); font: 700 1rem var(--schrift); cursor: pointer; }
  .menue-knopf .striche { width: 18px; height: 12px; border-top: 2.5px solid; border-bottom: 2.5px solid; position: relative; }
  .menue-knopf .striche::after { content: ""; position: absolute; left: 0; right: 0; top: 2.25px; border-top: 2.5px solid; }
  .leistungen-raster { grid-template-columns: 1fr; }
  .leistung-gross { grid-row: auto; }
  .schritte { grid-template-columns: 1fr; gap: 28px; }
  .schritt { display: grid; grid-template-columns: 76px 1fr; gap: 0 20px; }
  .schritt:nth-child(2) { margin-top: 0; }
  .schritt h3 { margin-top: 0; align-self: center; }
  .schritt p { grid-column: 2; }
  .strecke-weg { display: none; }
  .ansprechpartner { border-radius: var(--r-karte); }
  .formular { grid-template-columns: 1fr; }
  .fuss .huelle { grid-template-columns: 1fr; }
  .faktoren, .mehr-raster, .tipps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kopf .huelle { height: 72px; padding: 0 var(--rand); }
  .marke img { height: 40px; }
  .nav { top: 68px; }
  html { scroll-padding-top: 80px; }
  .karten-feld input { font-size: 1rem; }
  .einstieg .buehne { padding-left: 16px; padding-right: 16px; }
  .anfrage-karte { padding: 18px 14px; margin: 0 -4px; }
  .karten-feld { padding: 10px 14px; }
  .absenden .knopf { width: 100%; min-width: 0; }
  #form-success { grid-template-columns: 1fr; }
  .ueber-seite { grid-template-columns: 1fr; }
}
