/* ========================================================
   Munich's Finest – Facility Management
   styles.css — Mobile-first, system-ui, BEM-ish
   ======================================================== */

/* ---- FONTS (lokal: DM Sans, SIL Open Font License) ---- */
@font-face {
  font-family: "DM Sans";
  src: url("assets/DM_Sans/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---- TOKENS (Neuromarketing: Vertrauen, Klarheit, Konversion) ---- */
:root {
  /* Basis-Palette: weiche Tiefen, vertrauensvolles Blau-Grau, klare CTAs */
  --c-ink:      #1E293B;
  --c-ink-2:    #334155;
  --c-muted:    #64748B;
  --c-steel:    #0F766E;
  --c-sand:     #D97706;
  --c-slate:    #0D9488;
  --c-bg-soft:  #F1F5F9;

  /* Semantic tokens */
  --color-primary:    var(--c-steel);
  --color-secondary:  var(--c-slate);
  --color-accent:     var(--c-sand);
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F1F5F9;
  --color-bg-soft:    var(--c-bg-soft);
  --color-text:       var(--c-ink);
  --color-text-2:     var(--c-ink-2);
  --color-text-muted: var(--c-muted);
  --color-border:     #E2E8F0;

  /* Layout */
  --container-max:   1440px;
  --container-pad:   1.25rem;
  --section-pad-y:   5rem;

  /* Radius & shadow */
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(30,41,59,.06);
  --shadow-md:  0 4px 12px rgba(30,41,59,.08);
  --shadow-lg:  0 8px 24px rgba(30,41,59,.06);
  /* Reference-style card shadow (sections only) */
  --shadow-card:      0 2px 8px rgba(30,41,59,.07);
  --shadow-card-hover: 0 6px 20px rgba(30,41,59,.1);

  /* Transitions */
  --ease:       cubic-bezier(.4,0,.2,1);
  --dur:        .25s;

  /* Fixe Buttons: WhatsApp + Zurück nach oben */
  --fab-edge:       1.35rem;
  --fab-stack-gap:  1.25rem;
}

/* ---- RESET ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .skip-link {
    transition: none;
  }
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip-Link (Barrierefreiheit, Tastatur) */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--c-steel);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: top 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--c-sand);
  outline-offset: 3px;
}
.skip-link:focus:not(:focus-visible) {
  outline: none;
}
.skip-link:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 3px;
}

img, svg, video { display: block; max-width: 100%; }
a   { color: var(--color-primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-secondary); }

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

address { font-style: normal; }

/* Main: Abstand unter fixed Header, damit Hero nicht darunter verschwindet */
main {
  padding-top: 4rem;
}

@media (min-width: 960px) {
  main {
    padding-top: 4.5rem;
  }
}

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.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;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--c-steel);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-slate);
  color: #fff;
}
.btn--primary:focus-visible {
  outline-color: var(--c-sand);
  outline-offset: 2px;
}

/* Hero: Objektbegehung anfragen Button weiß, Schrift schwarz, Hover bleibt */
.hero__actions .btn--primary {
  background: #fff;
  color: #1a1a1a;
}
.hero__actions .btn--primary:hover {
  background: var(--c-slate);
  color: #fff;
}

/* Hero: Gespräch vereinbaren – gut sichtbar auf Teal-Hintergrund */
.hero__actions .btn--outline {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.hero__actions .btn--outline:hover {
  background: #fff;
  color: var(--c-steel);
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.btn--lg {
  padding: .875rem 2rem;
  font-size: 1rem;
}

/* Section CTAs (reference: outline + primary) */
.btn--outline-primary {
  background: transparent;
  color: var(--c-steel);
  border: 1.5px solid var(--c-steel);
}
.btn--outline-primary:hover {
  background: rgba(15, 118, 110, .08);
  color: var(--c-slate);
  border-color: var(--c-slate);
}

.btn--sm {
  padding: .5rem 1rem;
  font-size: .875rem;
}

/* Card action row (e.g. Leistungen) */
.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Über Leaflet-Controls (~1000), damit die fixe Leiste beim Scrollen sichtbar bleibt */
  z-index: 2000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header--scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(15, 118, 110, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  line-height: 1.15;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-header__brand:hover { color: var(--color-text); }

.site-header__logo {
  display: block;
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.site-header__brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.site-header__brand-sub {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Hamburger */
.site-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  z-index: 110;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile/Tablet nav */
.site-header__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  padding: 3rem 1.25rem 2rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 105;
  overflow-y: auto;
}

.site-header__nav.is-open {
  transform: translateX(0);
}

.site-header__nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.site-header__nav-link {
  display: block;
  padding: .75rem .5rem;
  font-size: 1.0625rem;
  font-weight: 550;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
}
.site-header__nav-link:hover {
  background: rgba(15, 118, 110, 0.12);
  color: var(--c-steel);
}

.site-header__cta {
  margin-top: auto;
}

/* Leistungen dropdown */
.site-header__nav-item--has-dropdown {
  position: relative;
}
.site-header__subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(15, 118, 110, 0.25);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.site-header__subnav li { margin: 0; }
.site-header__subnav a {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
}
.site-header__subnav a:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--c-steel);
}

/* Desktop nav */
@media (min-width: 960px) {
  .site-header__inner { height: 4.5rem; }
  .site-header__logo { height: 2.5rem; }
  .site-header__toggle { display: none; }

  .site-header__nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
    overflow: visible;
  }

  .site-header__nav-list {
    flex-direction: row;
    gap: 0;
  }

  .site-header__nav-link {
    padding: .5rem .75rem;
    font-size: 1rem;
  }
  .site-header__nav-link:hover {
    background: rgba(15, 118, 110, 0.12);
    color: var(--c-steel);
  }

  .site-header__cta {
    margin-top: 0;
    margin-left: .75rem;
  }

  /* Desktop: Leistungen dropdown */
  .site-header__subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 0.5rem 0;
    padding-left: 0;
    border-left: none;
    margin: 0;
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    border: 1px solid rgba(226, 232, 240, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
    z-index: 50;
  }
  .site-header__nav-item--has-dropdown:hover .site-header__subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header__subnav a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ========================================================
   HERO (Karten-Layout: Abstände + abgerundete Ecken)
   ======================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 85dvh;
  margin: 1rem;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #0F766E 0%, #0D9488 40%, #115E59 100%);
  box-shadow: var(--shadow-lg);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.hero__video-wrap .hero__video,
.hero__video-wrap .hero__overlay {
  border-radius: inherit;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
      180deg,
      rgba(0,0,0,.2) 0%,
      rgba(0,0,0,.12) 50%,
      rgba(0,0,0,.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15,118,110,.82) 0%,
      rgba(13,148,136,.72) 50%,
      rgba(17,94,89,.86) 100%
    );
}

/* Volle Container-Breite wie hero__kpis, damit linke Kante mit KPI-Karten bündig ist */
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.875rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Mobile: mehr Abstand oben/unten im Hero-Schriftbereich, links/rechts unverändert */
@media (max-width: 599px) {
  .hero__content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 780px;
}

.hero__kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  min-width: 0;
}

/* Mobil: 2x2 Grid bleibt erhalten; Icon oben, Text darunter fuer mehr nutzbare Textbreite */
@media (max-width: 599px) {
  .hero__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: 1.75rem;
  }

  .hero .kpi-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem 0.75rem;
    gap: 0.375rem;
  }

  .hero .kpi-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .hero .kpi-card__text {
    width: 100%;
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

/* Tablet: Inhalt oben bündig, geringer Abstand zur Nav (kein Zentrieren) */
@media (min-width: 600px) and (max-width: 959px) {
  .hero {
    margin: 0.75rem 2rem 1.5rem;
    padding: 1rem 0 1.5rem;
    justify-content: flex-start;
    min-height: auto;
  }
  .hero__content { padding-top: 0; }
  .hero__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }
}

/* Desktop Hero: gleiche Abstände oben/unten für ausgewogenes Layout */
@media (min-width: 960px) {
  .hero {
    margin: 2rem 3rem;
    padding: 4rem 0 4rem;
    justify-content: center;
    min-height: 85dvh;
  }
  .hero__content { padding-top: 0; }
  .hero__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 4rem;
  }
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: #fff;
  min-width: 0;
}

.kpi-card__icon {
  flex-shrink: 0;
  color: #FEF3C7;
}

.kpi-card__text {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

/* ========================================================
   SECTIONS (Reference-style: generous spacing, clear hierarchy)
   ======================================================== */
.section {
  padding: var(--section-pad-y) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: linear-gradient(180deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: .75rem;
}

.section--dark .section__title,
.section__title--light {
  color: #fff;
}
.section--dark .section__title {
  text-align: center;
}

/* Startseite Objektbegehung: Überschrift + Einleitung links (Unterseiten-CTA unverändert) */
#check-title {
  text-align: left;
  margin-inline: 0;
  width: 100%;
}

.check-section--home .check-grid__intro {
  text-align: left;
  margin-inline: 0;
  max-width: 42rem;
}

.check-section--home .check-list {
  text-align: left;
}

.check-section--home .check-grid__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* „So läuft es ab“-Karte ebenfalls links (nicht vererbt zentriert) */
.check-section--home .check-grid__side {
  text-align: left;
  justify-self: stretch;
  width: 100%;
}

.check-section--home .check-grid__side-title,
.check-section--home .steps,
.check-section--home .steps__item,
.check-section--home .steps__item strong,
.check-section--home .steps__item p {
  text-align: left;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section--dark .section__subtitle {
  color: rgba(255,255,255,.65);
}

.section__note {
  margin-top: 2.5rem;
  font-size: .9375rem;
  color: var(--color-text-muted);
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}

.section__title + .section__subtitle {
  margin-top: .25rem;
}

/* Eyebrow: klare visuelle Hierarchie (Landing / B2B) */
.section__eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.section__eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(20, 184, 166, 0.55);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
}

.section__eyebrow + .section__title,
.section-label + .section__title {
  margin-top: 0;
}

.section__subtitle--after-title {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section__subtitle--after-title + .audience-grid {
  margin-top: 1.5rem;
}

.section__subtitle--after-title + .contact-form {
  margin-top: 1.75rem;
}

.section__subtitle--after-title + .map-section {
  margin-top: 1.5rem;
}

/* ========================================================
   EINSATZGEBIETE – Leaflet / OSM
   ======================================================== */
.map-section {
  max-width: 56rem;
  margin-inline: auto;
}

.map-section__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.map-section__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.map-section__swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.map-section__swatch--schwabing {
  background: rgba(15, 118, 110, 0.35);
  border-color: #0f766e;
}

.map-section__swatch--milbertshofen {
  background: rgba(20, 184, 166, 0.35);
  border-color: #14b8a6;
}

.map-section__swatch--neuperlach {
  background: rgba(13, 148, 136, 0.35);
  border-color: #0d9488;
}

.map-section__swatch--trudering {
  background: rgba(17, 94, 89, 0.35);
  border-color: #115e59;
}

.map-section__swatch--haar {
  background: rgba(5, 150, 105, 0.35);
  border-color: #059669;
}

.map-section__swatch--ottobrunn {
  background: rgba(4, 120, 87, 0.35);
  border-color: #047857;
}

.map-section__swatch--unterhaching {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
}

.map-section__canvas {
  width: 100%;
  height: min(420px, 55vh);
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 118, 110, 0.15);
  background: var(--color-bg-alt);
}

.map-section__canvas:focus {
  outline: 2px solid var(--c-teal, #0d9488);
  outline-offset: 2px;
}

.map-section__canvas .leaflet-container {
  font-family: inherit;
}

.map-section__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 42rem;
}

.map-section__legal {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  max-width: 42rem;
}

.map-section__legal a {
  color: var(--c-steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-section__legal a:hover {
  color: var(--c-teal-dark, #0f766e);
}

.map-section__error {
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Center titles (Block zentriert; Text darin links) */
.section__title,
.section__subtitle {
  text-align: left;
  margin-inline: auto;
}

/* Startseite: System- & Zielgruppen-Sektion – Überschrift + Untertitel bündig links */
#system .section__title,
#system .section__subtitle,
#zielgruppe .section__title,
#zielgruppe .section__subtitle {
  margin-inline: 0;
}

/* Einsatzgebiete: wie FAQ – gleiche Spaltenbreite (container--narrow), Text und Karte eine Kante */
#einsatzgebiete {
  padding-top: 2.25rem;
}

@media (min-width: 960px) {
  #einsatzgebiete {
    padding-top: 4rem;
  }
}

#einsatzgebiete .section__eyebrow {
  display: block;
  text-align: left;
  margin-inline: 0;
}

#einsatzgebiete .section__title,
#einsatzgebiete .section__subtitle,
#einsatzgebiete .map-section__note,
#einsatzgebiete .map-section__legal {
  text-align: left;
  margin-inline: 0;
}

#einsatzgebiete .section__subtitle {
  max-width: none;
}

#einsatzgebiete .map-section {
  max-width: none;
  margin-inline: 0;
}

#einsatzgebiete .map-section__note,
#einsatzgebiete .map-section__legal {
  max-width: none;
}

/* Kontakt: Überschrift, Eyebrow und Einleitung links bündig (kein schmaler, zentrierter Subtitle-Block) */
#kontakt .section__eyebrow {
  display: block;
  text-align: left;
  margin-inline: 0;
}

#kontakt .section__title,
#kontakt .section__subtitle {
  margin-inline: 0;
  text-align: left;
}

#kontakt .section__subtitle {
  max-width: none;
}

/* Section images (reference: clear frame, radius, soft shadow) */
.section__img-wrap {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.section__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

/* Problem-Sektion: Fokus etwas nach oben */
#problem .section__img {
  object-position: center 35%;
}

@media (min-width: 768px) {
  .section__img { height: 340px; }

  /* System, Leistungen, Vertrauen: Fokus nach oben – Gesichter im Ausschnitt (Desktop) */
  #system .section__img,
  #leistungen .section__img,
  #vertrauen .section__img {
    object-position: center 10%;
  }
}

/* ========================================================
   PAGE HERO & SERVICE BLOCKS (Leistungen subpage)
   ======================================================== */
.page-hero {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.page-hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  margin-bottom: 1rem;
}

.page-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink-2);
}

.service-block__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .service-block__inner {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
  }
}

@media (min-width: 960px) {
  .service-block__inner {
    grid-template-columns: 1fr 380px;
    gap: 3rem;
  }
}

.service-block__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-block__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .service-block__img {
    height: 280px;
  }
}

@media (min-width: 960px) {
  .service-block__img {
    height: 550px;
  }
}

/* Leistungsübersicht (leistungen.html): quadratische Bilder 1:1, ruhiger als hohe Crop-Zonen */
.page-leistungen .service-block__inner {
  align-items: center;
}

.page-leistungen .service-block__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: min(100%, 26rem);
  margin-inline: auto;
  background: var(--color-bg-alt);
}

@media (min-width: 768px) {
  .page-leistungen .service-block__inner {
    grid-template-columns: 1fr 380px;
  }

  .page-leistungen .service-block__img-wrap {
    max-width: none;
    margin-inline: 0;
    width: 100%;
  }
}

@media (min-width: 960px) {
  .page-leistungen .service-block__inner {
    grid-template-columns: 1fr 440px;
  }
}

.page-leistungen .service-block__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-block__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink-2);
  margin-bottom: 2rem;
  max-width: 720px;
}

.service-block__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 1rem;
}

.service-block__content {
  max-width: 720px;
}

.service-block__list {
  margin-bottom: 1.5rem;
}

.service-block__list li {
  margin-bottom: .5rem;
}

.service-block__note {
  font-size: .9375rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 1.5rem;
}

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

.text-center .check-grid__intro {
  margin-inline: auto;
}

/* ========================================================
   CARD GRID
   ======================================================== */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- CARDS (Reference: white, soft shadow, minimal border) ---- */
.section .card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.section .card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .section .card:hover { transform: none; }
}

/* Card mit Bild (z. B. Zielgruppe) */
.card__img-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card:has(.card__img-wrap) {
  overflow: hidden;
}

.card__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(15, 118, 110, .08);
  color: var(--color-primary);
  margin-bottom: .875rem;
}

.card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--c-ink);
}

.card__text {
  font-size: .9375rem;
  color: var(--c-ink-2);
  line-height: 1.55;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--color-text-2);
}

.card__list li {
  position: relative;
  padding-left: 1.25rem;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Vertrauen-Karten: Fließtext + kompakte Detail-Liste */
.card--proof .card__text {
  margin-bottom: 1rem;
}

.card__list--proof {
  margin-top: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-ink-2);
}

.card__list--proof li {
  color: var(--c-ink-2);
}

/* ========================================================
   SYSTEM DIAGRAM (Reference: clear center block, white pillar cards)
   ======================================================== */
.system-diagram {
  margin-top: 3rem;
}

.system-diagram__center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.system-diagram__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .system-diagram__pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .system-diagram__pillars { grid-template-columns: repeat(4, 1fr); }
  .system-diagram__center { margin-bottom: 2rem; }
}

/* connector line hint */
.system-diagram__pillars .card--pillar {
  position: relative;
}

.system-diagram__pillars .card--pillar::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.25rem;
  background: var(--color-primary);
}

@media (min-width: 960px) {
  .system-diagram__pillars .card--pillar::before {
    top: -2rem;
    height: 2rem;
  }
}

/* ========================================================
   AUDIENCE (Zielgruppe – Reference: white cards, image on top)
   ======================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

.card--audience {
  padding: 2rem;
}

.card--audience .card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--c-ink);
}

/* Hausverwaltungen-Karte: Bildfokus etwas nach unten (ab 2-Spalten-Layout) */
@media (min-width: 700px) {
  .audience-grid .card--audience:nth-child(2) .card__img {
    object-position: center 72%;
  }
}

/* ========================================================
   TESTIMONIALS (Reference: calm typography, primary-colored controls)
   ======================================================== */
.testimonial-slider {
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.testimonial-slider__track {
  display: flex;
  transition: transform .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slider__track { transition: none; }
}

.testimonial {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2rem 1.5rem;
  text-align: center;
}

.testimonial__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink-2);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .875rem;
  color: var(--color-text-muted);
}

.testimonial__author strong {
  color: var(--c-ink);
  font-weight: 600;
}

.testimonial-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: .75rem;
}

.testimonial-slider__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
}
.testimonial-slider__arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.testimonial-slider__dots {
  display: flex;
  gap: .5rem;
}

.testimonial-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  padding: 0;
}

.testimonial-slider__dot.is-active {
  background: var(--color-primary);
}

/* ========================================================
   CHECK / CONVERSION (Reference Option A: dark block, CTA-style button, card-like sidebar)
   ======================================================== */
.section--dark {
  padding: calc(var(--section-pad-y) * 1.1) 0;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .check-grid { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
}

.check-grid__intro {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Unterseiten: CTA-Text bessere Lesbarkeit (Zeilenlänge) */
.section--dark .text-center .check-grid__intro {
  max-width: 38rem;
  margin-inline: auto;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: 1rem;
  color: rgba(255,255,255,.92);
}

.check-list__icon {
  flex-shrink: 0;
  margin-top: .15rem;
  color: #FEF3C7;
}

/* Reference CTA: white button in dark section */
.section--dark .btn--primary {
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.section--dark .btn--primary:hover {
  background: var(--c-steel);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 118, 110, .4);
  transform: translateY(-2px);
}

.check-grid__side {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.check-grid__side-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEF3C7;
  color: var(--c-ink);
  font-weight: 700;
  font-size: .9375rem;
  flex-shrink: 0;
}

.steps__item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .25rem;
  color: #fff;
}

.steps__item p {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

/* ========================================================
   FAQ / ACCORDION (Reference: white/light panels, soft shadow)
   ======================================================== */
.accordion {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.accordion__item {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}

.accordion__item:has(.accordion__trigger[aria-expanded="true"]) {
  box-shadow: var(--shadow-card-hover);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-ink);
  background: #fff;
  transition: background var(--dur) var(--ease);
  cursor: pointer;
}

.accordion__trigger:hover {
  background: var(--color-bg-alt);
}

.accordion__chevron {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
  color: var(--color-text-muted);
}

.accordion__trigger[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.accordion__panel > p {
  overflow: hidden;
  padding: 0 1.25rem;
  font-size: .9375rem;
  color: var(--c-ink-2);
  line-height: 1.6;
}

.accordion__panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.accordion__panel[aria-hidden="false"] > p {
  padding: 0 1.25rem 1.25rem;
}

/* ========================================================
   CONTACT FORM (Reference: clean inputs, primary submit button)
   ======================================================== */
.contact-form {
  margin-top: 2.5rem;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: .5rem;
}

.form-group__label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-ink-2);
}

.form-group__input {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(30,41,59,.04);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-group__input:focus {
  outline: none;
  border-color: var(--c-steel);
  box-shadow: 0 0 0 3px rgba(15,118,110,.18);
}

.form-group__input.is-invalid {
  border-color: #C0392B;
}

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

.form-group__error {
  font-size: .8125rem;
  color: #C0392B;
  min-height: 1.2em;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
  margin-top: .5rem;
}

.form-group__checkbox {
  margin-top: .25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--c-steel);
}

.form-group__checkbox:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 2px;
}

.form-group__label--checkbox {
  font-weight: 400;
  font-size: .875rem;
  line-height: 1.5;
}

.form-group__label--checkbox a {
  text-decoration: underline;
}

.contact-form__success {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.3);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--c-steel);
}

.contact-form__error {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: #991b1b;
}

.contact-form button[type="submit"] {
  margin-top: .75rem;
  padding: .875rem 2rem;
  font-weight: 600;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  color: rgba(255,255,255,.75);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .site-footer__inner { grid-template-columns: 1.35fr 1fr 1fr 1.2fr; }
}

.site-footer__logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: .75rem;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.site-footer__brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}

.site-footer__brand-sub {
  display: block;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}

.site-footer__tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}

.site-footer__heading {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.site-footer__nav ul,
.site-footer__services ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.site-footer__nav a,
.site-footer__services a,
.site-footer__contact a {
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  transition: color var(--dur) var(--ease);
}

.site-footer__nav a:hover,
.site-footer__services a:hover,
.site-footer__contact a:hover {
  color: #fff;
}

.site-footer__contact address {
  font-size: .9375rem;
  line-height: 1.7;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

.site-footer__bottom nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom a {
  color: rgba(255,255,255,.4);
  transition: color var(--dur) var(--ease);
}
.site-footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ========================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================================== */
.section--legal > .container {
  max-width: var(--container-max);
  margin-inline: auto;
}

.legal-content {
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.legal-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--c-teal, #0d9488);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--c-teal-dark, #0f766e);
}

.legal-content__meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 118, 110, 0.15);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========================================================
   WHATSAPP (fixiert rechts, über „Zurück nach oben“)
   ======================================================== */
.whatsapp-float {
  position: fixed;
  bottom: calc(var(--fab-edge) + env(safe-area-inset-bottom, 0px) + 44px + var(--fab-stack-gap));
  right: calc(var(--fab-edge) + env(safe-area-inset-right, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.whatsapp-float:hover {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float:hover {
    transform: none;
  }
}

/* ========================================================
   BACK TO TOP (unten, unter WhatsApp)
   ======================================================== */
.back-to-top {
  position: fixed;
  bottom: calc(var(--fab-edge) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--fab-edge) + env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-steel);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-slate);
}

/* ========================================================
   RESPONSIVE FINE-TUNING
   ======================================================== */
@media (max-width: 480px) {
  :root {
    --fab-edge: 1.1rem;
    --fab-stack-gap: 1.4rem;
  }
}

@media (min-width: 600px) {
  :root { --container-pad: 2rem; }
}

@media (min-width: 960px) {
  :root {
    --container-pad: 2.5rem;
    --section-pad-y: 6rem;
  }
}

@media (min-width: 1200px) {
  :root { --container-pad: 3rem; }
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Nav overlay backdrop (below header so nav links remain clickable) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   HERO – reduced-motion fallback
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* ========================================================
   SUBPAGE COMPONENTS (Leistungs-Unterseiten)
   ======================================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,.4); opacity: .6; }

/* Subpage hero banner */
.subpage-hero {
  background: linear-gradient(135deg, #0D5F5A 0%, #0F766E 45%, #0D9488 100%);
  padding: 3.5rem 0 3rem;
}
.subpage-hero__tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  border-radius: 100px;
  padding: .3rem .875rem;
  margin-bottom: 1rem;
}
.subpage-hero__title {
  font-size: clamp(1.375rem, 3.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 780px;
}
.subpage-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 680px;
  margin-bottom: 2rem;
}
.subpage-hero .btn--primary {
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.subpage-hero .btn--primary:hover {
  background: rgba(255,255,255,.92);
  color: var(--c-ink);
}

/* Intro lead text */
.intro-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  max-width: 760px;
}

/* Challenge grid (Herausforderungen) */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}
.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-card);
  border-left: 3px solid #DC2626;
  transition: box-shadow var(--dur) var(--ease);
}
.challenge-card:hover { box-shadow: var(--shadow-card-hover); }
.challenge-card__icon {
  flex-shrink: 0;
  color: #DC2626;
  margin-top: .05rem;
}
.challenge-card__text {
  font-size: .9375rem;
  color: var(--c-ink-2);
  font-weight: 500;
  line-height: 1.45;
}

/* Approach block */
.approach-block {
  background: linear-gradient(135deg, rgba(15,118,110,.07) 0%, rgba(13,148,136,.04) 100%);
  border: 1px solid rgba(15,118,110,.18);
  border-left: 4px solid var(--c-steel);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink-2);
}
.approach-block strong { color: var(--c-ink); }

/* Unterseiten: Ansatz – eine Zeile: links Eyebrow+Überschrift+Kasten (vertikal mittig), rechts Bild */
.subpage-approach-section {
  padding-top: calc(var(--section-pad-y) + 0.75rem);
  padding-bottom: calc(var(--section-pad-y) + 0.75rem);
}

.subpage-approach-section .container {
  text-align: left;
}

.subpage-approach-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .subpage-approach-layout {
    grid-template-columns: 1fr minmax(280px, 38%);
    gap: 2.75rem;
    min-height: min(440px, 52vh);
  }
}

.subpage-approach-layout__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

@media (min-width: 900px) {
  .subpage-approach-layout__main {
    align-self: stretch;
    justify-content: center;
  }
}

.subpage-approach-layout__main .section__eyebrow {
  margin-inline: 0;
  margin-bottom: 0.35rem;
}

.subpage-approach-layout__main .section__title {
  margin-inline: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 100%;
  width: 100%;
  text-align: left;
}

@media (min-width: 600px) {
  .subpage-approach-layout__main .section__title {
    max-width: 38rem;
  }
}

.subpage-approach-layout__main .approach-block {
  width: 100%;
  max-width: 40rem;
}

.subpage-approach-layout__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-bg-alt);
  justify-self: center;
  width: 100%;
  max-width: min(100%, 22rem);
}

@media (min-width: 900px) {
  .subpage-approach-layout__figure {
    max-width: none;
    justify-self: stretch;
  }
}

.subpage-approach-layout__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* Feature grid (Leistungsumfang) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}
.feature-item:hover { box-shadow: var(--shadow-card-hover); }
.feature-item__icon {
  flex-shrink: 0;
  color: var(--c-steel);
  margin-top: .15rem;
}
.feature-item__text {
  font-size: .9375rem;
  color: var(--c-ink-2);
  font-weight: 500;
  line-height: 1.4;
}

/* Process steps (Ablauf) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}
.process-step:hover { box-shadow: var(--shadow-card-hover); }
.process-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-steel), var(--c-slate));
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.process-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: .375rem;
}
.process-step__text {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Target audience tags */
.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.5rem;
}
.target-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(15,118,110,.07);
  border: 1px solid rgba(15,118,110,.2);
  color: var(--c-steel);
  border-radius: 100px;
  padding: .5rem 1.125rem;
  font-size: .875rem;
  font-weight: 600;
}

/* Trust items */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.trust-item__icon { flex-shrink: 0; color: var(--c-steel); margin-top: .1rem; }
.trust-item__text { font-size: .9375rem; color: var(--c-ink-2); font-weight: 500; }

/* Local info block */
.local-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(15,118,110,.07) 0%, rgba(13,148,136,.04) 100%);
  border: 1px solid rgba(15,118,110,.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.local-block__icon { flex-shrink: 0; color: var(--c-steel); margin-top: .15rem; }
.local-block__title { font-size: 1rem; font-weight: 700; color: var(--c-ink); margin-bottom: .3rem; }
.local-block__text { font-size: .9375rem; line-height: 1.6; color: var(--c-ink-2); }

/* Related service link cards */
.related-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 600px) { .related-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .related-links { grid-template-columns: repeat(3, 1fr); } }

.related-link-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-card);
  color: var(--c-ink);
  font-weight: 600;
  font-size: .9375rem;
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.related-link-card:hover {
  box-shadow: var(--shadow-card-hover);
  color: var(--c-steel);
}
.related-link-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(15,118,110,.08);
  color: var(--c-steel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-link-card__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--c-muted);
  transition: color var(--dur) var(--ease);
}
.related-link-card:hover .related-link-card__arrow { color: var(--c-steel); }

/* Advantage list (Eigentümer / Hausverwaltungen) */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: 1.75rem;
}
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.advantage-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15,118,110,.1);
  color: var(--c-steel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.advantage-item__body { display: flex; flex-direction: column; }
.advantage-item__title { font-size: .9375rem; font-weight: 700; color: var(--c-ink); margin-bottom: .15rem; }
.advantage-item__text { font-size: .875rem; color: var(--c-ink-2); line-height: 1.5; }

/* Two-column intro layout (optional: text left, highlight right) */
.intro-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .intro-split { grid-template-columns: 1fr 320px; gap: 3rem; }
}
.intro-split__highlight {
  background: linear-gradient(135deg, var(--c-steel) 0%, var(--c-slate) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #fff;
}
.intro-split__highlight h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.intro-split__stat {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}
.intro-split__stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.25rem;
}

/* ========================================================
   SCROLL-REVEAL (dezent, B2B-tauglich)
   – Elemente werden per JS mit .anim-init markiert (progressive
     enhancement: ohne JS bleibt alles sichtbar) und beim
     Eintritt in den Viewport mit .anim-in eingeblendet.
   ======================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Versteckter Ausgangszustand: OHNE Transition, damit das
     initiale Verstecken instant ist (kein Fade-out-Flash). */
  .anim-init {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
  }

  /* Bilder: minimal ruhiger */
  .anim-init.anim-init--img {
    transform: translateY(12px) scale(1.015);
  }

  /* Einblenden: Transition erst hier aktiv */
  .anim-init.anim-in {
    opacity: 1;
    transform: none;
    transition:
      opacity .55s cubic-bezier(.22,.61,.36,1),
      transform .55s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--anim-delay, 0ms);
  }

  .anim-init--img.anim-in {
    transition-duration: .7s, .7s;
  }
}

/* ========================================================
   HERO ENTRANCE (einmalig beim Laden, gestaffelt)
   ======================================================== */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow  { animation: hero-rise .6s cubic-bezier(.22,.61,.36,1) .05s both; }
  .hero__title    { animation: hero-rise .6s cubic-bezier(.22,.61,.36,1) .16s both; }
  .hero__subtitle { animation: hero-rise .6s cubic-bezier(.22,.61,.36,1) .28s both; }
  .hero__actions  { animation: hero-rise .6s cubic-bezier(.22,.61,.36,1) .4s both; }

  .hero__kpis .kpi-card { animation: hero-rise .55s cubic-bezier(.22,.61,.36,1) both; }
  .hero__kpis .kpi-card:nth-child(1) { animation-delay: .5s; }
  .hero__kpis .kpi-card:nth-child(2) { animation-delay: .58s; }
  .hero__kpis .kpi-card:nth-child(3) { animation-delay: .66s; }
  .hero__kpis .kpi-card:nth-child(4) { animation-delay: .74s; }

  /* Unterseiten-Hero: gleiche ruhige Staffelung */
  .subpage-hero .breadcrumb      { animation: hero-rise .55s cubic-bezier(.22,.61,.36,1) .05s both; }
  .subpage-hero__tag             { animation: hero-rise .55s cubic-bezier(.22,.61,.36,1) .12s both; }
  .subpage-hero__title           { animation: hero-rise .6s  cubic-bezier(.22,.61,.36,1) .2s  both; }
  .subpage-hero__lead            { animation: hero-rise .6s  cubic-bezier(.22,.61,.36,1) .3s  both; }
  .subpage-hero .btn             { animation: hero-rise .6s  cubic-bezier(.22,.61,.36,1) .4s  both; }

  html.mf-animations-seen .hero__eyebrow,
  html.mf-animations-seen .hero__title,
  html.mf-animations-seen .hero__subtitle,
  html.mf-animations-seen .hero__actions,
  html.mf-animations-seen .hero__kpis .kpi-card,
  html.mf-animations-seen .subpage-hero .breadcrumb,
  html.mf-animations-seen .subpage-hero__tag,
  html.mf-animations-seen .subpage-hero__title,
  html.mf-animations-seen .subpage-hero__lead,
  html.mf-animations-seen .subpage-hero .btn {
    animation: none !important;
  }
}

/* ========================================================
   DESIGN-POLITUR (dezent)
   ======================================================== */
html {
  /* Anker-Ziele nicht unter dem fixen Header verstecken */
  scroll-padding-top: 5.5rem;
}

/* Überschriften: minimal engere Laufweite wirkt gesetzter */
.section__title,
.hero__title,
.subpage-hero__title,
.page-hero__title {
  letter-spacing: -0.015em;
}

/* Karten-Hover: spürbar, aber ruhig */
.section .card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .28);
}

.feature-item,
.challenge-card,
.process-step,
.trust-item,
.related-link-card {
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.feature-item:hover,
.process-step:hover,
.related-link-card:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .feature-item:hover,
  .challenge-card:hover,
  .process-step:hover,
  .related-link-card:hover {
    transform: none;
  }
}

/* Primär-Button: leichte Anhebung beim Hover */
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 118, 110, .28);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover { transform: none; }
}

/* Eyebrow: feine Linie davor als ruhiger Akzent */
.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin-right: .5rem;
  vertical-align: middle;
  opacity: .55;
}

.section__eyebrow--on-dark::before {
  display: none;
}

/* ========================================================
   COOKIE CONSENT (DSGVO / TTDSG)
   ======================================================== */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  box-sizing: border-box;
  width: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    1rem
    max(var(--container-pad, 1.25rem), env(safe-area-inset-right, 0px))
    calc(1rem + env(safe-area-inset-bottom, 0px))
    max(var(--container-pad, 1.25rem), env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(15, 118, 110, 0.15);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-max, 1440px);
  margin-inline: auto;
}

.cookie-consent__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #0F766E);
}

.cookie-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading, #0f172a);
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted, #475569);
}

.cookie-consent__text a {
  color: var(--color-primary, #0F766E);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: var(--color-primary-dark, #0D9488);
}

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  flex-shrink: 0;
}

.cookie-consent__actions .btn,
.cookie-consent-dialog__actions .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.cookie-consent .btn--outline,
.cookie-consent-dialog .btn--outline,
.map-section__consent .btn--outline {
  background: transparent;
  color: var(--c-steel, #0F766E);
  border: 1.5px solid var(--c-steel, #0F766E);
}

.cookie-consent .btn--outline:hover,
.cookie-consent-dialog .btn--outline:hover,
.map-section__consent .btn--outline:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--c-slate, #0D9488);
  border-color: var(--c-slate, #0D9488);
}

.cookie-consent .btn--ghost,
.cookie-consent-dialog .btn--ghost {
  background: transparent;
  color: var(--color-primary, #0F766E);
  border: 1px solid transparent;
}

.cookie-consent .btn--ghost:hover,
.cookie-consent-dialog .btn--ghost:hover {
  background: rgba(15, 118, 110, 0.08);
}

.cookie-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-consent-dialog[hidden] {
  display: none !important;
}

.cookie-consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cookie-consent-dialog__panel {
  position: relative;
  width: min(100%, 36rem);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.75rem 1.75rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-card, 0 20px 40px rgba(15, 23, 42, 0.18));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.cookie-consent__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--color-primary, #0F766E);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur, 0.2s) var(--ease, ease);
}

.cookie-consent__close:hover {
  background: rgba(15, 118, 110, 0.16);
}

.cookie-consent-categories {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.cookie-consent-category {
  padding: 1rem 1.125rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius-md, 8px);
  background: rgba(15, 118, 110, 0.03);
}

.cookie-consent-category p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted, #475569);
}

.cookie-consent-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-category__head strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-heading, #0f172a);
}

.cookie-consent-category__badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary, #0F766E);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
}

.cookie-consent-category__state {
  color: var(--color-primary, #0F766E);
  font-weight: 700;
}

.cookie-consent-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-consent-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent-toggle__ui {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background var(--dur, 0.2s) var(--ease, ease);
  position: relative;
}

.cookie-consent-toggle__ui::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform var(--dur, 0.2s) var(--ease, ease);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__ui {
  background: var(--color-primary, #0F766E);
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-toggle__ui {
  outline: 2px solid var(--color-primary, #0F766E);
  outline-offset: 2px;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__ui::after {
  transform: translateX(1.25rem);
}

.cookie-consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.cookie-consent__footer-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color var(--dur, 0.2s) var(--ease, ease);
}

.cookie-consent__footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.cookie-consent-open {
  overflow: hidden;
}

.map-section__consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.04) 0%, rgba(15, 118, 110, 0.08) 100%);
}

.map-section__consent-text {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted, #475569);
}

.map-section__consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding-top: 0.875rem;
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent__title {
    font-size: 1rem;
  }

  .cookie-consent__text {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .cookie-consent__actions .btn,
  .cookie-consent-dialog__actions .btn {
    padding: 0.6875rem 1rem;
    font-size: 0.875rem;
  }

  .cookie-consent-dialog {
    place-items: end stretch;
    padding: 0;
  }

  .cookie-consent-dialog__panel {
    width: 100%;
    max-height: min(92dvh, 92svh);
    overflow-y: auto;
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    padding: 1.25rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent-dialog__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__bottom nav {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
  }

  .cookie-consent__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: 22rem;
    gap: 0.625rem;
  }

  .cookie-consent__actions .btn {
    width: auto;
    min-width: 9.5rem;
    white-space: nowrap;
  }

  .cookie-consent-dialog__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-consent-dialog__actions .btn {
    width: auto;
    min-width: 9.5rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-toggle__ui,
  .cookie-consent-toggle__ui::after {
    transition: none;
  }
}
