/* ==========================================================================
   InfraSol Facility Management – Stylesheet
   Mobile first. Farben aus dem Logo abgeleitet (Navy #1f4569, Silber-Verlauf).
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform; SIL Open Font License) ----------
   Plus Jakarta Sans: Überschriften · Inter: Fließtext · Montserrat: nur Logo-Wortmarke */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Navy – Basiston aus dem Logo (#1f4569) */
  --navy-950: #0a1828;
  --navy-900: #10253c;
  --navy-800: #163250;
  --navy-700: #1b3c5e;
  --navy: #1f4569;
  --navy-500: #2d5f8f;
  --navy-300: #8fa9c4;

  /* Silber – Verlauf aus dem Logo (#f5f6f8 → #cfd3d8 → #8f949c) */
  --silver-50: #f3f7fb;
  --blue-50: #eef3f9;   /* helle Blautöne aus dem Logo-Navy */
  --blue-100: #dce6f1;
  --silver-100: #e6eef6;
  --silver-200: #d6e1ed;
  --silver-300: #cfd3d8;
  --silver-400: #b3b8bf;
  --silver-500: #8f949c;
  --white: #ffffff;

  --text: #1a2633;
  --text-muted: #556373;
  --text-light: #dfe6ee;
  --success: #1d7a4f;
  --error: #b42318;
  --whatsapp: #1f9d55;

  --grad-silver: linear-gradient(135deg, #f5f6f8 0%, #cfd3d8 45%, #8f949c 100%);
  --grad-silver-soft: linear-gradient(135deg, #ffffff 0%, #eef0f3 55%, #d9dde2 100%);
  --grad-navy: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy) 100%);

  --font-head: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-logo: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(16 37 60 / 0.06), 0 2px 8px rgb(16 37 60 / 0.06);
  --shadow: 0 10px 30px -10px rgb(16 37 60 / 0.25);
  --shadow-lg: 0 24px 60px -20px rgb(10 24 40 / 0.45);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-500); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--lg { width: 30px; height: 30px; }
.icon--xl { width: 44px; height: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .6em 1.1em; font-size: .875rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
/* Primär: Silber-Verlauf wie im Logo */
.btn--primary { background: linear-gradient(135deg, #3b72a8 0%, var(--navy) 100%); color: #fff; border-color: rgb(255 255 255 / .18); box-shadow: 0 6px 18px -8px rgb(10 24 40 / .6), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn--primary:hover { color: #fff; background: linear-gradient(135deg, #4580ba 0%, var(--navy-700) 100%); box-shadow: 0 10px 24px -8px rgb(10 24 40 / .7), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .55); backdrop-filter: blur(4px); }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #18834a; color: #fff; }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy-500); text-decoration: underline; font: inherit; cursor: pointer; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s ease; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 38px; height: 44px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word { font-family: var(--font-logo); font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: -0.02em; }
.logo__sol { background: linear-gradient(180deg, #b9bec5 0%, #8f949c 60%, #a7acb3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__sub { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-500); margin-top: 4px; }
.logo--light .logo__word { color: #fff; }
.logo--light .logo__sol { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; }
.logo--light .logo__sub { color: var(--silver-300); }
.logo--light .logo__mark g:first-of-type { fill: #fff; }

/* ---------- Header ---------- */
.site-header {
  /* fixed statt sticky: bleibt auf allen Geräten (auch iOS Safari) zuverlässig oben;
     Hero und Seitenkopf lassen oben Platz für den Header (padding-top mit --header-h) */
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--silver-200); }
/* Offenes Mobilmenü: kein backdrop-filter, sonst wird das fixierte Menü-Panel auf die Header-Höhe beschnitten */
body.nav-open .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Transparenter Header ganz oben (über dem dunklen Hero); beim Scrollen bzw.
   bei geöffnetem Mobilmenü gelten wieder die normalen (weißen) Styles. */
body:not(.nav-open) .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:not(.nav-open) .site-header:not(.is-scrolled) .logo__word { color: #fff; }
body:not(.nav-open) .site-header:not(.is-scrolled) .logo__sol { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; }
body:not(.nav-open) .site-header:not(.is-scrolled) .logo__sub { color: var(--silver-300); }
body:not(.nav-open) .site-header:not(.is-scrolled) .logo__mark g:first-of-type { fill: #fff; }
body:not(.nav-open) .site-header:not(.is-scrolled) .header-phone { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
body:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; text-decoration: none;
  width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--silver-100);
}
.header-phone span { display: none; white-space: nowrap; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* Navigation – mobil als Panel */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white); padding: 16px var(--gutter) 32px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; border-bottom: 1px solid var(--silver-200); display: flex; flex-wrap: wrap; align-items: center; }
.nav__link { flex: 1; display: block; padding: 14px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-900); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--navy-500); }
.nav__subtoggle { width: 44px; height: 44px; border: 0; background: var(--silver-100); border-radius: 50%; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav__subtoggle .icon { transition: transform .2s ease; }
.nav__subtoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 0 0 12px; width: 100%; display: none; }
.nav__sub.is-open { display: block; }
.nav__sub a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--silver-100); color: var(--navy); }
.nav__sub .icon { color: var(--navy-500); }
.nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; overflow-x: clip; } /* clip: Elemente, die beim Scrollen seitlich einfahren, verbreitern die Seite nicht */
.section--alt { background: var(--blue-50); border-top: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); }
.section--navy { background: var(--grad-navy); color: var(--text-light); position: relative; overflow: hidden; }
.section--navy::before { /* dezente Glasfassaden-Linien */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 60px);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.section--navy > .container { position: relative; }
.section--photo { isolation: isolate; }
.section__photo { position: absolute; inset: 0; z-index: -1; }
.section__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.4); }
.section__head { max-width: 720px; margin: 0 0 36px; }
.section__head p:last-child { color: var(--text-muted); }
.section__head--light h2 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-500);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad-silver); border-radius: 2px; }
.eyebrow--light { color: var(--silver-300); }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px 18px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 18px; background: var(--silver-50); border: 1px solid var(--silver-200); border-left: 4px solid var(--navy); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text-muted); }
.note .icon { color: var(--navy); margin-top: 2px; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--text-light); padding: 64px 0 72px; isolation: isolate; display: flex; align-items: flex-end; } /* Text unten links */
/* Hintergrund: Foto über die volle Breite, links dunkler Navy-Verlauf für den Text */
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--navy-900); }
/* Hintergrundvideos: das aktive Video ist sichtbar, Wechsel per Überblendung (main.js) */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-active { opacity: 1; }
.hero__video-toggle {
  position: absolute; right: 16px; bottom: 96px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); transition: background-color .2s ease;
}
.hero__video-toggle:hover { background: rgb(255 255 255 / .22); }
.hero__video-toggle .icon { width: 18px; height: 18px; }
.hero__video-play, .hero__video-toggle.is-paused .hero__video-pause { display: none; }
.hero__video-toggle.is-paused .hero__video-play { display: inline; }
.hero__bg::after { /* mobil: Text über dem ganzen Bild → gleichmäßig dunkler */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(10 24 40 / .85) 0%, rgb(16 37 60 / .8) 20%, rgb(16 37 60 / .88) 60%, rgb(10 24 40 / .94) 100%);
}
/* Platz für den darüberliegenden transparenten Header */
.hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 48px; min-height: 92vh; min-height: 92svh; }
.hero__inner { position: relative; }
.hero__content { max-width: 480px; }
/* Eyebrow ist Teil der H1 (SEO), sieht aber aus wie der Absatz davor */
.hero h1 .eyebrow { display: flex; width: fit-content; line-height: 1.65; margin: 0 0 12px; }
.hero h1 { color: #fff; margin-bottom: .35em; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.hero__accent {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.1rem); letter-spacing: -0.01em; margin: 0 0 10px;
  background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.hero__actions .btn--lg { padding: .85em 1.35em; font-size: .9rem; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-navy); color: var(--text-light); padding: calc(var(--header-h) + 40px) 0 52px; }
.page-hero__facade {
  position: absolute; right: -40px; top: -20px; bottom: -20px; width: 60%; opacity: .22;
  background:
    linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .45) 45%, transparent 52%),
    repeating-linear-gradient(90deg, #cfd3d8 0 2px, transparent 2px 56px),
    repeating-linear-gradient(0deg, #cfd3d8 0 2px, transparent 2px 40px);
  transform: skewX(-12deg);
  mask-image: linear-gradient(90deg, transparent, #000 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { /* links dunkel für den Text, rechts Foto sichtbar */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(10 24 40 / .6) 0%, transparent 30%),
    linear-gradient(90deg, rgb(10 24 40 / .94) 0%, rgb(16 37 60 / .86) 40%, rgb(16 37 60 / .5) 75%, rgb(16 37 60 / .25) 100%);
}
.page-hero--photo { padding-bottom: 72px; }
.page-hero h1 { color: #fff; max-width: 760px; font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.page-hero__lead { max-width: 640px; font-size: 1rem; color: #d4dde7; margin: 0; }
.page-hero__icon { display: inline-flex; padding: 14px; border-radius: var(--radius); background: var(--grad-silver); color: var(--navy-900); margin-bottom: 18px; box-shadow: var(--shadow); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; font-size: .85rem; color: var(--silver-300); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }

/* ---------- Leistungskarten ---------- */
.service-grid { display: grid; gap: 18px; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 0 22px 22px; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::before { /* silberne Akzentlinie */
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; z-index: 2; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-silver);
}
.service-card__media { margin: 0 -22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--silver-100); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--silver-300); }
.service-card__icon {
  position: relative; z-index: 1; margin-top: -30px; border: 3px solid #fff;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 18px;
  background: var(--grad-navy); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 8px 18px -8px rgb(16 37 60 / .6);
}
.service-card__title { font-size: 1.2rem; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* ganze Karte klickbar */
.service-card p { color: var(--text-muted); font-size: .97rem; }
.service-card__tag { margin-top: auto; font-size: .8rem !important; font-weight: 600; color: var(--navy-500) !important; text-transform: uppercase; letter-spacing: .06em; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }
.service-card__more .icon { transition: transform .2s ease; }

/* ---------- Vorteile ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefit {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(207 211 216 / .2); backdrop-filter: blur(6px);
}
.benefit > .icon { color: var(--navy-900); background: var(--grad-silver); border-radius: 12px; padding: 10px; width: 50px; height: 50px; }
.benefit h3 { color: #fff; margin-bottom: .3em; }
.benefit p { margin: 0; color: #c8d3df; font-size: .95rem; }

/* ---------- Einsatzgebiet / Karte ---------- */
.area { display: grid; gap: 32px; align-items: start; }
.city-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.city {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--silver-200); font-weight: 600; font-size: .93rem; color: var(--navy-900);
}
.city .icon { width: 16px; height: 16px; color: var(--silver-500); }
.city--hq { grid-column: 1 / -1; background: var(--grad-navy); color: #fff; border-color: var(--navy); flex-wrap: wrap; }
.city--hq .icon { color: var(--silver-300); }
.city--hq em { margin-left: auto; font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--grad-silver); color: var(--navy-900); padding: 3px 8px; border-radius: 999px; }

.map {
  position: relative; height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #eef2f6, #dfe5ec); border: 1px solid var(--silver-200); box-shadow: var(--shadow);
}
.map-preview { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.mp-dot { fill: var(--navy-500); }
.mp-hq { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.mp-ring { fill: rgb(31 69 105 / .08); stroke: rgb(31 69 105 / .3); stroke-dasharray: 4 6; }
.mp-label { font: 600 13px var(--font-body); fill: var(--navy-900); }
.mp-label--hq { font-weight: 800; }
.map__consent {
  position: absolute; inset: auto 12px 12px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px; border-radius: var(--radius); background: rgb(255 255 255 / .94); backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.map__consent > .icon { color: var(--navy); }
.map__title { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); margin: 0; }
.map__text { font-size: .85rem; color: var(--text-muted); margin: 0 0 6px; }
.map.is-loaded .map-preview, .map.is-loaded .map__consent { display: none; }
.map .leaflet-container { font-family: var(--font-body); }
/* eigene Marker */
.marker { width: 16px; height: 16px; border-radius: 50%; background: var(--navy-500); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.marker--hq { width: 26px; height: 26px; background: var(--grad-silver); border: 4px solid var(--navy); box-shadow: 0 0 0 6px rgb(31 69 105 / .25), 0 4px 10px rgb(0 0 0 / .35); }
.leaflet-tooltip.marker-label { background: var(--navy-900); color: #fff; border: 0; font-weight: 600; padding: 3px 8px; box-shadow: none; }
.leaflet-tooltip.marker-label::before { display: none; }

.area-compact { display: grid; gap: 28px; align-items: center; }
.area-compact .city-list { margin: 0; }

/* ---------- Über uns ---------- */
.about-teaser { display: grid; gap: 32px; align-items: center; }
.about-teaser__visual { position: relative; margin: 0; min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-navy); box-shadow: var(--shadow-lg); }
.about-teaser__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass-panel {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 25%, rgb(255 255 255 / .28) 38%, transparent 46%, transparent 60%, rgb(255 255 255 / .14) 68%, transparent 74%),
    repeating-linear-gradient(90deg, rgb(207 211 216 / .4) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgb(207 211 216 / .32) 0 2px, transparent 2px 48px);
}
.about-teaser__quote {
  position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 16px 20px; border-radius: var(--radius);
  background: rgb(255 255 255 / .92); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy-900);
  backdrop-filter: blur(6px);
}
.about-teaser__quote span { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--text-muted); }
.about { display: grid; gap: 32px; align-items: start; }
.owner-card { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--grad-silver-soft); border: 1px solid var(--silver-200); box-shadow: var(--shadow); text-align: center; }
.owner-card__photo { width: 120px; height: 120px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-navy); color: var(--silver-300); box-shadow: 0 0 0 6px #fff, var(--shadow); }
.owner-card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy-900); margin: 0; }
.owner-card__role { font-size: .9rem; color: var(--navy-500); font-weight: 600; }
.owner-card__quote { color: var(--text-muted); font-size: .95rem; }
.values { display: grid; gap: 16px; }
.value { padding: 24px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(207 211 216 / .2); }
.value > .icon { color: var(--silver-300); margin-bottom: 12px; }
.value h3 { color: #fff; }
.value p { margin: 0; color: #c8d3df; font-size: .95rem; }

/* ---------- Leistungsseiten ---------- */
.intro { display: grid; gap: 32px; align-items: start; }
.intro__why { margin-top: 1.4em; }
.intro__text .checklist { margin-bottom: 1.4em; }
.intro__text p { color: var(--text-muted); }
.info-box { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f6f9fc 0%, var(--blue-50) 55%, var(--blue-100) 100%); border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm); overflow: hidden; }
.info-box__img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 20px; aspect-ratio: 16 / 10; object-fit: cover; }
.info-box h3 { display: flex; align-items: center; gap: 10px; }
.info-box h3 .icon { color: var(--navy); }
.info-box__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--navy-300); font-size: .88rem; color: var(--text-muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .icon { width: 20px; height: 20px; color: #fff; background: var(--navy); border-radius: 50%; padding: 3px; }
.checklist--light li { color: #fff; }
.checklist--light .icon { background: var(--grad-silver); color: var(--navy-900); }
.tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--silver-50); border: 1px solid var(--silver-200); }
.tip .icon { color: var(--navy); margin-top: 3px; }
.sub-grid { display: grid; gap: 16px; }
.sub-card { padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm); }
.sub-card > .icon { color: #fff; margin-bottom: 14px; padding: 11px; width: 52px; height: 52px; background: var(--grad-navy); border-radius: 14px; box-shadow: 0 8px 18px -8px rgb(16 37 60 / .6); }
.sub-card__img { display: block; width: calc(100% + 44px); max-width: none; margin: -24px -22px 18px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.sub-card h3 { font-size: 1.08rem; }
.sub-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--silver-200); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  background: var(--grad-navy); color: #fff; font-family: var(--font-head); font-weight: 800; box-shadow: 0 0 0 4px var(--silver-100);
}
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--grad-navy); color: var(--text-light); padding: 48px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; height: 220%; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .1) 50%, transparent 60%); pointer-events: none; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c8d3df; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Angebot / Formular ---------- */
.section--offer { background: var(--grad-navy); color: var(--text-light); position: relative; overflow: hidden; }
.section--offer::before { content: ""; position: absolute; left: -10%; bottom: -30%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgb(143 169 196 / .25), transparent); pointer-events: none; }
.offer { display: grid; gap: 32px; align-items: start; position: relative; }
.offer__intro h2 { color: #fff; }
.offer__intro > p { color: #c8d3df; }
.offer__intro .btn--whatsapp { margin-top: 20px; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--grad-silver); color: var(--navy-900); }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--silver-400); }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.info-box .contact-list strong { color: var(--navy-500); }
.info-box .contact-list a, .info-box .contact-list span { color: var(--navy-900); }

.form { display: grid; gap: 16px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.field__opt { font-weight: 400; color: var(--text-muted); font-size: .82rem; }
.field__hint { margin: 0; font-size: .82rem; color: var(--text-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--silver-300); border-radius: var(--radius-sm);
  background: var(--silver-50); font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgb(45 95 143 / .15); }
.field input[type="file"] { padding: 12px; border: 1.5px dashed var(--silver-400); border-radius: var(--radius-sm); background: var(--silver-50); font-size: .9rem; width: 100%; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background: #fff7f6; }
.field__error { margin: 0; color: var(--error); font-size: .84rem; font-weight: 600; }
.field--topic { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
.field--topic legend { width: 100%; margin-bottom: 6px; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.radio input, .field--check input { width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check label { font-weight: 400; font-size: .9rem; display: block; color: var(--text-muted); }
.field--check input { margin-top: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__footer .btn { width: 100%; }
.form__required { margin: 0; font-size: .82rem; color: var(--text-muted); }
.form__status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form__status.is-success { background: #e7f6ee; color: var(--success); border: 1px solid #b7e2c9; }
.form__status.is-error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Kontaktseite ---------- */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.contact-card > .icon { color: #fff; margin-bottom: 10px; padding: 10px; width: 50px; height: 50px; background: var(--grad-navy); border-radius: 14px; }
.contact-card strong { font-family: var(--font-head); color: var(--navy-900); }
.contact-card span { color: var(--text-muted); word-break: break-word; }
.contact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--text-muted); }
.contact-meta .icon { color: var(--navy); }
.contact-meta__sep { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); overflow-wrap: anywhere; }
.legal li + li { margin-top: 6px; }
.legal__notice { font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b8c4d1; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__brand p { margin: 18px 0; max-width: 340px; }
.site-footer__title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-300); margin: 0 0 14px; }
.site-footer__title:not(:first-child) { margin-top: 24px; }
.site-footer a { color: #e3e9ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__contact p { display: flex; gap: 12px; margin: 0 0 12px; }
.site-footer__contact .icon { color: var(--silver-400); margin-top: 3px; }
.site-footer__contact small { color: var(--silver-400); }
.site-footer__cities { margin: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); transition: background .2s; }
.social a:hover { background: var(--grad-silver); color: var(--navy-900); }
.social--nav { justify-content: center; margin-top: 8px; }
.social--nav a { background: var(--silver-100); border-color: var(--silver-200); color: var(--navy); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .08); padding: 18px 0 90px; font-size: .85rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .container { align-items: center; }
/* Entwickler-Hinweis (SMA nexus): goldene Fläche, die nur zu den Seiten hin ausläuft; schwarze Schrift */
.site-footer .credit {
  display: inline-flex; align-items: baseline; justify-content: center; gap: .35em; padding: 9px 72px; min-width: 320px;
  background: linear-gradient(90deg, rgb(168 130 47 / 0) 0%, #a8822f 22%, #c9a24a 50%, #a8822f 78%, rgb(168 130 47 / 0) 100%);
  color: #111; font-size: .82rem; font-weight: 500; text-decoration: none;
  transition: filter .2s ease;
}
.site-footer .credit strong { font-weight: 800; font-size: .95rem; }
.site-footer .credit:hover { color: #000; text-decoration: none; filter: brightness(1.1); }

/* WhatsApp-Button (schwebend) */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: 999px; background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / .4); transition: transform .2s ease;
}
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float span { display: none; }
body.nav-open .whatsapp-float { display: none; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .card { padding: 32px 28px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .form__footer .btn { width: auto; }
  .service-grid, .sub-grid, .steps, .values, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-phone { width: auto; height: auto; padding: 10px 14px; border-radius: 999px; }
  .header-phone span { display: inline; font-size: .92rem; }
  .whatsapp-float { padding: 12px 18px 12px 14px; }
  .whatsapp-float span { display: inline; }
  .contact-meta__sep { display: inline; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding: 88px 0; }
  .hero { padding: calc(var(--header-h) + 72px) 0 72px; min-height: max(100vh, 680px); min-height: max(100svh, 680px); }
  /* ab Tablet: links dunkel, rechts Foto sichtbar (wie Referenz); oben leicht dunkel für den Header */
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgb(10 24 40 / .6) 0%, transparent 22%),
      linear-gradient(90deg, rgb(10 24 40 / .96) 0%, rgb(16 37 60 / .9) 30%, rgb(16 37 60 / .55) 58%, rgb(16 37 60 / .12) 82%, rgb(16 37 60 / 0) 100%),
      linear-gradient(0deg, rgb(10 24 40 / .45) 0%, transparent 35%);
  }
  .page-hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { display: inline-flex; }
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit { flex-direction: column; }
  .map { height: 460px; }
  .map__consent { inset: auto auto 20px 20px; max-width: 380px; }
  .cta-band__inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .logo__mark { width: 42px; height: 48px; }
  .logo__word { font-size: 1.6rem; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sub-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .area-compact { grid-template-columns: 1fr 1fr; gap: 56px; }
  .about-teaser { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .about-teaser__visual { min-height: 380px; }
  .about { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .intro { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .offer { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
  .site-footer__bottom { padding-bottom: 84px; } /* Platz für den schwebenden WhatsApp-Button */

  /* Desktop-Navigation */
  .nav-toggle, .nav__mobile-extra { display: none; }
  .nav { position: static; transform: none; visibility: visible; padding: 0; overflow: visible; background: none; }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__item { border: 0; flex-wrap: nowrap; }
  .nav__link { padding: 10px 12px; font-size: .95rem; border-radius: 999px; white-space: nowrap; }
  .header-phone { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .header-phone span { display: none; }
  .nav__link:hover { background: var(--silver-100); color: var(--navy); }
  .nav__link[aria-current="page"], .nav__item.is-current > .nav__link { background: var(--silver-100); }
  .nav__subtoggle { width: 28px; height: 28px; background: none; margin-left: -8px; }
  .nav__sub {
    display: block; position: absolute; top: calc(100% + 8px); left: 0; width: 330px; padding: 10px;
    background: #fff; border: 1px solid var(--silver-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }

  /* Transparenter Header: helle Navigation */
  .site-header:not(.is-scrolled) .nav__link, .site-header:not(.is-scrolled) .nav__subtoggle { color: #fff; }
  .site-header:not(.is-scrolled) .nav__link:hover,
  .site-header:not(.is-scrolled) .nav__link[aria-current="page"],
  .site-header:not(.is-scrolled) .nav__item.is-current > .nav__link { background: rgb(255 255 255 / .14); color: #fff; }
}

@media (min-width: 1280px) {
  .nav__link { padding: 10px 14px; }
  .header-phone { width: auto; height: auto; padding: 10px 14px; border-radius: 999px; }
  .header-phone span { display: inline; }
}

/* ==========================================================================
   Scroll-Animationen (nur mit Klasse .js-reveal, die ein Inline-Skript im <head>
   setzt – nicht bei "Bewegung reduzieren"). Selektoren passend zu main.js halten.
   ========================================================================== */
.js-reveal :is(
  .section__head, .intro__text, .area__text, .about__text, .offer__intro, .cta-band__inner,
  .service-card, .benefit, .sub-card, .step, .value, .contact-card, .city, .note,
  .contact-meta, .area-compact > div, .about-teaser__visual, .about-teaser > div:last-child,
  .info-box, .owner-card, .offer__form, .area__map, .stat
):not(.reveal-done) {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform .8s cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Varianten: Bild von links, Text von rechts, Kästen/Karte leicht zoomen */
.js-reveal .about-teaser__visual:not(.reveal-done) { transform: translateX(-48px); }
.js-reveal .about-teaser > div:last-child:not(.reveal-done) { transform: translateX(48px); }
.js-reveal :is(.info-box, .owner-card, .offer__form, .area__map):not(.reveal-done) { transform: translateY(24px) scale(.96); }
.js-reveal .city:not(.reveal-done) { transform: translateY(16px); }
.js-reveal :is(
  .section__head, .intro__text, .area__text, .about__text, .offer__intro, .cta-band__inner,
  .service-card, .benefit, .sub-card, .step, .value, .contact-card, .city, .note,
  .contact-meta, .area-compact > div, .about-teaser__visual, .about-teaser > div:last-child,
  .info-box, .owner-card, .offer__form, .area__map, .stat
).is-visible:not(.reveal-done) { opacity: 1; transform: none; }

/* Hero-Inhalte bauen sich beim Laden nacheinander auf */
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.js-reveal :is(.hero__content, .page-hero__inner) > * { animation: reveal-rise .9s cubic-bezier(.2, .65, .3, 1) both; }
.js-reveal :is(.hero__content, .page-hero__inner) > :nth-child(2) { animation-delay: .12s; }
.js-reveal :is(.hero__content, .page-hero__inner) > :nth-child(3) { animation-delay: .24s; }
.js-reveal :is(.hero__content, .page-hero__inner) > :nth-child(4) { animation-delay: .36s; }
.js-reveal :is(.hero__content, .page-hero__inner) > :nth-child(5) { animation-delay: .48s; }
.js-reveal :is(.hero__content, .page-hero__inner) > :nth-child(n+6) { animation-delay: .6s; }

/* ==========================================================================
   Scroll-Effekte (weiches Scrollen mit Lenis, Parallax, Mission, Zähler,
   Laufband, Markierungen, Ablauf-Linie). Bewegung nur ohne "Bewegung reduzieren".
   ========================================================================== */

/* Lenis (assets/vendor/lenis, MIT) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Parallax: Bild ist etwas größer als sein Rahmen und wird per JS verschoben (--py) */
[data-parallax]:not([data-parallax="hero"]) { overflow: hidden; }
.js-motion [data-parallax]:not([data-parallax="hero"]) img { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); will-change: transform; }
.js-motion .service-card:hover .service-card__media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.22); }
.js-motion [data-parallax="hero"] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* --- Mission: driftende Schrift + Bild, das sich auf volle Breite öffnet --- */
.mission { padding: 72px 0 0; overflow-x: clip; background: #fff; }
.mission__words {
  display: flex; flex-direction: column; align-items: center; gap: .05em; margin-bottom: 40px;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 11vw, 8.5rem); line-height: .95; letter-spacing: -0.04em;
  color: var(--navy-900); white-space: nowrap; user-select: none;
}
.mission__words span { display: block; will-change: transform; transform: translate3d(var(--dx, 0px), 0, 0); }
.mission__words em { font-style: normal; background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.mission__media {
  position: relative; height: 78vh; min-height: 440px; overflow: hidden; color: #fff;
  clip-path: inset(0 var(--inset, 0px) round var(--radius-m, 0px));
}
.js-motion .mission__media { --inset: 6vw; --radius-m: 28px; }
.mission__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); will-change: transform; }
.mission__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 24 40 / .85) 0%, rgb(10 24 40 / .35) 55%, rgb(10 24 40 / .15) 100%); }
.mission__text { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 1; }
.mission__text h2 { color: #fff; max-width: 760px; margin: 0; font-weight: 700; }

/* --- Breites Bild mit Wischeffekt (öffnet sich von oben nach unten) + Zoom-Parallax --- */
.wipe-fig { position: relative; margin: 0 0 36px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-800); }
.wipe-fig img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--wy, 0px), 0) scale(var(--wz, 1)); will-change: transform; }
.js-motion .wipe-fig { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
.js-motion .wipe-fig.is-open { clip-path: inset(0 0 0 0); }
@media (min-width: 768px) { .wipe-fig { aspect-ratio: 21 / 9; margin-bottom: 48px; } }

/* --- Kennzahlen --- */
.stats { background: var(--grad-navy); padding: 56px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.stat { padding-left: 18px; border-left: 2px solid rgb(207 211 216 / .35); }
.stat__num { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .38em; font-weight: 700; letter-spacing: 0; margin-left: .2em; color: var(--silver-300); }
.stat__label { margin: 10px 0 0; font-size: .92rem; color: #c8d3df; max-width: 220px; }

/* --- Laufband (zwei gegenläufige Reihen) --- */
.marquee { padding: 8px 0 48px; background: var(--grad-navy); overflow: hidden; }
.marquee__row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; color: #fff;
}
.marquee__item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-silver); box-shadow: 0 0 0 1px var(--silver-400); }
.marquee__row--reverse .marquee__item { color: var(--silver-300); font-weight: 500; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* --- Markierung unter Schlüsselwörtern, die sich beim Hereinscrollen zeichnet --- */
.hl {
  background-image: linear-gradient(90deg, rgb(201 162 74 / .45), rgb(207 211 216 / .7));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .38em;
  padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.js-motion .hl { background-size: 0% .38em; transition: background-size 1.1s cubic-bezier(.2, .65, .3, 1) .2s; }
.js-motion .hl.is-on { background-size: 100% .38em; }

/* --- „So arbeiten wir“: Linie, die sich beim Scrollen zeichnet (ab Desktop) --- */
.step__num { position: relative; z-index: 2; transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.js-motion .steps[data-progress] .step:not(.is-active) .step__num { background: var(--silver-100); color: var(--navy-500); box-shadow: 0 0 0 4px #fff, inset 0 0 0 1.5px var(--silver-300); }

@media (min-width: 560px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mission { padding-top: 112px; }
  .mission__text { bottom: 72px; }
  .stats { padding: 80px 0; }
  .steps[data-progress] { position: relative; }
  .steps[data-progress]::before, .steps[data-progress]::after { /* Schiene + gezeichneter Teil, auf Höhe der Nummern */
    content: ""; position: absolute; left: 44px; right: 44px; top: 46px; height: 2px; z-index: 1; border-radius: 2px;
  }
  .steps[data-progress]::before { background: var(--silver-200); }
  .steps[data-progress]::after { background: var(--grad-navy); transform-origin: left; transform: scaleX(var(--progress, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Druckansicht */
@media print {
  .site-header, .whatsapp-float, .map, .cta-band, .nav { display: none !important; }
  .hero, .page-hero, .section--navy, .section--offer { background: none !important; color: #000 !important; }
}
