/* ============================================================
   Eron Kadrija Reinigungsdienste: Stylesheet
   ============================================================ */

:root {
  --ink: #0e1b25;
  --ink-soft: #46586a;
  --bg: #ffffff;
  --surface: #f4f7f9;
  --surface-2: #e9eff3;
  --line: #dde5ea;
  --accent: #0e8a78;
  --accent-dark: #0b6e60;
  --accent-soft: #e2f3f0;
  --dark: #0d2233;
  --dark-2: #123049;
  --star: #f5b301;
  --accent-light: #5ecdb8;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --shadow-sm: 0 1px 3px rgba(14, 27, 37, 0.07);
  --shadow-md: 0 8px 30px rgba(14, 27, 37, 0.1);
  --shadow-lg: 0 20px 50px rgba(14, 27, 37, 0.16);
  --shadow-xl: 0 40px 90px -24px rgba(11, 45, 60, 0.38);
  --shadow-accent: 0 22px 50px -18px rgba(14, 138, 120, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  /* Abstandsskala: ein Wert pro Ebene, damit das Raster über alle
     Seiten hinweg gleich atmet. «section» ist bewusst grosszügig. */
  --space-section: clamp(80px, 10vw, 148px);
  --space-head: clamp(44px, 5.5vw, 76px);
  --space-grid: clamp(20px, 2.4vw, 32px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  /* Systemschriften: keine externen Font-Requests (Ladezeit + Datenschutz) */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Deutsche Komposita («Haftpflichtversichert») lieber umbrechen als überlaufen */
  overflow-wrap: break-word;
}

/* height: auto ist nötig, damit die width/height-Attribute der Bilder die
   aspect-ratio-Regeln weiter unten nicht überstimmen. Bilder mit fester
   Höhe (Logo, Vorher/Nachher-Slider) setzen sie selbst wieder. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 100% - 56px);
  margin-inline: auto;
}

/* Schmalere Spalte für reine Lesetexte (Abschnittsköpfe, Fliesstext) */
.measure { max-width: 62ch; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  /* «Reinigungsdienste» ist ein langes Wort: auf sehr schmalen Geräten
     lieber umbrechen als über den Rand hinausragen. Aber NIE mit Bindestrich
     trennen – «Reinigungs-dienste» sieht im Titel falsch aus. */
  overflow-wrap: break-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  max-width: 22ch;
}

h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }

.section-head-center .section-title,
.cta-banner .section-title { max-width: none; }

.section-sub {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1.06rem;
}

/* Akzentstrich vor dem Kicker: kleines Detail, das alle Abschnitte
   optisch zusammenbindet. Er wächst beim Reveal mit (s. .reveal). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.7s 0.15s var(--ease);
}

.reveal .eyebrow::before,
.reveal.eyebrow::before { transform: scaleX(0); }
.reveal.visible .eyebrow::before,
.reveal.visible.eyebrow::before { transform: scaleX(1); }

.section-head-center .eyebrow { justify-content: center; }

.eyebrow-light { color: #7fd6c8; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:active { transform: translateY(0) scale(0.985); }

/* Glanzstreifen, der beim Hover einmal über den Button wandert */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, #12a18c 0%, var(--accent) 45%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(14, 138, 120, 0.55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.btn-glow { position: relative; }
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--accent);
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
  animation: glowPulse 3.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.45; }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  /* Etwas kräftiger als --line: auf weissem Grund verschwand der Rahmen sonst */
  border: 1.5px solid #c6d4dd;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(14, 27, 37, 0.22);
}

/* Lesefortschritt: dünne Linie am unteren Rand der Kopfzeile.
   Die Breite setzt script.js beim Scrollen. */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}

/* Kopfzeile wird beim Scrollen etwas flacher: mehr Inhalt im Blick */
.site-header.scrolled .header-inner { height: 64px; }
.site-header.scrolled .brand-mark { height: 33px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 38px;
  flex-shrink: 0;
  transition: height 0.4s var(--ease), transform 0.4s var(--ease);
}

.brand:hover .brand-mark { transform: scale(1.06) rotate(-2deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 700; }
.brand-text small { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}

/* Unterstrich fährt von der Mitte aus auf */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--accent-dark); font-weight: 600; }
.main-nav a.active::after { transform: scaleX(1); }

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

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.header-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 116px) 0 clamp(72px, 9vw, 132px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 85% 12%, rgba(14, 138, 120, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 45% at 8% 90%, rgba(14, 138, 120, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfdfe 0%, #f2f8f7 100%);
  z-index: -1;
}

/* Feines Punktraster als Textur, läuft nach unten aus */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 138, 120, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* Zwei weiche Farbwolken, die langsam wandern */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.blob-a {
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, rgba(94, 205, 184, 0.55), rgba(94, 205, 184, 0) 70%);
  animation: blobDrift 22s ease-in-out infinite;
}

.blob-b {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(14, 138, 120, 0.4), rgba(14, 138, 120, 0) 70%);
  animation: blobDrift 28s ease-in-out infinite reverse;
}

@keyframes blobDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-4%, 5%, 0) scale(1.08); }
  66% { transform: translate3d(3%, -4%, 0) scale(0.95); }
}

/* Weicher Übergang vom Hero in die weisse Seite */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5.5vw, 84px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(14, 138, 120, 0.22);
  padding: 8px 17px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Pulsierender Punkt: signalisiert «wir sind erreichbar» */
.dot-live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dot-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPing 2.4s ease-out infinite;
}

@keyframes dotPing {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* Zweite Titelzeile im Markenverlauf. Etwas kleiner als der Firmenname:
   erzeugt Hierarchie und hält «Hauswartung & Reinigung» auf einer Zeile –
   sonst bliebe das «&» allein am Zeilenende hängen. */
.h1-accent {
  display: block;
  font-size: 0.76em;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent-dark) 0%, #12a18c 45%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 34px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.hero-badges li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.hero-badges svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6.5vw, 84px) 0 clamp(56px, 7vw, 96px);
}

/* Gleicher weiche Auslauf wie auf der Startseite, damit der getönte
   Kopfbereich nicht mit einer harten Kante endet. */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ---------- Leistungs-Detailseiten ---------- */
.service-detail-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.service-detail-reverse .service-detail-copy { order: 2; }
.service-detail-reverse .service-detail-media { order: 1; }

.service-detail-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
}

.service-detail-copy > p { color: var(--ink-soft); max-width: 520px; }

.service-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  font-size: 0.97rem;
  font-weight: 500;
}

.service-detail-media .img-placeholder { min-height: 340px; }

/* ---------- CTA-Banner ---------- */
.cta-banner { text-align: center; }
.cta-banner .section-sub { margin-inline: auto; }
.cta-banner-ctas { justify-content: center; margin-top: 30px; }

/* Variante für dunkle Abschnitte: .btn-ghost bringt einen weissen
   Grund mit, der hier den Text verschlucken würde. */
.btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-ghost-light:hover {
  color: #7fd6c8;
  background: rgba(255, 255, 255, 0.14);
  border-color: #7fd6c8;
  box-shadow: none;
}

.section-more { margin-top: 32px; text-align: center; }

/* ---------- Bilder ---------- */
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero-Bildbühne ----------
   Aufbau: grosses Foto im gerundeten Rahmen, darauf zwei schwebende
   Elemente – die Logo-Animation als weisse Karte unten links und ein
   Hinweis-Chip oben rechts. Das Video hat einen weissen Hintergrund;
   als weisse Karte ist das kein Makel mehr, sondern gewollt. */
.hero-media {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 52px) clamp(12px, 3vw, 40px);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: var(--surface-2);
}

/* Leichter Glanz über dem Bild, damit es sich in die Seite einfügt */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(14, 138, 120, 0.08) 55%, rgba(13, 34, 51, 0.14));
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.hero-frame:hover img { transform: scale(1.09); }

/* Logo-Animation als schwebende Karte */
.hero-logo-card {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(156px, 21vw, 212px);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: floatCard 7s ease-in-out infinite;
}

/* Hinweis-Chip oben rechts */
.hero-chip {
  position: absolute;
  top: clamp(14px, 2.5vw, 26px);
  right: clamp(-6px, -0.5vw, 0px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: floatCard 8.5s ease-in-out 0.8s infinite;
}

.hero-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.hero-chip span { display: grid; line-height: 1.25; }
.hero-chip strong { font-size: 0.9rem; white-space: nowrap; }
.hero-chip small { font-size: 0.76rem; color: var(--ink-soft); white-space: nowrap; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Die Videodatei schneidet die Zeile «& REINIGUNG» am unteren Rand an.
   Der Clip-Container blendet diese angeschnittenen ~7% weg. Wird das Video
   neu exportiert (ohne Anschnitt), hier einfach 1280 / 720 eintragen. */
.hero-video-clip {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1280 / 670;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
}

.service-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Querformat-Aufnahmen (Liegenschaft, Wohnung): flacherer Ausschnitt,
   damit vom Motiv nicht der halbe Bildinhalt weggeschnitten wird. */
.service-img-wide {
  aspect-ratio: 3 / 2;
  max-height: 430px;
}

.ref-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Feinjustierung des Ausschnitts pro Bild via style-Attribut */
  object-position: center 60%;
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  display: grid;
  place-items: center;
  place-content: center;
  gap: 6px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(14, 27, 37, 0.025) 14px, rgba(14, 27, 37, 0.025) 28px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 2px dashed #b9c7cf;
  border-radius: var(--radius);
  color: #7e93a1;
  min-height: 240px;
}

.img-placeholder svg { opacity: 0.55; }
.img-placeholder span { font-weight: 700; font-size: 0.95rem; }
.img-placeholder small { font-size: 0.78rem; opacity: 0.8; }

.img-placeholder-hero {
  aspect-ratio: 4 / 4.6;
  max-height: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.img-placeholder-ref {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  min-height: 220px;
}

/* ---------- Stats ----------
   Sitzt als eigene Karte im Überlappungsbereich zwischen Hero und
   Leistungen: das verbindet die beiden Abschnitte optisch. */
.stats {
  padding: 0 0 clamp(8px, 2vw, 24px);
  margin-top: calc(-1 * clamp(40px, 6vw, 76px));
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  padding: clamp(28px, 3.5vw, 44px) clamp(16px, 2.5vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -32px rgba(14, 27, 37, 0.3);
}

/* Trennlinien zwischen den Kennzahlen statt Lücken */
.stat {
  position: relative;
  padding-inline: clamp(8px, 1.5vw, 20px);
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent-dark), #13a48e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }

/* Der abgesetzte Abschnitt läuft an beiden Rändern weich in Weiss aus,
   damit zwischen den Abschnitten keine harte Kante steht. */
.section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 7%, var(--surface) 93%, #fff 100%);
}

.section-head { margin-bottom: var(--space-head); }

/* ---------- Service cards ----------
   Jede Karte: Foto oben, darüber schwebend das Icon, darunter der Text.
   Beim Hover hebt die Karte, das Foto zoomt sanft. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-grid);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service-card:hover .service-media img { transform: scale(1.08); }

/* Verlauf unter dem Icon, damit es auf jedem Foto lesbar bleibt */
.service-media::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(13, 34, 51, 0), rgba(13, 34, 51, 0.45));
}

.service-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  padding: 42px 26px 30px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  transition: background 0.35s, color 0.35s, transform 0.45s var(--ease);
}

/* In der Karte sitzt das Icon halb über der Fotokante */
.service-body .service-icon {
  position: absolute;
  top: -27px;
  left: 24px;
  z-index: 2;
  width: 54px;
  height: 54px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px) rotate(-4deg);
}

.service-card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}

.service-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  flex-grow: 1;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.service-arrow svg { transition: transform 0.35s var(--ease); }
.service-card:hover .service-arrow svg { transform: translateX(7px); }

/* ---------- Before/After slider ---------- */
.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ba-tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ba-tab:hover { color: var(--accent-dark); border-color: var(--accent); }

.ba-tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

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

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}

.ba-handle:hover .ba-handle-btn,
.ba-handle:focus-visible .ba-handle-btn {
  transform: translate(-50%, -50%) scale(1.08);
}

.ba-tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.ba-tag-before { left: 16px; background: rgba(20, 20, 20, 0.55); color: #fff; }
.ba-tag-after { right: 16px; background: var(--accent); color: #fff; }

/* ---------- References ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ref-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ref-body { padding: 24px 26px 28px; }

.ref-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ref-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

.ref-check {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ref-tags li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Formularfelder ---------- */
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field select,
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2346586a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 138, 120, 0.15);
}


.offer-points {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-grid);
}

.why-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  /* row-gap: 0, sonst klafft zwischen Titel und Text eine Lücke –
     der Zeilenabstand käme zum margin des h3 noch dazu. */
  column-gap: 20px;
  row-gap: 0;
  padding: clamp(28px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: start;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

/* Akzentstreifen links fährt beim Hover ein */
.why-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-item:hover::before { transform: scaleY(1); }
.why-item:hover .why-icon { background: var(--accent); color: #fff; }

.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  transition: background 0.4s, color 0.4s;
}

.why-item h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.why-item p { font-size: 0.95rem; color: var(--ink-soft); }
.why-item > div:last-child { display: contents; }
.why-item .why-icon { grid-row: span 2; }
.why-item h3, .why-item p { grid-column: 2; }

/* ---------- Inhaber-Abschnitt (Startseite) ---------- */
.owner-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.owner-media {
  position: relative;
  display: flex;
  justify-content: center;
}

/* weicher Kreis hinter dem freigestellten Porträt */
.owner-media::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: min(100%, 330px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, var(--accent-soft) 0%, rgba(226, 243, 240, 0.45) 62%, rgba(226, 243, 240, 0) 72%);
}

.owner-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  height: auto;
}

.owner-copy .section-title { margin-bottom: 20px; }

.owner-copy p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.owner-copy p + p { margin-top: 16px; }

/* Zitat des Inhabers: hebt die persönliche Note hervor */
.owner-quote {
  position: relative;
  margin: 26px 0 0;
  padding: 24px 28px 24px 30px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  font-size: 1.04rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  max-width: 58ch;
}

.owner-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Area ---------- */
.area-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.area-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 20px;
  margin-top: 24px;
}

.area-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
  font-size: 0.97rem;
}

.area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.area-note { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }
.area-note a { color: var(--accent-dark); font-weight: 600; }

.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11;
  background: var(--surface-2);
}

.area-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- CTA / Contact ---------- */
.section-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 10% 0%, rgba(14, 138, 120, 0.24), transparent 60%),
    radial-gradient(ellipse 50% 70% at 92% 110%, rgba(94, 205, 184, 0.2), transparent 62%),
    linear-gradient(200deg, var(--dark-2) 0%, var(--dark) 100%);
  color: #fff;
}

/* Weisse Welle als Übergang vom hellen Abschnitt in den dunklen */
.section-cta::before {
  content: "";
  position: absolute;
  left: -2%;
  top: -1px;
  width: 104%;
  height: clamp(48px, 6vw, 96px);
  background: #fff;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
}

/* Feines Raster im dunklen Abschnitt */
.section-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

/* Die Welle frisst oben Platz weg, darum hier etwas mehr Luft */
.section-cta.section {
  padding-block: calc(var(--space-section) + clamp(16px, 3vw, 44px)) var(--space-section);
}

.section-cta > .container { position: relative; z-index: 1; }

.section-cta .section-title { color: #fff; }
.section-cta .section-sub { color: #a9c2d4; }

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.cta-contacts { display: grid; gap: 14px; margin-top: 32px; }

.cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.cta-contact:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.cta-contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 138, 120, 0.35);
  color: #7fd6c8;
  flex-shrink: 0;
}

.cta-contact span:last-child { display: grid; line-height: 1.35; }
.cta-contact strong { font-size: 0.98rem; }
.cta-contact small { font-size: 0.8rem; color: #a9c2d4; overflow-wrap: anywhere; }

/* Helle Variante (auf weissen Seiten wie Offerte/Kontakt) */
.cta-contact-light {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.cta-contact-light:hover { background: var(--surface-2); }
.cta-contact-light .cta-contact-icon { background: var(--accent-soft); color: var(--accent-dark); }
.cta-contact-light small { color: var(--ink-soft); }

/* ---------- Kontaktseite: Kontaktwege & Infoleiste ---------- */
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin-inline: auto; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

/* Akzentstreifen fährt beim Hover von links ein */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #5ecdb8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.contact-card:hover::before { transform: scaleX(1); }

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  transition: background 0.35s, color 0.35s;
}

.contact-card:hover .contact-card-icon {
  background: var(--accent);
  color: #fff;
}

.contact-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.contact-card-value {
  margin-top: 6px;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Lange Werte wie die E-Mail-Adresse: kleiner, damit sie auf eine Zeile passen */
.contact-card-value-long {
  font-size: 0.97rem;
  font-weight: 700;
}

.contact-card-note {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex-grow: 1;
}

.contact-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.contact-card-arrow svg { transition: transform 0.35s var(--ease); }
.contact-card:hover .contact-card-arrow svg { transform: translateX(6px); }

.info-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.info-item:last-child { border-right: none; }

.info-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.info-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.info-item p { font-size: 0.92rem; color: var(--ink-soft); }

.info-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.contact-form-bordered { border: 1px solid var(--line); box-shadow: var(--shadow-md); }

.contact-form {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.form-field { display: grid; gap: 7px; }
.form-field textarea { resize: vertical; min-height: 100px; }

/* Spam-Falle: für Menschen unsichtbar, Bots tragen hier etwas ein und
   die Anfrage wird von Formspree verworfen. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-optional {
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0.8;
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.form-status-info {
  background: var(--surface);
  color: var(--ink-soft);
}

.form-status-ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.form-status-error {
  background: #fdecec;
  color: #9b1c1c;
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0a1a28;
  color: #b6c8d5;
  padding: clamp(64px, 7vw, 88px) 0 0;
  font-size: 0.92rem;
}

/* Feine Akzentlinie: trennt Fusszeile und dunklen CTA-Abschnitt */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 205, 184, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(44px, 5vw, 60px);
}

.brand-footer .brand-mark { height: 46px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #8aa2b3; }

.footer-desc { margin-top: 16px; max-width: 300px; }

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col li { overflow-wrap: anywhere; }
.footer-col a {
  color: #b6c8d5;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-col a:hover { color: #7fd6c8; }
/* inline-block, damit translateX beim Hover greift */
.footer-col li a { display: inline-block; }
.footer-col li a:hover { transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #8aa2b3;
}

.footer-bottom a { color: #8aa2b3; text-decoration: none; }
.footer-bottom a:hover { color: #7fd6c8; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Rechtsseiten (Impressum, Datenschutz, AGB) ---------- */
.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 8px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.legal-content p { margin-bottom: 12px; }

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0 16px;
  display: grid;
  gap: 6px;
}

.legal-content a { color: var(--accent-dark); font-weight: 500; }

.legal-updated {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(14, 27, 37, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.mobile-bar-cta { background: var(--accent); color: #fff; }

/* ---------- Ablauf in drei Schritten (Startseite) ----------
   Die Verbindungslinie wird beim Hereinscrollen von links nach rechts
   gezeichnet (script.js setzt .visible auf .steps). */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  /* Die Nummern stehen als eigene Kreise im Markup, die Zähler der
     Liste würden doppelt erscheinen. */
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s 0.2s var(--ease);
}

.steps.visible::before { transform: scaleX(1); }

.step { position: relative; }

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}

.step:hover .step-num {
  transform: translateY(-4px) scale(1.06);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step h3 {
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.step p { font-size: 0.96rem; color: var(--ink-soft); max-width: 40ch; }

/* ---------- Vorher/Nachher-Teaser (Startseite) ---------- */
.ba-teaser {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

/* Die Beispielbilder sind Hochformat (3:4). Ohne Deckel würde der
   Regler die Textspalte um Hunderte Pixel überragen. */
.ba-teaser .ba-slider { margin-inline: auto 0; max-width: 420px; }
.ba-teaser .ba-tabs { justify-content: flex-start; margin-bottom: 20px; }
.ba-teaser .ba-caption { text-align: left; }

.ba-teaser-copy .section-title { margin-bottom: 18px; }
.ba-teaser-copy > p { color: var(--ink-soft); max-width: 52ch; }

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  font-size: 0.98rem;
  font-weight: 500;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check-list svg { color: var(--accent); margin-top: 3px; }

/* ---------- Reveal / animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

/* Startzustände der Varianten: am Element mit data-reveal="..." gewählt */
.reveal[data-reveal="left"] { transform: translateX(-38px); }
.reveal[data-reveal="right"] { transform: translateX(38px); }
.reveal[data-reveal="scale"] { transform: scale(0.94); }
.reveal[data-reveal="fade"] { transform: none; }

/* Bildvorhang: das Element wird von unten nach oben freigelegt */
.reveal[data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
}

/* Endzustand NACH den Varianten und mit höherer Spezifität, sonst
   gewinnt der Startzustand und das Element bleibt verschoben. */
.reveal.visible,
.reveal.visible[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal.visible[data-reveal="mask"] { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* [data-reveal] mitnehmen: die Varianten oben sind spezifischer als
     ein blosses .reveal und würden den Startzustand festhalten. */
  .fade-up,
  .reveal,
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
    transition: none;
  }
  .btn-glow::after,
  .blob,
  .dot-live::after,
  .hero-logo-card,
  .hero-chip { animation: none; }
  /* Deko-Linien direkt auf den Endzustand setzen (höhere Spezifität
     als die Reveal-Regeln weiter oben, sonst bleiben sie unsichtbar) */
  .reveal .eyebrow::before,
  .reveal.eyebrow::before,
  .reveal.visible .eyebrow::before { transform: scaleX(1); transition: none; }
  .steps::before { transform: scaleX(1); transition: none; }
  .hero-frame img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .main-nav { gap: 20px; }
  .header-actions { gap: 12px; }
  .header-phone { font-size: 0.88rem; white-space: nowrap; }
  .header-actions .btn-sm { padding: 10px 18px; white-space: nowrap; }
}

@media (max-width: 1023px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; }
  /* Im aufgeklappten Menü würde der Unterstrich quer über die Zeile laufen */
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Zweispaltig bleibt die dritte Karte allein übrig: sie nimmt beide Spalten. */
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards > :last-child { grid-column: 1 / -1; }
}

/* Vier Kennzahlen nebeneinander werden unter ~700px zu schmal für die Beschriftung. */
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  /* Im 2x2-Raster stünde die Trennlinie auch am Zeilenanfang */
  .stat + .stat::before { display: none; }
}

@media (max-width: 880px) {
  /* Telefon steckt ab hier in der fixen Leiste am unteren Rand */
  .header-phone { display: none; }

  /* Fusszeilen-Links brauchen auf dem Touchscreen eine grössere Trefferfläche */
  .footer-col ul { gap: 4px; }
  .footer-col li a { display: inline-block; padding-block: 8px; }
  .area-note a { display: inline-block; padding-block: 6px; }
  .footer-legal a { display: inline-block; padding-block: 7px; }
  .info-link { padding-block: 8px; }

  .hero-inner { grid-template-columns: 1fr; }
  .img-placeholder-hero { aspect-ratio: 16 / 10; max-height: 340px; }
  .hero-img { aspect-ratio: 16 / 10; max-height: 340px; }

  /* Bildbühne einspaltig: Foto oben, Logo-Karte mittig darunter
     eingehängt, Chip bleibt am Bild. */
  .hero-media { padding: 0; }
  .hero-frame img { aspect-ratio: 16 / 11; }
  .hero-logo-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(240px, 70%);
    margin: -38px auto 0;
  }
  .hero-chip { right: 12px; }

  /* Ablauf: aus der waagrechten wird eine senkrechte Zeitachse */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-left: 82px; padding-bottom: 34px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .steps::before {
    top: 30px;
    bottom: 62px;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent), var(--accent-soft));
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.visible::before { transform: scaleY(1); }

  .ba-teaser { grid-template-columns: 1fr; }
  /* min(), damit auf schmalen Geräten nichts über den Rand ragt */
  .ba-teaser .ba-slider { max-width: min(520px, 100%); margin-inline: auto; }

  /* Einspaltig würden die seitlichen Reveal-Startpositionen die Seite
     um 38px breiter machen und einen waagrechten Scrollbalken erzeugen.
     Darum hier alles von unten einblenden. */
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] { transform: translateY(32px); }
  .ba-teaser .ba-tabs { justify-content: center; }
  .ba-teaser .ba-caption { text-align: center; }

  .cta-wrap, .area-wrap { grid-template-columns: 1fr; }
  .area-map { order: -1; }

  .owner-wrap { grid-template-columns: 1fr; }
  .owner-media { order: -1; }
  .owner-media img { width: min(100%, 240px); }

  .service-detail-wrap { grid-template-columns: 1fr; }
  .service-detail-reverse .service-detail-copy { order: 0; }
  .service-detail-reverse .service-detail-media { order: 1; }
  .service-detail-media .img-placeholder { min-height: 240px; }
  /* Einspaltig ist das Bild so breit wie der Container. Eine feste max-height
     würde es zum Briefschlitz quetschen (bei 768px sonst 720x360), darum hier
     nur das Seitenverhältnis vorgeben und die Höhe mitlaufen lassen. */
  .service-img { aspect-ratio: 3 / 2; max-height: none; }

  .why-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .info-bar { grid-template-columns: 1fr; }
  .info-item { border-right: none; border-bottom: 1px solid var(--line); }
  .info-item:last-child { border-bottom: none; }

  .mobile-bar { display: grid; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-media { aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; }
  /* Enger Spaltenabstand, sonst passt «Unterhaltsreinigung» nicht mehr in die Spalte */
  .footer-grid { gap: 30px 20px; }
  .header-actions .btn { display: none; }
  .ba-tab { font-size: 0.86rem; padding: 8px 16px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Querformat-Handys und sehr flache Fenster: Kopfzeile (72px) und fixe Leiste (64px)
   belegen sonst über ein Drittel der Bildschirmhöhe. */
@media (max-height: 460px) and (min-width: 561px) {
  :root { --header-h: 58px; }
  .brand-mark { height: 32px; }
  .hero { padding-block: 32px; }
  .mobile-bar-item { padding: 7px 6px 9px; font-size: 0.7rem; }
}

@media (max-width: 420px) {
  .container { width: min(1200px, 100% - 36px); }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-badges { gap: 8px; font-size: 0.85rem; }
  .hero-badges li { padding: 8px 13px; }
  /* Chip verkleinern, sonst ragt er auf dem Handy über das Foto hinaus */
  .hero-chip { top: 10px; right: 8px; gap: 9px; padding: 9px 14px 9px 10px; }
  .hero-chip-icon { width: 30px; height: 30px; }
  .hero-chip strong { font-size: 0.8rem; }
  .hero-chip small { font-size: 0.7rem; }
  .step { padding-left: 68px; }
  .step-num { width: 52px; height: 52px; font-size: 1.15rem; }
  .steps::before { left: 25px; }
  .ba-tabs { gap: 8px; }
  .contact-form { padding: 24px 20px; }
  .ref-body { padding: 20px 20px 24px; }
}
