/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-ink: #1d1d1f;
  --color-ink-muted: rgba(29, 29, 31, 0.62);
  --color-accent: oklch(58% 0.15 250);
  --color-accent-100: oklch(96% 0.015 250);
  --color-accent-200: oklch(92% 0.03 250);
  --color-accent-600: oklch(52% 0.145 250);
  --color-accent-700: oklch(46% 0.135 250);
  --color-divider: rgba(29, 29, 31, 0.1);
  --color-warning-bg: #fff4e5;
  --color-warning-border: #f0b429;
  --color-warning-ink: #7a4a00;

  /* Secondary accent family used for icon tiles / bento tints, kept in the
     same tonal register as --color-accent so the page reads as one system. */
  --color-mint: oklch(70% 0.11 175);
  --color-mint-100: oklch(94% 0.03 175);
  --color-mint-700: oklch(42% 0.09 175);
  --color-amber: oklch(75% 0.13 70);
  --color-amber-100: oklch(94% 0.05 70);
  --color-amber-700: oklch(48% 0.12 70);
  --color-violet: oklch(62% 0.13 320);
  --color-violet-100: oklch(94% 0.03 320);
  --color-violet-700: oklch(46% 0.12 320);

  /* Rich dark navy for high-impact sections (hero, final CTA) — same hue
     family as --color-accent so it reads as "our blue, turned all the way
     up" rather than an unrelated dark theme bolted on. */
  --color-ink-900: oklch(21% 0.045 255);
  --color-ink-800: oklch(27% 0.05 255);
  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-dark-divider: rgba(255, 255, 255, 0.16);

  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 20px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);

  --max-width: 1180px;
  --nav-height: 64px;
  --touch-target: 44px;

  --transition-fast: 0.2s ease;
  --transition-standard: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  /* German compounds (e.g. "Vollkaskoversicherung") are long, unbreakable
     single words — without this they overflow narrow columns/cards on
     small phones instead of wrapping. */
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(34px, 8vw, 60px); font-weight: 800; }
h2 { font-size: clamp(27px, 5.5vw, 44px); font-weight: 800; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-body);
}
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--color-accent-700); }
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: color-mix(in srgb, var(--color-accent) 25%, transparent); }

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

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Anchors targeted from the sticky nav must not end up hidden underneath it. */
#leistungen, #warum-wir, #angebot, #bewertungen, #faq {
  scroll-margin-top: calc(var(--nav-height) + var(--space-3));
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
}
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
/* Why-us tiles: capped at 2 columns even on desktop (unlike .grid-4, which
   goes to 4-across) — 4 narrow columns squeezed each card's short heading
   + copy into an uncomfortably tight, uneven-looking box. 2 columns give
   each tile roughly double the width. */
.why-grid { grid-template-columns: 1fr; }
/* Grid items default to min-width:auto, which floors them at their content's
   intrinsic width (e.g. a long unbroken German compound word like
   "Vollversicherung") — that can force a track wider than its 1fr share and
   push the whole grid past the viewport on narrow phones. min-width:0 lets
   items actually shrink to their track and wrap normally instead. */
.grid > * { min-width: 0; }

.eyebrow { color: var(--color-accent); margin-bottom: var(--space-2); }
.lede { color: var(--color-ink-muted); max-width: 56ch; }
.text-center { text-align: center; }

/* Progressive-enhancement scroll reveal: visible by default (no-JS / reduced
   motion / crawlers all see full content immediately). Only animates once
   main.js opts the page in via html.js-reveal, and only for users who don't
   ask for reduced motion. */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   4. Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  min-height: var(--touch-target);
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  touch-action: manipulation;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--color-accent) 60%, transparent);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-divider);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: var(--color-accent-600); transform: translateY(-1px); }
  .btn-secondary:hover { background: color-mix(in srgb, var(--color-ink) 6%, var(--color-surface)); }
  .btn .icon-arrow { transition: transform var(--transition-fast); }
  .btn:hover .icon-arrow { transform: translateX(3px); }
}
.btn-primary:active:not(:disabled) { background: var(--color-accent-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 0 var(--space-4); font-size: 14px; min-height: var(--touch-target); }

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

@media (hover: hover) and (pointer: fine) {
  .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.tag-outline { border: 1px solid var(--color-divider); color: var(--color-ink-muted); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-700); }
.tag-neutral { background: var(--color-surface); color: var(--color-ink-muted); }
.tag-gold { background: var(--color-amber-100); color: var(--color-amber-700); font-weight: 600; border: 1px solid color-mix(in srgb, var(--color-amber) 35%, transparent); }

/* --- Forms --- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-muted);
}
.input {
  width: 100%;
  min-height: var(--touch-target);
  padding: 10px 14px;
  font: inherit;
  font-size: 16px; /* keep >=16px: iOS Safari auto-zooms on focus below this */
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}
.input:focus-visible { border-color: var(--color-accent); }
@media (hover: hover) and (pointer: fine) {
  .input:hover { border-color: color-mix(in srgb, var(--color-ink) 35%, transparent); }
}

.radio-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-target);
  padding: var(--space-4);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
  .radio-card:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-divider)); }
}
.radio-card input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.radio-card .dot {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio-card input:checked ~ .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 4px #fff;
}
.radio-card:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-100);
}
.radio-card input:focus-visible ~ .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.radio-card .label-text { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }

.field-full { grid-column: 1 / -1; }

/* Compact Ja/Nein segmented toggle (e.g. Aufzug vorhanden?) */
.seg-toggle {
  display: inline-flex;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content;
}
.seg-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  min-width: 72px;
  padding: 0 var(--space-4);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.seg-toggle input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.seg-toggle label:has(input:checked) { background: var(--color-accent); color: #fff; }
.seg-toggle label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* Same clip technique as .sr-only. Deliberately NOT positioned off-canvas
   (e.g. left:-9999px) — that pattern can widen the page's scrollable area
   in some browsers and was the actual cause of a stray horizontal-scroll
   sliver on narrow phones. Screen readers still skip it via aria-hidden on
   the wrapper and tabindex="-1" on the input (set in the HTML). */
.honeypot-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* The input's own natural width (~170-200px, from the UA stylesheet) is
   wider than its 1px clipping box — constrain it directly too, since a
   child that only relies on an ancestor's overflow:hidden can still end up
   counted in the viewport's scrollable area in some browsers. */
.honeypot-field input { width: 1px; }

.form-error {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-ink);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: 14px;
  margin-top: var(--space-3);
}
.form-error[hidden] { display: none; }

/* ==========================================================================
   5. Site chrome: nav + mobile menu + footer
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.97); }
}
.nav.is-scrolled { border-color: var(--color-divider); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; gap: var(--space-5); width: 100%; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-right: auto;
}
.brand-icon { width: 32px; height: 32px; object-fit: contain; flex: none; }
.brand-accent { color: var(--color-amber-700); }
/* Below tablet width, the full wordmark + nav CTA + menu toggle don't all
   fit — show the icon alone (still fully named via aria-label on the
   parent link/div) and reveal the wordmark from 641px up. */
.brand-text { display: none; }
.nav-links { display: none; gap: var(--space-5); }
.nav-links a { color: var(--color-ink); font-size: 15px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--color-accent); }
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-phone { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  color: var(--color-ink);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) max(var(--space-4), env(safe-area-inset-left)) calc(var(--space-5) + env(safe-area-inset-bottom));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu .btn-secondary { width: 100%; margin-top: var(--space-4); }

footer {
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}
.footer-grid h5 { margin-bottom: var(--space-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--color-ink-muted); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--color-accent); }
}
.footer-cta { text-align: center; margin-bottom: var(--space-6); }
.footer-bottom { font-size: 13px; color: var(--color-ink-muted); }
.hr { height: 1px; background: var(--color-divider); border: 0; margin: 0 0 var(--space-5); }

/* ==========================================================================
   6. Page sections
   ========================================================================== */

/* Hero — rich dark navy, matching the reference's high-impact first
   impression instead of a flat white fold. Same hue family as the brand
   blue (--color-ink-900/800), not an unrelated dark theme. */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-6);
  background:
    linear-gradient(160deg, rgba(9, 18, 32, 0.72) 0%, rgba(15, 30, 51, 0.6) 100%),
    url('../assets/images/hero-photo.jpg') center 62% / cover no-repeat;
  color: var(--on-dark);
}
.hero-content { max-width: 620px; }
.hero-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero-badges .tag-outline {
  background: color-mix(in srgb, var(--color-amber) 18%, transparent);
  border-color: color-mix(in srgb, var(--color-amber) 45%, transparent);
  color: var(--color-amber);
  font-weight: 600;
}
.hero h1 { max-width: 16ch; color: var(--on-dark); }
.hero-lede { font-size: 18px; color: var(--on-dark-muted); max-width: 46ch; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero .btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); border-color: var(--on-dark-divider); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }
}
.hero-rating { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--on-dark-muted); }
.hero-rating .stars { display: inline-flex; gap: 2px; color: var(--color-amber); }
.hero-stats-note { color: var(--on-dark-muted); font-size: 12px; margin-top: var(--space-2); }

.hero-floating-badge {
  position: relative;
  margin-top: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}
@media (min-width: 1024px) {
  .hero-floating-badge {
    position: absolute;
    bottom: var(--space-5);
    right: max(var(--space-5), env(safe-area-inset-right));
    margin-top: 0;
  }
}
.hero-floating-badge .trust-icon { color: var(--color-mint-700); display: inline-flex; flex: none; }
.hero-floating-badge strong { font-family: var(--font-heading); font-size: 15px; color: var(--color-ink); }
.hero-floating-badge span.detail { font-size: 12px; color: var(--color-ink-muted); display: block; }

/* Stats — glass tiles instead of opaque white cards, so they read as part
   of the dark photo hero rather than a separate white block bolted below
   it. Value color matches the gold CTA/badges for one cohesive accent. */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}
.stat-tile {
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--on-dark-divider);
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--color-amber);
}
.stat-label { font-size: 13px; color: var(--on-dark-muted); }

/* Services / Why-us grids reuse .grid-2/.grid-3/.grid-4 + .card */
.service-card p, .why-item p { color: var(--color-ink-muted); font-size: 14px; }
.why-item { background: #fff; border: 1px solid var(--color-divider); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: var(--space-5); transition: transform var(--transition-standard), box-shadow var(--transition-standard); }
.why-item .card-icon { width: 40px; height: 40px; border-radius: 12px; }

/* Quote form section */
.quote-section { background: var(--color-surface); }
.quote-grid { display: grid; gap: var(--space-6); }
.quote-note { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--color-ink-muted); margin-top: var(--space-4); }

.quote-card { background: #fff; padding: var(--space-5); border-radius: var(--radius-lg); }
.quote-progress { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.quote-progress .seg { flex: 1; height: 4px; border-radius: 2px; background: var(--color-divider); transition: background var(--transition-fast); }
.quote-progress .seg.is-filled { background: var(--color-accent); }

.quote-step[hidden] { display: none; }
.quote-step h4 { margin-bottom: var(--space-3); }
.radio-group { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-4) 0; }
.step-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.step-actions .btn-primary { flex: 1; }

.quote-success { text-align: center; padding: var(--space-5) 0; }
.quote-success .checkmark { color: var(--color-mint-700); margin: 0 auto var(--space-3); }

/* Process steps */
.process-step .step-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: var(--space-3);
}

/* Service area */
.city-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Testimonials */
.testimonial .stars { display: inline-flex; gap: 2px; color: var(--color-amber); margin-bottom: var(--space-2); }
.testimonial blockquote { margin: 0 0 var(--space-3); font-style: italic; }
.testimonial-meta { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--color-ink-muted); }
.testimonial-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex: none;
}

/* FAQ (shared: homepage teaser + faq.html) */
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--touch-target);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-4) 0;
  cursor: pointer;
  touch-action: manipulation;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-ink);
}
.faq-question .icon { color: var(--color-accent); flex: none; transition: transform var(--transition-standard); }
.faq-question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 var(--space-4); color: var(--color-ink-muted); }
.faq-answer[hidden] { display: none; }

/* Brand moment — a brief, quiet pause between Leistungen and Warum-wir to
   reinforce the logo once outside the nav/footer, not a full section. */
.brand-moment { padding: var(--space-6) 0; text-align: center; }
.brand-moment img { width: 220px; height: auto; margin: 0 auto; }

/* WhatsApp floating contact button — fixed on every page, common pattern
   for German local-service sites. Sits above page content by design. */
.whatsapp-fab {
  position: fixed;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  z-index: 60;
  touch-action: manipulation;
  transition: transform var(--transition-fast);
}
.whatsapp-fab:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-fab:hover { transform: scale(1.08); }
}

/* CTA banner — same rich dark navy as the hero, so the two "high-impact"
   moments of the page bookend it deliberately rather than reading as
   two unrelated color choices. */
.cta-banner {
  background: linear-gradient(160deg, var(--color-ink-900) 0%, var(--color-ink-800) 100%);
  color: var(--on-dark);
}
.cta-banner h2, .cta-banner h6 { color: var(--on-dark); }
.cta-banner h6 { opacity: 0.85; }
.cta-banner-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.cta-banner p { color: var(--on-dark-muted); max-width: 44ch; }
.cta-banner-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-banner .btn-secondary { background: rgba(255, 255, 255, 0.1); border-color: var(--on-dark-divider); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .cta-banner .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }
}

/* Gold/amber CTA — reserved for the two dark sections (hero + cta-banner)
   where it reads as the premium, unmissable action against the dark
   backdrop; everywhere else on light backgrounds the blue btn-primary
   already carries that job, so this isn't a second competing brand color. */
.btn-gold {
  background: var(--color-amber);
  color: #2a1a02;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--color-amber-700); color: #fff; transform: translateY(-1px); }
}
.btn-gold:active:not(:disabled) { background: var(--color-amber-700); }

/* Legal / placeholder pages */
.page-header { padding: var(--space-5) 0 var(--space-4); }
.notice-banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-ink);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: 14px;
}
.notice-banner .icon { color: var(--color-warning-border); margin-top: 2px; }
.notice-banner strong { display: block; margin-bottom: 2px; }
.legal-content h2 { margin-top: var(--space-6); }
.legal-content p, .legal-content li { color: var(--color-ink-muted); }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--space-3); }
.placeholder { color: var(--color-warning-ink); background: var(--color-warning-bg); padding: 1px 6px; border-radius: 4px; font-style: normal; }

/* ==========================================================================
   7. Utilities
   ========================================================================== */
.hide-mobile { display: none; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   8. Media queries (mobile-first, 3 tiers)
   ========================================================================== */
@media (min-width: 641px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .hero-ctas .btn { flex: 0 1 auto; }
  .brand-text { display: inline; }
}

@media (min-width: 1024px) {
  .hide-mobile { display: initial; }
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .quote-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  /* Center the primary CTA in the header bar itself, independent of the
     logo/nav-links on the left and the phone number on the right — pulled
     out of the flex flow so it stays centered no matter how wide either
     side group is. Only at desktop widths: on mobile/tablet it stays
     inline before the menu toggle (already verified not to overflow). */
  .nav .container { position: relative; }
  .nav-actions .btn-gold {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ==========================================================================
   9. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .btn-primary:hover:not(:disabled),
  .btn:active:not(:disabled),
  .card-hover:hover {
    transform: none;
  }
}
