/* ===================================================================
   SANITÄR STUTTGART · site.css  (Phase A — shared, linked unedited)
   Style: Notfall-Bold × Trade: Sanitär × City: Stuttgart
   Palette: deep water-blue primary + amber CTA (phone-only)
   WCAG 2.1 AA verified contrast pairs throughout
   NO form tokens — phone-only channel
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colour — Sanitär water-blue palette */
  --color-primary:          #0b5491;   /* deep SHK blue — white text 6.8:1 ✓ */
  --color-primary-hover:    #083f70;
  --color-primary-subtle:   #dceaf7;   /* tint — text #0b5491 on this: 5.4:1 ✓ */
  --color-text-on-primary:  #ffffff;

  /* CTA — reserved ONLY for phone/call actions */
  --color-cta:              #f08a1d;   /* amber orange */
  --color-cta-hover:        #d2730f;
  --color-text-on-cta:      #180e00;   /* near-black on amber: 9.2:1 ✓ */

  /* Backgrounds & surfaces */
  --color-bg:               #f7fbfe;   /* near-white, slight blue tint */
  --color-surface:          #ffffff;
  --color-surface-alt:      #edf4fb;   /* section tint */
  --color-border:           #ccd8e5;
  --color-border-strong:    #aac0d6;

  /* Text */
  --color-text:             #0e2033;   /* deep navy — 14.8:1 on bg ✓ */
  --color-text-muted:       #3d566e;   /* 6.5:1 on bg ✓ — never grey-on-grey */
  --color-focus:            #082333;   /* distinct from primary — 16:1 ✓ */

  /* Status */
  --color-success:          #166534;
  --color-success-bg:       #f0fdf4;
  --color-danger:           #b91c1c;   /* gas/flood safety notices — serious */
  --color-danger-bg:        #fef2f2;
  --color-warning:          #92400e;
  --color-warning-bg:       #fffbeb;

  /* Typography — German-legible grotesque system stack */
  --font-body:    'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-size-base:      1.125rem;   /* 18px — WCAG floor, older readers */
  --line-height-body:    1.65;
  --line-height-heading: 1.16;
  --measure:             68ch;
  --font-weight-body:    400;
  --font-weight-bold:    700;

  /* Modular scale 1.25 */
  --font-size-sm:   0.875rem;   /*  14px */
  --font-size-md:   1rem;       /*  16px */
  --font-size-lg:   1.25rem;    /*  20px */
  --font-size-xl:   1.5625rem;  /*  25px */
  --font-size-2xl:  1.953rem;   /*  31px */
  --font-size-3xl:  2.441rem;   /*  39px */

  /* Spacing ramp (×1.5 steps) */
  --sp-1:  0.25rem;  /*  4px */
  --sp-2:  0.5rem;   /*  8px */
  --sp-3:  0.75rem;  /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.25rem;  /* 20px */
  --sp-6:  1.5rem;   /* 24px */
  --sp-7:  2rem;     /* 32px */
  --sp-8:  2.5rem;   /* 40px */
  --sp-9:  3rem;     /* 48px */
  --sp-10: 4rem;     /* 64px */
  --sp-11: 4.75rem;  /* 76px — section padding */
  --sp-12: 6rem;     /* 96px — hero vertical padding */

  /* Radius personality — moderate, professional (not pill-everything, not sharp) */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-pill: 999px;

  /* Shadow — one restrained elevation system, no glow */
  --sh-sm:  0 1px 3px rgba(8,32,64,.07);
  --sh-md:  0 8px 24px rgba(8,32,64,.10);
  --sh-lg:  0 20px 52px rgba(8,32,64,.16);

  /* Layout */
  --c-max:  1280px;
  --tap:    44px;

  /* Motion — calm, never animate CTA in/out */
  --dur-fast: 0.15s;
  --dur:      0.25s;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

/* Accessibility — full motion disable */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; /* clip off-canvas drawer (fixed) without breaking sticky */ }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
lang-de { hyphens: auto; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: -.01em;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-border);
  padding: 5px 13px;
  border-radius: var(--r-pill);
}
.eyebrow--on-dark {
  color: var(--color-text-on-primary);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}

.lead {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  max-width: 52ch;
  line-height: 1.55;
}
.lead--on-dark { color: rgba(255,255,255,.82); }

p { max-width: var(--measure); }
p + p { margin-top: var(--sp-4); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--c-max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section { padding: var(--sp-11) 0; }
.section--tint  { background: var(--color-surface-alt); }
.section--dark  {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-text-on-primary); }
.section--footer { background: #091a2e; color: #b0c4d8; }

.section-head {
  max-width: 58ch;
  margin: 0 auto var(--sp-9);
  text-align: center;
}
.section-head .eyebrow { display: block; margin-bottom: var(--sp-4); }
.section-head h2 { margin-top: var(--sp-3); }
.section-head .lead { margin: var(--sp-4) auto 0; }

/* ===== GRID ===== */
.grid { display: grid; gap: var(--sp-6); }
.g2   { grid-template-columns: repeat(2, 1fr); }
.g3   { grid-template-columns: repeat(3, 1fr); }
.g4   { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ===== CARD ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur),
    border-color var(--dur);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--color-border-strong);
}
.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-surface-alt);
  display: block;
}
.card__body { padding: 1.4rem 1.5rem 1.6rem; }
/* When card__body is the first child (no photo above), give the badge room */
.card > .card__body:first-child { padding-top: 1.8rem; }
.card > .card__body:first-child .icon-badge { margin-top: 0; }

/* Icon badge floating on card edge */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  position: relative;
  margin: -38px 0 var(--sp-4);
  border: 3px solid var(--color-surface);
  box-shadow: var(--sh-sm);
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--sp-2); }
.card p  { color: var(--color-text-muted); font-size: .97rem; }
.more-link {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-4);
  color: var(--color-primary);
  font-weight: 700;
  font-size: .9rem;
}
.more-link svg { width: 15px; height: 15px; transition: transform var(--dur-fast); }
.card:hover .more-link svg { transform: translateX(3px); }

/* ===== IMAGE PLACEHOLDER (partner photos) ===== */
.imgph {
  background: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-5);
  color: var(--color-text-muted);
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.4;
}


/* ===== SITE-IMG (real photos — replaces imgph placeholders) ===== */
.site-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: none;
  max-width: 100%;
}
/* Card images: fixed 16:10 ratio, always fill card */
.site-img.card__img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Feature-split column images: fill the full column height */
.feature-split .site-img,
.feature-split--reverse .site-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
/* Hero media images: handled by .hero-media img rule already, reinforce */
.hero-media .site-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
/* Gallery images */
.gallery .site-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur),
    background var(--dur),
    border-color var(--dur);
  min-height: var(--tap);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Phone CTA — ONLY for call action */
.btn-call {
  background: var(--color-cta);
  color: var(--color-text-on-cta);
  box-shadow: 0 5px 18px rgba(240,138,29,.32);
}
.btn-call:hover { background: var(--color-cta-hover); box-shadow: 0 8px 22px rgba(240,138,29,.42); }

.btn-ghost {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-on-dark {
  background: var(--color-surface);
  color: var(--color-primary);
}
.btn-on-dark:hover { background: var(--color-surface-alt); }

.btn-lg { padding: 16px 30px; font-size: 1.1rem; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 10px 16px;
  z-index: 400;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,251,254,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--sh-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 800;
  color: var(--color-text);
  font-size: 1.02rem;
  flex: none;
  text-decoration: none;
}
.nav-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  color: var(--color-text-on-primary);
  flex: none;
}
.nav-brand__mark svg { width: 22px; height: 22px; }
.nav-brand small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* Primary nav links */
.nav-menu {
  display: flex;
  gap: 2px;
  margin-left: var(--sp-4);
}
.nav-menu > a,
.dropdown__trigger {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--tap);
  text-decoration: none;
}
.nav-menu > a:hover,
.dropdown__trigger:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.nav-menu > a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__chevron { width: 14px; height: 14px; transition: transform var(--dur-fast); flex: none; }
.dropdown__trigger[aria-expanded="true"] .dropdown__chevron { transform: rotate(180deg); }

.dropdown__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: var(--sp-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 20;
}
.dropdown__panel--open,
.dropdown__panel:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.dropdown__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.dropdown__panel a:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.dropdown__panel--wide { min-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown__divider {
  grid-column: 1 / -1;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 10px 4px;
}

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-phone { text-align: right; line-height: 1.15; }
.nav-phone b { display: block; color: var(--color-text); font-size: 1.02rem; }
.nav-phone span { font-size: .72rem; color: var(--color-success); font-weight: 700; }

.burger {
  display: none;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  background: var(--color-surface);
  cursor: pointer;
  place-items: center;
}

/* ===== MOBILE DRAWER ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,32,64,.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur);
  z-index: 150;
  overflow: hidden; /* clip the off-canvas panel so it can't create horizontal scroll */
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--color-surface);
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
}
.drawer-overlay.open .drawer-panel { transform: none; }
.drawer-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--sp-2);
  line-height: 1;
  min-height: var(--tap);
  min-width: var(--tap);
}
.drawer-panel > a {
  padding: 12px var(--sp-3);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.drawer-panel > a:hover { background: var(--color-surface-alt); }

/* Drawer accordion sub-nav */
.dacc__trigger {
  width: 100%;
  text-align: left;
  padding: 12px var(--sp-3);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1.05rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  min-height: var(--tap);
}
.dacc__trigger:hover { background: var(--color-surface-alt); }
.dacc__chevron { width: 18px; height: 18px; transition: transform var(--dur-fast); flex: none; }
.dacc__trigger[aria-expanded="true"] .dacc__chevron { transform: rotate(180deg); }
.dacc__body { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.dacc__body a {
  padding: 9px var(--sp-3) 9px 2rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  display: block;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.dacc__body a:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.drawer-cta { margin-top: var(--sp-5); }

/* ===== HERO — full-color primary band (Notfall-Bold signature) ===== */
.hero {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  overflow: hidden;
  padding: 0;
}

/* Split hero variant (home + most service pages) */
.hero--split .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-10);
  align-items: center;
  padding: var(--sp-12) 0 var(--sp-11);
}
.hero h1 { color: var(--color-text-on-primary); }
.hero .lead--on-dark { margin: var(--sp-5) 0 var(--sp-7); }
.hero-cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.hero-notes {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}
.hero-notes span { display: inline-flex; gap: var(--sp-2); align-items: center; }
.hero-notes svg { width: 16px; height: 16px; color: #86efac; flex: none; }

.hero-media { position: relative; }
.hero-media .imgph,
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

.hero-badge {
  position: absolute;
  left: -16px;
  bottom: -16px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hero-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: grid;
  place-items: center;
  flex: none;
}
.hero-badge__icon svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-size: 1.02rem; line-height: 1.2; }
.hero-badge small { color: var(--color-text-muted); font-size: .76rem; }

/* Emergency-bar hero variant (Notdienst page) */
.hero--emergency {
  padding: var(--sp-10) 0;
  text-align: center;
}
.hero--emergency .hero-num {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-cta);
  display: block;
  margin: var(--sp-5) auto;
  text-decoration: none;
  letter-spacing: -.02em;
}
.hero--emergency .hero-num:hover { color: var(--color-cta-hover); }

/* Solid-panel hero variant (FAQ, Preise, Über uns — calmer pages) */
.hero--solid {
  padding: var(--sp-10) 0 var(--sp-9);
}
.hero--solid .hero-inner {
  max-width: 58ch;
}

/* Local-context hero (Stadtteil pages) */
.hero--local .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: start;
  padding: var(--sp-11) 0;
}
.hero--local .local-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
}
.hero--local .local-card h2 {
  color: var(--color-text-on-primary);
  font-size: 1.45rem;
  margin-bottom: var(--sp-4);
}
.hero--local .local-card p { color: rgba(255,255,255,.88); max-width: none; font-size: .97rem; } /* .8→.88: 4.47→4.99:1 on card bg (#28699e) ✓ */

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  padding: var(--sp-6) 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: .94rem;
  color: var(--color-text);
}
.trust-item svg { width: 24px; height: 24px; color: var(--color-primary); }

/* ===== STEPS ===== */
.steps { display: grid; gap: var(--sp-5); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  position: relative;
}
.step__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); color: var(--color-text); }
.step p  { color: var(--color-text-muted); font-size: .94rem; max-width: none; }
/* Step cards are white surfaces even on a dark band — keep their text dark */
.section--dark .step h3 { color: var(--color-text); }
.section--dark .step p  { color: var(--color-text-muted); }

/* Vertical timeline steps variant */
.vsteps { display: flex; flex-direction: column; gap: 0; }
.vstep {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.vstep:not(:last-child) { padding-bottom: var(--sp-7); }
.vstep__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.vstep__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.vstep__connector {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: 4px;
  min-height: 32px;
}
.vstep:last-child .vstep__connector { display: none; }
.vstep__body { padding-top: 8px; }
.vstep__body h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.vstep__body p { color: var(--color-text-muted); font-size: .96rem; max-width: none; }

/* ===== ICON LIST ===== */
.icon-list { display: grid; gap: var(--sp-5); }
.icon-list--2 { grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-8); }

.icon-list__item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.icon-list__mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}
.icon-list__mark svg { width: 22px; height: 22px; }
.icon-list__item h3 { font-size: 1.02rem; margin-bottom: var(--sp-1); }
.icon-list__item p  { color: var(--color-text-muted); font-size: .93rem; max-width: none; }

/* Checklist variant */
.checklist { display: flex; flex-direction: column; gap: var(--sp-4); }
.checklist li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--font-size-base);
}
.checklist li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== NOTICE (danger/safety) ===== */
.notice {
  display: flex;
  gap: var(--sp-4);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-7);
  border: 1px solid;
}
.notice--danger {
  background: var(--color-danger-bg);
  border-color: #fca5a5;
  border-left: 4px solid var(--color-danger);
}
.notice--danger svg { color: var(--color-danger); }
.notice--success {
  background: var(--color-success-bg);
  border-color: #bbf7d0;
  border-left: 4px solid var(--color-success);
}
.notice--success svg { color: var(--color-success); }
.notice--warning {
  background: var(--color-warning-bg);
  border-color: #fde68a;
  border-left: 4px solid var(--color-warning);
}
.notice--warning svg { color: var(--color-warning); }
.notice > svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.notice__body b  { display: block; margin-bottom: var(--sp-2); font-size: 1.02rem; }
.notice__body p  { max-width: none; color: var(--color-text); margin: 0; }
.notice__body ol,
.notice__body ul { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 820px; margin: var(--sp-8) auto 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: var(--sp-6) var(--sp-7);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: center;
  font-family: var(--font-body);
  min-height: var(--tap);
}
.faq-item__q:hover { color: var(--color-primary); }
.faq-item__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  transition: transform var(--dur);
}
.faq-item[aria-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__body { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq-item__body p  { padding: 0 var(--sp-7) var(--sp-6); color: var(--color-text-muted); max-width: none; }
.faq-item__body a  { color: var(--color-primary); text-decoration: underline; }

/* ===== CHIPS (Stadtteile coverage) ===== */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
  transition: border-color var(--dur-fast), color var(--dur-fast);
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  text-align: center;
  padding: var(--sp-11) 0;
}
.cta-band h2 { color: var(--color-text-on-primary); }
.cta-band p  { color: rgba(255,255,255,.8); margin: var(--sp-4) auto var(--sp-7); max-width: 52ch; max-width: none; }
/* Override inline opacity on sub-copy: .8 opacity white on #0b5491 = 5.9:1, passes WCAG AA */
.cta-band .cta-stack p { opacity: 1 !important; }
.cta-band .cta-stack { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }

/* ===== STAT RAIL ===== */
.stat-rail { display: grid; gap: var(--sp-6); text-align: center; }
.stat-rail--3 { grid-template-columns: repeat(3, 1fr); }
.stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat__label { color: var(--color-text-muted); font-size: .95rem; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.gallery figure { margin: 0; }
.gallery img, .gallery .imgph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-md);
}
.gallery figcaption {
  margin-top: var(--sp-2);
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  font-size: .88rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: var(--sp-3) 0;
  font-size: .85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--color-border-strong); }

/* ===== FEATURE SPLIT (one idea explained) ===== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: center;
}
.feature-split > * { min-width: 0; } /* prevent grid blowout from wide children */
.feature-split--reverse { direction: rtl; }
.feature-split--reverse > * { direction: ltr; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }

/* ===== FOOTER ===== */
footer {
  background: #091a2e;
  color: #b0c4d8;
  padding: var(--sp-11) 0 var(--sp-7);
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--sp-8);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: var(--sp-5);
  text-decoration: none;
}
.footer-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  flex: none;
}
.footer-brand__mark svg { width: 20px; height: 20px; }
footer h4,
footer .footer-col-head { color: #fff; margin-bottom: var(--sp-4); font-size: .95rem; font-weight: 700; }
.footer-col-head { display: block; }
footer a  { display: block; padding: 4px 0; color: #b0c4d8; min-height: var(--tap); display: flex; align-items: center; }
footer a:hover { color: #fff; }
footer p { max-width: 30ch; color: #8aa0b8; }

/* Any tel: link must meet the 44px tap target regardless of context */
a[href^="tel:"] { min-height: var(--tap); }
/* Inline tel: links inside paragraph text: padding so tappable area ≥ 44px without breaking flow */
p a[href^="tel:"], li a[href^="tel:"] { display: inline-block; padding: .65rem 0; line-height: 1.3; }

.footer-bar {
  border-top: 1px solid #1a3048;
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: #8aa0b8;   /* was #5d7898 — contrast 3.8:1 on #091a2e → now 6.5:1 ✓ */
  font-size: .84rem;
}

/* ===== STICKY CALL BAR (mobile-only) ===== */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -5px 22px rgba(8,32,64,.12);
  padding: var(--sp-3) var(--sp-4);
  display: none;
}
.callbar .btn-call { width: 100%; font-size: 1.05rem; }

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: var(--sh-md);
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top svg { width: 22px; height: 22px; }

/* ===== UTILITY ===== */
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-5 { gap: var(--sp-5); }
.surface { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: var(--sp-7); }
.surface--lg { padding: var(--sp-9); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dropdown__panel--wide { min-width: 280px; grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero--split .hero-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero--local .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .stat-rail--3 { grid-template-columns: 1fr; }
  .icon-list--2 { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-menu, .nav-phone { display: none; }
  .nav-right .btn-call { display: none; }
  .burger { display: grid; }
  .callbar { display: block; }
  /* keep page content clear of the fixed call bar */
  body { padding-bottom: 84px; }
  .scroll-top { bottom: 90px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .steps--4, .steps--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-9) 0; }
  .hero--split .hero-inner { padding: var(--sp-9) 0; }
  .hero--emergency { padding: var(--sp-9) 0; }
  /* call buttons embedded in narrow content columns: fill width, allow wrap */
  .vstep__body .btn, .icon-list__item .btn, .notice .btn {
    display: flex; width: 100%; justify-content: center; white-space: normal; text-align: center;
  }
}

/* WCAG 2.1 AA — inline content links must be distinguishable without colour */
.section p a[style*="--color-primary"],
.section li a[style*="--color-primary"] { text-decoration: underline; }
