/* ==========================================================================
   VAH Maklerservice GmbH — Stylesheet
   Design-System: Navy/Blau, Montserrat (Headlines) + Inter (Fließtext)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marke */
  --navy-950: #0b1524;
  --navy-900: #101e33;
  --navy-850: #14243c;
  --navy-800: #192b47; /* Markenfarbe dunkel */
  --navy-700: #24395c;
  --navy-600: #33507b;

  --blue-800: #1a4d84;
  --blue-700: #1e5793;
  --blue-600: #2568af; /* Markenfarbe Akzent */
  --blue-500: #3b82d4;
  --blue-400: #5d9ffb;
  --blue-200: #b6d2f4;
  --blue-100: #dbe8f9;
  --blue-50: #f1f6fd;

  /* Neutral */
  --ink-900: #0f1722;
  --ink-800: #1d2733;
  --ink-700: #2b3644;
  --ink-600: #43505f;
  --ink-500: #5a6675;
  --ink-400: #7c8798;
  --line: #e2e8f1;
  --line-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;

  /* Semantisch */
  --brand: var(--blue-600);
  --brand-strong: var(--blue-700);
  --text: var(--ink-700);
  --text-strong: var(--ink-900);
  --text-muted: var(--ink-500);
  --bg: var(--surface);

  /* Radien */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Abstände (8pt-Raster) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Schatten */
  --shadow-xs: 0 1px 2px rgba(16, 30, 51, 0.06);
  --shadow-sm: 0 2px 8px rgba(16, 30, 51, 0.06), 0 1px 2px rgba(16, 30, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 30, 51, 0.08), 0 2px 6px rgba(16, 30, 51, 0.04);
  --shadow-lg: 0 18px 48px rgba(16, 30, 51, 0.12), 0 4px 12px rgba(16, 30, 51, 0.06);
  --shadow-brand: 0 10px 28px rgba(37, 104, 175, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-slow: 420ms;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* Z-Index-Skala */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 60;
  --z-drawer: 80;
  --z-top: 100;
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Sicherheitsnetz für lange deutsche Komposita
     (z. B. „Versicherungsvermittlungsverordnung“) */
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

/* Zusammengehöriges, das nie umbrechen oder getrennt werden darf:
   Namen, Registernummern, „Check-ups“. */
.keep { white-space: nowrap; -webkit-hyphens: none; hyphens: none; }

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

img,
video { height: auto; }

h1, h2, h3, h4 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-strong);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  /* Getrennt wird nur an Stellen, die im HTML per &shy; vorgegeben sind
     (z. B. „Versicherungs&shy;makler“). Automatische Silbentrennung hat auf
     dem Handy auch Namen zerlegt („Da-niel Weimert“). overflow-wrap bleibt
     als Sicherheitsnetz für Wörter ohne Trennstelle. */
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.85rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 600; color: var(--text-strong); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

/* Sichtbarer Fokus für Tastaturnutzung */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--blue-200); color: var(--navy-900); }

/* --------------------------------------------------------------------------
   3. Hilfsklassen
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(56px, 4vw + 40px, 104px);
  position: relative;
}

.section--tight { padding-block: clamp(44px, 3vw + 32px, 76px); }

.section--alt { background: var(--surface-2); }

.section--dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: var(--z-top);
  transform: translateY(-200%);
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Section-Kopf */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 3vw, 56px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head--center .eyebrow::before { display: none; }
.section--dark .eyebrow { color: var(--blue-400); }

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 62ch;
}
.section-head--center .lead { margin-inline: auto; }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

.text-brand { color: var(--brand); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: scale(0.978); }

.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary {
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  --btn-bg: var(--brand-strong);
  box-shadow: 0 14px 34px rgba(37, 104, 175, 0.36);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  box-shadow: 0 10px 28px rgba(8, 18, 33, 0.24);
}
.btn--light:hover { --btn-bg: var(--blue-50); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--line);
}
.btn--outline:hover {
  --btn-bg: var(--blue-50);
  --btn-fg: var(--brand-strong);
  border-color: var(--blue-200);
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  /* Bewusst ohne backdrop-filter: Der Button liegt über dem Hero-Video, und
     ein Weichzeichner über einem laufenden Video lässt manche Browser
     (Chrome mit Hardware-Overlays, Safari auf dem iPhone) das Bild einfrieren. */
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.btn-row--center { justify-content: center; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.header.is-scrolled {
  /* Fast deckend statt Weichzeichner – der Header liegt beim Scrollen noch
     über dem laufenden Hero-Video (siehe .btn--ghost-light). */
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(16, 30, 51, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px; /* Trefferfläche, ohne die Bildgröße zu ändern */
  line-height: 0;
  border-radius: 6px;
}
.logo img {
  width: auto;
  height: 34px;
  transition: filter var(--dur) var(--ease);
  /* Auf transparentem Header (über dunklem Video) einfarbig weiß */
  filter: brightness(0) invert(1);
}
.header.is-scrolled .logo img { filter: none; }

.nav { display: flex; align-items: center; gap: var(--space-2); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.18); }

.header.is-scrolled .nav__link { color: var(--ink-600); }
.header.is-scrolled .nav__link:hover { color: var(--brand-strong); background: var(--blue-50); }
.header.is-scrolled .nav__link.is-active { color: var(--brand-strong); background: var(--blue-50); }

.header__cta { margin-left: var(--space-2); }

/* Burger */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.header.is-scrolled .burger {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--navy-800);
}
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-rows: 1fr;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 30, 0.55);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: calc(env(safe-area-inset-top) + 18px) var(--space-5) calc(env(safe-area-inset-bottom) + 24px);
  background: #fff;
  box-shadow: -20px 0 60px rgba(9, 17, 30, 0.22);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.drawer__top img { height: 30px; width: auto; }

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--navy-800);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease);
}
.drawer__close:hover { background: var(--blue-50); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer__list li { margin: 0; }
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-4);
  border-radius: var(--r-md);
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer__link:hover, .drawer__link.is-active {
  background: var(--blue-50);
  color: var(--brand-strong);
  text-decoration: none;
}

.drawer__foot { margin-top: auto; display: grid; gap: var(--space-3); }
.drawer__contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  color: var(--ink-600);
  font-size: 0.95rem;
}
.drawer__contact svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  min-height: min(94dvh, 900px);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 5vw, 76px);
  background: var(--navy-950);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Poster und Video liegen beide absolut und mit festem z-index übereinander.
   Ohne das lag das Video nur während des Einblendens (Deckkraft < 1 erzeugt
   einen eigenen Stapelkontext) über dem Poster – bei Deckkraft 1 rutschte es
   wieder darunter, und nach knapp einer Sekunde war nur noch das Standbild
   des Posters zu sehen, obwohl das Video dahinter weiterlief. */
.hero__poster { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero__video.is-ready { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(190deg, rgba(11, 21, 36, 0.86) 0%, rgba(11, 21, 36, 0.58) 32%, rgba(11, 21, 36, 0.72) 66%, rgba(11, 21, 36, 0.95) 100%),
    linear-gradient(100deg, rgba(25, 43, 71, 0.78) 0%, rgba(25, 43, 71, 0.12) 62%);
}

.hero__inner { width: 100%; }

.hero__content { max-width: 780px; color: #fff; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px 8px 10px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-full);
  /* Ohne backdrop-filter – siehe .btn--ghost-light */
  background: rgba(255, 255, 255, 0.14);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.hero__badge svg { width: 18px; height: 18px; color: var(--blue-400); flex: none; }

.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: normal;
  color: var(--blue-400);
}

.hero__sub {
  font-size: clamp(1.04rem, 0.98rem + 0.4vw, 1.24rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.hero__actions { margin-bottom: var(--space-7); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.hero__trust svg { width: 18px; height: 18px; color: var(--blue-400); flex: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur) var(--ease);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll svg { width: 22px; height: 22px; animation: nudge 2.4s var(--ease) infinite; }

@keyframes nudge {
  0%, 62%, 100% { transform: translateY(0); opacity: 0.75; }
  32% { transform: translateY(6px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. Karten & Raster
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-5); }
/* Ohne min-width:0 richten sich Grid-Spalten nach dem längsten Wort –
   bei deutschen Komposita sprengt das auf schmalen Displays das Layout. */
.grid > *,
.steps > *,
.shift > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Leistungs-Karten: Icon und Überschrift nebeneinander brauchen mehr Breite.
   Dreispaltig erst ab 1180 px, sonst trennen „Rechtsschutzversicherung“ & Co.
   mitten in der Überschrift. */
@media (min-width: 961px) and (max-width: 1179px) {
  .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card p { color: var(--text-muted); }
.card p:last-child { margin-bottom: 0; }

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-5);
  border-radius: 16px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-800));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 104, 175, 0.26);
  flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }

.icon-badge--soft {
  background: var(--blue-50);
  color: var(--brand);
  box-shadow: none;
  border: 1px solid var(--blue-100);
}

/* --------------------------------------------------------------------------
   8. Vorher / Nachher
   -------------------------------------------------------------------------- */
.shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-5);
}

.shift__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.shift__card--before {
  background: var(--surface-2);
  border-style: dashed;
}
.shift__card--before .shift__label { color: var(--ink-500); }

.shift__card--after {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}
.shift__card--after h3 { color: #fff; }
.shift__card--after .shift__label { color: var(--blue-400); }

.shift__label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.shift__list { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.shift__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.shift__card--after .shift__list li { border-top-color: rgba(255, 255, 255, 0.14); }
.shift__list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.shift__list--before svg { color: var(--ink-400); }
.shift__list--after svg { color: var(--blue-400); }

.shift__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-200);
  padding-inline: var(--space-2);
}
.shift__arrow svg { width: 44px; height: 44px; }

/* --------------------------------------------------------------------------
   9. Leistungen
   -------------------------------------------------------------------------- */
.service {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  background: var(--navy-800);
  color: #fff;
  flex: none;
}
.service__icon svg { width: 23px; height: 23px; }
.service__body { min-width: 0; }
.service__body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.service__body p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

.service-group + .service-group { margin-top: var(--space-7); }
.service-group__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.service-group__head h3 { margin: 0; font-size: 1.25rem; }
.service-group__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  color: var(--brand-strong);
  border: 1px solid var(--blue-100);
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Ablauf (Schritte)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(93, 159, 251, 0.5);
  transform: translateY(-4px);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(37, 104, 175, 0.34);
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. Über uns
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.about__media { position: relative; }
.about__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-3);
  aspect-ratio: 1087 / 1446;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__stamp {
  position: absolute;
  right: -14px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 250px;
}
.about__stamp svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.about__stamp strong { display: block; font-family: "Montserrat", sans-serif; font-size: 0.95rem; color: var(--navy-800); line-height: 1.25; }
.about__stamp span { font-size: 0.8rem; color: var(--text-muted); }

.about__body p { color: var(--text); }
.about__body .lead { color: var(--text-muted); }

.signature {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1;
  margin: var(--space-5) 0 var(--space-2);
}
.signature-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Zielgruppen (Privat / Firmen)
   -------------------------------------------------------------------------- */
.audience {
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6) var(--space-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.audience__list { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-6); }
.audience__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.96rem;
  color: var(--text);
}
.audience__list svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.audience .btn { margin-top: auto; }

.section--dark strong { color: #fff; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--blue-50); color: var(--brand-strong); }
.faq__item[open] .faq__q { color: var(--brand-strong); }

.faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--blue-50);
  color: var(--brand);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__icon svg { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--blue-100); }

.faq__a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.faq__a p:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   14. Kontakt
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.contact__methods { display: grid; gap: var(--space-3); }

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(93, 159, 251, 0.55);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.contact-card:active { transform: scale(0.99); }

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff;
}
.contact-card__icon svg { width: 24px; height: 24px; }

.contact-card__body { min-width: 0; }
.contact-card__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-card__value {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  /* Die E-Mail-Adresse darf nur nach dem @ umbrechen (<wbr> im HTML),
     nicht an beliebiger Stelle mitten im Wort. */
  overflow-wrap: break-word;
}
@media (max-width: 400px) {
  .contact-card__value { font-size: 0.98rem; }
}
.contact-card__hint { display: block; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }

.contact-card__arrow { margin-left: auto; color: rgba(255, 255, 255, 0.45); flex: none; }
.contact-card__arrow svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.contact-card:hover .contact-card__arrow svg { transform: translateX(4px); }

.contact__aside {
  padding: var(--space-6);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.contact__aside h3 { font-size: 1.15rem; }
.contact__aside dl { margin: 0; display: grid; gap: var(--space-4); }
.contact__aside dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  font-weight: 600;
  margin-bottom: 3px;
}
.contact__aside dd { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.96rem; line-height: 1.6; }
.contact__aside address { font-style: normal; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  padding-block: var(--space-8) var(--space-5);
  font-size: 0.93rem;
}
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}

.footer__brand img {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: brightness(0) invert(1);
}
.footer__brand p { max-width: 40ch; line-height: 1.65; }

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 2px; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* --------------------------------------------------------------------------
   16. Rechtsseiten (Legal)
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: var(--space-7);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: rgba(255, 255, 255, 0.78);
}
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-bottom: var(--space-3); }
.legal-hero p { margin: 0; max-width: 60ch; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}
.legal-back:hover { color: #fff; text-decoration: none; }
.legal-back svg { width: 17px; height: 17px; }

/* Rechtstexte enthalten viele lange Fachbegriffe – Silbentrennung hält
   den Flattersatz auf schmalen Displays ruhig. */
.legal {
  max-width: 78ch;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.legal-hero p { -webkit-hyphens: auto; hyphens: auto; }
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.12rem; margin-top: var(--space-6); }
.legal h4 { font-size: 1rem; margin-top: var(--space-5); color: var(--ink-700); }
.legal p, .legal li { color: var(--text); }
.legal a { overflow-wrap: anywhere; }

.legal address {
  font-style: normal;
  padding: var(--space-5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}
.legal address strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.05rem; margin-bottom: 4px; }

.legal__caps {
  font-size: 0.9rem;
  line-height: 1.7;
  padding: var(--space-5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-600);
}

.legal__toc {
  padding: var(--space-5);
  margin-bottom: var(--space-7);
  border-radius: var(--r-md);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.legal__toc h2 { font-size: 0.8rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 var(--space-3) !important; padding: 0 !important; border: 0 !important; }
.legal__toc ol { margin: 0; padding-left: 1.2em; }
.legal__toc li { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   17. Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Kein JS: Inhalte müssen trotzdem sichtbar sein */
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav__list, .header__cta { display: none; }
  .burger { display: inline-flex; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about { grid-template-columns: 1fr; gap: var(--space-7); }
  .about__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .about__stamp { right: 0; }

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

  .shift { grid-template-columns: 1fr; }
  .shift__arrow { transform: rotate(90deg); padding-block: var(--space-2); }

}

@media (max-width: 720px) {
  :root { --header-h: 68px; }

  body { font-size: 16px; }

  .hero {
    min-height: min(88dvh, 720px);
    padding-top: calc(var(--header-h) + 32px);
  }
  .hero__overlay {
    background: linear-gradient(185deg, rgba(11, 21, 36, 0.8) 0%, rgba(11, 21, 36, 0.66) 40%, rgba(11, 21, 36, 0.94) 100%);
  }
  .hero__trust { gap: var(--space-2) var(--space-5); }
  .hero__trust li { font-size: 0.85rem; }
  .hero__scroll { display: none; }
  .hero .btn { width: 100%; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .card, .audience { padding: var(--space-5); }
  .service { padding: var(--space-4); }

  .about__stamp {
    position: static;
    max-width: none;
    margin-top: var(--space-4);
  }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .container { padding-inline: var(--space-4); }
  .hero__badge { font-size: 0.76rem; }
  /* Das breite Wortmarken-Logo braucht neben dem Menü-Button weniger Höhe */
  .logo img { height: 26px !important; }
  .drawer__top img { height: 26px !important; }

  /* Der dekorative Pfeil kostet Platz, den die E-Mail-Adresse braucht */
  .contact-card__arrow { display: none; }
  .contact-card { gap: var(--space-3); padding-inline: var(--space-4); }
  .contact-card__icon { width: 44px; height: 44px; }
}

/* Querformat auf niedrigen Geräten: Hero nicht überhöhen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 32px) var(--space-7); }
}

/* --------------------------------------------------------------------------
   19. Bewegungsreduktion & Druck
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

@media print {
  .header, .drawer, .hero__media, .hero__scroll, .btn, .footer { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { min-height: auto; background: none; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
