/* ============================================================
   FERATAJ – Reinigung mit System | style.css
   ------------------------------------------------------------
   Konsolidiertes Stylesheet für alle Seiten:
   index, ueber, leistungen, methode, kontakt,
   impressum, datenschutz

   Inhalt
   01  Design-Tokens (:root)
   02  Reset & Basis
   03  Utilities & Layout-Helfer
   04  Typografie
   05  Header & Navigation
   06  Buttons
   07  Hero
   08  Karten (Leistungen)
   09  Trust-Badges
   11  CTA-Banner
   12  Prozess-Timeline
   13  Zweispalter (Split)
   14  Modale Dialoge
   15  Kontakt: Layout, Info-Panel & Formular
   16  Werte-Karten (Über mich)
   17  Footer
   18  Datenschutz-Hinweis (Toast)
   19  WhatsApp: 2-Klick-Floating-Button
   20  Rechtsseiten
   21  Scroll-Reveal
   22  Reduced Motion
   23  Responsive Breakpoints
   ============================================================ */

/* ------------------------------------------------------------
   01 | Design-Tokens
   ------------------------------------------------------------ */
:root {
  /* Farben */
  --navy:        #1B2A4A;
  --navy-deep:   #12203B;
  --teal:        #2A9D8F;
  --teal-dark:   #1F7A70;
  --teal-soft:   rgba(42, 157, 143, 0.10);
  --mint:        #64C9BC;
  --mint-50:     #E9F8F5;
  --bg:          #F5F6F8;
  --white:       #FFFFFF;
  --ink:         #1A1A2E;
  --ink-soft:    #55607A;
  --light:       #E8E8E8;
  --line:        #E6EAEF;
  --danger:      #B3413A;

  /* WhatsApp-Markenfarben (nur für den WhatsApp-Kontakt) */
  --wa-green:      #25D366;
  --wa-green-dark: #1EBE5A;

  /* Verläufe */
  --grad-brand:  linear-gradient(120deg, var(--navy) 0%, var(--teal-dark) 100%);
  --grad-text:   linear-gradient(90deg, var(--teal) 0%, var(--navy) 100%);

  /* Schrift (Systemschriften – keine externen Font-Dienste, DSGVO-konform) */
  --font-stack:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Schriftgrößen */
  --fs-h1:       clamp(2.4rem, 5.6vw, 4rem);
  --fs-h2:       clamp(1.9rem, 4vw, 3rem);
  --fs-h3:       1.3rem;
  --fs-body:     1.0625rem;
  --fs-small:    0.875rem;

  /* Abstände */
  --space-section: clamp(72px, 9vw, 124px);
  /* Länge der weichen Übergänge zwischen Sektionen unterschiedlicher Farbe */
  --fade: 120px;
  --space-inner:   clamp(24px, 4vw, 48px);

  /* Radien */
  --radius:      18px;
  --radius-lg:   28px;
  --radius-sm:   12px;
  --radius-pill: 980px;

  /* Schatten */
  --shadow-card:  0 8px 30px rgba(27, 42, 74, 0.06);
  --shadow-hover: 0 18px 50px rgba(27, 42, 74, 0.13);

  /* Layout */
  --maxw:        1180px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------
   02 | Reset & Basis
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection { background: var(--teal-soft); color: var(--navy); }

body {
  overflow-x: clip;
  font-family: var(--font-stack);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal-dark); text-decoration: none; }

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

/* Anker-Ziele unter dem Sticky-Header freihalten */
[id] { scroll-margin-top: 100px; }

/* ------------------------------------------------------------
   03 | Utilities & Layout-Helfer
   ------------------------------------------------------------ */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-inner); }

.section { padding-block: var(--space-section); }
/* Kein harter Farbsprung: Die weiße Fläche blendet an beiden Rändern
   in die Grundfarbe der angrenzenden Sektionen über. */
.section--white {
  background: linear-gradient(
    180deg,
    var(--bg) 0px,
    var(--white) var(--fade),
    var(--white) calc(100% - var(--fade)),
    var(--bg) 100%
  );
}

.u-center { text-align: center; }
.u-center .eyebrow { justify-content: center; }
.u-center .lead { margin-inline: auto; }

/* Kleine, dokumentierte Abstands-Helfer (statt Inline-Styles) */
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-28 { margin-top: 28px; }

.text-soft { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }

/* Hervorgehobener Dreiklang in Überschriftfarbe */
.lead-highlight { color: var(--navy); font-weight: 700; }

.container--narrow { max-width: 820px; }

/* Bild mit Rahmenwirkung (Split-Sektionen) */
.media-frame {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  /* Reserviert den Platz schon vor dem Laden des Bildes.
     Ohne diese Angabe springt der Text beim Nachladen nach unten
     (schlechter CLS-Wert, den Google als Ranking-Signal wertet). */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}

/* Weißes Inhalts-Panel (z. B. „Über mich“) */
.panel {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.06);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 44px);
  box-shadow: 0 18px 50px rgba(27, 42, 74, 0.10);
}

/* Verlaufstext für hervorgehobene Aussagen */
.text-gradient {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* ------------------------------------------------------------
   04 | Typografie
   ------------------------------------------------------------ */
h1, h2, h3 { line-height: 1.12; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }

h1 strong, h2 strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
/* Kurzer Strich als Kapitel-Marker – macht jeden Sektionsanfang
   auf einen Blick erkennbar. */
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 58ch;
  font-weight: 400;
}

/* Checkliste mit gezeichnetem Haken (Leistungs-Details, Qualifikation) */
.protocol-item {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  list-style: none;
}
.protocol-item::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 18px; height: 18px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 42%, var(--teal) 42%, var(--teal) 55%, transparent 55%) no-repeat 3px 7px / 5px 5px,
    linear-gradient(-50deg, transparent 40%, var(--teal) 40%, var(--teal) 56%, transparent 56%) no-repeat 6px 3px / 8px 9px;
}

/* ------------------------------------------------------------
   05 | Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* iOS: Milchglas bis unter die Statusleiste ziehen (viewport-fit=cover) */
  padding-top: env(safe-area-inset-top, 0px);
  /* Am Seitenanfang unsichtbar – die Kopfzeile geht nahtlos in das
     Kopfbild über. Erst beim Scrollen legt sich Milchglas darunter. */
  background: transparent;
  border-bottom: 1px solid transparent;
  /* backdrop-filter wird bewusst nicht mitanimiert: Safari zeichnet
     die Fläche währenddessen unvollständig, was als Flackern
     sichtbar wird. */
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  /* Eigene Ebene erzwingen, damit der Weichzeichner beim Scrollen
     tatsächlich neu gezeichnet wird. */
  will-change: background-color;
  transform: translateZ(0);
}
.site-header.scrolled {
  /* Deckkraft erhöht: Bei 0.82 bleibt der Text vor hellen Bildern
     schwer lesbar, sobald der Weichzeichner ausfällt. */
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(27, 42, 74, 0.07);
  box-shadow: 0 1px 20px rgba(27, 42, 74, 0.06);
}

/* Milchglas nur dort, wo der Browser es beherrscht. Als eigene Regel
   statt im Hauptblock, damit ein Ausfall nicht die Hintergrundfarbe
   mitreißt. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

/* Fallback für Browser ohne backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.scrolled { background: rgba(255, 255, 255, 0.97); }
  .privacy-note { background: var(--navy); }
  .modal, .wa-float__dialog { background: var(--white); }
}

/* iOS blendet Weichzeichner aus, wenn in den Bedienungshilfen
   „Transparenz reduzieren" aktiv ist. Dann greift eine deckende
   Fläche, damit die Kopfzeile nicht durchsichtig bleibt. */
@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav {
    background: #fff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
}
.nav-aktionen {
  justify-self: end;
  display: flex; align-items: center; gap: 14px;
}

.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 3px; color: var(--navy); }
.logo span { color: var(--teal); }
.logo small {
  display: block;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-soft);
}
.logo-img { height: 56px; width: auto; display: block; }

.main-nav {
  justify-self: center;
  display: flex; align-items: center;
  gap: clamp(22px, 3vw, 40px);
}
.main-nav a {
  position: relative;
  font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  padding-block: 6px;
  opacity: 0.72;
  transition: opacity var(--transition), color var(--transition);
}
.main-nav a:hover { opacity: 1; }
.main-nav a[aria-current] { opacity: 1; color: var(--teal-dark); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta)[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--teal-dark); opacity: 1; }

/* Burger-Button (Mobile) */
.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute; left: 8px;
  width: 28px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -9px; }
.burger span::after  { left: 0; top: 9px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-9px) rotate(-45deg); }

/* ------------------------------------------------------------
   06 | Buttons
   ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;                    /* begrenzt den Lichtstreif */
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 9px;
  padding: 14px 32px;
  min-height: 48px;                    /* komfortables Touch-Ziel */
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  /* Spring-Kurve mit leichtem Überschwingen */
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Lichtstreif – identisch auf allen Schaltflächen */
.btn::after,
.consent-btn::after,
.wa-float__start::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 55%; height: 200%;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  transform: translateX(-180%) rotate(8deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover::after, .btn:active::after,
.consent-btn:hover::after, .consent-btn:active::after,
.wa-float__start:hover::after, .wa-float__start:active::after {
  transform: translateX(300%) rotate(8deg);
}
.btn:active::after { transition-duration: 0.55s; }

/* Gefüllte Hauptschaltfläche: eine klare Farbe, ein weicher Schatten */
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.28);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(42, 157, 143, 0.34);
}
.btn-primary:focus-visible { outline-offset: 4px; }

/* Zweitrangige Schaltfläche: Kontur statt Fläche */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.08);
}
.btn-ghost::after {
  background: linear-gradient(100deg, transparent 25%, rgba(42, 157, 143, 0.14) 50%, transparent 75%);
}

/* Gedrückt: sinkt ein, Schatten zieht sich zusammen */
.btn:active {
  transform: translateY(1px) scale(0.975);
  transition-duration: 0.09s;
}
.btn-primary:active { box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3); }

.btn-primary:active {
  /* Eingedrückt: Außenschatten schrumpft, Innenschatten wächst */
  box-shadow:
    0 3px 10px rgba(42, 157, 143, 0.35),
    inset 0 2px 6px rgba(9, 62, 56, 0.40),
    inset 0 -1px 1px rgba(255, 255, 255, 0.25);
}

.nav-cta {
  padding: 11px 26px;
  min-height: 42px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.main-nav a.nav-cta { color: #fff; opacity: 1; }


/* ------------------------------------------------------------
   07 | Hero
   ------------------------------------------------------------ */
.hero {
  /* gleicht die transparente Kopfzeile aus, die über dem Inhalt liegt */
  padding-top: clamp(112px, 12vw, 150px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 45%, var(--bg) 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Großflächiges Kopfbild – der Text liegt auf einem hellen Schleier,
   damit er unabhängig vom Bildmotiv lesbar bleibt. */
.hero--bild { padding-top: clamp(140px, 16vw, 210px); padding-bottom: clamp(96px, 12vw, 150px); }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero--bild::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.94) 45%,
    rgba(245, 246, 248, 0.99) 100%
  );
}
.hero--bild > .container { position: relative; z-index: 2; }

/* Hero-CTA: Primär-Button + Direktkontakt */
.hero-sub {
  max-width: 46ch;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 16px 26px;
}
.hero-tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--navy);
  transition: color var(--transition);
}
.hero-tel:hover { color: var(--teal-dark); }
.hero-tel svg { color: var(--teal); }

/* Dezenter Akzent-Glow im Hintergrund */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 65% 52% at 50% 24%, rgba(42, 157, 143, 0.14) 0%, rgba(42, 157, 143, 0.05) 42%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 2;
  padding-block: 52px 40px;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 { max-width: 20ch; letter-spacing: -0.025em; }
.hero .eyebrow { justify-content: center; }
.hero .lead { margin-block: 20px 0; margin-inline: auto; }

/* Kompakte Variante (Kontaktseite): Formular sofort sichtbar */
.hero--compact .container { padding-block: 46px 30px; }
.hero--compact h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero--compact .lead { margin-block: 16px 0; }
.hero--compact + .section { padding-top: 30px; }

/* ------------------------------------------------------------
   08 | Karten (Leistungen)
   ------------------------------------------------------------ */
.card-grid {
  display: flex; flex-wrap: wrap;
  gap: 32px; justify-content: center;
  margin-top: 76px;
}

.card {
  position: relative;
  overflow: hidden;                 /* begrenzt den Lichtreflex */
  flex: 1 1 300px; max-width: 360px;
  background: linear-gradient(165deg, #ffffff 0%, rgba(255, 255, 255, 0.86) 55%, rgba(233, 248, 245, 0.85) 100%);
  border: 1px solid rgba(42, 157, 143, 0.16);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card), inset 0 1.5px 0 rgba(255, 255, 255, 1);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(27, 42, 74, 0.16);
  border-color: var(--mint);
}
/* Tastatur-Fokus: EIN weicher Ring an der Kachel selbst.
   Der Button darin bleibt ohne eigenen Rahmen, sonst entstehen
   zwei Linien (u. a. nach dem Schließen eines Detailfensters).
   Bei Mausklick erscheint bewusst nichts – :focus-visible greift
   nur bei Tastaturbedienung. */
.card-btn:focus { outline: none; }
.card:has(.card-btn:focus-visible) {
  border-color: var(--teal);
  box-shadow:
    0 22px 55px rgba(27, 42, 74, 0.16),
    0 0 0 3px rgba(42, 157, 143, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 1);
}

/* Ältere Browser ohne :has() – dort bleibt der Ring am Button,
   damit die Tastaturbedienung sichtbar bleibt. */
@supports not selector(:has(*)) {
  .card-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: -4px; }
}

.card-media {
  position: relative;
  /* zieht das Bild über die Kachel-Innenabstände hinaus bis an die Ränder */
  display: block;
  margin: -40px -32px 6px;
  height: 172px;
  overflow: hidden;
  background: var(--mint-50);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* weicher Auslauf nach unten – das Bild fließt in die Kachel */
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-media img { transform: scale(1.06); }

/* Statischer Lichtschein: obere Ecke wie eine angestrahlte Scheibe */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

/* Glanz-Reflex: zieht beim Hover über die Karte */
.card::after {
  content: "";
  position: absolute; top: -60%; left: 0;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%);
  transform: translateX(-160%) rotate(8deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.card:hover::after { transform: translateX(320%) rotate(8deg); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }

.card-link {
  margin-top: 22px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--teal-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link::after {
  content: "›";
  font-size: 1.15em;
  transition: transform var(--transition);
}
/* Stretched Link/Button: die gesamte Karte ist klickbar */
.card-link::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
}
.card:hover .card-link { color: var(--teal); }
.card:hover .card-link::after { transform: translateX(5px); }

/* Karten-Variante als Button (Leistungsseite öffnet Modals) */
.card-btn {
  background: none; border: 0; cursor: pointer;
  font: inherit; text-align: left;
  width: 100%;
  display: flex; flex-direction: column; flex: 1;
  color: inherit;
}

/* ------------------------------------------------------------
   09 | Trust-Badges
   ------------------------------------------------------------ */
.trust-row {
  display: flex; flex-wrap: wrap;
  gap: 40px; justify-content: center;
  text-align: center;
  margin-top: 56px;
}
.trust-item { flex: 1 1 220px; max-width: 270px; }
.trust-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(42, 157, 143, 0.16), rgba(42, 157, 143, 0.05));
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.18);
  display: grid; place-items: center;
  color: var(--teal-dark);
}
.trust-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.trust-item p { color: var(--ink-soft); font-size: 0.94rem; }

/* ------------------------------------------------------------
   10a | Google-Bewertungen (Aufruf zur Bewertung)
   ------------------------------------------------------------ */
.review-cta {
  max-width: 700px; margin-inline: auto;
  text-align: center;
  padding: 44px 32px;
  background: linear-gradient(165deg, #ffffff 0%, rgba(255, 255, 255, 0.86) 55%, rgba(233, 248, 245, 0.9) 100%);
  border: 1px solid rgba(42, 157, 143, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), inset 0 1.5px 0 rgba(255, 255, 255, 1);
}
.review-stars {
  display: flex; justify-content: center; gap: 4px;
  color: #F4B400;
  margin-bottom: 16px;
}
.review-cta p {
  color: var(--ink-soft);
  margin: 14px auto 26px;
  max-width: 52ch;
}

/* ------------------------------------------------------------
   10b | FAQ (aufklappbar über <details>, kein JS nötig)
   ------------------------------------------------------------ */
/* Anker-Ziel: unter dem Sticky-Header landen (z. B. index.html#faq) */
.faq-section { scroll-margin-top: 110px; }

.faq-list {
  max-width: 760px;
  margin: 44px auto 0;
  display: grid; gap: 12px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 22px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
  color: var(--teal);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p {
  padding: 0 22px 18px;
  font-size: 0.9rem; line-height: 1.7;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   11 | CTA-Banner
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--grad-brand);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px);
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
/* Akzent-Glow im Banner */
.cta-banner::after {
  content: "";
  position: absolute; top: -30%; left: 8%;
  width: 34%; height: 160%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  transform: rotate(10deg);
  pointer-events: none;
}
.cta-banner::before {
  content: "";
  position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(42, 157, 143, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(232, 232, 232, 0.85); margin-bottom: 36px; font-size: 1.1rem; }

/* ------------------------------------------------------------
   12 | Prozess-Timeline
   ------------------------------------------------------------ */
/* Heller Akzent-Block – frischer Mintton aus der Markenpalette */
.section--accent {
  /* Verlauf blendet oben in die Grundfarbe der Vorgängersektion und
     unten ins Weiß der Folgesektion – dadurch keine sichtbaren Kanten.
     Feste Übergangszonen statt Prozentwerte, damit die Weichzeichnung
     unabhängig von der Sektionshöhe gleich bleibt. */
  background: linear-gradient(
    180deg,
    var(--bg) 0px,
    var(--mint-50) var(--fade),
    var(--mint-50) calc(100% - var(--fade)),
    var(--bg) 100%
  );
  position: relative;
  overflow: hidden;
}
.section--accent::before {
  content: "";
  position: absolute; top: -10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(42, 157, 143, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.section--accent > .container { position: relative; }

.timeline {
  --tl-kreis: clamp(52px, 7vw, 68px);
  position: relative;
  max-width: 840px;
  margin: 56px auto 0;
  display: grid;
  gap: clamp(16px, 2.4vw, 22px);
}

/* Durchgehende Achse hinter den Ziffernkreisen */
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-kreis) / 2 - 1.5px);
  top: calc(var(--tl-kreis) / 2);
  bottom: calc(var(--tl-kreis) / 2);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg,
    var(--mint) 0%,
    var(--teal) 35%,
    var(--teal-dark) 65%,
    var(--navy) 100%);
  opacity: 0.35;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: center;
}
.timeline-step.reveal { opacity: 1; transform: none; }

/* Ziffer im farbigen Kreis, überlappt die Sprechblase */
.tl-num {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: var(--tl-kreis);
  height: var(--tl-kreis);
  margin-right: calc(var(--tl-kreis) / -2.4);
  display: grid; place-items: center;
  border-radius: 50%;
  /* weißer Ring hebt den Kreis von der Achse ab */
  border: 4px solid var(--white);
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.16);
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.timeline-step.in-view .tl-num { opacity: 1; transform: scale(1); }

/* Farbverlauf über die fünf Stationen: hell nach dunkel */
/* Abstufung so gewählt, dass weiße Ziffern auf jedem Kreis
   ausreichend lesbar bleiben (mindestens 3:1 nach WCAG). */
.timeline-step:nth-child(1) .tl-num { background: #31A392; }
.timeline-step:nth-child(2) .tl-num { background: #2A9D8F; }
.timeline-step:nth-child(3) .tl-num { background: #238A80; }
.timeline-step:nth-child(4) .tl-num { background: #1F7A70; }
.timeline-step:nth-child(5) .tl-num { background: var(--navy); }

/* Sprechblase in Pillenform */
.tl-body {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: clamp(20px, 2.6vw, 26px) clamp(26px, 3.4vw, 38px)
           clamp(20px, 2.6vw, 26px) calc(var(--tl-kreis) / 2 + clamp(26px, 3.4vw, 38px));
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(27, 42, 74, 0.07);
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.6s ease 0.12s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    box-shadow 0.35s ease;
}
.timeline-step.in-view .tl-body { opacity: 1; transform: translateX(0); }
.timeline-step:hover .tl-body { box-shadow: 0 12px 32px rgba(27, 42, 74, 0.12); }

.timeline-step h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.timeline-step p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Schmale Bildschirme: Kreis über die Blase, Ecken weniger rund */
@media (max-width: 640px) {
  .timeline { --tl-kreis: 46px; gap: 14px; }
  .timeline::before { left: 21px; }
  .tl-body {
    border-radius: 26px;
    padding: 18px 20px 18px 40px;
  }
  .timeline-step p { font-size: 0.9rem; }
}

/* ------------------------------------------------------------
   11b | Ablauf auf den Leistungsseiten
   ------------------------------------------------------------ */
.lp-ablauf {
  list-style: none;
  max-width: 760px;
  margin: 48px auto 0;
  display: grid;
  gap: 20px;
}
.lp-schritt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.05);
}
.lp-nr {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
}
.lp-schritt h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.lp-schritt p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 560px) {
  .lp-schritt { padding: 18px 18px; gap: 14px; }
  .lp-nr { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ------------------------------------------------------------
   12a | Persönliche Vorstellung
   Bewusst asymmetrisch: das Portrait bricht aus der Textspalte
   aus, damit der Abschnitt persönlich statt institutionell wirkt.
   ------------------------------------------------------------ */
.gruss {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
}
.gruss-bild {
  width: clamp(112px, 16vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.14);
}
.gruss-text {
  margin: 0;
  min-width: 0;
}
.gruss-text p {
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink);
}
.gruss-text p + p { margin-top: 12px; }
.gruss-text figcaption {
  margin-top: 18px;
  font-weight: 700;
  color: var(--navy);
}
.gruss-text figcaption span {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .gruss {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }
}

/* ------------------------------------------------------------
   12b | Vier-Farben-System
   Die Signalfarben treten bewusst nur als Tuch-Symbol und
   schmale Kante auf – als Flächenfarbe würden sie mit dem
   Erscheinungsbild der übrigen Seite kollidieren.
   ------------------------------------------------------------ */
.farb-grid {
  list-style: none;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.farb-karte {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* schmale Kante in der Signalfarbe */
.farb-karte::before {
  content: "";
  position: absolute;
  left: 26px; right: 26px; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--farbe);
}
.farb-karte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--farbe) 40%, var(--line));
  box-shadow: 0 14px 34px rgba(27, 42, 74, 0.10);
}

.farb-karte--rot   { --farbe: #C8433B; }
.farb-karte--gelb  { --farbe: #D9A521; --farbe-text: #9C7400; }
.farb-karte--gruen { --farbe: #3E8E52; }
.farb-karte--blau  { --farbe: #2F6FB5; }

/* Gefaltetes Tuch als einziges grafisches Element */
.farb-tuch {
  width: 52px; height: 44px;
  display: block;
  margin-bottom: 18px;
  fill: color-mix(in srgb, var(--farbe) 16%, transparent);
  stroke: var(--farbe);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.farb-falte {
  fill: none;
  stroke: var(--farbe);
  stroke-width: 1.2;
  opacity: 0.45;
}

.farb-karte h3 {
  font-size: 1.05rem;
  /* Gelb ist als Schriftfarbe zu hell – dort greift ein dunklerer
     Ton, während Tuch und Kante das Signalgelb behalten. */
  color: var(--farbe-text, var(--farbe));
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.farb-bereich {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.farb-karte p:last-child {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.farb-hinweis {
  margin: 28px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Ohne color-mix: einfache Rückfallwerte */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .farb-tuch { fill: none; }
  .farb-karte:hover { border-color: var(--farbe); }
}

/* ------------------------------------------------------------
   13 | Zweispalter (Split)
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------
   14 | Modale Dialoge (Leistungs-Details)
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(18, 32, 59, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  max-width: 620px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 48px 44px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal h3 { font-size: 1.7rem; margin-bottom: 6px; }
.modal-sub {
  color: var(--teal-dark);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.modal p { color: var(--ink-soft); }
.modal ul { list-style: none; margin-top: 16px; }
.modal .btn { margin-top: 24px; }
.modal-mehr {
  margin-top: 14px;
  font-size: 0.9rem;
}
.modal-mehr a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--mint-50);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.modal-img {
  border-radius: 14px;
  margin-bottom: 22px;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0;
  background: var(--bg); color: var(--navy);
  font-size: 1.1rem; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.modal-close:hover { background: var(--teal-soft); transform: scale(1.05); }

/* ------------------------------------------------------------
   15 | Kontakt: Layout, Info-Panel & Formular
   ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: 64px;
}

/* Info-Panel (links, sticky) */
.contact-info {
  background: var(--grad-brand);
  color: var(--light);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: sticky; top: 88px;
}
.contact-info h3 { color: #fff; margin-bottom: 26px; }
.contact-info a { color: var(--light); font-weight: 600; }
.contact-info a:hover { color: var(--teal); }
.contact-info .contact-note {
  font-size: 0.85rem;
  color: rgba(232, 232, 232, 0.5);
  margin-top: 20px;
}

.ci-row { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.ci-row svg { flex-shrink: 0; color: var(--teal); margin-top: 3px; }
.ci-label {
  font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(232, 232, 232, 0.55);
  display: block;
}
.ci-note {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(232, 232, 232, 0.55);
  margin-top: 4px;
  max-width: 32ch;
}

/* WhatsApp-Schaltfläche im Info-Panel (öffnet den 2-Klick-Dialog) */
.wa-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: var(--wa-green); color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 24px;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.wa-btn:hover {
  background: var(--wa-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
.wa-btn:active { transform: translateY(0); }
.wa-btn svg { flex-shrink: 0; width: 26px; height: 26px; }
.wa-text { display: flex; flex-direction: column; line-height: 1.25; }
.wa-text small { font-weight: 500; font-size: 0.78rem; opacity: 0.92; }

/* Formular-Karte */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 30px 34px;
  box-shadow: 0 18px 50px rgba(27, 42, 74, 0.10);
}
.form-intro { margin: 0 0 22px; }
.form-intro h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--navy); }
.form-intro p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
.req { color: var(--teal-dark); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  /* mind. 16px – darunter zoomt iOS Safari beim Antippen automatisch hinein */
  font-size: 16px;
  color: var(--ink);
  background: #FBFCFD;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.14);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9AAAB2; }

/* Leistungsauswahl als Auswahl-Chips */
.contact-form fieldset { border: none; padding: 0; margin: 0; }
.contact-form legend {
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px; padding: 0;
}
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: #FBFCFD;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.check-item:hover { border-color: var(--mint); background: #fff; }
.check-item input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.check-item:has(input:checked) {
  border-color: var(--teal);
  background: var(--mint-50);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.10);
}
/* Variante: Checkbox oben ausgerichtet (Einwilligung mit Fließtext) */
.check-item--start { align-items: flex-start; }
.check-item--start input { margin-top: 4px; }
.consent-text { font-size: 0.9rem; color: var(--ink-soft); }

/* Bedingter Fenster-Block (erscheint bei Auswahl „Fensterreinigung“) */

/* Absenden, Hinweise & Meldungen */
.contact-form button[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.02rem; font-weight: 700;
  border-radius: 14px;
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }
.form-optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85em; }

/* Spam-Falle: aus dem Sichtfeld geschoben statt display:none,
   da einfache Bots display:none erkennen und das Feld überspringen. */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Multi-Step-Wizard ---- */
.wizard-progress {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
  margin: 0 0 26px;
}
.wizard-dot {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.wizard-dot span {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line); color: var(--ink-soft);
  font-size: 0.78rem;
  transition: background var(--transition), color var(--transition);
}
.wizard-dot.is-active { color: var(--navy); }
.wizard-dot.is-active span {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.wizard-dot.is-done span { background: var(--teal-soft); color: var(--teal-dark); }

.wizard-step { animation: wizard-in 0.35s ease; }
@keyframes wizard-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wizard-nav {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 26px;
}


/* Vertrauens-Box unter dem Absenden-Button */
.form-info-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--mint-50);
  border-radius: var(--radius-sm);
  display: grid; gap: 10px;
}
.fib-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; line-height: 1.6;
  color: var(--ink-soft);
}
.fib-item svg { flex-shrink: 0; color: var(--teal-dark); margin-top: 2px; }
.fib-item strong { color: var(--navy); }

/* Schritt 1: Objektart-Auswahlkacheln (Radio-Chips) */
.objekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.check-item input[type="radio"] {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

/* Rahmenreinigung: eingerückte, markierte Zusatzoption */
.check-item--addon {
  margin-left: 26px;
  border-style: dashed;
}
.check-item:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.check-item:has(input:disabled) input { cursor: not-allowed; }
.addon-tag {
  margin-left: auto;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal-dark);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.form-error { color: var(--danger); font-size: 0.88rem; margin-top: 10px; }
.form-success { color: var(--teal-dark); font-weight: 600; margin-top: 12px; }

/* ------------------------------------------------------------
   16 | Werte-Karten (Über mich)
   ------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.value-card {
  background: linear-gradient(165deg, #ffffff 0%, rgba(255, 255, 255, 0.86) 55%, rgba(233, 248, 245, 0.85) 100%);
  border: 1px solid rgba(42, 157, 143, 0.16);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(42, 157, 143, 0.16), rgba(42, 157, 143, 0.05));
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.18);
  display: grid; place-items: center;
  color: var(--teal-dark);
  margin-bottom: 20px;
}
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ------------------------------------------------------------
   17 | Footer
   ------------------------------------------------------------ */
.site-footer {
  /* oberer Rand blendet aus der hellen Vorgängersektion ein */
  background:
    linear-gradient(180deg, rgba(245, 246, 248, 0.16) 0px, transparent 90px),
    var(--navy-deep);
  color: var(--light);
  padding: 72px 0 36px;
  margin-top: var(--space-section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px;
}
.site-footer a {
  color: rgba(232, 232, 232, 0.75);
  display: block;
  padding-block: 4px;
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--teal); }

.site-footer .logo { color: #fff; }
.site-footer .logo small { color: rgba(232, 232, 232, 0.5); }
.footer-brand p {
  color: rgba(232, 232, 232, 0.6);
  font-size: 0.92rem;
  max-width: 38ch;
  margin-top: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(232, 232, 232, 0.12);
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(232, 232, 232, 0.5);
}
.footer-bottom a { display: inline; padding: 0; }

/* ------------------------------------------------------------
   17b | Cookie-Einwilligung (Consent Mode v2)
   ------------------------------------------------------------ */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  transform: translateY(110%);
  background: rgba(18, 32, 59, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--light);
  box-shadow: 0 -8px 34px rgba(18, 32, 59, 0.3);
  padding: 24px clamp(18px, 4vw, 28px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  max-height: 86vh; overflow-y: auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.consent-banner.visible { transform: translateY(0); }
.consent-inner { max-width: 880px; margin-inline: auto; }
.consent-title { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.consent-text { font-size: 0.86rem; line-height: 1.65; }

.consent-options {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0;
}
.consent-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.consent-option input {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
}
.consent-option input:disabled { cursor: default; opacity: 0.65; }
.consent-option strong { display: block; font-size: 0.86rem; color: #fff; }
.consent-option small {
  display: block; margin-top: 3px;
  font-size: 0.75rem; line-height: 1.5;
  color: rgba(232, 236, 244, 0.72);
}

/* Beide Hauptaktionen gleichwertig – kein Nudging */
.consent-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.consent-btn {
  position: relative;
  overflow: hidden;
  flex: 1 1 200px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--teal); color: #fff;
  font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.consent-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.consent-save {
  display: block;
  margin: 12px auto 0;
  padding: 8px 10px;
  background: none; border: 0;
  color: var(--mint);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.consent-links {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
}
.consent-links a { color: var(--mint); font-weight: 600; }

@media (max-width: 560px) {
  .consent-btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------
   18 | Datenschutz-Hinweis (Info-Banner, kein Consent nötig)
   ------------------------------------------------------------ */
.privacy-note {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  transform: translateY(110%);
  background: rgba(18, 32, 59, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--light);
  box-shadow: 0 -8px 30px rgba(18, 32, 59, 0.25);
  padding: 14px clamp(16px, 4vw, 28px);
  /* Safe Area: dynamische Browser-Leisten (iOS/Android) nicht überdecken */
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px 20px;
  /* Der Hinweis soll ein Balken bleiben, kein Deckel über der Seite.
     Ohne Begrenzung streckt ihn Safari auf kleinen Bildschirmen über
     die halbe Höhe. */
  max-height: 40vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.privacy-note.visible { transform: translateY(0); }
.privacy-note p {
  font-size: 0.88rem; line-height: 1.6;
  flex: 1 1 320px; max-width: 640px;
}
.privacy-note a { color: var(--mint); font-weight: 600; }
.privacy-note button {
  background: var(--teal); border: 0; color: #fff;
  padding: 11px 26px;
  min-height: 44px; /* Touch-Ziel */
  border-radius: var(--radius-pill);
  font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.privacy-note button:hover { background: var(--teal-dark); }

@media (max-width: 560px) {
  .privacy-note {
    flex-direction: column; align-items: stretch;
    gap: 10px;
    padding: 13px 16px;
    padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
    max-height: 38vh;
  }
  .privacy-note p {
    max-width: none;
    flex: 0 1 auto;          /* kein Strecken auf die volle Resthöhe */
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .privacy-note button {
    width: 100%;
    padding: 10px 20px;
    min-height: 42px;
    font-size: 0.85rem;
  }
}

/* ------------------------------------------------------------
   19 | WhatsApp: 2-Klick-Floating-Button (DSGVO-konform)
   ------------------------------------------------------------
   Beim Laden der Seite wird KEINE Verbindung zu Meta/WhatsApp
   aufgebaut. Erst nach Bestätigung im Dialog („Chat starten“)
   erfolgt die Weiterleitung zu wa.me. */
.wa-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--privacy-offset, 0px));
  z-index: 110;
  transition: bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 12px;
}

.wa-float__toggle {
  width: 58px; height: 58px;
  border-radius: 50%; border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--wa-green) 0%, #1DA851 100%);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(37, 211, 102, 0.45),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(10, 90, 42, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.wa-float__toggle:hover {
  background: var(--wa-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.wa-float__toggle:active { transform: translateY(0); }
.wa-float__toggle svg { width: 30px; height: 30px; }

.wa-float__dialog {
  width: min(320px, calc(100vw - 36px));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(27, 42, 74, 0.25);
  transform-origin: bottom right;
  animation: wa-pop 0.25s ease;
}
.wa-float__dialog[hidden] { display: none; }

@keyframes wa-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-float__title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.wa-float__text { font-size: 0.9rem; color: var(--ink-soft); }

.wa-float__actions { display: flex; gap: 10px; margin-top: 16px; }
.wa-float__start {
  position: relative;
  overflow: hidden;
  flex: 1;
  background: var(--wa-green); color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 700; font-size: 0.92rem;
  text-align: center;
  transition: background 0.16s ease;
}
.wa-float__start:hover { background: var(--wa-green-dark); }
.wa-float__cancel {
  background: var(--bg); color: var(--navy);
  border: 0; border-radius: var(--radius-pill);
  padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.16s ease;
}
.wa-float__cancel:hover { background: var(--light); }

/* ------------------------------------------------------------
   20 | Rechtsseiten (Impressum, Datenschutz)
   ------------------------------------------------------------ */
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 34px; margin-bottom: 14px; font-size: 1.4rem; }
.legal-content h3 { margin-top: 28px; margin-bottom: 10px; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content address { font-style: normal; color: var(--ink); }
.legal-intro { margin-top: 12px; }

/* ------------------------------------------------------------
   21 | Scroll-Reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  /* Sicherheitsnetz: Bleibt das Skript aus – etwa weil es nicht
     geladen wurde –, erscheint der Inhalt nach kurzer Zeit von
     selbst. Unsichtbarer Text wäre schlimmer als keine Animation. */
  animation: reveal-notfall 0s linear 3s forwards;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes reveal-notfall {
  to { opacity: 1; transform: none; }
}
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ------------------------------------------------------------
   22 | Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tl-num, .tl-body { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   23 | Responsive Breakpoints
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }

  /* Kontakt: Formular zuerst, Info-Panel darunter */
  .contact-layout { display: flex; flex-direction: column; }
  .contact-layout .contact-form { order: 1; }
  .contact-layout .contact-info { order: 2; position: static; }

  .hero--compact .container { padding-block: 28px 20px; }

  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-wrap { grid-template-columns: auto 1fr; }
  .main-nav {
    position: fixed;
    inset: calc(82px + env(safe-area-inset-top, 0px)) 0 auto 0;
    /* Volle Breite erzwingen: Ohne diese Angaben behält das Element
       auf manchen Browsern die Breite aus dem Grid der Kopfzeile und
       erscheint als weißer Kasten neben dem Logo. */
    width: 100%;
    max-width: none;
    justify-self: stretch;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 20px var(--space-inner) 28px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.12);
    transform: translateY(-115%);
    /* Zusätzlich ausblenden, damit im geschlossenen Zustand nichts
       durchscheint – transform allein reicht auf iOS nicht immer. */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      visibility 0s linear 0.4s;
    z-index: 90;
    max-height: calc(100dvh - 82px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      visibility 0s linear 0s;
  }
  .main-nav a {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  }
  .main-nav a::after { display: none; }
  .main-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    opacity: 1;
  }
  .burger { display: block; }
  /* Die Kontakt-Schaltfläche bleibt außerhalb des Menüs sichtbar */
  .nav-cta { padding: 9px 18px; min-height: 38px; font-size: 0.78rem; }
}

@media (min-width: 561px) {
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea { font-size: 0.95rem; }
}

@media (max-width: 560px) {
  .contact-form {
    padding: 22px 18px 26px;
    /* Zusätzlicher Abstand unten: Safari blendet seine Adressleiste
       über den Seiteninhalt ein und verdeckt sonst den letzten Knopf. */
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }
  .checkbox-grid { grid-template-columns: 1fr; }
  .check-item--addon { margin-left: 16px; }
  .wizard-dot { font-size: 0; gap: 0; justify-content: center; }
  .wizard-dot span { font-size: 0.78rem; }
  .wizard-nav .btn { flex: 1 1 100%; text-align: center; }
  .wizard-nav { margin-bottom: 6px; }
}

@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Lange Wörter wie „Senioreneinrichtung" ragten aus ihrer Fläche
   heraus. Umbruch und Trennung erlauben statt zu überlaufen. */
.check-item {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.check-item input { flex-shrink: 0; }

@media (max-width: 420px) {
  .checkbox-grid { grid-template-columns: 1fr; }
  .check-item { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .modal { padding: 36px 24px; }
  .logo-img { height: 46px; }
}

@media (max-width: 380px) {
  :root { --space-inner: 18px; }
  .hero h1 { font-size: 1.9rem; }
  .btn { padding: 13px 26px; font-size: 0.92rem; }
}
