/* =====================================================================
   Schriften: IBM Plex Sans (400/500/600) und IBM Plex Mono (400), lokal in fonts/
   (Zeichensatz "latin", enthält Umlaute, ß und €). Kein Laden von Google-Servern.
   ===================================================================== */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

/* =====================================================================
   Design-Tokens
   Quelle: CLAUDE.md / Design-System-Artefakt (README.md + tokens.json)
   Nur diese Tokens verwenden – keine eigenen Hex-Werte, keine Verläufe.
   ===================================================================== */
:root,
[data-theme="light"] {
  --surface: #f6f8f7;
  --surface-raised: #ffffff;
  --surface-sunken: #e9eeec;
  --ink: #12212b;
  --ink-muted: #465862;
  --border: #d3dcd9;
  --border-strong: #7d8d95;
  --brand: #0b5d66;
  --on-brand: #ffffff;
  --brand-tint: #d6ebec;
  --accent: #f2a93b;
  --on-accent: #12212b;
  --success: #1b6b43;
  --danger: #a52f28;
  --focus-ring: var(--brand);

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-12: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --surface: #0d1a22;
  --surface-raised: #14262f;
  --surface-sunken: #091319;
  --ink: #eaf1f0;
  --ink-muted: #a3b4bb;
  --border: #24373f;
  --border-strong: #5f7580;
  --brand: #5fc3c9;
  --on-brand: #0d1a22;
  --brand-tint: #1a4a51;
  --accent: #f2b04a;
  --on-accent: #12212b;
  --success: #6fd0a0;
  --danger: #f39a90;
  /* neu auflösen, sonst erbt der dunkle Bereich den Wert aus :root */
  --focus-ring: var(--brand);

  color-scheme: dark;
}

/* Bootstrap-Variablen auf die Tokens mappen.
   Steht auch bei [data-theme], damit dunkle Teilbereiche (Hero) neu auflösen. */
:root,
[data-theme] {
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: 16px;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.625; /* 26 / 16 */
  --bs-secondary-color: var(--ink-muted);
  --bs-border-color: var(--border);
  --bs-link-color: var(--brand);
  --bs-primary: var(--brand);
  --bs-border-radius: var(--radius-md);
}

/* =====================================================================
   Grundlagen
   ===================================================================== */
/* Höhe der fixen Navbar: 8px + 52px Logo + 8px */
html {
  scroll-padding-top: 68px;
}

body {
  padding-top: 68px;
  scroll-behavior: smooth;
}

a {
  color: var(--brand);
}

hr {
  border-top-color: var(--border);
  opacity: 1;
}

/* Fokus: 2px Ring mit 2px Abstand, nie entfernen. Als box-shadow statt outline,
   damit der Ring den abgerundeten Ecken von Buttons/Karten folgt (outline bleibt
   in jedem Browser eckig, auch bei border-radius). */
:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-brand:focus-visible,
.navbar-toggler:focus-visible,
.dropdown-item:focus-visible,
.form-check-input:focus-visible,
.faq summary:focus-visible,
.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--focus-ring);
}

/* Text-/Auswahlfelder bekommen bewusst keinen Ring: Browser können bei ihnen
   Maus-Klick nicht von Tastatur-Fokus unterscheiden (anders als bei Buttons),
   ein :not(:focus-visible)-Trick wie beim Hamburger-Menü greift hier also nicht.
   Statt des Rings wird beim Fokus die Unterstrich-Linie dicker und in --brand
   eingefärbt – das bleibt als Fokus-Anzeige sichtbar, ohne den "fetten Rahmen". */
.form-control:focus-visible,
.form-select:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Nur den Bootstrap-Standardring bei Maus-Klick kappen (:focus ohne :focus-visible);
   bei Tastatur-Fokus (:focus-visible) soll der Ring von oben unverändert gelten. */
.navbar-toggler:focus:not(:focus-visible) {
  box-shadow: none;
}

/* =====================================================================
   Typografie (IBM Plex Sans, Überschriften 600, Text 400)
   ===================================================================== */
h1, .h1 {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.5px;
  font-weight: 600;
}

h2, .h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
}

h3, .h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

/* Footer-Überschriften: Fließtextgröße, Gewicht 600 */
h5, .h5 {
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}

/* display: Hero-Überschrift, einmal pro Seite */
.display-title {
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -1px;
  font-weight: 600;
}

/* body-lg: Einleitungstext */
.lead {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

/* caption: Meta, Tags, Formularhinweise */
small,
.small {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 575.98px) {
  .display-title {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -0.5px;
  }
}

/* =====================================================================
   Buttons: Radius md, primär = brand, ein Kontakt-Button = accent
   ===================================================================== */
.btn {
  --bs-btn-border-radius: var(--radius-md);
  --bs-btn-font-weight: 500;
  --bs-btn-focus-box-shadow: none;
}

.btn-lg {
  --bs-btn-font-size: 18px;
  --bs-btn-border-radius: var(--radius-md);
}

.btn-primary {
  --bs-btn-color: var(--on-brand);
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--on-brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 85%, var(--ink));
  --bs-btn-hover-border-color: color-mix(in srgb, var(--brand) 85%, var(--ink));
  --bs-btn-active-color: var(--on-brand);
  --bs-btn-active-bg: color-mix(in srgb, var(--brand) 75%, var(--ink));
  --bs-btn-active-border-color: color-mix(in srgb, var(--brand) 75%, var(--ink));
}

.btn-accent {
  --bs-btn-color: var(--on-accent);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--on-accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 85%, var(--ink));
  --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 85%, var(--ink));
  --bs-btn-active-color: var(--on-accent);
  --bs-btn-active-bg: color-mix(in srgb, var(--accent) 75%, var(--ink));
  --bs-btn-active-border-color: color-mix(in srgb, var(--accent) 75%, var(--ink));
}

.btn-outline-ink {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--brand-tint);
  --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--brand-tint);
  --bs-btn-active-border-color: var(--border-strong);
}

/* =====================================================================
   Navigation (Header = surface-raised)
   ===================================================================== */
.navbar {
  --bs-navbar-padding-y: var(--space-2);
  --bs-navbar-color: var(--ink);
  --bs-navbar-hover-color: var(--brand);
  --bs-navbar-active-color: var(--brand);
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.navbar-logo {
  display: block;
  height: 52px;
  width: auto;
}

/* Logo für hellen Grund (Standard) und für dunklen Grund */
.navbar-logo--dark {
  display: none;
}

[data-theme="dark"] .navbar-logo--light {
  display: none;
}

[data-theme="dark"] .navbar-logo--dark {
  display: block;
}

/* Menüpunkte als Pille: an den Seiten voll gerundet, kein Rahmen. Hervorhebung nur über eine sehr
   dezente, neutrale Grautönung (kein Brand-Ton), kaum sichtbar. Gilt für alle Punkte, "Leistungen" inklusive. */
.navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-4);
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .dropdown.show > .nav-link {
  background-color: color-mix(in srgb, var(--ink) 6%, var(--surface-raised));
}

/* Eigener, dünner Pfeil statt des ausgefüllten Bootstrap-Dreiecks */
.navbar-nav .dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0;
  vertical-align: 0;
  border: 0;
  background-color: var(--ink-muted);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
  transition: transform 0.15s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--surface-raised);
  --bs-dropdown-color: var(--ink);
  --bs-dropdown-border-color: var(--border);
  /* etwas runder als der Standard-Radius (md), damit die Fläche weicher wirkt */
  --bs-dropdown-border-radius: calc(var(--radius-md) + 4px);
  --bs-dropdown-inner-border-radius: calc(var(--radius-md) - 1px);
  /* Abstand zwischen den Einträgen und dem Menürand, damit deren gerundete Ecken freistehen */
  --bs-dropdown-padding-x: var(--space-2);
  --bs-dropdown-padding-y: var(--space-2);
  --bs-dropdown-item-padding-x: var(--space-4);
  --bs-dropdown-item-padding-y: var(--space-2);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-hover-bg: var(--brand-tint);
  --bs-dropdown-link-active-color: var(--ink);
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-box-shadow: none;
  box-shadow: none;
}

/* Einträge als Pille wie im übergeordneten Menü, mit Platz zum Menürand (padding-x oben). */
.dropdown-item {
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

/* Die aktuelle Seite wird im Untermenü nicht dauerhaft hervorgehoben (kein Feld
   in Markenfarbe), sondern nur beim Hover oder Fokus wie jeder andere Eintrag. */
.dropdown-item.active:hover,
.dropdown-item.active:focus,
.dropdown-item:active:hover,
.dropdown-item:active:focus {
  color: var(--bs-dropdown-link-hover-color);
  background-color: var(--bs-dropdown-link-hover-bg);
}

/* Im eingeklappten Menü ist der Schalter ein Button und wäre sonst linksbündig */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-toggle {
    margin-inline: auto;
  }

  .navbar-nav .dropdown-item {
    text-align: center;
  }
}

/* Ab der ausgeklappten Navigation positioniert Bootstrap das Untermenü absolut (sonst, im
   eingeklappten Menü, steht es normal im Textfluss unter dem Menüpunkt): dort mittig statt
   linksbündig ausrichten und etwas Abstand zum Menüpunkt lassen. */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    left: 50%;
    margin-top: var(--space-2);
    transform: translateX(-50%);
  }
}

.navbar-toggler {
  --bs-navbar-toggler-border-color: var(--border-strong);
  --bs-navbar-toggler-border-radius: var(--radius-md);
}

.navbar-toggler-icon {
  background-image: none;
  background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% no-repeat;
}

/* =====================================================================
   Hero: dunkler Bereich (data-theme="dark" im HTML) über dem Video
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  color: var(--ink);
  /* Fallback, falls das Video nicht lädt oder ausgeblendet ist */
  background-color: var(--surface-sunken);
}

/* Video ist 35 % höher als der Hero und ragt nach oben heraus,
   damit beim Parallax-Verschieben (js/parallax.js) keine Lücke entsteht. */
.hero-video {
  position: absolute;
  top: -35%;
  left: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

/* Dunkler Schatten über dem Video für bessere Lesbarkeit */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--surface-sunken);
  opacity: 0.75;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Bei "Bewegung reduzieren" und auf kleinen Bildschirmen startet js/hero-video.js das
   Video nicht, dann bleibt das Standbild (poster) stehen. */

/* Bild-Variante des Hero-Hintergrunds (Unterseiten): gleiche Mechanik wie .hero-video,
   bleibt aber bei "Bewegung reduzieren" sichtbar – nur die Parallax-Verschiebung
   entfällt dann (steuert js/parallax.js), ein Standbild ist keine Bewegung. */
.hero-image {
  position: absolute;
  top: -35%;
  left: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

/* =====================================================================
   Leistungen: Karten = surface-raised, feine Linie statt Schatten
   ===================================================================== */
.card {
  --bs-card-bg: var(--surface-raised);
  --bs-card-border-color: var(--border);
  --bs-card-border-radius: var(--radius-md);
  --bs-card-inner-border-radius: calc(var(--radius-md) - 1px);
  --bs-card-spacer-x: var(--space-6);
  --bs-card-spacer-y: var(--space-6);
}

.service-card {
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--brand);
}

@media (min-width: 992px) {
  .service-card {
    --bs-card-spacer-x: var(--space-12);
    --bs-card-spacer-y: var(--space-12);
  }
}

/* Icon-Chip: brand auf brand-tint */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--brand);
  background-color: var(--brand-tint);
  border-radius: var(--radius-md);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon img {
  width: 48px;
  height: 48px;
}

/* Kartentitel verlinkt auf die Leistungsseite (interne Verlinkung mit sprechendem Linktext),
   sieht aber aus wie eine normale Überschrift; Unterstreichung erst beim Überfahren. */
.service-title-link {
  color: inherit;
  text-decoration: none;
}

.service-title-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Volle Icons (z. B. img statt Strich-SVG) bringen ihre eigene Optik mit, daher kein Tint-Hintergrund */
.service-icon:has(img) {
  background-color: transparent;
}

/* Steht vor der Merkmalsliste, damit deren Trennlinien in allen Karten einer Reihe bündig bleiben */
.service-cta {
  align-self: flex-start;
  margin-bottom: var(--space-6);
}

/* Karteninhalt als Spalte: Merkmalslisten schließen in allen Karten einer Reihe bündig ab */
.service-card .card-body {
  display: flex;
  flex-direction: column;
}

/* Merkmalsliste mit Häkchen */
.service-list {
  margin: 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.service-text {
  height: 130px;
  overflow: hidden;
}

.service-list li {
  position: relative;
  padding-left: var(--space-6);
}

.service-list li + li {
  margin-top: var(--space-2);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
}

/* =====================================================================
   Referenz: Browser-Rahmen mit Screenshot, Badge
   ===================================================================== */
.badge-tint {
  display: inline-block;
  padding: 0 var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand);
  background-color: var(--brand-tint);
  border-radius: var(--radius-sm);
}

.browser-frame {
  overflow: hidden;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  background-color: var(--border-strong);
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
  background-color: var(--surface-sunken);
  border-radius: var(--radius-sm);
}

.browser-screen {
  background-color: var(--surface);
}

/* Hinweisbox (brand-tint) */
.callout {
  padding: var(--space-4);
  color: var(--ink);
  background-color: var(--brand-tint);
  border-radius: var(--radius-md);
}

/* Persönliches Zitat (z. B. Seitenkopf About): Akzentlinie statt Anführungszeichen-Grafik */
.about-quote {
  margin: 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--brand);
}

.about-quote p {
  color: var(--ink);
}

.about-quote footer {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  font-style: normal;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
  /* Das globale footer{}-Styling (Hintergrund, Rahmen oben) ist für den Seiten-Footer
     gedacht, gilt aber auch für dieses <footer> als Zitat-Zuschreibung: zurücksetzen,
     dafür eine dezente eigene Trennlinie. */
  background-color: transparent;
  border-top: 1px solid var(--border);
}

/* =====================================================================
   Vision (About-Seite): dunkler Block, Kernsatz im Schreibmaschinen-Stil
   ===================================================================== */
.vision-statement {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
  color: var(--ink);
}

@media (min-width: 992px) {
  .vision-statement {
    font-size: 30px;
    line-height: 42px;
  }
}

/* Blinkender Cursor nach dem (noch nicht vollständigen) Text */
.vision-statement::after {
  content: "";
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  margin-left: 2px;
  background-color: var(--brand);
  vertical-align: text-bottom;
  animation: vision-caret-blink 1s step-end infinite;
}

@keyframes vision-caret-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vision-statement::after {
    animation: none;
  }
}

.vision-pillars {
  --bs-gutter-x: var(--space-6);
}

.vision-pillars li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}

.browser-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================================================================
   Über uns: Foto im Bildrahmen (radius-lg), Kennzahlen als kleine Karten
   ===================================================================== */
.about-photo {
  display: block;
  width: 100%;
  height: auto; /* überschreibt das height-Attribut, sonst greift aspect-ratio nicht */
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Hero-Foto auf den Unterseiten (Seitenkopf im Split-Layout: Text neben Bild) */
.page-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.fact {
  height: 100%;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.fact-value {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--brand);
}

.fact-label {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}

.about-card {
  height: 100%;
  padding: var(--space-6);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

@media (min-width: 992px) {
  .about-card {
    padding: var(--space-12);
  }
}

.point-list li + li {
  margin-top: var(--space-4);
}

.point-title {
  font-weight: 600;
  color: var(--ink);
}

/* Werdegang als Zeitleiste: Punkt in brand, Linie in border */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-6);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: var(--brand);
  border-radius: 50%;
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: -4px;
  width: 2px;
  background-color: var(--border);
}

.timeline-date {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand);
}

/* Schritte 2+ blenden beim Scrollen einzeln ein (js/scroll-reveal.js);
   Schritt 1 ist immer sofort sichtbar. */
.timeline li:not(:first-child) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline li.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .timeline li:not(:first-child) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   Ablauf-Schritte: größere Zickzack-Darstellung (Mitte ab md), auf
   schmalen Bildschirmen einspaltig gestapelt.
   ===================================================================== */
.process-steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Verlaufslinie: auf schmalen Bildschirmen links, ab Tablet-Breite mittig */
.process-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background-color: var(--border);
}

.process-step {
  position: relative;
  padding: var(--space-6) 0 var(--space-6) var(--space-12);
}

/* Punkt je Schritt auf der Linie, ohne Ziffer */
.process-step::before {
  content: "";
  position: absolute;
  top: calc(var(--space-6) + 6px);
  left: 0;
  width: 24px;
  height: 24px;
  background-color: var(--brand);
  border-radius: 50%;
  z-index: 1;
}

.process-step-step {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand);
}

@media (min-width: 768px) {
  .process-steps::before {
    left: 50%;
    transform: translateX(-1px);
  }

  .process-step {
    padding: var(--space-6) 0;
  }

  .process-step::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .process-step-content {
    width: 45%;
  }

  .process-step:nth-child(odd) .process-step-content {
    margin-right: 55%;
  }

  .process-step:nth-child(even) .process-step-content {
    margin-left: 55%;
  }
}

/* Schritte 2+ blenden beim Scrollen einzeln ein (js/scroll-reveal.js);
   Schritt 1 ist immer sofort sichtbar. */
.process-step:not(:first-child) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .process-step:not(:first-child) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   Kontaktformular: Panel = surface-raised, Eingabefelder mit border-strong
   ===================================================================== */
.section-sunken {
  background-color: var(--surface-sunken);
}

/* Weißer Abschnitt (Kontakt): dasselbe Weiß wie Karten, Header und Footer, nie als Seitenhintergrund */
.section-raised {
  background-color: var(--surface-raised);
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

/* Bild neben dem Kontaktformular: füllt die Spalte in voller Höhe (row mit align-items-stretch),
   auf schmalen Bildschirmen (gestapelt) feste Bildhöhe statt voller Elternhöhe. */
.kontakt-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background-color: var(--surface-sunken);
  border-radius: var(--radius-lg);
}

.kontakt-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.contact-panel {
  padding: var(--space-6);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .contact-panel {
    padding: var(--space-12);
  }
}

/* Startseite: Formular und Bild stehen bereits auf Weiß (section-raised), daher ohne Rahmen */
#kontakt .contact-panel {
  border: 0;
}

.form-label {
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.form-control,
.form-select {
  padding: var(--space-2) var(--space-4);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background-color: var(--surface-raised);
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
}

.form-control:focus,
.form-select:focus {
  color: var(--ink);
  background-color: var(--surface-raised);
  border-bottom-width: 2px;
  border-color: var(--brand);
  box-shadow: none;
}

.form-select {
  padding-right: calc(var(--space-4) + var(--space-6));
}

.form-control::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

/* Floating Labels: Feldbeschreibung steckt im Feld, rutscht beim Fokussieren/Ausfüllen
   nach oben und wird kleiner (Bootstraps .form-floating, nur auf die Tokens umgefärbt). */
.form-floating > label {
  color: var(--ink-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--ink-muted);
}

.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
  background-color: var(--surface-raised);
}

/* Bootstrap zwingt .form-control in .form-floating sonst auf eine feste
   Einzeilen-Höhe – für mehrzeilige Textareas wieder freigeben. */
.form-floating > textarea.form-control {
  height: auto;
}

/* Fehler: Farbe --danger, immer mit Text, ohne Bootstrap-Icon */
.form-control.is-invalid,
textarea.form-control.is-invalid,
.form-control.is-invalid:focus {
  padding-right: var(--space-4);
  background-image: none;
  border-color: var(--danger);
  box-shadow: none;
}

.invalid-feedback {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--danger);
}

/* Hilfetext unter einem Feld (caption-Typografie), z. B. Beispiele oder Erläuterungen */
.form-hint {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Fehlermeldung zu einer Auswahlgruppe (Radio-Buttons ohne Einzel-Feld), von JS ein-/ausgeblendet */
.choice-group-error {
  display: none;
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--danger);
}

/* Honeypot: außerhalb des sichtbaren Bereichs, nicht per display:none (das überspringen manche Bots) */
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.form-status--success {
  background-color: var(--brand-tint);
  border-color: var(--brand);
  color: var(--ink);
}

.form-status--error {
  background-color: var(--surface-raised);
  border-color: var(--danger);
  color: var(--danger);
}

/* =====================================================================
   Webseiten-Seite: Leistungsumfang, Fragen und Antworten, Anfrage in Schritten
   ===================================================================== */
.feature-card {
  height: 100%;
  padding: var(--space-6);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* "Was dazugehört": nummerierte Bausteine statt Kartenraster, luftiger ohne Rahmen */
.numbered-block-index {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

/* Fragen und Antworten (details/summary, ohne JavaScript): kein Rahmen/Karte mehr,
   nur eine untere Trennlinie je Eintrag – wie bei den Formularfeldern. */
.faq details {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-strong);
}

.faq details:first-child {
  padding-top: 0;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background-color: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq-body {
  padding-top: var(--space-4);
}

/* Fortschritt: ein Balken je Schritt */
.stepper {
  display: flex;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.stepper-item {
  flex: 1;
  padding-top: var(--space-2);
  border-top: 4px solid var(--border);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.stepper-item.is-current,
.stepper-item.is-done {
  border-top-color: var(--brand);
}

.stepper-num {
  display: block;
  color: var(--ink-muted);
}

.stepper-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 575.98px) {
  /* Auf dem Handy nur der Titel des aktuellen Schritts */
  .stepper-item:not(.is-current) .stepper-title,
  .stepper-item:not(.is-current) .stepper-num {
    display: none;
  }
}

.form-step-title {
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: var(--space-6);
}

legend.form-label {
  float: none;
  width: auto;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

/* Auswahlkarten für Radio-Buttons und Kontrollkästchen */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.choice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--brand);
}

.choice:has(input:checked) {
  background-color: var(--brand-tint);
  border-color: var(--brand);
}

.choice .form-check-input {
  flex: none;
  margin: 0;
}

.form-check-input {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-strong);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-check-input:focus {
  border-color: var(--brand);
  /* Kein box-shadow:none hier, aus demselben Grund wie bei .form-control:focus oben. */
}

/* =====================================================================
   Footer (= surface-raised)
   ===================================================================== */
footer {
  background-color: var(--surface-raised);
  color: var(--ink);
  border-top: 1px solid var(--border);
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =====================================================================
   Zurück nach oben: erscheint erst nach dem Scrollen (js/back-to-top.js)
   ===================================================================== */
.back-to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  cursor: pointer;
}

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

.back-to-top:hover {
  background-color: color-mix(in srgb, var(--brand) 85%, var(--ink));
  border-color: color-mix(in srgb, var(--brand) 85%, var(--ink));
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  background-color: var(--on-brand);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 15l6-6 6 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M6 15l6-6 6 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / contain no-repeat;
}

@media (max-width: 575.98px) {
  .back-to-top {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
