/* ==========================================================================
   FITTRANS — Design System
   Systemschriften statt Google Fonts: schneller und ohne DSGVO-Problematik
   (Google-Fonts-CDN überträgt IP-Adressen in die USA).
   ========================================================================== */

:root {
  /* Markenfarben direkt aus dem Logo ausgelesen: Navy #002860, Grau #707078.
     Das Logo führt nur diese beiden Farben — die Seite bleibt bewusst dabei.
     Hellere und dunklere Stufen sind daraus abgeleitet. */
  --navy-900: #001b42; /* Footer, Hero-Grund */
  --navy-800: #002860; /* Marken-Navy: Buttons, CTA-Band */
  --navy-700: #00417f; /* Links, Icons */
  --navy-600: #0a5aa8; /* Hover */

  /* Akzent = Marken-Navy. Signalwirkung entsteht über Kontrast, nicht über
     eine dritte Farbe. */
  --accent: #00417f;
  --accent-on-dark: #ffffff;
  --accent-soft: #b8c4d6;
  --accent-tint: #eaeff6;

  --grey-600: #5b5c66;
  --grey-500: #707078; /* Logo-Grau */
  --grey-300: #aeb6c6;

  --ink: #0e1a2b;
  --body: #4a5668;
  --muted: #7c8697;

  --line: #e3e7ee;
  --line-strong: #c7cedb;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #edf1f6;

  --warn-bg: #fff8e6;
  --warn-line: #f0d9a0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(7, 26, 48, 0.06), 0 2px 8px rgba(7, 26, 48, 0.04);
  --shadow: 0 4px 12px rgba(7, 26, 48, 0.07), 0 12px 32px rgba(7, 26, 48, 0.07);
  --shadow-lg: 0 8px 24px rgba(7, 26, 48, 0.1), 0 32px 64px rgba(7, 26, 48, 0.12);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.85rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

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

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink); font-weight: 700; }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section--dark {
  background: var(--navy-800);
  color: #c3d3e2;
}
.section--dark h2,
.section--dark h3,
.section--dark strong { color: #fff; }
.section--dark a { color: var(--accent-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--accent-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: 1.125rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* Primärbutton auf hellem Grund: Marken-Navy, weiße Schrift. */
.btn--primary {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 40, 96, 0.28);
}
.btn--primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 40, 96, 0.38);
}

/* Gegenstück für dunkle Flächen (Hero, CTA-Band) — dort wäre der Navy-Button
   nicht sichtbar. */
.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.btn--light:hover {
  background: var(--accent-tint);
  border-color: var(--accent-tint);
  color: var(--navy-800);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.btn--dark {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--navy-800); background: var(--bg-soft); color: var(--ink); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.btn--wide { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.0625rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-700);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.logo:hover { opacity: 0.82; }
/* Die Wortmarke ist sehr breit (Verhältnis ~5,8:1). Bei zu großer Höhe
   dominiert sie die Kopfzeile — deshalb bewusst zurückhaltend. */
.logo img {
  display: block;
  height: 34px;
  width: auto;
}
@media (max-width: 600px) {
  .logo img { height: 28px; }
}
.footer .logo img { height: 40px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-soft); color: var(--navy-700); }
.nav__link[aria-current="page"] { color: var(--accent); }

.header__cta { display: flex; align-items: center; gap: 1.1rem; flex: none; }

/* In der Kopfzeile bewusst kompakter und ohne Schatten — dort konkurriert der
   Button sonst mit Logo und Telefonnummer. Der große Auftritt gehört in den
   Hero und ins CTA-Band. */
.header__cta .btn {
  padding: 0.62rem 1.25rem;
  font-size: 0.9375rem;
  border-width: 1.5px;
  box-shadow: none;
}
.header__cta .btn:hover { box-shadow: none; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9688rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone svg { width: 17px; height: 17px; color: var(--accent); }
.header__phone:hover { color: var(--navy-700); }

/* Dropdown Leistungen */
.nav__item--has-menu { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle:hover { background: var(--bg-soft); color: var(--navy-700); }
.nav__toggle svg { width: 13px; height: 13px; transition: transform 0.18s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav__toggle[aria-expanded="true"] + .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav__menu a:hover { background: var(--accent-tint); color: var(--navy-700); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.burger svg { width: 22px; height: 22px; margin-inline: auto; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1020px) {
  .header__cta .btn { display: none; }
}

@media (max-width: 880px) {
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  /* Hinweis: .header hat backdrop-filter und ist damit Containing Block für
     positionierte Kinder. Deshalb absolut zum Header statt fixed zum Viewport —
     sonst kollabiert das Menü auf Header-Höhe. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link, .nav__toggle { width: 100%; padding: 0.9rem 0.75rem; font-size: 1.0625rem; }
  .nav__toggle { justify-content: space-between; }
  .nav__item--has-menu { position: static; }
  .nav__menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
  .nav__cta { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
}

@media (min-width: 881px) { .nav__cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #c3d3e2;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      104deg,
      var(--navy-900) 6%,
      rgba(7, 26, 48, 0.9) 42%,
      rgba(7, 26, 48, 0.45) 76%,
      rgba(7, 26, 48, 0.68) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  max-width: 44rem;
}
/* Ohne dritte Farbe entsteht die Betonung über Helligkeit: die Überschrift
   liegt leicht gedämpft, der hervorgehobene Teil in reinem Weiß. */
.hero h1 { color: #ccd6e4; }
.hero h1 em { font-style: normal; color: #fff; }
.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.28rem);
  line-height: 1.55;
  color: #b9cbdc;
  max-width: 36rem;
}
.hero .btn-row { margin-top: 2rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
  padding-left: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d3e1ee;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--accent-on-dark); flex: none; }

/* ---------- Kundenlogos ---------- */
.clients { padding-block: 2.25rem; border-bottom: 1px solid var(--line); }
.clients__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.75rem;
}
.clients__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients__list--left { justify-content: flex-start; }
.clients__list li { margin: 0; }
.clients__list a { display: block; text-decoration: none; }

/* Fremde Logos entsättigt, damit sie nicht mit der eigenen Marke konkurrieren.
   Bei Hover in Originalfarben. */
.clients__list img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.68;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.clients__list a:hover img,
.clients__list a:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 560px) {
  .clients__list { gap: 1.25rem 2rem; }
  .clients__list img { height: 28px; }
}

/* ---------- USP-Karten ---------- */
.usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.usp {
  padding: 1.85rem 1.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.usp__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--navy-700);
}
.usp__icon svg { width: 24px; height: 24px; }
.usp h3 { font-size: 1.125rem; margin-bottom: 0.45rem; }
.usp p { font-size: 0.9688rem; margin: 0; }

/* ---------- Leistungen-Grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Sieben Leistungen + Anfrage-Kachel = acht Kacheln. Im vierspaltigen Raster
   ergibt das zwei volle Reihen ohne Lücke. */
.services--compact { gap: 1.25rem; }
@media (min-width: 1000px) {
  .services--compact { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 620px) and (max-width: 999px) {
  .services--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 619px) {
  .services--compact { grid-template-columns: 1fr; }
}
.services--compact .service-card__body { padding: 1.35rem 1.25rem 1.25rem; }
.services--compact h3 { font-size: 1.15rem; }
.services--compact p { font-size: 0.9375rem; margin-bottom: 1.1rem; }

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.5rem 1.5rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9688rem; margin-bottom: 1.35rem; }
.service-card .link-arrow { margin-top: auto; }

/* Achte Kachel: Anfrage statt Leistung. Muss NACH .service-card stehen,
   sonst überschreibt deren weißer Hintergrund das Navy. */
.service-card--cta {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #dbe5f2;
}
.service-card--cta .service-card__body { justify-content: center; }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: #dbe5f2; }
.service-card--cta .link-arrow { color: #fff; margin-top: 0; }
.service-card--cta:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

/* Grid auf der Leistungsübersicht: erstes Element groß */
@media (min-width: 900px) {
  .services--featured { grid-template-columns: repeat(3, 1fr); }
  .services--featured > :first-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .services--featured > :first-child .service-card__media { aspect-ratio: auto; height: 100%; }
  /* Text mittig statt Link an den unteren Rand gedrückt — sonst klafft eine Lücke */
  .services--featured > :first-child .service-card__body {
    justify-content: center;
    padding: clamp(2rem, 3vw, 3rem);
  }
  .services--featured > :first-child h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
  .services--featured > :first-child p { font-size: 1.0625rem; margin-bottom: 0; }
  .services--featured > :first-child .link-arrow { margin-top: 1.75rem; }
}

/* ---------- Prozess ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 2.5rem; }
.step::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 42px, var(--line) 42px);
}
.step__n {
  position: relative;
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9688rem; margin: 0; }

/* ---------- Split (Bild + Text) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.15rem;
  height: 0.6rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details[open] { background: linear-gradient(180deg, var(--bg-soft), transparent); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.5rem 1.35rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 0.4em;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.62em; }
.faq summary:hover { color: var(--navy-700); }
.faq__answer { padding: 0 3rem 1.5rem 0; font-size: 1rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #bdd0e1;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(120, 150, 200, 0.20), transparent 68%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; gap: 3rem; }
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { margin: 0; font-size: 1.0625rem; max-width: 34rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 380px; }
}

.contact-card {
  padding: 1.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-card h3 { font-size: 1.15rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list li:first-child { padding-top: 0; }
.contact-list svg { width: 20px; height: 20px; margin-top: 0.2em; color: var(--accent); flex: none; }
.contact-list dt, .contact-list .k {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.contact-list .v { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.contact-list .v a { color: var(--ink); text-decoration: none; }
.contact-list .v a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.field .req { color: var(--accent); }
.field .hint { font-size: 0.8438rem; color: var(--muted); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 65, 127, 0.16);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2347586b' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.75rem;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  flex: none;
}

.form__note { font-size: 0.8438rem; color: var(--muted); margin: 0; }

.form__status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9688rem;
  font-weight: 600;
}
.form__status[data-state="error"] { background: #fdeaea; color: #8c2020; }
.form__status[data-state="ok"] { background: var(--accent-tint); color: #0b5a60; }

/* Hinweisbox für den Entwickler / Betreiber */
.notice {
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.75rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.notice strong { display: block; margin-bottom: 0.25rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal h3 { margin-top: 1.85rem; font-size: 1.1rem; }
.legal p, .legal li { font-size: 1rem; }
.legal address { font-style: normal; margin-bottom: 1.15em; }

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}
.crumbs li { margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Seitenkopf für Unterseiten */
.pagehead {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.pagehead .lead { max-width: 42rem; margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--navy-900);
  color: #90a7bd;
  font-size: 0.9688rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
}
.footer h4 {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}
.footer p { margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: #90a7bd; text-decoration: none; }
.footer a:hover { color: var(--accent-on-dark); }
.footer address { font-style: normal; }
.footer__brand p { max-width: 30ch; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.875rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom li { margin: 0; }

/* ---------- Sticky Mobile CTA ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; padding-inline: 0.75rem; font-size: 0.9375rem; }
@media (max-width: 880px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Consent / Karte ---------- */
.map-consent {
  display: grid;
  place-items: center;
  gap: 1rem;
  aspect-ratio: 16 / 10;
  padding: 2rem;
  text-align: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map-consent p { max-width: 34ch; font-size: 0.9375rem; margin: 0; }
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-lg); }

/* ---------- Bewegung ----------
   Bewusst zurückhaltend: kurze Wege, kurze Dauer, kein Zoom, kein Parallax.
   Die Regeln greifen nur, wenn JavaScript läuft (Klasse `js` am <html>) —
   ohne JS bleibt alles sichtbar. Bei „Bewegung reduzieren" ebenfalls. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease-out var(--reveal-delay, 0ms),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Hero-Inhalt läuft direkt beim Laden an, ohne auf den Scroll zu warten. */
.js .hero__inner > * {
  animation: hero-in 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.js .hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero__inner > *:nth-child(2) { animation-delay: 0.12s; }
.js .hero__inner > *:nth-child(3) { animation-delay: 0.19s; }
.js .hero__inner > *:nth-child(4) { animation-delay: 0.26s; }
.js .hero__inner > *:nth-child(5) { animation-delay: 0.33s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__inner > * { animation: none; }
}

/* Kopfzeile bekommt beim Scrollen etwas mehr Präsenz. */
.header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(0, 27, 66, 0.06), 0 8px 24px rgba(0, 27, 66, 0.06);
}

/* Schrittzahlen zählen beim Sichtbarwerden leicht hoch. */
.step__n { transition: color 0.3s ease; }
.step:hover .step__n { color: var(--navy-600); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Einsatzgebiet */
/* Die Bezirke stehen als sichtbarer Text auf der Seite — nicht nur im
   strukturierten Datenblock. Bewusst keine Links: eigene Unterseiten je
   Bezirk waeren nahezu gleiche, duenne Seiten und schaden mehr, als sie
   nuetzen. */
.gebiet {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.gebiet li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.gebiet__umland {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}
.gebiet__umland h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.gebiet__umland p { margin: 0; }

@media (max-width: 560px) {
  .gebiet { gap: 0.45rem; }
  .gebiet li { padding: 0.4rem 0.8rem; font-size: 0.875rem; }
}
