/* ============================================================
   Brinckmann Haustechnik – Bocholt
   Redesign im „Apple-Stil": großzügig, ruhig, hochwertig.
   Markenfarben von brinckmann-haustechnik.de übernommen:
   Grün #93C021 · Anthrazit #242731 · Logo-Rot #CE2E22 (nur Notdienst)
   ============================================================ */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Marke */
  --brand:       #93C021;   /* Signal-Grün (Primär) */
  --brand-hi:    #A6D62E;   /* helleres Grün für Hover auf Dunkel */
  --brand-text:  #5B7813;   /* Grün als Text auf Hell: AA-fest auch auf --brand-tint (4.64), nicht nur auf Weiss */
  --brand-deep:  #4E6714;
  --brand-tint:  #F2F7E7;   /* zarter Grünschleier für Flächen */
  --brand-tint2: #E7F0D4;
  --on-brand:    #1D1F27;   /* Text auf Grün – immer dunkel, in beiden Themes */

  /* Neutrale */
  --ink:        #1D1F27;    /* Überschriften */
  --charcoal:   #242731;    /* dunkle Sektionen / Header */
  --charcoal-2: #2C303C;
  --slate:      #3B4A5B;
  --text:       #52565E;    /* Fließtext */
  /* Nebentext. Muss WCAG AA (4.5:1) auch auf der dunkelsten Textfläche
     halten – das ist --brand-tint, nicht Weiss. Daher 4.61 statt der
     4.25, die der frühere Wert #767B85 nur gegen Weiss erreichte. */
  --muted:      #6B6F78;
  --line:       #E6E8EB;
  --line-soft:  #EEF0F2;
  --paper:      #FFFFFF;    /* Seiten-Hintergrund */
  --surface:    #FFFFFF;    /* Karten / Formularflächen */
  --surface-2:  #F7F8F9;    /* leicht erhöhte Flächen / Hover */
  --mist:       #F5F6F7;    /* helle Sektion */
  --mist-2:     #EEF0F2;

  /* Notdienst / Warnung */
  --red:        #CE2E22;
  --red-hi:     #E23B2E;
  --red-tint:   #FBEEEC;

  /* Rückmeldungen */
  --ok:      #2E7D46;
  --ok-tint: #EAF5EE;
  --err:     #C62A20;
  --err-tint:#FBEDEB;

  /* Typografie – systemnah (SF Pro auf Apple, Segoe UI auf Windows) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-num: var(--font-sans);

  --fs-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5rem);
  --fs-900: clamp(2.1rem, 1.4rem + 3.1vw, 3.6rem);
  --fs-800: clamp(1.75rem, 1.3rem + 2vw, 2.7rem);
  --fs-700: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --fs-600: 1.3rem;
  --fs-500: 1.14rem;
  --fs-400: 1rem;
  --fs-300: 0.9rem;
  --fs-200: 0.8rem;

  /* Geometrie */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 980px;
  --shadow-sm: 0 2px 8px rgb(29 31 39 / 0.06), 0 8px 24px rgb(29 31 39 / 0.05);
  --shadow-md: 0 4px 14px rgb(29 31 39 / 0.08), 0 22px 50px rgb(29 31 39 / 0.12);
  --shadow-lg: 0 10px 30px rgb(29 31 39 / 0.14), 0 40px 90px rgb(29 31 39 / 0.20);
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
/* height:auto ist Voraussetzung dafür, dass die width/height-Attribute im HTML
   nur das Seitenverhältnis vorgeben (gegen Layout-Sprünge beim Laden) und nicht
   die tatsächliche Höhe erzwingen – sonst würden per aspect-ratio skalierte
   Bilder verzerrt. */
img, svg, video { max-width: 100%; height: auto; display: block; }

/* Das hidden-Attribut wirkt nur über die Browser-Regel [hidden]{display:none}.
   Sobald eine eigene Regel dem Element ein display gibt (z. B.
   .consent-banner{display:flex}), gewinnt diese – das Element bleibt trotz
   element.hidden = true sichtbar. Genau das hat das Cookie-Banner am
   Verschwinden gehindert. Hier einmal zentral abgesichert. */
[hidden] { display: none !important; }

a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
address { font-style: normal; }
strong { font-weight: 650; color: var(--ink); }
button { font: inherit; color: inherit; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, #000 5%);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}
.container--narrow { max-width: 60rem; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  padding: 0.7em 1.2em; background: var(--charcoal); color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }
.section--mist { background: var(--mist); }
.section--tint { background: linear-gradient(180deg, var(--brand-tint), var(--paper)); }
.section--dark {
  background: var(--charcoal);
  color: #C9CDd6;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 48rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--fs-800); color: var(--ink); }
.section--dark .section-title { color: #fff; }
.section-lead { font-size: var(--fs-500); color: var(--muted); line-height: 1.55; }
.section--dark .section-lead { color: #A7ADB8; }

/* Eyebrow – kleine grüne Auszeichnungszeile */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 1em;
  font-size: var(--fs-200); font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
  background: currentColor;
}
.section-head--center .eyebrow { justify-content: center; }
.section--dark .eyebrow { color: var(--brand); }

/* Buttons – Pill-Form im Apple-Stil */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.82em 1.55em; border: 1.5px solid transparent; border-radius: var(--pill);
  font-weight: 600; font-size: var(--fs-400); line-height: 1.25; text-decoration: none;
  cursor: pointer; white-space: normal; text-align: center; text-wrap: balance;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { flex: none; }

.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgb(147 192 33 / 0.35); }
.btn--primary:hover { background: var(--brand-hi); color: var(--on-brand); box-shadow: 0 10px 26px rgb(147 192 33 / 0.45); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--slate); color: var(--paper); }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgb(206 46 34 / 0.3); }
.btn--red:hover { background: var(--red-hi); color: #fff; box-shadow: 0 10px 26px rgb(206 46 34 / 0.4); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

.btn--glass { border-color: rgb(255 255 255 / 0.45); color: #fff; background: rgb(255 255 255 / 0.08); backdrop-filter: blur(6px); }
.btn--glass:hover { border-color: #fff; background: rgb(255 255 255 / 0.16); color: #fff; }

.btn--lg { padding: 0.95em 1.9em; font-size: var(--fs-500); }
.btn--sm { padding: 0.55em 1.05em; font-size: var(--fs-300); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; text-decoration: none; color: var(--brand-text);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: translate 0.2s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }
.section--dark .link-arrow { color: var(--brand); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.45em 0.95em; border-radius: var(--pill);
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2);
  font-size: var(--fs-300); font-weight: 550; color: #fff; backdrop-filter: blur(6px);
}
.chip .icon { width: 1.05em; height: 1.05em; color: var(--brand); }

/* Icons */
.icon { width: 1.4em; height: 1.4em; stroke-width: 1.8; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Reveal-Animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 4. Topbar ---------- */
.topbar { background: #16181F; color: #9AA0AB; font-size: var(--fs-300); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.4rem; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.5em; margin: 0; }
.topbar-item .icon { width: 1.05em; height: 1.05em; color: var(--brand); }
.topbar a { color: #C2C7D0; text-decoration: none; }
.topbar a:hover { color: #fff; }
/* Live-Öffnungsstatus */
.open-status { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: #C2C7D0; white-space: nowrap; }
.open-status .os-dot { width: 0.58em; height: 0.58em; border-radius: 50%; flex: none; background: #7BD79B; box-shadow: 0 0 0 3px rgb(123 215 155 / 0.18); }
.open-status.is-closed { color: #B9BEC7; }
.open-status.is-closed .os-dot { background: #E8A13A; box-shadow: 0 0 0 3px rgb(232 161 58 / 0.18); }

/* ---------- 5. Header (Anthrazit-Glas) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(29 31 39 / 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgb(29 31 39 / 0.9); border-bottom-color: rgb(255 255 255 / 0.12); }

.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 2.15rem; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; gap: clamp(0.15rem, 1vw, 0.7rem); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 0.5em 0.7em; border-radius: 8px;
  font-weight: 550; font-size: var(--fs-300); color: #D3D7DE; text-decoration: none;
  position: relative; transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0.7em; right: 0.7em; bottom: 0.15em; height: 2px;
  border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
/* Nicht schrumpfen lassen: Flex hatte den Button so weit gequetscht, dass
   "Angebot einholen" auf zwei Zeilen umbrach (.btn erlaubt Umbrüche wegen
   der langen Notdienst-Beschriftung auf Mobilgeräten). */
.header-angebot { flex: none; white-space: nowrap; }
.phone-link { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-decoration: none; }
.phone-link .phone-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.phone-link strong { font-size: 1.02rem; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-link:hover strong { color: var(--brand-hi); }
.nav-cta { display: none; }

/* Burger */
.nav-toggle {
  display: none; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: 10px;
  background: rgb(255 255 255 / 0.06); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-box { position: relative; width: 1.2rem; height: 0.85rem; }
.nav-toggle-box::before, .nav-toggle-box::after, .nav-toggle-box span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: white;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle-box::before { top: 0; }
.nav-toggle-box span { top: 50%; margin-top: -1px; display: block; }
.nav-toggle-box::after { top: 100%; margin-top: -2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::before { top: 50%; margin-top: -1px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after { top: 50%; margin-top: -1px; transform: rotate(-45deg); }

/* ---------- 6. Hero (Vollbild-Foto) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(92vh, 60rem);
  display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 12vh, 8rem) clamp(2.5rem, 7vh, 5rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgb(15 20 28 / 0.90) 0%, rgb(15 20 28 / 0.72) 44%, rgb(15 20 28 / 0.28) 100%),
    linear-gradient(180deg, transparent 52%, rgb(12 16 22 / 0.6) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 46rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.1rem;
  padding: 0.5em 1em 0.5em 0.75em; border-radius: var(--pill);
  background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(8px); font-size: var(--fs-200); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.hero-eyebrow .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(147 192 33 / 0.3); }
.hero-title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: #fff; margin-bottom: 0.5em; }
.hero-title .accent { color: var(--brand); }
.hero-sub { font-size: var(--fs-500); color: #E4E7EC; max-width: 34em; margin-bottom: 1.9em; text-shadow: 0 1px 20px rgb(0 0 0 / 0.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 1;
  display: grid; place-items: center; gap: 0.4rem; color: rgb(255 255 255 / 0.7);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.scroll-cue .icon { width: 1.4rem; height: 1.4rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- 6b. Hero – animiert (rotierende Leistungen) ---------- */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.85em; margin: 0 0 0.55rem;
  font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgb(255 255 255 / 0.82);
}
.hero-kicker::before { content: ""; width: 2.6rem; height: 2px; background: var(--brand); border-radius: 2px; flex: none; }
.hero-headline {
  font-size: clamp(2.15rem, 1.1rem + 5vw, 5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin: 0;
}
.hero-headline .hl-lead { display: block; }
/* Steht ausserhalb der h1 (siehe index.html) und erbt deren Schrift daher nicht –
   Grösse/Schnitt müssen hier wiederholt werden, damit die Zeile optisch
   nahtlos an "Ihr Partner für" anschliesst.
   Kastenhöhe 1.4em statt 1.25em: schafft Luft für die Unterlänge des "g"
   (Heizung, Lüftung) – sonst kappt overflow:hidden den g-Schwanz.
   Die 0.15em Zugabe sind beim margin-bottom wieder abgezogen. */
.hero-rotator {
  display: block; height: 1.4em; overflow: hidden;
  font-size: clamp(2.15rem, 1.1rem + 5vw, 5rem);
  font-weight: 800; letter-spacing: -0.03em; color: #fff;
  margin: 0 0 0.4em;
}
.hr-track { display: block; }
.hr-word { display: block; height: 1.4em; line-height: 1.25; font-weight: 800; white-space: nowrap; }
.hr-word--san { color: var(--brand); }
.hr-word--heiz { color: #F08032; }
.hr-word--klima { color: #4AA3E8; }
/* Punkt bleibt konstant weiß, während die Wörter die Farbe wechseln:
   hält den Akzent aus dem Original-Entwurf, bindet das farbige Wort aber
   zurück an das weisse "Ihr Partner für". (Original war Pink #E0387C.) */
.hr-word i { font-style: normal; color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.65rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5em; color: rgb(255 255 255 / 0.72); font-size: var(--fs-300); font-weight: 600; }
.hero-trust .ht-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); flex: none; }

@keyframes wordCycle { 0%,26%{transform:translateY(0)} 33%,59%{transform:translateY(-25%)} 66%,92%{transform:translateY(-50%)} 100%{transform:translateY(-75%)} }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }
.hr-track { animation: wordCycle 9s cubic-bezier(.8,0,.2,1) infinite; }
.hero-trust .ht-dot { animation: heroPulse 2s ease-in-out infinite; }
.hero-anim { animation: heroFadeUp 0.85s ease-out both; }
.hero-anim.d1 { animation-delay: 0.10s; }
.hero-anim.d2 { animation-delay: 0.22s; }
.hero-anim.d3 { animation-delay: 0.36s; }
.hero-anim.d4 { animation-delay: 0.50s; }
.hero-anim.d5 { animation-delay: 0.62s; }
@media (prefers-reduced-motion: reduce) {
  .hr-track, .hero-trust .ht-dot { animation: none; }
  .hero-anim { animation: none; opacity: 1; transform: none; }
}

/* ---------- 7. Notdienst-Band ---------- */
.emergency-band { background: var(--red-tint); border-block: 1px solid #F3D6D2; }
.eb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; }
.eb-copy { flex: 1 1 24rem; }
.eb-copy h2 { display: flex; align-items: center; gap: 0.6em; font-size: var(--fs-600); margin-bottom: 0.15em; color: var(--ink); }
.eb-copy p { color: var(--slate); font-size: var(--fs-300); }
.eb-pulse { position: relative; width: 0.72em; height: 0.72em; border-radius: 50%; background: var(--red); flex: none; }
.eb-pulse::after { content: ""; position: absolute; inset: -0.3em; border-radius: 50%; border: 2px solid var(--red); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 70%,100% { transform: scale(1.4); opacity: 0; } }

/* ---------- 7b. Vertrauensleiste (Trust & Authority) ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.section--flush-top { padding-top: clamp(1rem, 3vw, 2rem); }
.trust-item {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 1.35rem 1.4rem; background: var(--surface);
  transition: background 0.2s var(--ease);
}
.trust-item:hover { background: var(--brand-tint); }
.trust-item .icon { width: 1.85rem; height: 1.85rem; color: var(--brand-deep); flex: none; }
.trust-item strong { display: block; color: var(--ink); font-size: var(--fs-400); line-height: 1.2; }
.trust-item span { font-size: var(--fs-200); color: var(--muted); }
@media (max-width: 60rem) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .trust-strip { grid-template-columns: 1fr; } }

/* ---------- 8. Kennzahlen (Count-up) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.stat { text-align: center; }
.stat-num { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.section--dark .stat-num { color: #fff; }
.stat-num .suffix { color: var(--brand-text); }
.section--dark .stat-num .suffix { color: var(--brand); }
.stat-label { margin-top: 0.6rem; font-size: var(--fs-300); color: var(--muted); }
.section--dark .stat-label { color: #A7ADB8; }

/* ---------- 9. Leistungs-Karten (Bild-Kacheln) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-height: 22rem;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none;
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(29 31 39 / 0.15) 0%, rgb(29 31 39 / 0.15) 40%, rgb(29 31 39 / 0.82) 100%); transition: background 0.4s var(--ease); }
.pcard:hover img { transform: scale(1.06); }
.pcard:hover::after { background: linear-gradient(180deg, rgb(29 31 39 / 0.25) 0%, rgb(36 39 49 / 0.5) 45%, rgb(20 22 28 / 0.9) 100%); }
.pcard-body { margin-top: auto; padding: 1.5rem; }
.pcard-kicker { font-size: var(--fs-200); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.pcard h3 { font-size: var(--fs-600); margin: 0.35em 0 0.3em; color: #fff; }
.pcard p { font-size: var(--fs-300); color: #D3D7DE; margin-bottom: 0.9em; }
.pcard .link-arrow { color: #fff; font-size: var(--fs-300); }
.pcard .link-arrow .icon { color: var(--brand); }

/* ---------- 10. Feature-/Split-Reihen ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.split-media:hover img { transform: scale(1.04); }
.split-media .media-tag {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.4em 0.95em; border-radius: var(--pill);
  background: rgb(29 31 39 / 0.62); color: #fff; font-size: var(--fs-200); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.split--reverse .split-media { order: 2; }
.split-copy h2 { font-size: var(--fs-800); }
.split-copy .btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

.check-list { margin: 1.4em 0 0; padding: 0; list-style: none; display: grid; gap: 0.7em; }
.check-list li { display: flex; gap: 0.7em; align-items: flex-start; color: var(--text); }
.check-list .icon { flex: none; width: 1.4rem; height: 1.4rem; color: var(--brand-text); translate: 0 0.1em; }
.section--dark .check-list li { color: #C9CDD6; }
.section--dark .check-list .icon { color: var(--brand); }
.check-list strong { color: var(--ink); }
.section--dark .check-list strong { color: #fff; }

/* Feature-Liste (dunkel) */
.feature-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 0.85em; align-items: flex-start; }
.feature-list .icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--brand); translate: 0 0.1em; }
.feature-list strong { display: block; color: var(--ink); }
.section--dark .feature-list strong { color: #fff; }
.feature-list span span { font-size: var(--fs-300); color: var(--muted); }
.section--dark .feature-list span span { color: #A7ADB8; }

/* ---------- 11. Prozess ---------- */
.process-steps { --node: 3.25rem; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; counter-reset: schritt; margin: 0; padding: 0; list-style: none; }
.process-steps--3 { grid-template-columns: repeat(3, 1fr); }
.process-steps::before { content: ""; position: absolute; top: calc(var(--node)/2 - 1px); left: calc(12.5% - 0.4rem); right: calc(12.5% - 0.4rem); height: 2px; background: linear-gradient(90deg, var(--brand-tint2), var(--brand) 55%, var(--brand-tint2)); }
.process-steps--3::before { left: calc(16.666% - 0.4rem); right: calc(16.666% - 0.4rem); }
.step { position: relative; text-align: center; padding-inline: 0.4rem; }
.step-node { counter-increment: schritt; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--node); height: var(--node); margin: 0 auto 1.1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 6px var(--paper); }
.step-node::before { content: counter(schritt, decimal-leading-zero); }
.section--mist .step-node { box-shadow: 0 0 0 6px var(--mist); }
.step h3 { font-size: var(--fs-500); margin-bottom: 0.35em; }
.step p { font-size: var(--fs-300); color: var(--muted); }
.process-note { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; font-size: var(--fs-500); color: var(--ink); font-weight: 600; }

/* ---------- 12. Werte ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.3rem 2.5rem; }
.value-item { display: flex; gap: 1.05rem; align-items: flex-start; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.vi-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--brand-tint); color: var(--brand-deep); }
.value-item h3 { font-size: var(--fs-500); margin-bottom: 0.25em; }
.value-item p { font-size: var(--fs-300); color: var(--muted); }

/* ---------- 13. Galerie + Lightbox ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.filter-btn { padding: 0.55em 1.2em; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--slate); font-weight: 550; font-size: var(--fs-300); cursor: pointer; transition: all 0.2s var(--ease); }
.filter-btn:hover { border-color: var(--brand); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.4rem; }
.gallery-item { margin: 0; }
.gi-button { display: block; width: 100%; padding: 0; border: none; border-radius: var(--r-md); overflow: hidden; background: #000; cursor: zoom-in; box-shadow: var(--shadow-sm); position: relative; text-align: left; }
.gi-button img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.3s var(--ease); }
.gi-button:hover img { transform: scale(1.06); opacity: 0.92; }
.gi-caption { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.15rem 1rem; background: linear-gradient(180deg, transparent, rgb(20 22 28 / 0.85)); color: #fff; pointer-events: none; }
.gi-caption strong { display: block; font-size: var(--fs-400); color: #fff; }
.gi-meta { display: block; margin-top: 0.2em; font-size: var(--fs-200); color: var(--brand); letter-spacing: 0.05em; }

.lightbox { border: none; border-radius: var(--r-lg); padding: 0; max-width: min(64rem, 92vw); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.lightbox::backdrop { background: rgb(20 22 28 / 0.82); backdrop-filter: blur(4px); }
.lb-figure { margin: 0; }
.lb-figure img { width: 100%; max-height: 74vh; object-fit: cover; background: #000; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; }
.lb-bar figcaption strong { color: var(--ink); }
.lb-bar figcaption span { display: block; font-size: var(--fs-200); color: var(--brand-text); }
.lb-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--ink); }
.lb-close:hover { background: var(--mist); }

/* ---------- 14. Partner-Marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; align-items: center; animation: scroll-x 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 2.4rem; width: auto; opacity: 0.85; transition: opacity 0.3s var(--ease); }
.marquee img:hover { opacity: 1; }
/* Dunkle Logo-Leiste: die Herstellerlogos sind weiß und brauchen dunklen Grund */
.brand-band { background: var(--charcoal); border-radius: var(--r-lg); padding-block: 1.9rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.marken-head { margin-bottom: 1.6rem; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---------- 15. Parallax-Zitat-Sektion ---------- */
.parallax { position: relative; overflow: hidden; color: #fff; padding-block: clamp(5rem, 14vw, 9rem); }
.parallax-media { position: absolute; inset: 0; z-index: 0; }
.parallax-media img { width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.parallax-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 22 28 / 0.82), rgb(20 22 28 / 0.45)); }
.parallax-inner { position: relative; z-index: 1; max-width: 42rem; }
.parallax .eyebrow { color: var(--brand); }
.parallax h2 { color: #fff; font-size: var(--fs-900); }
.parallax p { color: #E4E7EC; font-size: var(--fs-500); }

/* ---------- 16. Testimonial ---------- */
.quote-block { position: relative; max-width: 48rem; margin-inline: auto; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.quote-block::before { content: "\201C"; position: absolute; top: -0.15em; left: 0.3em; font-size: 5rem; line-height: 1; color: var(--brand); opacity: 0.35; font-family: Georgia, serif; }
.quote-block blockquote { margin: 0; font-size: var(--fs-600); font-weight: 550; color: var(--ink); line-height: 1.5; }
.quote-block figcaption { margin-top: 1em; color: var(--muted); font-size: var(--fs-300); }

/* ---------- 17. CTA-Panel ---------- */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--charcoal), #14161C); color: #C9CDD6; padding: clamp(2.25rem, 5.5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.cta-panel::before { content: ""; position: absolute; width: 26rem; height: 26rem; right: -6rem; bottom: -10rem; border-radius: 50%; background: radial-gradient(circle, rgb(147 192 33 / 0.22), transparent 65%); }
.cta-panel h2 { color: #fff; font-size: var(--fs-800); }
.cta-panel .section-lead { color: #A7ADB8; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; position: relative; }
.cp-aside { position: relative; border-left: 1px solid rgb(255 255 255 / 0.15); padding-left: clamp(1.25rem, 3vw, 2rem); font-size: var(--fs-300); }
.cp-aside h3 { color: #fff; font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.7em; }
.cp-aside ul { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 0.4em; }
.cp-aside li { display: flex; justify-content: space-between; gap: 1em; }
.cp-aside li span:last-child { color: #fff; white-space: nowrap; }
.cp-aside a { color: #fff; }

/* ---------- 18. Footer ---------- */
.site-footer { background: #16181F; color: #9AA0AB; font-size: var(--fs-300); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem; }
.footer-brand .brand { margin: 0 0 1.1rem; }
.footer-brand .brand img { height: 2rem; }
.footer-brand p { max-width: 30em; }
.footer-partner { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1em; color: #fff; font-weight: 550; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.25); padding-bottom: 2px; }
.footer-partner:hover { color: var(--brand); border-color: var(--brand); }
.footer-partner .icon { width: 1em; height: 1em; }
.footer-col h2 { color: #fff; font-size: var(--fs-200); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5em; }
.footer-col a { color: #9AA0AB; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col address { display: grid; gap: 0.5em; }
.footer-hours { display: grid; gap: 0.3em; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1em; }
.footer-hours span:last-child { color: #C2C7D0; white-space: nowrap; }
.footer-notdienst { margin-top: 1em; padding: 0.75em 0.95em; border-radius: var(--r-sm); background: rgb(206 46 34 / 0.14); border: 1px solid rgb(206 46 34 / 0.32); color: #F0B7B1; }
.footer-notdienst a { color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap; }
.footer-notdienst a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a, .footer-legal button { color: #9AA0AB; text-decoration: none; border: none; background: none; padding: 0; cursor: pointer; font: inherit; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }

/* ---------- 19. Unterseiten-Kopf ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--charcoal); color: #C9CDD6; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero::before { content: ""; position: absolute; width: 30rem; height: 30rem; right: -8rem; top: -12rem; border-radius: 50%; background: radial-gradient(circle, rgb(147 192 33 / 0.16), transparent 65%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: var(--fs-900); margin-bottom: 0.35em; }
.page-hero .eyebrow { color: var(--brand); }
.page-hero p { max-width: 46em; color: #A7ADB8; font-size: var(--fs-500); }
.page-hero .hero-actions { margin-top: 1.7rem; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.9rem 0 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.anchor-nav a { display: inline-block; padding: 0.5em 1.1em; border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--pill); color: #fff; font-size: var(--fs-300); font-weight: 550; text-decoration: none; transition: all 0.2s var(--ease); }
.anchor-nav a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- 20. FAQ ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color 0.2s var(--ease); }
.faq details[open] { border-color: var(--brand); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { content: "\2013"; transform: rotate(180deg); }
.faq details > div { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- 21. Karriere ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.3rem; }
.benefit { padding: 1.5rem 1.4rem; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit .icon { width: 1.8rem; height: 1.8rem; color: var(--brand-deep); margin-bottom: 0.8rem; }
.benefit h3 { font-size: var(--fs-500); margin-bottom: 0.3em; }
.benefit p { font-size: var(--fs-300); color: var(--muted); }

.job-list { display: grid; gap: 1.4rem; }
.job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: start; padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--brand); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.job-card--azubi { border-left-color: var(--red); }
.job-card h3 { font-size: var(--fs-600); margin-bottom: 0.3em; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0 0 0.9em; padding: 0; list-style: none; font-size: var(--fs-200); color: var(--muted); }
.job-meta li { display: inline-flex; align-items: center; gap: 0.45em; }
.job-meta .icon { width: 1.05em; height: 1.05em; color: var(--brand-deep); }
.job-card ul:not(.job-meta) { margin: 0; padding-left: 1.15em; color: var(--muted); font-size: var(--fs-300); display: grid; gap: 0.3em; }
.job-apply { display: grid; gap: 0.6rem; justify-items: stretch; min-width: 13rem; }
.job-apply .btn { width: 100%; }
.job-apply p { font-size: var(--fs-200); color: var(--muted); text-align: center; margin: 0; }

/* ---------- 22. Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.team-card { padding: 1.75rem 1.4rem; text-align: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tc-avatar { width: 6.5rem; height: 6.5rem; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--brand-tint); box-shadow: 0 0 0 4px var(--brand-tint); }
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.team-card h3 { font-size: var(--fs-500); margin-bottom: 0.15em; }
.team-card .tc-role { font-size: var(--fs-200); color: var(--brand-text); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 0.6em; }
.team-card p { font-size: var(--fs-300); color: var(--muted); }
.tc-contact { margin-top: 0.9em; padding-top: 0.9em; border-top: 1px solid var(--line-soft); display: grid; gap: 0.3em; font-size: var(--fs-200); }
.tc-contact a { display: inline-flex; align-items: center; gap: 0.4em; color: var(--slate); text-decoration: none; justify-content: center; }
.tc-contact a:hover { color: var(--brand-deep); }
.tc-contact .icon { width: 1em; height: 1em; color: var(--brand-deep); flex: none; }
.tc-avatar--more { display: flex; align-items: center; justify-content: center; }
.tc-avatar--more .icon { width: 2.6rem; height: 2.6rem; color: var(--brand-deep); }

/* ---------- 23. Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4.5vw, 3.5rem); align-items: start; }
.contact-cards { display: grid; gap: 1.1rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.contact-card .vi-icon { margin-top: 0.1rem; }
.contact-card h3 { font-size: var(--fs-500); margin-bottom: 0.2em; }
.contact-card p, .contact-card address { font-size: var(--fs-300); color: var(--muted); margin: 0; }
.contact-card a.big { font-size: var(--fs-600); font-weight: 650; color: var(--ink); text-decoration: none; }
.contact-card a.big:hover { color: var(--brand-deep); }
.contact-card--accent { border-color: #D9EAB6; background: var(--brand-tint); }
.contact-card--accent .vi-icon { background: var(--surface); }

/* ---------- Kundenstimmen (echte Google-Rezensionen) ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.review-card {
  display: flex; flex-direction: column; gap: 0.85rem; margin: 0;
  padding: 1.6rem 1.5rem; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
/* Gold statt Markengrün: die Sterne sollen sofort als Google-Bewertung lesbar
   sein. Rein dekorativ – den Wert trägt das aria-label. */
.rc-stars { display: inline-flex; gap: 0.2rem; margin: 0; color: #F0A500; }
.rc-stars .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.review-card blockquote { margin: 0; flex: 1; font-size: var(--fs-300); color: var(--text); line-height: 1.65; }
.review-card figcaption { font-size: var(--fs-200); font-weight: 650; color: var(--muted); }
@media (max-width: 60rem) {
  .review-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
}

/* ---------- FAQ (Startseite) ---------- */
.faq-list { max-width: 48rem; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; cursor: pointer; list-style: none;
  transition: background 0.15s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--brand-tint); }
.faq-item summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.faq-item summary h3 { margin: 0; font-size: var(--fs-400); font-weight: 650; color: var(--ink); }
.faq-item summary .icon { flex: none; width: 1.15rem; height: 1.15rem; color: var(--brand-deep); transition: transform 0.25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }  /* Plus wird zum X */
.faq-a { padding: 0 1.25rem 1.2rem; }
.faq-a p { margin: 0; font-size: var(--fs-300); color: var(--text); line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .faq-item summary .icon { transition: none; } }

/* ---------- Partner-Karte (Über uns) ---------- */
.partner-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  max-width: 56rem; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.pk-media { position: relative; min-height: 15rem; background: var(--mist); }
.pk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-copy { padding: clamp(1.5rem, 3vw, 2.25rem); }
.pk-eyebrow { margin: 0 0 0.4em; font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.partner-card h3 { font-size: var(--fs-600); margin: 0 0 0.3em; color: var(--ink); }
.pk-claim { margin: 0 0 0.8em; font-size: var(--fs-400); font-weight: 550; color: var(--slate); font-style: italic; }
.pk-copy > p:not(.pk-eyebrow):not(.pk-claim) { margin: 0 0 1.2em; font-size: var(--fs-300); color: var(--text); }
@media (max-width: 48rem) {
  .partner-card { grid-template-columns: 1fr; }
  .pk-media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Ansprechpartner-Karte (Karriere) ---------- */
.apartner {
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 48rem; margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
/* Bildausschnitt wie bei den Team-Karten: 12% von oben rückt das Gesicht
   in die Mitte des Kreises. */
.ap-photo {
  flex: none; width: clamp(6rem, 12vw, 8.5rem); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--brand-tint); box-shadow: 0 0 0 4px var(--brand-tint);
}
.ap-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.ap-eyebrow { margin: 0 0 0.35em; font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.ap-name { margin: 0 0 0.1em; font-size: var(--fs-600); color: var(--ink); }
.ap-role { margin: 0 0 0.7em; font-size: var(--fs-300); color: var(--muted); }
.ap-text { margin: 0 0 1.1em; max-width: 34em; font-size: var(--fs-300); color: var(--text); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
@media (max-width: 40rem) {
  .apartner { flex-direction: column; text-align: center; }
  .ap-text { margin-inline: auto; }
  .ap-actions { justify-content: center; }
}

.card--limited { max-width: 46rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); }
.hours-table th, .hours-table td { text-align: left; padding: 0.28em 0; vertical-align: top; }
.hours-table th { font-weight: 600; color: var(--ink); padding-right: 1.2em; white-space: nowrap; }
.hours-table td { color: var(--muted); }

/* Formular */
.form-card { padding: clamp(1.5rem, 3.5vw, 2.4rem); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.form-title { font-size: var(--fs-700); }
.form-intro { font-size: var(--fs-400); color: var(--muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-300); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 0.8em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: inherit; color: var(--ink); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(147 192 33 / 0.22); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.checkbox-field { grid-column: 1 / -1; display: flex; gap: 0.7em; align-items: flex-start; font-size: var(--fs-300); color: var(--muted); }
.checkbox-field input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--brand-deep); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.form-actions .form-note { font-size: var(--fs-200); color: var(--muted); margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { grid-column: 1 / -1; display: flex; gap: 0.7em; align-items: flex-start; padding: 0.95em 1.15em; border-radius: var(--r-sm); font-size: var(--fs-300); font-weight: 500; }
.alert .icon { flex: none; width: 1.3rem; height: 1.3rem; translate: 0 0.1em; }
.alert--ok { background: var(--ok-tint); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.alert--error { background: var(--err-tint); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }

/* Karte */
.map-embed { position: relative; min-height: 26rem; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); background: var(--mist); box-shadow: var(--shadow-sm); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; padding: 2rem; }
.map-consent .icon--lg { width: 2.6rem; height: 2.6rem; color: var(--brand-deep); margin-bottom: 0.4rem; }
.map-consent h3 { margin-bottom: 0.1em; }
.map-consent p { max-width: 34em; color: var(--muted); font-size: var(--fs-300); }
.map-consent .btn { margin-top: 0.7rem; }
.map-alt { font-size: var(--fs-200) !important; margin-top: 0.6rem !important; }

/* ---------- 24. Consent-Banner ---------- */
.consent-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 200; padding: 1rem; display: flex; justify-content: center; pointer-events: none; }
.cb-card { pointer-events: auto; max-width: 46rem; width: 100%; padding: 1.5rem 1.7rem; background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.cb-card h2 { font-size: var(--fs-500); margin-bottom: 0.4em; }
.cb-card p { font-size: var(--fs-300); color: var(--muted); margin-bottom: 1em; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- 25. Back-to-top & Mobile-Call ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 90; width: 3rem; height: 3rem; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--slate); }

/* WhatsApp-Kontakt: schwebend (Desktop/Tablet) + in der mobilen Leiste */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 94; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease), background-color 0.2s var(--ease); }
.wa-float:hover { background: #1FB457; color: #fff; transform: translateY(-3px); }
.wa-glyph { fill: currentColor; stroke: none; }
.wa-float .wa-glyph { width: 1.85rem; height: 1.85rem; }

.mobile-call { display: none; }

/* ---------- 26. Rechtstexte ---------- */
.legal-content { max-width: 52rem; }
.legal-content h2 { font-size: var(--fs-600); margin-top: 2em; color: var(--ink); }
.legal-content h3 { font-size: var(--fs-500); margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--text); }
.placeholder-mark { background: #FFF6D6; border: 1px dashed #D9B23A; border-radius: 4px; padding: 0.05em 0.4em; color: #7A5C00; font-weight: 600; }
.legal-stand { font-size: var(--fs-200); color: var(--muted); }

.section-cta { margin-top: clamp(2rem, 4vw, 2.75rem); }
.subsection { margin-top: clamp(3rem, 7vw, 5rem); }

/* ---------- 26b. Heizungs-Berater (interaktiv) ---------- */
.advisor {
  max-width: 46rem; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.advisor-progress { height: 4px; background: var(--line-soft); }
.advisor-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.45s var(--ease); }
.advisor-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.advisor-step-meta { font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.advisor-q { font-size: var(--fs-600); margin: 0.45em 0 1.2rem; color: var(--ink); }
.advisor-options { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.advisor-opt {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left;
  padding: 0.95rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.1s var(--ease);
}
.advisor-opt:hover { border-color: var(--brand); background: var(--brand-tint); }
.advisor-opt:active { transform: scale(0.99); }
.advisor-opt .opt-ic { width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-tint); color: var(--brand-deep); }
.advisor-opt .opt-ic .icon { width: 1.35rem; height: 1.35rem; }
.advisor-opt .opt-arrow { margin-left: auto; color: var(--muted); }
.advisor-opt .opt-arrow .icon { width: 1.2rem; height: 1.2rem; }
.advisor-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.advisor-back { display: inline-flex; align-items: center; gap: 0.4em; background: none; border: none; color: var(--muted); font: inherit; font-weight: 550; cursor: pointer; padding: 0.4em 0; }
.advisor-back:hover { color: var(--ink); }
.advisor-back .icon { width: 1.1em; height: 1.1em; }
.advisor-hint { margin: 1rem 0 0; font-size: var(--fs-200); color: var(--muted); text-align: center; }

.advisor-result { text-align: center; }
.res-badge { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 1.1em; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; font-size: var(--fs-300); margin-bottom: 1rem; }
.res-badge .icon { width: 1.1em; height: 1.1em; }
.advisor-result h3 { font-size: var(--fs-700); margin-bottom: 0.4em; }
.advisor-result > p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.res-list { text-align: left; max-width: 33em; margin: 1.4rem auto 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.res-list li { display: flex; gap: 0.7em; align-items: flex-start; color: var(--text); font-size: var(--fs-300); }
.res-list .icon { flex: none; width: 1.3rem; height: 1.3rem; color: var(--brand-text); translate: 0 0.1em; }
.advisor-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.7rem; }
.advisor-restart { display: inline-flex; align-items: center; gap: 0.45em; margin-top: 1.2rem; background: none; border: none; color: var(--muted); font: inherit; font-size: var(--fs-300); cursor: pointer; }
.advisor-restart:hover { color: var(--ink); }
.advisor-restart .icon { width: 1.05em; height: 1.05em; }
.advisor-disclaimer { margin: 1.4rem 0 0; font-size: var(--fs-200); color: var(--muted); text-align: center; }

/* Auswahlkachel mit Unterzeile (Gewerk-Auswahl) */
.advisor-opt .opt-txt { text-align: left; }
.advisor-opt .opt-txt small { display: block; margin-top: 0.15em; font-size: var(--fs-200); font-weight: 500; color: var(--muted); }

/* Ergebnis: zusätzlicher Hinweis je nach Antwort */
.advisor-note { display: flex; gap: 0.6em; align-items: flex-start; max-width: 34em; margin: 1.3rem auto 0; padding: 0.9em 1.1em; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--ink); font-size: var(--fs-300); text-align: left; }
.advisor-note .icon { flex: none; width: 1.2rem; height: 1.2rem; color: var(--brand-deep); translate: 0 0.1em; }

/* Zusammenfassung über dem Angebotsformular */
.advisor-summary { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--brand-tint); }
.advisor-summary .as-title { display: flex; align-items: center; gap: 0.5em; margin: 0 0 0.7rem; font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.advisor-summary .as-title .icon { width: 1.1rem; height: 1.1rem; }
.advisor-summary ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.advisor-summary li { display: flex; flex-wrap: wrap; gap: 0.2em 0.7em; font-size: var(--fs-300); }
.advisor-summary li span { color: var(--muted); min-width: 9rem; }
.advisor-summary li strong { font-weight: 600; color: var(--ink); }

/* Angebotsformular im Berater */
.advisor-form { text-align: left; }
.advisor-form textarea { min-height: 5.5rem; }
.advisor-form .plzort { grid-column: 1 / -1; display: grid; grid-template-columns: 8rem 1fr; gap: 1.1rem 1.25rem; }
/* Schmale Screens: PLZ nicht fast so breit wie der Ort werden lassen */
@media (max-width: 30rem) { .advisor-form .plzort { grid-template-columns: 6rem 1fr; } }
.advisor-form .form-actions { justify-content: space-between; }
.field label small { font-weight: 500; color: var(--muted); }
.advisor-form-status { grid-column: 1 / -1; }
.advisor-form-status:empty { display: none; }

/* Foto-Upload im Angebotsformular */
.foto-feld { display: grid; gap: 0.7rem; justify-items: start; }
.foto-feld [data-foto-input] { display: none; }
.foto-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; width: 100%; }
.foto-liste:empty { display: none; }
.foto-liste li { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-2); max-width: 100%; }
.foto-liste img { width: 2.8rem; height: 2.8rem; object-fit: cover; border-radius: 8px; flex: none; }
.fl-name { font-size: var(--fs-200); color: var(--text); max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foto-weg { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: none; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.foto-weg:hover { background: var(--err-tint); color: var(--err); }
.foto-weg .icon { width: 1rem; height: 1rem; }
.foto-fehler { margin: 0; font-size: var(--fs-200); color: var(--err); }

/* ---------- Angebot-Pop-up ---------- */
/* Scroll-Sperre rein über CSS: gilt automatisch, solange der Dialog offen ist,
   und löst sich von selbst – egal ob per Esc, Backdrop-Klick oder Button. */
html:has(.adv-dialog[open]) { overflow: hidden; }
.adv-dialog {
  width: min(46rem, 100% - 1.5rem); max-width: 46rem; padding: 0; border: none;
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.35); overflow: hidden;
}
.adv-dialog::backdrop { background: rgb(12 16 22 / 0.6); backdrop-filter: blur(3px); }
.adv-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.9rem 0.9rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.adv-dialog-title { display: inline-flex; align-items: center; gap: 0.5em; margin: 0; font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.adv-dialog-title .icon { width: 1.05rem; height: 1.05rem; }
.adv-dialog-close { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border: none; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.adv-dialog-close:hover { background: var(--line-soft); color: var(--ink); }
.adv-dialog-close .icon { width: 1.2rem; height: 1.2rem; }
.advisor--modal { max-width: none; margin: 0; border: none; border-radius: 0; box-shadow: none; max-height: min(72vh, 40rem); overflow-y: auto; }
.adv-dialog[open] { animation: advIn 0.28s var(--ease); }
.adv-dialog[open]::backdrop { animation: advFade 0.28s var(--ease); }
@keyframes advIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes advFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .adv-dialog[open], .adv-dialog[open]::backdrop { animation: none; }
}

/* ---------- 27. Responsive ---------- */
@media (max-width: 70rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1.5rem; }
  /* Engpass zwischen Tablet und Desktop: Logo, sechs Navigationspunkte,
     Telefonzeile, Angebot und Notdienst passen nicht nebeneinander. Die
     Telefonzeile weicht zuerst – der Notdienst-Button daneben führt zur
     selben Nummer. Unter 60rem kommt sie im Mobil-Header zurück. */
  .phone-link { display: none; }
}

@media (max-width: 60rem) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 10; }
  .cta-panel { grid-template-columns: 1fr; }
  .cp-aside { border-left: none; border-top: 1px solid rgb(255 255 255 / 0.15); padding: 1.5rem 0 0; }
  .contact-layout { grid-template-columns: 1fr; }

  .process-steps, .process-steps--3 { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps::before, .process-steps--3::before { top: 0.4rem; bottom: 0.4rem; left: calc(var(--node)/2 - 1px); right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-tint2), var(--brand) 55%, var(--brand-tint2)); }
  .step { display: grid; grid-template-columns: var(--node) 1fr; gap: 0 1.25rem; text-align: left; align-items: start; }
  .step-node { margin: 0; grid-row: 1 / 3; }
  .step h3, .step p { grid-column: 2; }

  /* Mobile Navigation */
  .nav-toggle { display: inline-flex; }
  /* Hier ist wieder Platz: Nav und Angebot wandern ins Burger-Menü,
     die Telefonnummer kommt zurück in den Header. */
  .phone-link { display: flex; }
  .phone-link .phone-label { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: rgb(29 31 39 / 0.97); backdrop-filter: blur(20px); border-bottom: 1px solid rgb(255 255 255 / 0.1); padding: 0.75rem 1.25rem 1.5rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0.1rem; }
  .nav-list a { display: block; padding: 0.8em 0.6em; font-size: var(--fs-500); color: #E4E7EC; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--brand); }
  .nav-cta { display: block; margin-top: 0.9rem; }
  .nav-cta .btn { width: 100%; }
  .nav-cta .btn + .btn { margin-top: 0.6rem; }
  /* Im Header ist mobil kein Platz – der Angebots-Button steht im Menü */
  .header-angebot { display: none; }
}

@media (max-width: 48rem) {
  .topbar-inner { justify-content: center; }
  .topbar-item { display: none; }
  .header-notdienst { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; }
  .job-apply { min-width: 0; justify-items: start; }
  .job-apply .btn { width: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero { min-height: 88vh; }

  /* Feste Anruf-Leiste unten */
  .mobile-call { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 95; gap: 1px; background: rgb(255 255 255 / 0.1); box-shadow: 0 -4px 20px rgb(0 0 0 / 0.15); }
  .mobile-call a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.9em 0.4em; font-weight: 600; font-size: var(--fs-300); text-decoration: none; }
  .mobile-call .mc-call { background: var(--red); color: #fff; }
  .mobile-call .mc-wa { background: #25D366; color: #fff; }
  .mobile-call .mc-quote { background: var(--ink); color: var(--paper); }
  .mobile-call .icon { width: 1.2em; height: 1.2em; }
  .mobile-call .wa-glyph { width: 1.25em; height: 1.25em; flex: none; }
  .wa-float { display: none; }
  .to-top { bottom: 4.5rem; }
  body { padding-bottom: 3.25rem; }
}

@media (max-width: 30rem) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   28. Theme-Umschalter & Dark Mode
   Der Dark Mode wird über [data-theme="dark"] am <html> aktiviert.
   Ein Inline-Script im <head> setzt das Attribut vor dem Rendern
   (aus localStorage oder – ohne gespeicherte Wahl – der System-
   einstellung), daher genügt hier ein einziger Token-Block.
   ============================================================ */
.theme-toggle {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: 10px;
  background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.theme-toggle:hover { background: rgb(255 255 255 / 0.14); }
.theme-toggle .icon { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] {
  --paper:      #14161B;
  --surface:    #1E2128;
  --surface-2:  #262A33;
  --mist:       #191C22;
  --mist-2:     #202430;
  --ink:        #F3F5F8;
  --text:       #C3C8D1;
  --muted:      #8B929E;
  --slate:      #AAB1BC;
  --line:       #363B45;
  --line-soft:  #2A2E38;
  --brand-text: #A6D62E;
  --brand-deep: #A6D62E;
  --brand-tint: #232E17;
  --brand-tint2:#2C3A1E;
  --ok:      #82DBA1;
  --ok-tint: #15301E;
  --err:     #F19A90;
  --err-tint:#341813;
  --red-tint: #2A1613;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px rgb(0 0 0 / 0.4);
  --shadow-md: 0 3px 10px rgb(0 0 0 / 0.4), 0 20px 44px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.5), 0 40px 90px rgb(0 0 0 / 0.65);
}
[data-theme="dark"] body { background: var(--paper); }
/* Spezialfälle mit festen hellen Werten im Light-Theme */
[data-theme="dark"] .cb-card { background: rgb(30 33 40 / 0.9); border-color: var(--line); }
[data-theme="dark"] .emergency-band { border-color: #3C221E; }
[data-theme="dark"] .contact-card--accent { border-color: #33421F; }
[data-theme="dark"] .placeholder-mark { background: #38310F; border-color: #6E5F20; color: #EBD68C; }
/* Sanfter Farbübergang beim Umschalten */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: none !important; }
}
