/* ==========================================================================
   Solar & Baddesign · Designsystem
   Statisch, ohne Framework, ohne externe Requests (außer Google-Karte).
   Aufbau: 1 Tokens · 2 Basis · 3 Typografie · 4 Layout · 5 Buttons/Links
           6 Header · 7 Mobilmenü · 8 Komponenten · 9 Startseite · 10 Formular
           11 Footer · 12 Bottom-Bar · 13 Bewegung
   ========================================================================== */

/* ---------- 0. Schrift (lokal, variabel) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist.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;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Farben */
  --navy: #061A3A;          /* Text, dunkle Flächen */
  --navy-2: #0B2552;
  --blue: #00489A;          /* einziger Interaktionsakzent: Links, Auswahl, Fokus */
  --blue-hover: #003D83;
  --yellow: #F8EC00;        /* nur Primär-Button */
  --yellow-hover: #E4D900;
  --red: #E0533D;           /* nur Notdienst-Punkt */
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-line: #F1B8B2;

  --paper: #F7F8FA;         /* Seitengrund */
  --white: #FFFFFF;
  --stone: #EEF1F5;         /* ruhige Wechselfläche */
  --tint: #EEF4FB;          /* Auswahl-Hintergrund */

  --text: var(--navy);
  --text-2: #2A3A55;        /* Fließtext lang */
  --muted: #4A5872;         /* 6,7:1 auf Paper */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C2C2CA; /* 9,7:1 auf Navy */

  --line: #DCE1E8;          /* Trennlinien, Kartenrahmen */
  --line-input: #7A8599;    /* Formularrahmen, 3,7:1 auf Weiß */
  --line-dark: rgba(255, 255, 255, .16);

  /* Schrift */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 2.6vw, 3rem);         /* 34 bis 48 */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);          /* 26 bis 32 */
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.375rem);       /* 20 bis 22 */
  --fs-h4: 1.25rem;                                        /* 20 */
  --fs-lead: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);     /* 18 bis 20 */
  --fs-body: 1.0625rem;                                    /* 17 */
  --fs-small: .9375rem;                                    /* 15 */
  --fs-label: .8125rem;                                    /* 13 */

  /* Abstände (8er-Raster) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --section-y: 56px;
  --gap: var(--s-2);
  --gutter: 20px;
  --container: 1200px;
  --header-h: 60px;

  /* Form */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-header: 0 1px 0 var(--line), 0 6px 16px -10px rgba(6, 26, 58, .25);
  --shadow-pop: 0 16px 40px -16px rgba(6, 26, 58, .28);
}

@media (min-width: 640px)  { :root { --gutter: 24px; --section-y: var(--s-6); } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-y: var(--s-7); --gap: var(--s-3); --header-h: 72px; } }

/* ---------- 2. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-2));
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: manual;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
/* Footer sitzt auch auf kurzen Seiten (404) am unteren Rand */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }

/* Fokus: Blau auf hell, Gelb auf dunkel (über --focus vererbt) */
:focus-visible {
  outline: 2px solid var(--focus, var(--blue));
  outline-offset: 2px;
}
.step-title:focus, .step-title:focus-visible,
.error-summary:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  --focus: var(--yellow);
}
.skip-link:focus { transform: none; color: var(--white); }

/* ---------- 3. Typografie ---------- */
h1, h2, h3, h4, .h4 {
  font-family: var(--font);
  font-weight: 500;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.005em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.prose p { max-width: 65ch; color: var(--text-2); }
.prose p + p { margin-top: var(--s-2); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-white { background: var(--white); }

.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: var(--s-3); }
@media (min-width: 640px) { .section-head { margin-bottom: var(--s-4); } }
.section-head p { color: var(--muted); max-width: 60ch; }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--s-5); } }

/* 12-Spalten-Raster ab Desktop */
@media (min-width: 1024px) {
  .grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
}

/* Bilder: feste Formate, leicht entsättigt gegen den Golden-Hour-Glanz */
.media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
}

/* ---------- 5. Buttons und Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 80ms, border-color 80ms, transform 80ms;
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: var(--fs-body); }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-hover); color: var(--navy); }

.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-input); }
.btn-secondary:hover { background: var(--stone); border-color: var(--navy); color: var(--navy); }
.btn-secondary .icon { color: var(--blue); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #031129; color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); color: var(--white); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; }
.link-arrow:hover { color: var(--blue-hover); text-decoration: underline; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--navy); background: var(--stone); color: var(--navy); }
.icon-btn .icon { width: 20px; height: 20px; }

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 150ms;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  border-radius: 4px;
}
.brand img { width: auto; height: 32px; max-width: none; }
@media (min-width: 1024px) { .brand img { height: 42px; } }

.main-nav { display: none; }
.nav-list { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover { color: var(--navy); background: var(--stone); }
.nav-link[aria-current="page"],
.nav-link.is-current { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-chev { width: 16px; height: 16px; }
.nav-item.is-open .nav-chev { transform: rotate(180deg); }

/* Dropdown Leistungen */
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms, visibility 0s linear 150ms;
}
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open .nav-panel,
html:not(.js) .nav-item:hover .nav-panel,
html:not(.js) .nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 150ms;
}
.nav-panel a {
  display: block;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  text-decoration: none;
}
.nav-panel a:hover { background: var(--paper); color: var(--navy); }
.nav-panel strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.nav-panel span { display: block; margin-top: 2px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.nav-panel a[aria-current="page"] strong { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: var(--s-1); }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--blue); }
.header-phone:hover { color: var(--navy); text-decoration: underline; }


.burger { position: relative; }
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (min-width: 640px) {
  .header-call { display: none; }
  .header-phone { display: inline-flex; }
}
@media (min-width: 1024px) {
  .brand { margin-right: 0; }
  .main-nav { display: block; margin-left: var(--s-4); margin-right: auto; }
  .burger { display: none; }
  .header-actions { gap: var(--s-2); }
}

/* ==========================================================================
   7. Mobilmenü (Navy, vollflächig unter dem Header)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--navy);
  color: var(--on-dark);
  visibility: hidden;
  --focus: var(--yellow);
}
.mobile-menu.is-open { visibility: visible; }
.mm-nav { display: grid; gap: var(--s-4); }
.mm-label { margin-bottom: var(--s-1); font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-muted); }
.mm-list { border-top: 1px solid var(--line-dark); }
.mm-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--on-dark);
  text-decoration: none;
}
.mm-list a:hover { color: var(--on-dark); text-decoration: underline; }
.mm-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mm-foot { display: grid; gap: 12px; margin-top: auto; }
.mm-foot p { font-size: var(--fs-small); color: var(--on-dark-muted); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ==========================================================================
   8. Komponenten (Startseite und Unterseiten)
   ========================================================================== */

/* --- Hakenliste --- */
.ticks { display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .3em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300489A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Faktenzeile (kurze Belege im Hero) --- */
.fact-row { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); }
.fact-row li { display: inline-flex; align-items: center; gap: 8px; }
.fact-row .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2; }

/* --- Leistungskarte: ganze Karte klickbar --- */
.service-grid { display: grid; gap: var(--gap); }
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas: "img head" "body body";
  column-gap: var(--s-2);
  row-gap: var(--s-2);
  height: 100%;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 80ms;
}
.service-card:hover, .service-card:focus-within { border-color: var(--blue); }
.service-card-media { grid-area: img; width: 96px; height: 96px; border-radius: var(--radius-sm); }
.service-card-head { grid-area: head; display: grid; gap: 4px; align-content: center; }
.service-card-head p { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.service-card-body { grid-area: body; display: flex; flex-direction: column; gap: 12px; }
.service-card .ticks { font-size: var(--fs-small); color: var(--text-2); }
/* Mobil: Kurzsatz statt Hakenliste, damit die vier Karten in zwei Viewports passen */
@media (max-width: 639px) { .service-card .ticks { display: none; } .service-card { row-gap: 4px; } .service-card-body { gap: 0; } }
.service-card-link { margin-top: auto; align-self: flex-start; font-size: var(--fs-small); }
.service-card-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "img" "head" "body";
    row-gap: 12px;
    padding: 0;
    overflow: hidden;
  }
  .service-card-media { width: auto; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .service-card-head { gap: 8px; padding: 12px var(--s-3) 0; align-content: start; }
  .service-card-body { padding: 0 var(--s-3) var(--s-3); gap: var(--s-2); }
}

/* --- Definitionsliste / Faktenliste --- */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.facts dd { color: var(--text); }
.name-wall { margin-top: var(--s-4); }
.name-wall-label { margin: 0 0 var(--s-1); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.name-wall-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.name-wall-grid li { display: flex; align-items: center; min-height: 64px; padding: 12px var(--s-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--text-2); }
.name-wall-brands li { min-height: 72px; justify-content: center; font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
@media (min-width: 640px) {
  .name-wall-grid { grid-template-columns: 1fr 1fr; }
  .name-wall-brands { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 360px) {
  .facts > div { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-2); }
}
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-3); }
  .facts dt { font-size: var(--fs-body); }
}

/* --- Ablauf --- */
.process { border-top: 1px solid var(--line); counter-reset: step; }
.process li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.process-num {
  grid-row: 1 / 3;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.process h3 { font-size: var(--fs-h4); }
.process p { margin-top: 6px; max-width: 40ch; color: var(--muted); }
@media (min-width: 1024px) {
  .process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-3); }
  .process li { display: block; padding: var(--s-3) 0 0; border-bottom: 0; }
  .process-num { display: block; margin-bottom: 12px; }
  .process p { margin-top: 8px; }
}

/* --- Tabelle / Ortsliste --- */
.table { width: 100%; font-variant-numeric: tabular-nums; }
.table caption { text-align: left; }
.table th, .table td { height: 48px; padding: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { height: 40px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); border-bottom-color: var(--line-input); }
.table tbody th { font-size: 1.125rem; font-weight: 600; }
.table td { font-size: var(--fs-small); color: var(--muted); }
.table .num { text-align: right; }

/* --- Adress- und Zeitenblock --- */
.info-block { display: grid; gap: var(--s-3); align-content: start; }
.info-block h3 { font-size: var(--fs-small); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.info-block address, .info-block p { line-height: 1.6; }

.hours { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.hours > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-2); }
.hours dt { display: inline-flex; align-items: center; gap: 8px; }
.hours dd { color: var(--muted); }

/* --- Google-Karte (direkt eingebettet, Override A) --- */
.map { display: grid; gap: 4px; min-width: 0; align-content: start; }
.map-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-3); text-align: center; background: var(--stone); }
.map-consent-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.map-consent-text { max-width: 38ch; margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.map-consent-text a { color: var(--blue); }
@media (min-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }
.map-actions { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
.map-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.map-actions a:hover { text-decoration: underline; }
.map-actions .icon { width: 16px; height: 16px; }

/* --- FAQ (details/summary, ohne Animation) --- */
.faq-wrap { max-width: 720px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 56px;
  padding: 12px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--blue); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 0 var(--s-3); }
.faq-body p { max-width: 65ch; font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); }
.faq-more { margin-top: var(--s-2); color: var(--muted); }
.faq-more a { font-weight: 600; white-space: nowrap; }

/* --- Breadcrumb --- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-block: -10px; font-size: var(--fs-small); color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--line-input); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* --- Seiten-Hero der Unterseiten: hell, Text links, Bild rechts (4:3) ---
   Markup: section.page-hero > .page-hero-media (img) + .container.page-hero-inner */
.page-hero {
  --w: min(var(--container), 100% - 2 * var(--gutter));
  display: grid;
  grid-template-columns: 1fr var(--w) 1fr;
  row-gap: var(--s-3);
  padding-block: var(--s-3) var(--s-4);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero > * { grid-column: 2; min-width: 0; }
.page-hero-inner.container { width: auto; max-width: none; margin: 0; padding: 0; }
.page-hero-inner { display: grid; justify-items: start; align-content: center; }
.page-hero-media {
  order: 2;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.page-hero-title { max-width: 22ch; margin-top: var(--s-2); font-size: clamp(2.125rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.015em; }
.page-hero-lead { max-width: 56ch; margin-top: var(--s-2); font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.page-hero-ctas { display: grid; gap: 12px; width: 100%; margin-top: var(--s-3); }
.page-hero-ctas .btn { font-variant-numeric: tabular-nums; }
.page-hero-facts { margin-top: var(--s-3); }
@media (min-width: 640px) {
  .page-hero { padding-block: var(--s-4) var(--s-5); }
  .page-hero-media { max-height: 320px; }
  .page-hero-ctas { display: flex; flex-wrap: wrap; width: auto; }
}
@media (min-width: 1024px) {
  .page-hero {
    grid-template-columns: 1fr calc(var(--w) * 7 / 12) calc(var(--w) * 5 / 12) 1fr;
    align-items: center;
    min-height: 480px;
    padding-block: var(--s-5);
  }
  .page-hero-inner, .page-hero-inner.container { grid-column: 2; grid-row: 1; padding-right: var(--s-5); }
  .page-hero-media { grid-column: 3; grid-row: 1; aspect-ratio: 4 / 3; max-height: none; }
  .page-hero-plain { min-height: 0; }
  .page-hero-plain .page-hero-inner.container { grid-column: 2 / 4; padding-right: 0; }
}

/* --- Kopf links, Inhalt rechts (Unterseiten) --- */
.split-section { display: grid; gap: var(--s-4); }
.split-section-head { display: grid; gap: 12px; align-content: start; }
.split-section-head > p { max-width: 46ch; color: var(--muted); }
.split-section-head .link-arrow { margin-top: 4px; }
.split-section-body { min-width: 0; }
@media (min-width: 1024px) {
  .split-section { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .split-section-head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; }
  .split-section-body { grid-column: 6 / 13; }
}

/* --- Leistungsumfang: Zeilen mit Titel und Text (optional nummeriert) --- */
.scope { border-top: 1px solid var(--line); counter-reset: scope; }
.scope > li { display: grid; gap: 4px var(--s-2); padding: 20px 0; border-bottom: 1px solid var(--line); }
.scope h3 { font-size: 1.125rem; line-height: 1.4; }
.scope p { max-width: 60ch; color: var(--text-2); }
.scope-numbered > li { grid-template-columns: 24px minmax(0, 1fr); }
.scope-numbered > li::before {
  counter-increment: scope;
  content: counter(scope);
  grid-row: 1 / 3;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .scope > li { grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s-3); }
  .scope-numbered > li { grid-template-columns: 24px 176px minmax(0, 1fr); }
  .scope-numbered > li::before { grid-row: auto; }
}
.scope-foot { margin-top: var(--s-3); }

/* --- Leistungsraster: zwei Spalten, Linie oben (Wartung) --- */
.scope-grid { display: grid; gap: 0 var(--s-5); }
.scope-grid > li { display: grid; gap: 6px; align-content: start; padding: 20px 0 var(--s-3); border-top: 1px solid var(--line); }
.scope-grid h3 { font-size: var(--fs-h4); }
.scope-grid p { max-width: 52ch; color: var(--text-2); }
@media (min-width: 768px) { .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Vergleichstabelle (Heizsysteme, Gewerke) --- */
.compare { width: 100%; border-top: 1px solid var(--line-input); }
.compare th, .compare td { padding: 20px var(--s-3) 20px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th:last-child, .compare td:last-child { padding-right: 0; }
.compare thead th { padding-block: 12px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); border-bottom-color: var(--line-input); }
.compare tbody th { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.compare tbody th small { display: block; margin-top: 2px; font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.compare td { color: var(--text-2); }
.compare .is-us { font-weight: 600; color: var(--text); }
@media (max-width: 767px) {
  .compare { border-top-color: var(--line); }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare th, .compare td { display: block; }
  .compare tbody tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { padding: 0; border: 0; }
  .compare td { margin-top: 12px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
  .compare-pairs td { margin-top: 4px; }
  .compare-pairs td::before { display: none; }
}

/* --- Text und Bild nebeneinander (nie Text auf Bild) --- */
.media-text { display: grid; gap: var(--s-4); }
.media-text-copy { display: grid; gap: var(--s-2); align-content: center; justify-items: start; }
.media-text-copy .ticks { margin-top: 4px; color: var(--text-2); }
.media-text-note { color: var(--text-2); }
.media-text-note strong { font-weight: 600; color: var(--text); }
.media-text-media { width: 100%; aspect-ratio: 4 / 3; max-height: 260px; }
@media (min-width: 640px) { .media-text-media { max-height: 420px; } }
@media (min-width: 1024px) {
  .media-text { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); align-items: center; }
  .media-text-copy { grid-column: 1 / 7; grid-row: 1; }
  .media-text-media { grid-column: 8 / 13; grid-row: 1; max-height: none; }
  .media-text-flip .media-text-copy { grid-column: 7 / 13; }
  .media-text-flip .media-text-media { grid-column: 1 / 6; }
}

/* --- Kasten mit Text und Schritten (Förderung) --- */
.panel { display: grid; gap: var(--s-4); padding: var(--s-3) var(--s-2); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.panel-copy { display: grid; gap: var(--s-2); align-content: start; justify-items: start; }
.panel .scope > li { grid-template-columns: 24px minmax(0, 1fr); }
.panel .scope-numbered > li::before { grid-row: 1 / 3; }
@media (min-width: 640px) { .panel { padding: var(--s-4); } }
@media (min-width: 1024px) {
  .panel { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); padding: var(--s-5); }
  .panel-copy { grid-column: 1 / 6; }
  .panel-body { grid-column: 7 / 13; }
}

/* --- Textspalten mit Linie oben --- */
.text-cols { display: grid; gap: 0 var(--s-3); }
.text-cols > li { display: grid; gap: 8px; align-content: start; padding: 20px 0 var(--s-3); border-top: 1px solid var(--line); }
.text-cols h3 { font-size: var(--fs-h4); }
.text-cols p { color: var(--text-2); }
@media (min-width: 1024px) { .text-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .text-cols > li { padding-bottom: 0; } }

/* --- Zwei Spalten Text (7/5) --- */
.two-col { display: grid; gap: var(--s-5); }
.two-col > * { min-width: 0; }
.col-copy { display: grid; gap: var(--s-2); align-content: start; justify-items: start; }
@media (min-width: 1024px) {
  .two-col { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .two-col > :first-child { grid-column: 1 / 7; }
  .two-col > :last-child { grid-column: 8 / 13; }
}

/* --- Schlichte Liste mit Linien (Referenzen, Marken) --- */
.line-list { border-top: 1px solid var(--line); }
.line-list li { display: flex; align-items: center; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.col-copy .line-list { width: 100%; margin-top: 4px; }
.col-lead { color: var(--muted); }
@media (min-width: 640px) { .two-col .facts > div { grid-template-columns: 140px minmax(0, 1fr); } }

/* --- Notdienst (Wartung) --- */
.notdienst { background: var(--navy); color: var(--on-dark); --focus: var(--yellow); }
.notdienst-grid { display: grid; gap: var(--s-5); }
.notdienst-copy { display: grid; gap: var(--s-2); align-content: start; justify-items: start; }
.notdienst-copy > p { max-width: 52ch; color: var(--on-dark-muted); }
.notdienst-label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-muted); }
.notdienst-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: var(--s-1);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .4);
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.notdienst-number:hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }
.notdienst-number .icon { width: .8em; height: .8em; }
.notdienst-steps-title { margin-bottom: 4px; font-size: var(--fs-h4); }
.notdienst .scope { border-color: var(--line-dark); }
.notdienst .scope > li { border-color: var(--line-dark); grid-template-columns: 24px minmax(0, 1fr); }
.notdienst .scope-numbered > li::before { grid-row: auto; color: var(--yellow); }
.notdienst .scope p { color: var(--on-dark); }
@media (min-width: 1024px) {
  .notdienst-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .notdienst-copy { grid-column: 1 / 7; }
  .notdienst-steps { grid-column: 8 / 13; }
}

/* --- Seitenende: Einsatzgebiet und weitere Leistungen --- */
.page-end { display: grid; gap: var(--s-5); }
.page-end-copy { display: grid; gap: 12px; align-content: start; justify-items: start; }
.page-end-copy > p { max-width: 60ch; color: var(--text-2); }
.page-end h2 { font-size: var(--fs-h3); }
.page-end-links h2 { margin-bottom: 4px; }
@media (min-width: 1024px) {
  .page-end { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .page-end-copy { grid-column: 1 / 7; }
  .page-end-links { grid-column: 8 / 13; }
}

/* --- Linkliste (weitere Leistungen, 404) --- */
.more-links { border-top: 1px solid var(--line); }
.more-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
}
.more-links a > span { display: grid; gap: 2px; }
.more-links a > span > span { font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.more-links .icon { width: 20px; height: 20px; color: var(--blue); }
.more-links a:hover { color: var(--blue-hover); }
.more-links a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.more-links strong { font-weight: 600; }

/* --- FAQ neben dem Kopf (Unterseiten) --- */
.faq-side-more { color: var(--muted); }
.faq-side-more a { font-weight: 600; white-space: nowrap; }

/* --- CTA-Leiste (schmal, 120 px) --- */
.cta-bar { background: var(--stone); border-block: 1px solid var(--line); }
.cta-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); min-height: 120px; padding-block: var(--s-3); }
.cta-bar-text { display: grid; gap: 2px; }
.cta-bar-text strong { font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; }
.cta-bar-text span { color: var(--muted); }
.cta-bar-actions { display: grid; gap: 12px; width: 100%; }
.cta-bar-actions .btn { font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .cta-bar-actions { display: flex; flex-wrap: wrap; width: auto; } }

/* --- Rechtstexte: Lesebreite 65 ch, Inhaltsverzeichnis --- */
.legal { padding-block: var(--s-5) var(--s-6); }
.legal-grid { display: grid; gap: var(--s-5); }
.legal-grid > * { min-width: 0; }
.toc { padding: var(--s-2) var(--s-3) var(--s-1); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.toc-title { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.toc a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--navy); text-decoration: none; }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--blue-hover); text-decoration: underline; }
.legal-article { max-width: 65ch; }
.legal-article h2 { margin: var(--s-5) 0 12px; font-size: var(--fs-h3); scroll-margin-top: calc(var(--header-h) + var(--s-3)); }
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 { margin: var(--s-3) 0 8px; font-size: 1.0625rem; }
.legal-article p, .legal-article ul { margin-bottom: 12px; color: var(--text-2); }
.legal-article ul { padding-left: 1.3em; list-style: disc; }
.legal-article li + li { margin-top: 6px; }
.legal-article a, .legal-rows a { font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .legal-grid > .toc { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + var(--s-3)); align-self: start; }
  .legal-grid > .legal-article { grid-column: 5 / 13; }
}
/* Impressum: Angaben als Zeilen, Bezeichnung links */
.legal-rows { max-width: 920px; border-top: 1px solid var(--line); }
.legal-rows > section { display: grid; gap: 6px var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.legal-rows h2 { font-size: 1.0625rem; line-height: 1.45; }
.legal-rows h3 { margin-top: var(--s-2); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.legal-rows p { max-width: 65ch; color: var(--text-2); }
.legal-rows p + p { margin-top: 12px; }
@media (min-width: 768px) {
  .legal-rows > section { grid-template-columns: 260px minmax(0, 1fr); }
}
.todo { padding: 1px 6px; border-radius: 4px; background: #FBF49A; color: #3D3700; font-weight: 600; font-size: .92em; }

/* --- 404 --- */
.notfound { display: grid; gap: var(--s-5); align-items: center; }
.notfound-code { font-size: var(--fs-small); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.notfound .page-hero-title { margin-top: 8px; }
.notfound-links-title { margin-bottom: 4px; }
@media (min-width: 1024px) {
  .notfound { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .notfound > :first-child { grid-column: 1 / 7; }
  .notfound > :last-child { grid-column: 8 / 13; }
}


/* ==========================================================================
   9. Startseite
   ========================================================================== */

/* --- Hero: dunkel, Foto, Sonne --- */
.hero-dark {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-block: var(--s-6) var(--s-5);
  background: var(--navy);
  color: var(--on-dark);
  --focus: var(--yellow);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 58, .84) 0%, rgba(6, 26, 58, .7) 55%, rgba(6, 26, 58, .46) 100%);
}
.hero-sun {
  position: absolute;
  top: -60px;
  right: -150px;
  width: 320px;
  height: 320px;
  color: var(--yellow);
  opacity: .13;
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; justify-items: start; }
.hero-kicker { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, .82); }
.hero-title {
  margin-top: var(--s-2);
  max-width: 11ch;
  font-size: clamp(3rem, 1.2rem + 7.4vw, 6.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-lead { max-width: 46ch; margin-top: var(--s-3); font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.hero-actions { display: grid; gap: 12px; width: 100%; margin-top: var(--s-4); }
.hero-actions .btn { font-variant-numeric: tabular-nums; }
.hero-facts { margin-top: var(--s-4); color: rgba(255, 255, 255, .9); }
.hero-facts .icon { color: var(--yellow); }

@media (min-width: 640px) {
  .hero-actions { display: flex; flex-wrap: wrap; width: auto; }
  .hero-sun { top: -90px; right: -100px; width: 480px; height: 480px; }
}
@media (min-width: 1024px) {
  .hero-dark { min-height: 680px; padding-block: var(--s-7); }
  .hero-bg img { object-position: 60% 50%; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(6, 26, 58, .93) 0%, rgba(6, 26, 58, .68) 42%, rgba(6, 26, 58, .12) 78%), linear-gradient(0deg, rgba(6, 26, 58, .5) 0%, rgba(6, 26, 58, 0) 35%); }
  .hero-sun { top: -140px; right: 4%; width: 600px; height: 600px; opacity: .15; }
  .hero-title { max-width: 12ch; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: sun-spin 120s linear infinite; }
}
@keyframes sun-spin { to { transform: rotate(360deg); } }

/* --- Notdienst-Leiste --- */
.emergency-strip { background: var(--navy); color: var(--on-dark); --focus: var(--yellow); }
.emergency-strip-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-block: 12px;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.4;
}
.emergency-strip-link:hover { color: var(--on-dark); }
.emergency-strip-link strong { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .2em; }
.emergency-strip-link:hover strong { text-decoration-color: var(--on-dark); }
.emergency-strip-link > .icon { margin-left: auto; width: 20px; height: 20px; color: var(--on-dark-muted); }
.emergency-strip-link .dot { margin-top: 1px; }

/* --- Vertrauen --- */
.trust-grid { display: grid; gap: var(--s-4); }
.trust-copy { display: grid; gap: var(--s-3); align-content: start; }
.trust-copy .facts { margin-top: var(--s-1); }
.trust-copy .facts ul li + li { margin-top: 2px; }
.trust-media { height: 200px; }
@media (min-width: 640px) { .trust-media { height: auto; aspect-ratio: 4 / 3; } }
.trust-media img { object-position: 50% 60%; }
@media (min-width: 1024px) {
  .trust-copy { grid-column: 1 / 8; padding-right: var(--s-4); }
  .trust-media { grid-column: 8 / 13; align-self: stretch; aspect-ratio: auto; min-height: 100%; }
}

/* --- Einsatzgebiet: Ortstabellen + Adresse + Karte (Start, Kontakt) --- */
.area-layout { display: grid; gap: var(--s-4); }
.area-side { display: grid; gap: var(--s-5); align-content: start; }
.area-title { margin-bottom: 4px; font-size: var(--fs-h4); }
.area-layout .map-frame { aspect-ratio: 1 / 1; }
/* Mobil stehen Adresse (Footer) und Zeiten (Anfrage, Menü) bereits auf der Seite */
@media (max-width: 639px) {
  .area-side .info-block { display: none; }
  .area-layout thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 640px) {
  .area-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-layout > .map { grid-column: 1 / -1; }
  .area-layout .map-frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .area-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .area-layout > .area-group { grid-column: 1 / 5; }
  .area-layout > .area-side { grid-column: 5 / 9; padding-left: var(--s-3); }
  .area-layout > .map { grid-column: 9 / 13; }
  .area-layout .map-frame { aspect-ratio: 4 / 5; }
}

/* Kontaktseite: Adresse und Schriftweg auch mobil zeigen */
@media (max-width: 639px) { .area-layout-contact .area-side .info-block { display: grid; } }

/* ==========================================================================
   10. Anfrage und Formular
   ========================================================================== */
.inquiry { background: var(--stone); }
.inquiry-grid { display: grid; gap: var(--s-4); grid-template-areas: "head" "form" "aside"; }
.inquiry-head { grid-area: head; display: grid; gap: 12px; align-content: start; }
.inquiry-head p { color: var(--muted); max-width: 40ch; }
.inquiry-aside { grid-area: aside; display: grid; gap: 12px; align-content: start; }
.inquiry-aside-title { font-weight: 600; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
}
.phone-link .icon { width: 24px; height: 24px; color: var(--blue); }
.phone-link:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.inquiry-aside .hours { max-width: 320px; }
.form-card { grid-area: form; }
@media (min-width: 1024px) {
  .inquiry-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; grid-template-areas: none; gap: var(--s-4) var(--s-3); }
  .inquiry-head { grid-column: 1 / 5; grid-row: 1; }
  .inquiry-aside { grid-column: 1 / 5; grid-row: 2; align-self: start; padding-top: var(--s-4); border-top: 1px solid var(--line-input); }
  .form-card { grid-column: 6 / 13; grid-row: 1 / 3; align-self: start; }
}
/* Ab Tablet hält die Karte die Höhe des höchsten Schritts (min-height per JS
   gemessen); die Schritt-Navigation sitzt immer an derselben Stelle unten */
@media (min-width: 640px) {
  .form-card, #anfrage-form { display: flex; flex-direction: column; }
  #anfrage-form, .form-success { flex: 1 1 auto; }
  .form-success { grid-template-rows: repeat(5, auto) 1fr; }
  .form-success > .btn { align-self: end; }
  .step { flex: 1 1 auto; display: flex; flex-direction: column; }
  .form-card .step-nav, .form-card .step-foot { margin-top: auto; padding-top: var(--s-4); }
  .field-grow { flex: 1 1 auto; grid-template-rows: auto minmax(148px, 1fr) auto; }
  .field-grow textarea { height: 100%; max-height: 360px; }
}
.step-foot { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }

.form-card {
  position: relative;
  min-width: 0;
  padding: var(--s-3) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--navy);
  scroll-margin-top: calc(var(--header-h) + var(--s-2));
  --focus: var(--blue);
}
@media (min-width: 640px)  { .form-card { padding: var(--s-4); } }
@media (min-width: 1024px) { .form-card { padding: var(--s-5); } }

.form-head { display: grid; gap: var(--s-1); margin-bottom: var(--s-3); }
.form-status { font-size: var(--fs-label); font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.progress { height: 4px; border-radius: 4px; background: var(--stone); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, .25)); }
.form-card.is-emergency .progress-bar { background: var(--red); }

.step-title { margin-bottom: var(--s-3); font-size: var(--fs-h3); line-height: 1.3; }
.step.is-entering, .form-success.is-entering { animation: stepIn 200ms ease-out; }
@keyframes stepIn { from { opacity: 0; } to { opacity: 1; } }

/* Schritt 1: Themenliste (sechs Zeilen à 56 px) */
.topic-list { display: grid; gap: var(--s-1); }
.topic {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  min-height: 56px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 80ms, background-color 80ms;
}
.topic > .icon { width: 24px; height: 24px; color: var(--blue); }
.topic .topic-chev { width: 20px; height: 20px; margin-left: auto; color: var(--muted); }
.topic:hover { border-color: var(--blue); background: var(--tint); }
.topic[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.topic-emergency { border-color: var(--error-line); color: var(--error); }
.topic-emergency > .icon, .topic-emergency .topic-chev { color: var(--error); }
.topic-emergency:hover { border-color: var(--error); background: var(--error-bg); }
.topic-note { margin-left: 4px; font-size: var(--fs-small); font-weight: 400; color: var(--error); }
.step > .field-error { margin-top: 12px; }

/* Notfall-Ansicht */
.emergency-call {
  display: grid;
  gap: 4px;
  padding: var(--s-3);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--on-dark);
  text-decoration: none;
  --focus: var(--blue);
}
.emergency-call:hover { background: #031129; color: var(--on-dark); }
.emergency-call-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--on-dark-muted); }
.emergency-call-number { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.emergency-call-number .icon { width: .8em; height: .8em; }
.step-note { margin-top: var(--s-2); color: var(--text-2); }

/* Chips (Radio) */
.chip-group { min-width: 0; margin: 0 0 var(--s-3); padding: 0; border: 0; }
.chip-group legend { margin-bottom: 12px; padding: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.25;
  transition: background-color 80ms, border-color 80ms;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Felder: Label oberhalb */
.fields { display: grid; gap: var(--s-3) var(--s-2); margin-bottom: var(--s-3); }
.field { display: grid; gap: var(--s-1); align-content: start; min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.field .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--error); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 16px; /* kein iOS-Zoom */
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B778C; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field.has-error input, .field.has-error textarea { border: 2px solid var(--error); padding: 11px 13px; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}
.field-error::before {
  content: '';
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hint { font-size: var(--fs-small); color: var(--muted); }
.field-meta { display: flex; justify-content: space-between; gap: var(--s-2); }
.counter { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 640px) {
  .fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fields > .field { grid-column: span 3; }
  .fields > .field-name { grid-column: span 4; }
  .fields > .field-plz { grid-column: span 2; }
  .field-full { grid-column: 1 / -1; }
}
.fields > .hint { margin-bottom: -12px; }

/* Checkbox Einwilligung */
.consent { display: grid; gap: var(--s-1); margin-bottom: var(--s-3); }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { position: absolute; top: 0; left: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  flex: none;
  border: 1px solid var(--line-input);
  border-radius: 6px;
  background: var(--white);
}
.check-box .icon { width: 16px; height: 16px; stroke-width: 2.4; color: var(--white); opacity: 0; }
.check:hover .check-box { border-color: var(--navy); }
.check input:checked + .check-box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check-box .icon { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent.has-error .check-box { border: 2px solid var(--error); }
.check-text { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.check-text a { font-weight: 600; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fehlerzusammenfassung */
.error-summary {
  display: grid;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
  padding: var(--s-2);
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
}
.error-summary-title { font-weight: 600; color: var(--error); }
.error-summary ul { display: grid; gap: 4px; padding-left: 0; }
.error-summary a { color: var(--error); font-weight: 500; }
.error-summary a:hover { color: #8A1A12; }

/* Serverfehler */
.form-alert {
  display: grid;
  gap: 4px;
  margin-bottom: var(--s-3);
  padding: var(--s-2);
  border: 1px solid var(--error-line);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  color: #7A1D10;
  font-size: var(--fs-small);
}
.form-alert strong { font-weight: 600; }
.form-alert a { font-weight: 600; color: inherit; white-space: nowrap; }

/* Schritt-Navigation: im DOM erst Weiter, dann Zurück */
.step-nav { display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: var(--s-4); }
.btn-back, .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-back .icon { width: 18px; height: 18px; }
.btn-back:hover { color: var(--navy); text-decoration: underline; }
.link-btn { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.link-btn:hover { color: var(--blue-hover); }
.form-foot { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 639px) {
  .step-nav { flex-direction: column; align-items: stretch; }
  .step-nav .btn { width: 100%; }
  .step-nav .btn-back { align-self: center; }
}

/* Erfolg */
.form-success { display: grid; justify-items: start; align-content: start; gap: var(--s-2); }
.success-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.success-icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form-success .step-title { margin-bottom: 0; }
.success-text { color: var(--text-2); max-width: 52ch; }
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px var(--s-3); width: 100%; padding: var(--s-2) 0; border-block: 1px solid var(--line); font-size: var(--fs-small); }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 500; overflow-wrap: anywhere; }
.success-foot { color: var(--muted); }
.success-foot a { font-weight: 600; white-space: nowrap; }

.form-noscript { margin-bottom: var(--s-3); padding: var(--s-2); border-radius: var(--radius-sm); background: var(--tint); font-size: var(--fs-small); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  padding-block: var(--s-6) var(--s-4);
  background: var(--navy);
  color: var(--on-dark);
  --focus: var(--yellow);
}
.footer-grid { display: grid; gap: var(--s-4); }
.footer-brand { display: grid; gap: var(--s-2); align-content: start; }
.footer-logo { width: auto; height: 36px; max-width: none; }
.footer-brand p, .footer-brand address { color: var(--on-dark-muted); font-size: var(--fs-small); line-height: 1.6; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--on-dark); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-contact a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-h { margin-bottom: 4px; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--on-dark-muted); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; font-size: var(--fs-small); }
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  align-items: center;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.footer-legal { display: flex; gap: 0 var(--s-3); }
.footer-credit { display: inline-flex; align-items: center; gap: 10px; margin: 0; line-height: 1.25; }
.footer-credit a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.footer-credit a:hover strong { text-decoration: underline; }
.footer-credit img { width: 28px; height: 30px; flex: none; }
.footer-credit span { display: flex; flex-direction: column; font-size: 13px; color: var(--on-dark-muted); }
.footer-credit strong { font-size: 15px; font-weight: 600; color: #fff; }
@media (max-width: 639px) { .footer-credit { width: 100%; margin-top: var(--s-2); } }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.footer-legal a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-3); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); }
  .footer-brand { grid-column: 1 / 7; }
  .footer-grid > nav:nth-of-type(1) { grid-column: 8 / 11; }
  .footer-grid > nav:nth-of-type(2) { grid-column: 11 / 13; }
}

/* ==========================================================================
   12. Mobile Bottom-Bar (ab Seitenstart sichtbar)
   ========================================================================== */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  --focus: var(--yellow);
}
.bottom-bar .btn { min-height: 48px; }
.bottom-bar.is-hidden, body.menu-open .bottom-bar { visibility: hidden; transform: translateY(100%); }
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .bottom-bar { display: none; } }

/* ==========================================================================
   13. Bewegung reduzieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
