/* Strombau Wetterau (Konzeptprojekt) – Stile der Website auf Basis des Balaba Digital CMS.
   Gestaltungswerte hängen an den Variablen in :root. Der Baukasten überschreibt nur diese Variablen.
   Begründungen der Entscheidungen: DESIGN.md im Projektordner. */

/* ---------- Schrift: IBM Plex Sans, lokal (OFL 1.1), latin + kyrillisch ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Akzent „Blitz“: Gelb des Warnzeichens vor elektrischer Spannung (DIN EN ISO 7010 W012).
     Im hellen Schema nur als Fläche mit dunkler Schrift (11,8:1), nie als Schrift- oder Linienfarbe (1,5:1 auf Weiß). */
  --c-main: #ffcc00;
  --c-main-hover: #f2b800;
  --c-accent: #ffcc00;
  --c-on-main: #0f172a;
  --c-link: #0f172a;
  --c-link-bg: #fff3bf;
  --c-symbol: #0f172a;
  --c-focus: #0f172a;
  --c-ink: #0f172a;
  --c-muted: #475569;
  --c-bg: #f1f5f9;
  --c-surface: #ffffff;
  --c-surface-2: #f8fafc;
  --c-line: #d5dde6;
  --c-field: #64748b;
  --c-main-tint: #fff3bf;
  --c-warn: #b42318;
  --c-warn-bg: #fdecea;
  --c-note-bg: #0f172a;
  --c-note-ink: #e2e8f0;
  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --fs: 17px;
  --hs: 1;
  --hw: 600;
  --lh: 1.6;
  --wrap: 1180px;
  --radius: 10px;
  --space: 1;
  --shadow: 0 2px 8px rgba(15, 23, 42, .08);
  --sec-y: calc(88px * var(--space));
  --gutter: 24px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-main: #ffcc00; --c-main-hover: #ffd84d; --c-accent: #ffcc00; --c-on-main: #18181b; --c-link: #ffcc00; --c-link-bg: #2e2a12; --c-symbol: #ffcc00; --c-focus: #ffcc00;
    --c-ink: #fafafa; --c-muted: #a1a1aa; --c-bg: #18181b; --c-surface: #27272a; --c-surface-2: #1f1f23;
    --c-line: #3f3f46; --c-field: #8b8b94; --c-main-tint: #2e2a12; --c-warn: #f97066; --c-warn-bg: #3a1d1b;
    --c-note-bg: #27272a; --c-note-ink: #d4d4d8; --shadow: 0 2px 8px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-main: #ffcc00; --c-main-hover: #ffd84d; --c-accent: #ffcc00; --c-on-main: #18181b; --c-link: #ffcc00; --c-link-bg: #2e2a12; --c-symbol: #ffcc00; --c-focus: #ffcc00;
  --c-ink: #fafafa; --c-muted: #a1a1aa; --c-bg: #18181b; --c-surface: #27272a; --c-surface-2: #1f1f23;
  --c-line: #3f3f46; --c-field: #8b8b94; --c-main-tint: #2e2a12; --c-warn: #f97066; --c-warn-bg: #3a1d1b;
  --c-note-bg: #27272a; --c-note-ink: #d4d4d8; --shadow: 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 var(--fs)/var(--lh) var(--font-body); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s ease, background-color .15s ease; }
a:hover { color: var(--c-link); background-color: var(--c-link-bg); text-decoration-thickness: 2px; }
a[href], button:not(:disabled), summary, select, label[for], input[type="checkbox"], [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: var(--hw); line-height: 1.15; letter-spacing: -.01em; color: var(--c-ink); text-wrap: balance; }
h1 { font-size: calc(clamp(32px, 2.2rem + 2.4vw, 58px) * var(--hs)); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: calc(clamp(26px, 1.4rem + 1.4vw, 38px) * var(--hs)); }
h3 { font-size: calc(clamp(19px, 1.05rem + .3vw, 22px) * var(--hs)); line-height: 1.3; }
p, ul, ol, dl, figure, table { margin: 0 0 1em; }
p { text-wrap: pretty; }
small { font-size: .86em; }
address { font-style: normal; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--c-main); color: var(--c-on-main); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.lead { font-size: calc(var(--fs) * 1.14); color: var(--c-muted); max-width: 60ch; }
.muted { color: var(--c-muted); }

/* ---------- Konzept-Hinweis (erfundener Betrieb) ---------- */
.concept-note { padding: 8px 0; background: var(--c-note-bg); color: var(--c-note-ink); font-size: 14px; line-height: 1.45; }
.concept-note p { margin-block: 0; }
.concept-note a { color: inherit; }
.concept-note a:hover { color: inherit; background: none; }

/* ---------- Hinweis-Banner aus dem Baukasten ---------- */
.announce { background: var(--c-main-tint); color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.announce p { margin: 0; padding: 10px 0; font-weight: 600; }
.announce--vac { background: var(--c-main); color: var(--c-on-main); }
.announce--vac a { color: inherit; }

/* ---------- Knöpfe ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--c-main); border-radius: calc(var(--radius) * .8); background: var(--c-main); color: var(--c-on-main); font: 600 16px/1.2 var(--font-body); text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--c-main-hover); border-color: var(--c-main-hover); color: var(--c-on-main); text-decoration: none; }
.btn:active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.btn--ghost { background: transparent; border-color: var(--c-field); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost:active { background: var(--c-line); color: var(--c-ink); }
.btn--small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn .icon { width: 18px; height: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.more::after { content: "\2192"; }
.reassure { margin: 14px 0 0; font-size: 15px; color: var(--c-muted); }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--c-ink); text-decoration: none; }
.brand:hover { color: var(--c-ink); background: none; text-decoration: none; }
.brand__logo { width: 36px; height: 36px; border-radius: 8px; }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { font-size: 18px; font-weight: 600; }
.brand__text span { font-size: 13px; color: var(--c-muted); }
.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--c-ink); font-weight: 600; font-size: 15.5px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.site-nav a[aria-current="page"] { background: var(--c-main-tint); color: var(--c-link); box-shadow: inset 0 -3px 0 var(--c-main); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 8px; background: transparent; color: var(--c-ink); font: 600 14px/1 var(--font-body); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.tool:hover { border-color: var(--c-field); background: var(--c-surface-2); color: var(--c-ink); text-decoration: none; }
.tool:active { background: var(--c-line); }
.tool svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 8px; background: transparent; color: var(--c-ink); font: 600 15px/1 var(--font-body); }
.nav-toggle:hover { border-color: var(--c-field); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--sec-y); }
.section--surface { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.section--tight { padding-block: calc(var(--sec-y) * .6); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--c-muted); margin: 0; }

/* ---------- Kopfbereich ---------- */
.hero { padding: 56px 0 var(--sec-y); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero--page { padding-bottom: calc(var(--sec-y) * .7); }
.hero--page h1 { max-width: 20ch; }
.hero__area { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--c-muted); font-size: 15px; }
.hero__area li { display: flex; align-items: center; gap: 8px; }
.hero__area li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-main); }
.breadcrumb { margin: 0 0 18px; font-size: 15px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--c-muted); }
.breadcrumb a { display: inline-block; min-width: 44px; padding-block: 12px; color: var(--c-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }

/* ---------- Fotos mit Bildnachweis ---------- */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--c-line); }
.photo--wide img { aspect-ratio: 16 / 9; }
.photo figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.photo figcaption a { color: inherit; }

/* ---------- Schaltzeichen (Erkennungsmotiv) ---------- */
.sz { width: 44px; height: 44px; color: var(--c-symbol); flex: none; }
.sz--lg { width: 56px; height: 56px; }

/* ---------- Leistungen: zwei Schwerpunkte ---------- */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.service + .service { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--c-line); }
.service--flip .service__media { order: 2; }
.service__title { display: flex; align-items: center; gap: 14px; }
.service__title h3 { margin: 0; font-size: calc(clamp(22px, 1.2rem + .8vw, 30px) * var(--hs)); }
.service__body > p { margin-top: 16px; }
.ticks { margin: 0 0 24px; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--c-line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 2px; background: var(--c-symbol); }
.ticks li::after { content: ""; position: absolute; left: 11px; top: calc(1.05em - 4px); width: 10px; height: 10px; box-sizing: border-box; border: 2px solid var(--c-symbol); border-radius: 50%; background: var(--c-main); }

/* ---------- Prüfliste (Altbau-Anzeichen) ---------- */
.checkgrid > .section__head { margin-bottom: 0; }
.checkgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.protocol { margin: 0; padding: 0; list-style: none; counter-reset: p; border-top: 2px solid var(--c-ink); }
.protocol li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.protocol li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; color: var(--c-link); font-weight: 600; }
.protocol strong { font-weight: 600; }
.protocol span { color: var(--c-muted); font-size: calc(var(--fs) * .94); }

/* ---------- Ablauf als Stromlaufplan ---------- */
.circuit { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.circuit::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--c-symbol); }
.circuit li { counter-increment: s; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 0 0 32px; }
.circuit li:last-child { padding-bottom: 0; }
.circuit__node { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--c-symbol); border-radius: 50%; background: var(--c-main); color: var(--c-on-main); font-weight: 600; font-size: 15px; }
.circuit__node::before { content: counter(s); }
.circuit h3 { margin: 8px 0 6px; }
.circuit p { margin: 0; color: var(--c-muted); max-width: 62ch; }
.circuit--wide { display: grid; grid-template-columns: minmax(0, 1fr); }

/* ---------- Fakt mit Quelle ---------- */
.fact { padding: 24px 26px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.fact h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fact p { margin: 0 0 10px; }
.fact__source { margin: 0 !important; font-size: 14px; color: var(--c-muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- Einsatzgebiet ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.towns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.towns li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }

/* ---------- Kurzliste Leistungen (Unterseiten) ---------- */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.scope li { padding: 22px 0; border-top: 1px solid var(--c-line); }
.scope h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.scope .sz { width: 36px; height: 36px; }
.scope p { margin: 0; color: var(--c-muted); }
.scope--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- Fragen ---------- */
.faq { border-top: 1px solid var(--c-line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; font-weight: 600; list-style: none; transition: color .15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-link); text-decoration: underline; text-underline-offset: .18em; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-main); color: var(--c-on-main); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] > summary::after { content: "\2212"; }
details.is-anim { overflow: hidden; }
.faq details p { margin: 0; padding: 0 0 20px; max-width: 70ch; color: var(--c-muted); }

/* ---------- Aufruf ---------- */
.cta { display: grid; grid-template-columns: auto minmax(0, 1.3fr) auto; gap: 24px 32px; align-items: center; padding: 40px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.cta > .sz { width: 64px; height: 64px; }
.cta h2 { margin-bottom: .3em; font-size: calc(clamp(24px, 1.3rem + 1vw, 32px) * var(--hs)); }
.cta p { margin: 0; color: var(--c-muted); }
.cta .actions { margin: 0; justify-content: flex-end; }

/* ---------- Kontakt & Formular ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.form { padding: 32px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.form h2 { font-size: calc(26px * var(--hs)); }
.form__hint { color: var(--c-muted); font-size: 15px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--c-field); border-radius: 8px; background: var(--c-surface); color: var(--c-ink); font: 400 16px/1.4 var(--font-body); transition: border-color .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }
.field [aria-invalid="true"] { border-color: var(--c-warn); border-width: 2px; }
.field__error { display: flex; gap: 6px; margin: 6px 0 0; color: var(--c-warn); font-size: 14px; font-weight: 600; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--c-warn); color: var(--c-surface); font-size: 12px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 4px 0 18px; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-main); }
.form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-size: 15px; color: var(--c-muted); }
.req { margin-left: 2px; color: var(--c-warn); font-weight: 600; }
/* Rechte Spalte beginnt auf der Höhe der Formular-Überschrift (Rahmen 1 px + Innenabstand 32 px) */
.side { padding-top: 33px; }
.side h2 { font-size: calc(26px * var(--hs)); }
/* Kontakte und Zeiten bilden eine durchgehende Tabelle mit derselben ersten Spalte */
.contact-list { display: grid; grid-template-columns: 40% minmax(0, 1fr); margin: 0; }
.contact-list dt, .contact-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--c-line); line-height: 24px; }
.contact-list dt { padding-right: 16px; font-weight: 600; }
.contact-list a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.hours { width: 100%; margin: 0 0 12px; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 24px; }
.hours th { width: 40%; padding-right: 16px; font-weight: 600; }
.vac-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--c-main-tint); color: var(--c-ink); font-weight: 600; }
.map { margin-top: 28px; }
.map__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface-2); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; align-content: end; justify-items: start; gap: 8px; padding: 18px; border: 0; background: none; color: var(--c-ink); text-align: left; font: inherit; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-bg { fill: var(--c-surface-2); } .m-road { fill: none; stroke: var(--c-line); stroke-width: 10; stroke-linecap: round; } .m-road--main { stroke-width: 16; }
.m-pin path { fill: var(--c-main); stroke: var(--c-symbol); stroke-width: 2; } .m-pin circle { fill: var(--c-symbol); }
.map__cta { position: relative; }
.map__load:hover .map__cta { background: var(--c-main-hover); border-color: var(--c-main-hover); }
.map__note { position: relative; margin: 0; padding: 6px 10px; border-radius: 6px; background: var(--c-surface); font-size: 13px; color: var(--c-muted); max-width: 40ch; }

/* ---------- Dialog nach dem Absenden ---------- */
.dialog { width: min(100% - 32px, 560px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(15, 23, 42, .5); }
.dialog__body { padding: 28px; }
.dialog h2 { font-size: calc(24px * var(--hs)); }
.dialog__text { max-height: 240px; overflow: auto; margin: 0 0 18px; padding: 14px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-surface-2); font: 400 14.5px/1.5 var(--font-body); white-space: pre-wrap; }
.dialog .actions { margin-top: 0; }
.dialog__close { margin-top: 16px; }

/* ---------- Fließtext (Rechtliches) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: calc(26px * var(--hs)); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.todo { padding: 2px 6px; border-radius: 4px; background: var(--c-warn-bg); color: var(--c-warn); font-weight: 600; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: var(--sec-y); padding: 56px 0 28px; border-top: 1px solid var(--c-line); background: var(--c-surface); font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: 0; }
.site-footer p { color: var(--c-muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a, .site-footer address a { display: inline-block; padding-block: 10px; line-height: 24px; }
.hours-list li { padding: 4px 0; color: var(--c-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: inherit; }

/* ---------- Schnellleiste (Handy) ---------- */
.quickbar { display: none; }

/* ---------- Ladeanzeige, Vorschau, Aktionen (Motor) ---------- */
.page-loader { position: fixed; inset: 0 0 auto; z-index: 100; pointer-events: none; }
.page-loader__bar { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--c-main); transform-origin: left; animation: bb-load 8s cubic-bezier(.1, .7, .1, 1) forwards; }
.page-loader__pill { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; background: var(--c-ink); color: var(--c-bg); font: 600 14px/1 var(--font-body); transform: translateX(-50%); box-shadow: var(--shadow); }
.page-loader__spin { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: bb-spin .8s linear infinite; }
html.is-loading main { opacity: .6; transition: opacity .2s .1s; }
@keyframes bb-load { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@keyframes bb-fade { from { opacity: 0; } to { opacity: 1; } }
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; gap: 14px; padding: 8px 16px; background: var(--c-ink); color: var(--c-bg); font: 600 14px/1.4 var(--font-body); }
.preview-bar a { color: inherit; }
.price.sale-on .price__amount { text-decoration: line-through; color: var(--c-muted); }
.price.sale-on .price__amount::before { content: attr(data-sale) " "; color: var(--c-warn); text-decoration: none; }
.section--block .media img { aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* ---------- Mittlere Breiten: Menü wird zum Aufklappmenü ---------- */
@media (max-width: 1100px) {
  .header-call__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-call { min-width: 44px; padding: 0 12px; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; }
  .js .site-nav { visibility: hidden; opacity: 0; max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--c-line); background: var(--c-surface); box-shadow: var(--shadow); }
  .nav-anim .site-nav { transition: opacity .18s ease, visibility 0s linear .18s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; }
  .nav-anim .site-nav.is-open { transition: opacity .18s ease, visibility 0s; }
  .site-nav__list { flex-direction: column; gap: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 8px 0 16px; }
  .site-nav a { min-height: 52px; padding: 12px 10px; border-bottom: 1px solid var(--c-line); border-radius: 0; font-size: 17px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-main); }
  .site-nav li:last-child a { border-bottom: 0; }
  html.nav-open body::after { content: ""; position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .4); animation: bb-fade .18s ease; }
  .site-header { z-index: 30; }
}
@media (max-width: 900px) {
  :root { --sec-y: calc(64px * var(--space)); }
  .hero { padding-top: 32px; }
  .hero__grid, .service, .checkgrid, .area, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { padding-top: 0; }
  .service--flip .service__media { order: 0; }
  .service + .service { margin-top: 48px; padding-top: 48px; }
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .cta > .sz { width: 48px; height: 48px; }
  .cta .actions { justify-content: flex-start; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  :root { --fs: 16.5px; --gutter: 16px; --sec-y: calc(52px * var(--space)); --header-h: 60px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-header__inner { gap: 8px; }
  .brand__logo { width: 32px; height: 32px; }
  .brand__text strong { font-size: 16px; }
  .brand__text span { display: none; }
  .header-call { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 13px; }
  .hero h1 { max-width: none; }
  .lead { font-size: calc(var(--fs) * 1.06); }
  .actions .btn { flex: 1 1 100%; }
  .field-row, .scope, .scope--2, .pair, .facts, .towns { grid-template-columns: minmax(0, 1fr); }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: 22px 18px; }
  .cta { padding: 26px 20px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer { padding-top: 40px; }
  .service + .service { margin-top: 40px; padding-top: 40px; }
  .protocol li { grid-template-columns: 36px 1fr; }
  .circuit li { gap: 14px; }
  .dialog__body { padding: 22px 18px; }
  .quickbar { display: block; position: fixed; inset: auto 0 0; z-index: 25; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-surface); box-shadow: var(--shadow); }
  .quickbar ul { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px; border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
  .quickbar a:active { background: var(--c-line); }
  .quickbar .icon { width: 18px; height: 18px; }
  .quickbar__main a { border-color: var(--c-main); background: var(--c-main); color: var(--c-on-main); }
  .quickbar__main a:active { background: var(--c-main-hover); }
  .page-loader__pill { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .towns { grid-template-columns: minmax(0, 1fr); }
  .quickbar a { font-size: 13px; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .quickbar, .announce, .concept-note, .nav-toggle, .cta { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}

/* Sanfte Sprünge zu Ankern und Seitenübergang: erst die Leitung, dann das Licht (vom Inhaber gewünscht; aus bei reduzierter Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: kopf; }
.quickbar { view-transition-name: leiste; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: seitenwechsel .45s ease both; }
@keyframes seitenwechsel { 0% { clip-path: inset(0 100% calc(100% - 4px) 0); } 40% { clip-path: inset(0 0 calc(100% - 4px) 0); } 100% { clip-path: inset(0); } }

/* Bildnachweise: Tippziele mindestens 44 px */
figcaption a, [class*="credit"] a, body[data-page="impressum"] main a { display: inline-block; min-width: 44px; padding-block: 15px; overflow-wrap: anywhere; }
