/* =========================================================================
   KFZ-Sachverständigenbüro Kühn — Kühn & Korfsmeier GbR
   Zentrales Stylesheet

   Gliederung
   1. Schriften
   2. Variablen (Design-Tokens)
   3. Grundlagen und Reset
   4. Layout-Bausteine
   5. Basiskomponenten (Button, Card, Badge, Icon)
   6. Header und Navigation
   7. Hero-Bereiche
   8. Inhaltssektionen
   9. Formulare und Terminmodal
  10. Footer
  11. Responsive Darstellung
   ========================================================================= */


/* =========================================================================
   1. Schriften — lokal eingebunden, keine externen Schriftserver
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* =========================================================================
   2. Variablen — übernommen aus dem Design-System des Entwurfs
   ========================================================================= */

:root {
  /* Farben: Navy */
  --navy-900: #051f3a;
  --navy-800: #072f57;
  --navy-700: #0a4a89;
  --navy-600: #115a9f;
  --navy-500: #1668b3;
  --navy-100: #e8eff6;
  --navy-50: #f4f8fb;

  /* Farben: Grau */
  --gray-900: #1c1d1f;
  --gray-800: #303234;
  --gray-700: #4a4c4f;
  --gray-600: #63656a;
  --gray-500: #7d7d7d;
  --gray-400: #9c9da0;
  --gray-300: #c7c7c9;
  --gray-200: #dedfe1;
  --gray-100: #f1f1f2;
  --gray-50: #f8f8f9;
  --white: #ffffff;

  /* Farben: Amber-Akzent */
  --amber-700: #a5540f;
  --amber-600: #c75f16;
  --amber-500: #e2711d;
  --amber-400: #ec8c42;
  --amber-100: #fcebdd;

  /* Markenblau der Flächen und Verläufe */
  --brand-blue: #0f3f70;
  --brand-gradient: linear-gradient(135deg, #0f3f70 0%, #092643 100%);

  /* Flächen */
  --surface-page: var(--gray-50);
  --surface-card: var(--white);
  --surface-sunken: var(--gray-100);
  --surface-inverse: var(--navy-900);

  /* Text */
  --text-heading: var(--navy-900);
  --text-body: var(--gray-800);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);

  /* Rahmen */
  --border-default: var(--gray-200);
  --border-strong: var(--gray-300);

  /* Interaktion */
  --action-primary: var(--navy-700);
  --action-primary-hover: var(--navy-800);
  /* Akzentflächen tragen weiße Schrift und brauchen darum einen dunkleren
     Ton als das Markenorange: --amber-500 ergäbe nur 3,18:1 und fiel bei
     PageSpeed am 13.08.2026 durch. #ad5710 schafft 5,06:1, der Hover-Ton
     6,66:1 — beides über den 4,5:1 der WCAG AA für Fließtextgrößen.
     Die Palette selbst bleibt unverändert: Fokusmarkierung und
     Bewertungssterne behalten das hellere --amber-500. */
  --action-accent: #ad5710;
  --action-accent-hover: #8f4a0d;

  /* Schrift */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 60px;
  --text-6xl: 72px;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.04em;

  /* Abstände */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radien */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(5, 31, 58, 0.06), 0 1px 1px rgba(5, 31, 58, 0.04);
  --shadow-md: 0 4px 10px rgba(5, 31, 58, 0.08), 0 1px 3px rgba(5, 31, 58, 0.06);
  --shadow-lg: 0 12px 28px rgba(5, 31, 58, 0.12), 0 3px 8px rgba(5, 31, 58, 0.06);

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 780px;
  --header-height: 76px;
  --gutter: var(--space-8);

  /* Bewegung */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}


/* =========================================================================
   3. Grundlagen und Reset
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin: 0;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--action-primary);
  text-decoration: none;
}

a:hover {
  color: var(--navy-600);
}

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

/* Bilder stecken in einem <picture> mit der AVIF-Fassung. Das soll im Layout
   nicht mitzählen: Regeln wie `.media img { height: 100% }` beziehen sich auf
   den umgebenden Rahmen, nicht auf das <picture> dazwischen. */
picture {
  display: contents;
}

button {
  font: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Sichtbare Fokusmarkierung auf hellem wie dunklem Grund */
:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 300;
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  color: var(--action-primary);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Icon-Sprite: nur Symboldefinitionen, nicht sichtbar */
.icon-sprite {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html,
  .reviews-track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================================
   4. Layout-Bausteine
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: calc(var(--content-narrow) + 2 * var(--gutter));
}

.container--faq {
  max-width: calc(840px + 2 * var(--gutter));
}

/* Standard-Sektion: 96px Innenabstand oben und unten */
.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-20) 0;
}

.section--xs {
  padding: var(--space-16) 0;
}

/* Sprungziele nicht unter den festen Kopfbereich rutschen lassen */
.section[id] {
  scroll-margin-top: 90px;
}

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

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

.section--framed {
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.section--brand {
  background: var(--brand-gradient);
  color: var(--white);
}

.section--brand h2,
.section--brand h3 {
  color: var(--white);
}

/* --- Einblenden beim Scrollen ----------------------------------------- */

/* Die Startzustände hängen an .js-reveal am <html>, gesetzt von einem
   kurzen Skript im Kopfbereich. Ohne JavaScript fehlt die Klasse und alles
   ist von vornherein sichtbar — ebenso im Ausdruck und im Lesemodus.
   Der Hero bleibt bewusst außen vor: er ist das zuerst gemessene Bild der
   Seite und soll ohne Umweg erscheinen.
   Wer Bewegung reduziert haben will, sieht den Effekt gar nicht erst: die
   Regel in Abschnitt 3 setzt alle Übergänge auf 0,01 ms. */

.js-reveal main .section,
.js-reveal main .cta-band {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.js-reveal main .is-visible {
  opacity: 1;
  transform: none;
}

/* Was beim Laden schon im Bild steht, erscheint ohne Animation. */
.js-reveal main .is-instant {
  transition: none;
}

/* Beim Drucken gibt es kein Scrollen: ohne diese Regel blieben alle noch
   nicht eingeblendeten Abschnitte leer auf dem Papier. Betrifft vor allem
   die Rechtstexte. */
@media print {
  .js-reveal main .section,
  .js-reveal main .cta-band {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  margin: 0 0 var(--space-8);
}

.section-title--spaced {
  margin-bottom: var(--space-10);
}

/* Abschnittsüberschrift in der kleineren Stufe des Entwurfs */
.section-title--sm {
  font-size: var(--text-2xl);
}

.section-title--center {
  text-align: center;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  /* --amber-600 wären auf Weiß nur 4,14:1 und auf --navy-50 gar 3,87:1.
     --amber-700 schafft 5,42:1. Gilt hier als Kleintext, darum 4,5:1. */
  color: var(--amber-700);
}

.eyebrow--light {
  color: var(--amber-400);
}

.eyebrow--center {
  text-align: center;
}

.eyebrow a {
  color: inherit;
}

.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.lead--light {
  color: rgba(255, 255, 255, 0.85);
}


/* =========================================================================
   5. Basiskomponenten
   ========================================================================= */

/* --- Icon ------------------------------------------------------------- */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Button ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: var(--action-primary);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.button:hover {
  background: var(--action-primary-hover);
  color: var(--white);
}

.button--accent {
  background: var(--action-accent);
}

.button--accent:hover {
  background: var(--action-accent-hover);
}

.button--secondary {
  background: var(--navy-100);
  color: var(--navy-800);
}

.button--secondary:hover {
  background: var(--white);
  color: var(--navy-800);
}

.button--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--action-primary);
}

.button--ghost:hover {
  background: var(--navy-50);
  border-color: var(--action-primary);
  color: var(--action-primary);
}

.button--sm {
  padding: 8px 14px;
  font-size: var(--text-sm);
}

.button--lg {
  padding: 14px 28px;
  font-size: var(--text-md);
}

.button--block {
  display: flex;
  width: 100%;
}

.button:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.button .icon {
  width: 16px;
  height: 16px;
}

/* --- Card ------------------------------------------------------------- */

.card {
  display: block;
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.card--link:hover,
a:hover > .card--link,
a:focus-visible > .card--link {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-title {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--text-heading);
}

.card-text {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* --- Badge ------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0;
}

/* --- Bildausschnitt ---------------------------------------------------
   Einzelne Motive sind im Entwurf bewusst nicht mittig beschnitten. Die
   Angabe gehört zum jeweiligen Foto und ist beim Bildaustausch zu prüfen.
   ---------------------------------------------------------------------- */

.image-focus-10 { object-position: center 10%; }
.image-focus-15 { object-position: center 15%; }
.image-focus-20 { object-position: center 20%; }
.image-focus-25 { object-position: center 25%; }
.image-focus-90 { object-position: center 90%; }

/* --- Medienrahmen ----------------------------------------------------- */

.media {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

.media--portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================================
   6. Header und Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-gradient);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 38px;
  width: auto;
}

/* --- Hauptnavigation -------------------------------------------------- */

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--space-6);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  font-weight: var(--weight-semibold);
  border-bottom-color: var(--amber-500);
}

.nav-link .icon {
  width: 14px;
  height: 14px;
}

/* --- Mega-Menü -------------------------------------------------------- */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.megamenu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard),
    visibility 0s linear var(--duration-base);
}

.nav-dropdown:hover .megamenu,
.nav-dropdown:focus-within .megamenu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) 0;
}

.megamenu-grid--locations {
  grid-template-columns: repeat(3, 1fr);
}

.megamenu-item {
  display: block;
}

.megamenu-item .media {
  margin-bottom: var(--space-3);
}

.megamenu-item:hover .card-title {
  color: var(--action-primary);
}

/* --- Header-Aktionen -------------------------------------------------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.whatsapp-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: var(--text-sm);
}

.navigation-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.navigation-toggle .icon {
  width: 22px;
  height: 22px;
}

/* --- Mobile Navigation ------------------------------------------------ */

.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--brand-gradient);
  overflow-y: auto;
}

.mobile-navigation[hidden] {
  display: none;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 30px;
}

.mobile-nav-header img {
  height: 32px;
  width: auto;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav-close .icon {
  width: 22px;
  height: 22px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 30px var(--space-10);
}

.mobile-nav-link,
.mobile-nav-group {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--white);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-group {
  padding-bottom: var(--space-2);
}

/* Sonst zieht die allgemeine a:hover-Regel diese Links ins dunkle Navy —
   auf dem dunklen Menügrund unlesbar. */
.mobile-nav-link:hover,
.mobile-nav-group:hover {
  color: var(--white);
}

.mobile-nav-sublink {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
}

.mobile-nav-sublink:hover {
  color: var(--white);
}

.mobile-nav-sublink--last {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-cta {
  margin-top: var(--space-5);
  padding: var(--space-4);
  width: 100%;
}


/* =========================================================================
   7. Hero-Bereiche
   ========================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 768px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 31, 58, 0.88) 0%,
    rgba(5, 31, 58, 0.66) 45%,
    rgba(5, 31, 58, 0.28) 75%,
    rgba(5, 31, 58, 0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.hero-content {
  max-width: 620px;
}

/* Breitere Textspalte im Hero der Startseite */
.hero-content--wide {
  max-width: 820px;
}

.hero-title {
  font-size: 56px;
  color: var(--white);
  letter-spacing: 2px;
  margin: var(--space-4) 0 0;
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  font-style: italic;
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, 0.85);
  margin: var(--space-2) 0 var(--space-6);
}

.hero-text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-4);
}

.hero-text:last-of-type {
  margin-bottom: var(--space-8);
}

.hero-text a {
  color: var(--white);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Unterseiten-Hero: kompakter, mit Eyebrow statt Badge */
.hero--page .hero-inner {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero--page .hero-title {
  font-size: 44px;
  margin-top: var(--space-2);
}

.hero--page .hero-text {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
}

/* Kürzerer Hero, z. B. auf der Seite Sachverstand */
.hero--short {
  min-height: 480px;
}

/* Kräftigere Abdunklung, wo das Motiv sehr hell ist */
.hero--strong-overlay::after {
  background: linear-gradient(
    90deg,
    rgba(5, 31, 58, 0.9) 0%,
    rgba(5, 31, 58, 0.72) 45%,
    rgba(5, 31, 58, 0.35) 75%,
    rgba(5, 31, 58, 0.1) 100%
  );
}

/* Rechtstexte: Hero ohne Bild */
.hero--plain {
  min-height: 0;
  background: var(--brand-gradient);
}

.hero--plain::after {
  display: none;
}

.hero--plain .hero-inner {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.hero--plain .hero-title {
  font-size: 40px;
}

.hero--plain .hero-text {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
}

/* Formularseite: etwas höherer Farbblock */
.hero--form {
  min-height: 380px;
}

.hero--form .hero-inner {
  padding-bottom: var(--space-16);
}

.hero--form .hero-title {
  font-size: 44px;
}


/* =========================================================================
   8. Inhaltssektionen
   ========================================================================= */

/* --- Vertrauensleiste ------------------------------------------------- */

.trust-bar {
  display: flex;
  align-items: center;
  min-height: 110px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--brand-blue);
  white-space: nowrap;
}

.trust-item .icon {
  width: 22px;
  height: 22px;
}

/* --- Schnellnavigation (vier Kacheln) --------------------------------- */

.quick-nav {
  padding: var(--space-16) 0 0;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.quick-nav-item {
  height: 100%;
  text-align: center;
}

.quick-nav-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -44px auto 0;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.quick-nav-item .icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: var(--space-4) auto 0;
  color: var(--brand-blue);
}

.quick-nav-title {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--text-heading);
}

/* --- Zweispaltige Bild-Text-Sektion ----------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-16);
  align-items: start;
}

.split--text-first {
  grid-template-columns: 1.05fr 0.95fr;
}

.split--centered {
  align-items: center;
}

.split-media {
  position: relative;
}

.split-image {
  position: relative;
  z-index: 1;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-image--tall {
  height: 420px;
}

.split-image--short {
  height: 320px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  box-shadow: var(--shadow-lg);
}

.split-badge--right {
  left: auto;
  right: -20px;
  background: var(--white);
  color: var(--brand-blue);
}

.split-badge .icon {
  width: 24px;
  height: 24px;
}

.split-body {
  --measure: 520px;
}

.split-body--narrow {
  --measure: 480px;
}

.split-body > p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: var(--measure);
}

/* Eyebrow behält seine eigene Größe, auch innerhalb einer Textspalte */
.split-body > .eyebrow {
  font-size: var(--text-xs);
  max-width: none;
}

.split-body .section-title {
  margin-bottom: var(--space-4);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.thumb-row--two {
  grid-template-columns: repeat(2, 1fr);
}

.thumb-row .media {
  box-shadow: var(--shadow-sm);
}

/* Kleines Bild, das über die Ecke des Hauptbildes ragt */
.split-inset {
  position: absolute;
  right: -28px;
  bottom: -28px;
  z-index: 2;
  width: 46%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 4px solid var(--surface-page);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sektion mit überstehendem Zusatzbild braucht unten mehr Luft */
.section--inset-media {
  padding: var(--space-16) 0 var(--space-20);
}

/* --- Merkmalsliste ---------------------------------------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
}

a.feature-item {
  color: var(--text-body);
}

a.feature-item:hover {
  color: var(--action-primary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--navy-100);
  color: var(--brand-blue);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.section--brand .feature-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section--brand .feature-item span {
  color: rgba(255, 255, 255, 0.92);
}

/* --- Videoteaser ------------------------------------------------------ */

.video-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f3f70 0%, #051f33 100%);
}

.video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.video-section .container {
  position: relative;
}

/* Überschrift auf dem dunklen Grund des Videoteasers */
.video-section .section-title {
  color: var(--white);
}

.video-link {
  position: relative;
  display: block;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-link img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.8);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-blue);
}

.video-play .icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: currentColor;
}

.video-caption {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--white);
}

/* --- Ablauf- und Themenkacheln ---------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.topic-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.topic-grid > * {
  height: 100%;
}

.step-number {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--brand-blue);
}

.step-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--text-heading);
}

.step-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.topic-card .media {
  margin-bottom: var(--space-3);
}

/* --- Qualifikationsliste ---------------------------------------------- */

.qualification-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 760px;
  margin: 0 auto;
}

.qualification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.qualification-item p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.qualification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: var(--white);
}

/* --- Fachgebiete ------------------------------------------------------ */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.subject-media {
  position: relative;
  margin-bottom: var(--space-3);
}

.subject-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.subject-badge .icon {
  width: 20px;
  height: 20px;
}

/* --- Ansprechpartner -------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.team-card {
  padding: var(--space-6);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.team-card .media {
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.team-card h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  line-height: 1.3;
}

.team-role {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  /* dunkler als --amber-600, siehe Begründung bei .eyebrow */
  color: var(--amber-700);
}

.team-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.team-facts p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-body);
}

.team-facts .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--brand-blue);
}

/* --- Bildergalerie ---------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.gallery-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--five {
  grid-template-columns: repeat(5, 1fr);
}

/* Sektion ohne oberen Innenabstand, z. B. anschließende Bildergalerie */
.section--bottom-only {
  padding: 0 0 var(--space-24);
}

.gallery-grid .media {
  box-shadow: var(--shadow-md);
}

/* --- Aufforderungsband ------------------------------------------------ */

.cta-band {
  padding: var(--space-16) 0;
  background: var(--surface-sunken);
}

.cta-card {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-10);
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.cta-icon .icon {
  width: 30px;
  height: 30px;
}

.cta-card h2 {
  color: var(--white);
  margin: 0 0 var(--space-3);
}

.cta-text {
  max-width: 460px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.8);
}

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

/* --- Kontaktblock ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-card {
  padding: calc(var(--space-6) + 15px);
  height: 100%;
}

.contact-card .feature-icon {
  margin-bottom: var(--space-4);
}

.contact-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.contact-address {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-phone {
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}

.contact-fax {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--action-primary);
}

.route-link .icon {
  width: 16px;
  height: 16px;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  color: var(--white);
}

.contact-bar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.contact-bar-items > * {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
}

.contact-bar-items a {
  font-weight: var(--weight-semibold);
}

.contact-bar-items .icon {
  width: 18px;
  height: 18px;
}

/* --- Kontaktseite: Terminbuchung und direkter Draht ------------------- */

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.booking-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface-card);
}

.booking-frame iframe {
  display: block;
  width: 100%;
  height: 1150px;
  border: 0;
}

.contact-name {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-heading);
}

.contact-org {
  margin: 0 0 var(--space-1);
  color: var(--text-body);
}

.contact-role {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
}

.contact-lines a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-body);
}

.contact-lines a:hover {
  color: var(--action-primary);
}

.contact-lines .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
}

.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.portrait-grid .card-title {
  margin-top: var(--space-3);
  text-align: center;
}

/* --- Zertifikate ------------------------------------------------------ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.cert-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.cert-card img {
  margin: 0 auto var(--space-3);
  width: auto;
  height: 44px;
}

.cert-card--ihk img {
  height: 48px;
}

.cert-card--bvsk img {
  height: 32px;
}

.cert-card--ifs img {
  height: 40px;
}

.cert-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* --- Google-Rezensionen ----------------------------------------------- */

.reviews {
  background: var(--surface-card);
  border-top: 1px solid var(--border-default);
  text-align: center;
}

.reviews-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.reviews-heading svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.reviews-heading h2 {
  font-size: var(--text-xl);
}

.reviews-subline {
  margin: 0 0 var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.reviews-slider {
  position: relative;
}

/* Ein seitlich scrollender Streifen, der auf den Karten einrastet. Wischen,
   Trackpad und Pfeiltasten kommen damit vom Browser; das Skript setzt nur
   die Punkte und die beiden Pfeilknöpfe darauf. Die seitliche Polsterung
   sorgt dafür, dass auch die erste und die letzte Karte mittig einrasten. */
.reviews-track {
  position: relative;
  display: flex;
  gap: var(--space-5);
  padding: 0 6%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Gescrollt wird über Wischen, Pfeile und Punkte — der Rollbalken
     würde den Streifen nur zerschneiden. */
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

/* Etwas schmaler als der Streifen: die Nachbarkarten schauen hervor und
   zeigen ohne Worte, dass es weitergeht. */
.review-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--amber-500);
}

.review-stars .icon {
  fill: currentColor;
}

.review-text {
  max-width: 600px;
  margin: 0 auto var(--space-5);
  font-size: var(--text-md);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.review-author {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--text-heading);
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  color: var(--text-body);
  cursor: pointer;
}

.review-arrow--prev {
  left: -56px;
}

.review-arrow--next {
  right: -56px;
}

.review-arrow .icon {
  width: 18px;
  height: 18px;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.review-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  cursor: pointer;
}

.review-dot[aria-current="true"] {
  background: var(--navy-700);
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--action-primary);
}

.reviews-link .icon {
  width: 16px;
  height: 16px;
}

/* --- Häufige Fragen --------------------------------------------------- */

.faq-item {
  border: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 26px;
  font-weight: var(--weight-medium);
  line-height: 1;
  color: var(--brand-blue);
  transition: transform var(--duration-base) var(--ease-standard);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 680px;
  margin: 0 0 var(--space-5);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

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

.legal-content h2 {
  margin: var(--space-10) 0 var(--space-4);
  font-size: var(--text-2xl);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-lg);
}

/* Zwischenüberschrift innerhalb eines Abschnitts, etwa „Auftragsverarbeitung“
   unter Calendly. Bewusst nur wenig größer als der Fließtext — sie soll
   gliedern, nicht mit der h3 darüber konkurrieren. */
.legal-content h4 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-base);
}

.legal-content p,
.legal-content li {
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.legal-content ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  list-style: disc;
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content a {
  text-decoration: underline;
}


/* =========================================================================
   9. Formulare und Terminmodal
   ========================================================================= */

.form-card {
  padding: var(--space-8);
}

.form-card .section-title {
  margin-bottom: var(--space-6);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  transition: border-color var(--duration-base) var(--ease-standard);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--navy-500);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--action-primary);
  flex-shrink: 0;
}

.form-note {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  margin: 0;
}

/* --- Terminmodal ------------------------------------------------------ */

.modal {
  width: 700px;
  max-width: calc(100% - 2 * var(--space-6));
  height: min(90vh, 900px);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal::backdrop {
  background: rgba(5, 31, 58, 0.55);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-shrink: 0;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.modal-header h2 {
  font-size: var(--text-xl);
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--navy-50);
  color: var(--text-subtle);
  cursor: pointer;
}

.modal-close .icon {
  width: 18px;
  height: 18px;
}

.modal-body {
  flex: 1;
  min-height: 0;
}

.modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Seitenscroll unterbinden, solange Modal oder mobiles Menü offen sind */
body.is-locked {
  overflow: hidden;
}


/* =========================================================================
   10. Footer
   ========================================================================= */

.site-footer {
  background: var(--surface-inverse);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  max-width: 280px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-heading {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-link {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.footer-link:last-child {
  margin-bottom: 0;
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item:hover {
  color: var(--white);
}

.footer-contact-item .icon {
  width: 14px;
  height: 14px;
}

.footer-cta {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  padding: 10px 18px;
}

.footer-logos {
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
}

.footer-logos img {
  height: 32px;
  width: 100%;
  flex: 1 1 0;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--white);
}


/* =========================================================================
   11. Responsive Darstellung

   1200 px  Seitenränder werden knapp — Pfeile der Bewertungen einrücken
    980 px  Hauptumbruch aus dem Entwurf: mobile Navigation, einspaltige
            Bild-Text-Bereiche, kleinere Überschriften
    700 px  Fußzeile umbrechen
    560 px  Modal, Formularzeilen und Kontaktleiste einspaltig
    480 px  verbleibende zweispaltige Raster einspaltig
    400 px  sehr schmale Geräte: Schriftgrößen und Innenabstände
    360 px  schmalerer Seitenrand als letzte Reserve
   ========================================================================= */

@media (max-width: 1200px) {
  .review-arrow--prev {
    left: -12px;
  }

  .review-arrow--next {
    right: -12px;
  }

  .split {
    gap: var(--space-10);
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 30px;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section--sm,
  .section--xs {
    padding: var(--space-12) 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
    line-height: var(--leading-snug);
  }

  h3,
  .section-title--sm {
    font-size: var(--text-xl);
  }

  /* Navigation */
  .main-navigation,
  .header-cta {
    display: none;
  }

  .navigation-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 0;
  }

  .hero-inner,
  .hero--page .hero-inner,
  .hero--plain .hero-inner,
  .hero--form .hero-inner {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .hero-title,
  .hero--page .hero-title,
  .hero--plain .hero-title,
  .hero--form .hero-title {
    font-size: 32px;
  }

  .hero--form {
    min-height: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Vertrauensleiste */
  .trust-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-4);
  }

  .trust-item {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    text-align: center;
    white-space: normal;
  }

  .trust-item .icon {
    width: 26px;
    height: 26px;
  }

  /* Raster */
  .quick-nav {
    padding-top: var(--space-12);
  }

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split--text-first {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .split-image,
  .split-image--tall {
    height: 260px;
  }

  .section--inset-media {
    padding: var(--space-12) 0;
  }

  .thumb-row {
    gap: var(--space-2);
  }

  .topic-grid,
  .topic-grid--three {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .topic-grid .card {
    padding: var(--space-4);
  }

  .gallery-grid,
  .gallery-grid--three,
  .gallery-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--bottom-only {
    padding: 0 0 var(--space-12);
  }

  /* Bild vor den Text ziehen, wo der Entwurf das vorsieht */
  .split--media-first-mobile .split-media {
    order: -1;
  }

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

  .contact-split {
    gap: var(--space-10);
  }

  .booking-frame iframe {
    height: 1000px;
  }

  .subject-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero--short {
    min-height: 0;
  }

  .contact-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .contact-bar-items {
    justify-content: center;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .megamenu-grid,
  .megamenu-grid--locations {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-card {
    padding: var(--space-10) 30px;
  }

  /* Video */
  .video-link img {
    height: 260px;
  }

  /* Rezensionen */
  .review-arrow {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logos {
    grid-column: auto;
    margin-top: var(--space-8);
  }
}

@media (max-width: 700px) {
  .footer-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-5);
  }

  .footer-logos img {
    flex: 0 0 auto;
    width: auto;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: var(--space-3);
  }
}

@media (max-width: 560px) {
  .modal {
    max-width: calc(100% - 2 * var(--space-4));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-bar-items {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .video-caption {
    left: var(--space-4);
    bottom: var(--space-4);
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  /* Zweispaltige Raster werden hier zu schmal für lesbare Inhalte */
  .gallery-grid,
  .gallery-grid--three,
  .gallery-grid--five,
  .cert-grid,
  .subject-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  h1,
  .hero-title,
  .hero--page .hero-title,
  .hero--plain .hero-title,
  .hero--form .hero-title {
    font-size: 28px;
  }

  h2 {
    font-size: 23px;
  }

  .split-badge {
    top: -14px;
    left: -8px;
    width: 46px;
    height: 46px;
    font-size: var(--text-md);
  }

  .split-badge--right {
    left: auto;
    right: -8px;
  }

  .split-inset {
    right: -10px;
    bottom: -18px;
    width: 52%;
  }

  .cta-card {
    padding: var(--space-8) var(--space-5);
  }

  .contact-card {
    padding: var(--space-5);
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 20px;
  }
}
