/* =========================================================
   BlitzFrei Reinigung — Stylesheet
   Gestaltungsregeln: siehe DESIGN.md im Repo.
   Farben aus dem Logo, eine Schrift (Schibsted Grotesk, liegt lokal).
   ========================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke */
  --petrol: #1d9aa0;
  --petrol-tief: #13777c;   /* Petrol für Text auf Hell (Kontrast ≥ 4.5) */
  --nacht: #0d3049;
  --nacht-2: #123c5a;
  --glas: #f5f8f8;
  --weiss: #ffffff;
  --schiefer: #4e6268;
  --glanz: #cff1f1;
  --linie: rgba(13, 48, 73, 0.12);
  --linie-hell: rgba(255, 255, 255, 0.14);

  /* Schrift */
  --schrift: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Raster */
  --breite: 1240px;
  --rand: clamp(16px, 4vw, 40px);
  --abstand: clamp(88px, 12vw, 168px);
  --radius-gross: clamp(20px, 2.4vw, 32px);
  --radius: 14px;

  /* Bewegung (siehe DESIGN.md: ease-out für Eintritte, nie ease-in) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --schnell: 160ms;

  /* Alte Namen, damit ältere Bausteine und das Kundenkonto weiter passen */
  --color-teal: var(--petrol);
  --color-teal-dark: var(--petrol-tief);
  --color-teal-light: #e3f3f3;
  --color-navy: var(--nacht);
  --color-navy-light: var(--nacht-2);
  --color-white: var(--weiss);
  --color-bg: var(--glas);
  --color-bg-alt: #edf2f3;
  --color-text: #1b2d35;
  --color-text-muted: var(--schiefer);
  --color-border: #dde5e7;
  --font-base: var(--schrift);
  --max-width: var(--breite);
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(13, 48, 73, 0.28);
  --shadow-sm: 0 1px 2px rgba(13, 48, 73, 0.06);
  --transition: var(--schnell) var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--glas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--glanz); color: var(--nacht); }

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

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.02; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

.section { padding: var(--abstand) 0; }
.section + .section, .page-hero + .section { padding-top: 0; }
.bg-alt + .section, .section + .bg-alt { padding-top: var(--abstand); }

.section-header {
  max-width: 720px;
  margin: 0 0 clamp(40px, 6vw, 72px);
}

.section-header p {
  color: var(--schiefer);
  font-size: 1.15rem;
  max-width: 54ch;
}

/* Früher: Großbuchstaben-Zeile über jeder Überschrift. Jetzt eine ruhige
   Zeile in Petrol, nur wo sie etwas aussagt. */
.eyebrow {
  display: block;
  color: var(--petrol-tief);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.bg-alt { background: var(--weiss); }

.bg-navy { background: var(--nacht); color: #c9d8df; }
.bg-navy h2, .bg-navy h3 { color: var(--weiss); }

.leise { color: var(--schiefer); }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--schnell) ease, color var(--schnell) ease, border-color var(--schnell) ease, transform var(--schnell) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--nacht); color: var(--weiss); }
.btn-petrol { background: var(--petrol); color: var(--weiss); }
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--weiss); }
.btn-outline-dark { border-color: var(--linie); color: var(--nacht); background: transparent; }
.btn-hell { background: var(--weiss); color: var(--nacht); }

@media (hover: hover) {
  .btn-primary:hover { background: var(--nacht-2); }
  .btn-petrol:hover { background: var(--petrol-tief); }
  .btn-outline:hover { border-color: var(--weiss); background: rgba(255, 255, 255, 0.08); }
  .btn-outline-dark:hover { border-color: var(--nacht); }
  .btn-hell:hover { background: var(--glanz); }
}

.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  color: var(--petrol-tief);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(19, 119, 124, 0.35);
  transition: text-decoration-color var(--schnell) ease;
}
@media (hover: hover) {
  .textlink:hover { text-decoration-color: currentColor; }
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 248, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}

.site-header.ist-gescrollt { border-bottom-color: var(--linie); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.logo-link img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--nacht);
  padding: 11px 14px;
  border-radius: 999px;
  transition: background-color var(--schnell) ease;
}

.main-nav a[aria-current="page"] { background: rgba(13, 48, 73, 0.07); }

@media (hover: hover) {
  .main-nav a:hover { background: rgba(13, 48, 73, 0.05); }
}

.main-nav .nav-anfrage { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--nacht);
  color: var(--weiss);
  font-weight: 650;
  font-size: 0.92rem;
  transition: background-color var(--schnell) ease, transform var(--schnell) var(--ease-out);
}

.icon-btn:active { transform: scale(0.97); }
.icon-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.icon-btn-leise { background: transparent; color: var(--nacht); }

@media (hover: hover) {
  .icon-btn:hover { background: var(--nacht-2); }
  .icon-btn-leise:hover { background: rgba(13, 48, 73, 0.06); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--nacht);
  align-items: center;
  justify-content: center;
}

/* Die zwei Striche drehen sich weich zum Kreuz (beide Symbole liegen übereinander) */
.nav-toggle { position: relative; }
.nav-toggle svg {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: opacity 200ms var(--ease-out), transform 360ms var(--ease-out);
}
.nav-toggle:active svg { scale: 0.92; }
.nav-toggle .zu { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.nav-toggle[aria-expanded="true"] .auf { opacity: 0; transform: rotate(90deg) scale(0.6); }
.nav-toggle[aria-expanded="true"] .zu { opacity: 1; transform: none; }

/* ---------- Seitenkopf der Unterseiten ---------- */

.page-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 14ch;
}

.page-hero p {
  color: var(--schiefer);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 52ch;
  margin: 18px 0 0;
}

/* ---------- Bildwechsler (alt, nur noch falls irgendwo genutzt) ---------- */

.hero-slideshow { position: relative; }
.slideshow-track { display: flex; width: 100%; height: 100%; transition: transform 500ms var(--ease-out); }
.slide { flex: 0 0 100%; margin: 0; }

/* ---------- Lightbox ---------- */

.zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform var(--schnell) var(--ease-out);
}

.zoom-btn:active { transform: scale(0.94); }
.ba-slider .zoom-btn { top: auto; bottom: 12px; right: 12px; z-index: 6; }
.zoom-btn svg { width: 18px; height: 18px; color: var(--nacht); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 36, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox-panel {
  position: relative;
  max-width: min(960px, 92vw);
  max-height: 88vh;
  background: #0b1f2e;
  border-radius: var(--radius-gross);
  overflow: hidden;
}

.lightbox-img-wrap {
  max-width: min(960px, 92vw);
  max-height: 88vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap[hidden], .lightbox-slider-wrap[hidden] { display: none; }
.lightbox-slider-wrap { width: min(94vw, calc((84vh - 16px) * 0.8)); padding: 8px; }
.lightbox-slider-wrap .ba-slider { width: 100%; border-radius: calc(var(--radius-gross) - 8px); }

.lightbox-img { max-width: min(960px, 92vw); max-height: 88vh; cursor: zoom-in; }
.lightbox-img.is-zoomed { max-width: none; max-height: none; width: auto; cursor: zoom-out; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 310;
}

.lightbox-close svg { width: 18px; height: 18px; }

/* ---------- Kundenstimmen (Unterseiten) ---------- */

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.review-card { border-top: 1px solid var(--linie); padding-top: 24px; }

.review-stars { display: flex; gap: 2px; color: #e9a23b; margin-bottom: 14px; }
.review-stars svg { width: 16px; height: 16px; }

.review-card blockquote { margin: 0 0 18px; color: var(--nacht); font-size: 1.05rem; }
.review-author { font-weight: 650; color: var(--nacht); font-size: 0.95rem; }
.review-source { color: var(--schiefer); font-size: 0.85rem; }

.review-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.review-summary .review-stars { margin: 0; }
.review-summary strong { color: var(--nacht); }

/* ---------- Leistungs-Kacheln (Unterseiten) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.service-card {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  padding: 32px 28px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 26px; height: 26px; color: var(--petrol-tief); }
.service-card p { color: var(--schiefer); font-size: 0.98rem; margin-bottom: 0.8em; }

.card-link, .service-card a.card-link {
  color: var(--petrol-tief);
  font-weight: 650;
  font-size: 0.95rem;
}

/* ---------- Leistungsseite ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--linie);
  scroll-margin-top: 80px;
}

.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media { position: relative; }

.service-detail-media img {
  border-radius: var(--radius-gross);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.service-detail-body h2 { font-size: clamp(2rem, 4vw, 3rem); }
.service-detail-body p { color: var(--schiefer); }
.service-detail-body ul { padding-left: 0; list-style: none; margin: 24px 0; }

.service-detail-body li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--linie);
  color: var(--nacht);
}

.service-detail-body li svg { width: 20px; height: 20px; color: var(--petrol); flex-shrink: 0; margin-top: 3px; }

/* ---------- Vorher/Nachher-Regler ---------- */

.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ba-grid figure { margin: 0; }

.ba-slider {
  position: relative;
  border-radius: var(--radius-gross);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: #dfe7e9;
  isolation: isolate;
}

.ba-slider .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ba-slider .ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }

.ba-slider .ba-after-wrap img {
  position: absolute;
  inset: 0;
  width: var(--ba-img-w, 100%);
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 48, 73, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
}

.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 4; }

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 18px rgba(207, 241, 241, 0.9);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 48, 73, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ba-handle-btn svg { width: 20px; height: 20px; color: var(--nacht); }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  -webkit-appearance: none;
  appearance: none;
}

.ba-slider:has(.ba-range:focus-visible) { outline: 2px solid var(--petrol); outline-offset: 3px; }

.ba-caption { margin-top: 14px; font-weight: 600; color: var(--nacht); }

.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.showcase-item { border-radius: var(--radius-gross); overflow: hidden; position: relative; margin: 0; }
.showcase-item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

.showcase-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(13, 48, 73, 0.75), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Ablauf (Unterseiten) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: schritt; }
.step { border-top: 1px solid var(--linie); padding-top: 20px; }

.step-number {
  font-weight: 750;
  color: var(--petrol-tief);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.step p { color: var(--schiefer); }

/* ---------- Zitat ---------- */

.quote-block { max-width: 860px; }

.quote-block blockquote {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--nacht);
  margin: 0 0 20px;
}

.quote-block p { color: var(--schiefer); }

/* ---------- Abschluss-Band ---------- */

.cta-band {
  background: var(--nacht);
  color: #fff;
  border-radius: var(--radius-gross);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 { color: #fff; margin-bottom: 10px; max-width: 16ch; }
.cta-band p { color: #b8cbd4; margin: 0; }

/* ---------- Abschluss ---------- */

.abschluss {
  background: var(--nacht);
  color: #fff;
  padding: var(--abstand) 0 clamp(64px, 8vw, 104px);
}

.abschluss-zitat { margin: 0 0 clamp(56px, 8vw, 104px); max-width: 30ch; }

.abschluss-zitat blockquote {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}

.abschluss-zitat figcaption { color: #8fb0bd; }

.abschluss-titel { color: #9fd9db; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }

.abschluss-nummer {
  display: inline-block;
  color: #fff;
  font-size: clamp(3rem, 10.5vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-variant-numeric: tabular-nums;
  transition: color var(--schnell) ease;
}

@media (hover: hover) {
  .abschluss-nummer:hover { color: var(--glanz); }
}

main:has(> .abschluss:last-child) + .site-footer { padding-top: 0; }
main:has(> .abschluss:last-child) + .site-footer .footer-grid { border-top: 1px solid var(--linie-hell); padding-top: clamp(48px, 6vw, 72px); }

/* Abschluss ohne Zitat (Unterseiten) */
.abschluss-gross {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 16ch;
  margin-bottom: 18px;
}

.abschluss-text { color: #b9cdd5; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46ch; margin: 0 0 clamp(40px, 6vw, 72px); }


/* ---------- Formulare ---------- */

.form-grid { display: grid; gap: 20px; }

label {
  display: block;
  font-weight: 600;
  color: var(--nacht);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input, textarea, select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--weiss);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--schnell) ease, box-shadow var(--schnell) ease;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px rgba(29, 154, 160, 0.16);
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-teal-light);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.form-note svg { width: 20px; height: 20px; color: var(--petrol-tief); flex-shrink: 0; margin-top: 2px; }
.form-note a { color: var(--petrol-tief); font-weight: 650; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 20px; min-height: 0; height: 20px; margin-top: 3px; accent-color: var(--petrol); }
.checkbox-row label { font-weight: 400; color: var(--schiefer); font-size: 0.9rem; margin: 0; }

.form-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; display: none; }
.form-status.is-success { display: block; background: #e3f6ee; color: #17663f; }
.form-status.is-error { display: block; background: #fbe8e8; color: #a3221b; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }

.contact-card {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  padding: clamp(24px, 4vw, 40px);
}

.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--linie); }
.contact-list li:first-child { border-top: none; }
.contact-list svg { width: 22px; height: 22px; color: var(--petrol); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; color: var(--nacht); font-size: 0.9rem; font-weight: 650; margin-bottom: 2px; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--nacht);
  color: #a9bec8;
  padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 { color: #fff; font-size: 0.95rem; font-weight: 650; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0; }
.footer-grid a { transition: color var(--schnell) ease; }

@media (hover: hover) {
  .footer-grid a:hover, .footer-bottom a:hover { color: #fff; }
}

.footer-logo { height: 46px; width: auto; margin-bottom: 20px; }
.footer-grid p { max-width: 34ch; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linie-hell);
  margin-top: 8px;
  transition: background-color var(--schnell) ease;
}

@media (hover: hover) {
  .social-btn:hover { background: rgba(255, 255, 255, 0.08); }
}

.social-btn svg { width: 19px; height: 19px; color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--linie-hell);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Rechtstexte ---------- */

.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.legal-content h3 { margin-top: 1.5em; }
.legal-content ul, .legal-content p { color: #33464d; }
.legal-content a { color: var(--petrol-tief); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--schiefer); font-size: 0.92rem; margin-bottom: 2em; }

/* ---------- Leiste unten am Handy ---------- */

.mobile-call-bar { display: none; }

/* ---------- Sprunglink ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nacht);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 12px 0;
}

.skip-link:focus { left: 0; }

/* =========================================================
   Breiten
   ========================================================= */

@media (max-width: 980px) {
  .card-grid, .review-grid, .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-detail { display: block; }
  .service-detail-media { margin-bottom: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .icon-btn-leise { display: none; }

  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    height: calc(100dvh - 68px);
    background: var(--glas);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--rand) calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    /* Zu: Fläche zieht sich schnell nach oben zurück */
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 280ms var(--ease-in-out), visibility 0s linear 280ms;
  }

  /* Auf: Fläche rollt von oben aus wie ein Rollo, danach gleiten die Links nacheinander herein */
  .main-nav.is-open {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path 520ms var(--ease-out), visibility 0s;
  }

  .main-nav > * {
    opacity: 0;
    transform: translateY(-28px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .main-nav.is-open > * {
    opacity: 1;
    transform: none;
    /* Gleiten und Einblenden dauern gleich lang: voll sichtbar genau dann, wenn das Wort angekommen ist */
    transition: opacity 900ms linear, transform 900ms cubic-bezier(0.33, 1, 0.68, 1);
  }

  .main-nav.is-open > :nth-child(1) { transition-delay: 120ms; }
  .main-nav.is-open > :nth-child(2) { transition-delay: 200ms; }
  .main-nav.is-open > :nth-child(3) { transition-delay: 280ms; }
  .main-nav.is-open > :nth-child(4) { transition-delay: 360ms; }
  .main-nav.is-open > :nth-child(5) { transition-delay: 440ms; }
  .main-nav.is-open > :nth-child(6) { transition-delay: 520ms; }

  /* Kopfzeile wird beim offenen Menü deckend, damit sie mit der Fläche verschmilzt */
  .site-header { transition: border-color 240ms ease, background-color 280ms ease; }
  body.menue-offen .site-header { background-color: var(--glas); }

  .main-nav a {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    padding: 10px 0;
    border-radius: 0;
    background: none !important;
  }

  .main-nav a[aria-current="page"] { color: var(--petrol-tief); }

  .main-nav .nav-anfrage {
    display: inline-flex;
    margin-top: 28px;
    font-size: 1rem;
    letter-spacing: 0;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--nacht) !important;
    color: #fff;
    align-self: flex-start;
  }

  body.menue-offen { overflow: hidden; }
}

@media (max-width: 720px) {
  .lightbox { padding: 12px; }
  .abschluss-nummer { font-size: clamp(2.6rem, 13vw, 4rem); }
  .abschluss .cta-row .btn { flex: 1 1 100%; }
  body { font-size: 1.03rem; }
  .card-grid, .review-grid, .showcase-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
  .main-nav { inset: 60px 0 0 0; height: calc(100dvh - 60px); }
  .logo-link img { height: 32px; }
  .header-actions .icon-btn { display: none; }
  .cta-band .btn { width: 100%; }

  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  .mobile-call-bar {
    display: flex;
    gap: 6px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    padding: 6px;
    border-radius: 999px;
    background: rgba(13, 48, 73, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 12px 32px -12px rgba(13, 48, 73, 0.5);
  }

  .mobile-call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 0.98rem;
    color: #fff;
    transition: transform var(--schnell) var(--ease-out);
  }

  .mobile-call-bar a:active { transform: scale(0.97); }
  .mobile-call-bar a:first-child { background: var(--petrol); }
  .mobile-call-bar svg { width: 18px; height: 18px; }
}

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

/* ---------- Seitenwechsel (View Transitions zwischen Seiten) ----------
   Kopf und Anrufleiste bleiben stehen, nur der Inhalt blendet weich über.
   Browser ohne Unterstützung laden die Seite einfach normal. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; types: seitenwechsel; }

  .site-header { view-transition-name: kopf; }
  .mobile-call-bar { view-transition-name: anrufleiste; }

  html:active-view-transition-type(seitenwechsel)::view-transition-old(root) {
    animation: seite-aus 180ms var(--ease-out) both;
  }
  html:active-view-transition-type(seitenwechsel)::view-transition-new(root) {
    animation: seite-ein 420ms var(--ease-out) 60ms both;
  }
}

@keyframes seite-aus { to { opacity: 0; } }
@keyframes seite-ein { from { opacity: 0; transform: translateY(14px); } }

/* Links im Fließtext (Impressum, Datenschutz) */
.text-link { color: var(--petrol-tief); }

/* ---------- 404 ---------- */

.fehlerseite { padding-bottom: var(--abstand); }

.fehler-wege {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid var(--linie);
}

.fehler-wege a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
  color: var(--nacht);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color var(--schnell) ease;
}

@media (hover: hover) {
  .fehler-wege a:hover { color: var(--petrol-tief); }
}

/* =========================================================
   Feinschliff nach den Design-Skills (impeccable, Taste,
   apple-design, Web Interface Guidelines)
   ========================================================= */

/* Browser-Oberflächen in den Markenfarben */
html {
  accent-color: var(--petrol);
  scrollbar-color: rgba(13, 48, 73, 0.32) var(--glas);
}
input, textarea, select, [contenteditable] { caret-color: var(--petrol); }
a[href^="tel:"], time, .preis, .zahl { font-variant-numeric: tabular-nums; }

/* Tippflächen mindestens 44 px, ohne dass sich das Bild ändert */
.footer-grid a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-grid li + li { margin-top: -6px; }
.footer-bottom nav { gap: 0 20px; }

/* Wer "Transparenz reduzieren" eingestellt hat, bekommt deckende Leisten */
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mobile-call-bar,
  .zoom-btn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header { background: var(--glas) !important; }
  .mobile-call-bar { background: var(--nacht) !important; }
  .zoom-btn { background: var(--weiss); }
}

/* Wer "Kontrast erhöhen" eingestellt hat, bekommt klarere Linien und Texte */
@media (prefers-contrast: more) {
  :root {
    --schiefer: #34464c;
    --linie: rgba(13, 48, 73, 0.32);
    --linie-hell: rgba(255, 255, 255, 0.4);
  }
  .site-header { border-bottom-color: var(--linie); }
  :focus-visible { outline-width: 3px; }
}

/* Einzelne Textlinks unter Abschnitten: volle Tippfläche */
a.textlink { display: inline-block; padding-block: 9px; }
