/* ==========================================================================
   assets/css/style.css – das Design der Website
   ==========================================================================

   Aufbau dieser Datei (von oben nach unten):
     1. Schriftart (@font-face)
     2. Design-Variablen (:root)
     3. Grundtypografie
     4. Layout-Helfer (.container, .section ...)
     5. Komponenten (Buttons, Header, Hero, Karten, Formular, Footer ...)
     6. Responsive Anpassungen (@media)
     7. Barrierefreiheit & Animationen

   Farben (Arbeitsstandard):
     Dunkelblau #1D306F · Orange #E65124 (sparsam) · Weiß
   Schrift: Source Sans 3 (SIL Open Font License), selbst gehostet

   Tipp: Ändere Farben und Abstände möglichst nur in :root. Dann bleibt
   das Design an einer Stelle zentral steuerbar.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCHRIFTART
   --------------------------------------------------------------------------
   @font-face bindet eine lokale Schriftdatei ein.
   - "font-weight: 300 900" = die Datei enthält alle Schnitte (variable font).
   - "font-display: swap" = Text wird sofort mit einer Ersatzschrift gezeigt
     und wechselt, sobald die echte Schrift geladen ist.
   - "unicode-range" = welche Zeichen die Datei abdeckt. So lädt der Browser
     nur die lateinische bzw. lateinisch-erweiterte Datei, die er braucht.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext-wght.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. DESIGN-VARIABLEN (Custom Properties)
   --------------------------------------------------------------------------
   Variablen beginnen mit "--" und werden mit var(--name) verwendet.
   Sie gelten für das gesamte Dokument, weil sie in :root (dem <html>-Element)
   definiert sind.
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben */
  --blue: #1D306F;
  --blue-dark: #142252;
  --blue-tint: #E8EBF3;
  --orange: #E65124;
  --white: #FFFFFF;
  --sand: #F6F5F3;

  /* Semantische Farben: beschreiben die Funktion, nicht den Farbton. */
  --color-bg: var(--white);
  --color-text: #1A2030;      /* Kontrast 15.9:1 auf Weiß – sehr gut lesbar */
  --color-muted: #4B5468;     /* Kontrast 7.4:1 auf Weiß */
  --color-border: #DEDCD6;
  --color-accent: var(--blue);

  /* Schriftfamilie mit Fallback-Kette, falls die Webfont nicht lädt. */
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Schriftgrößen.
     clamp(min, ideal, max) = flexible Größe: passt sich der Fensterbreite an,
     bleibt aber immer zwischen min und max. */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
  --text-2xl: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
  --text-hero: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  /* Abstände auf einer 4px-Basis (0.25rem = 4px bei 16px Grundschrift). */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem); /* vertikaler Abstand je Abschnitt */

  /* Eckenradien */
  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px;

  /* Schatten (zwei Lagen: fein + weich) */
  --shadow: 0 1px 2px rgba(20,34,82,.06), 0 8px 24px rgba(20,34,82,.08);

  --transition-interactive: 180ms ease; /* Dauer für Hover-Effekte */
  --container: 1200px;                  /* maximale Inhaltsbreite */
  --header-h: 84px;                     /* Höhe des festen Headers */
}

/* --------------------------------------------------------------------------
   3. GRUNDTYPOGRAFIE
   -------------------------------------------------------------------------- */

/* Sprungmarken sollen nicht unter dem Header landen. */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: var(--text-base); line-height: 1.6; }

/* Überschriften: dunkelblau, fett, kompakt. */
h1, h2, h3, h4 { overflow-wrap: break-word; color: var(--blue); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
p { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* Sichtbarer Tastaturfokus – blau auf hellen, weiß auf dunklen Flächen. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer__bar :focus-visible { outline-color: var(--white); }

/* --------------------------------------------------------------------------
   4. LAYOUT-HELFER
   -------------------------------------------------------------------------- */

/* .container zentriert den Inhalt und begrenzt die Breite.
   min(100% - 2.5rem, 1200px) = mindestens 1.25rem Abstand links/rechts,
   höchstens 1200px breit. */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2, .section--blue h3 { color: var(--white); }

/* Sprunglink: außerhalb des Bildschirms, bis er per Tastatur fokussiert wird. */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--blue); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* Platzhalter für fehlende Angaben: gelb, gestrichelt, gut sichtbar. */
.tbc { background: #FFF1C2; color: #5A4300; border: 1px dashed #B08A00; border-radius: 4px; padding: 0 .3em; font-size: .92em; font-weight: 600; }
.on-dark .tbc, .section--blue .tbc { background: #FFF1C2; color: #5A4300; }

/* "Eyebrow" = kleines Label über einer Überschrift, mit oranger Linie davor. */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-3); }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.section--blue .eyebrow, .on-dark .eyebrow { color: #fff; }

/* Kopfbereich eines Abschnitts (Label + Überschrift + optionaler Text). */
.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head p { color: var(--color-muted); margin-top: var(--space-3); font-size: var(--text-lg); }
.section--blue .section-head p { color: #DCE1EE; }
/* Variante mit Text links und Link rechts. */
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); max-width: none; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   5. KOMPONENTEN
   -------------------------------------------------------------------------- */

/* ---------- Buttons ---------- */
/* Ein Button ist ein <a> oder <button> mit der Klasse .btn.
   min-height: 48px = gut mit dem Finger zu treffen (Touch-Ziel). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: none; }
/* Varianten: gefüllt, mit Rahmen, hell auf dunklem Grund, transparent. */
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-tint); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-tint); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* Link mit Pfeil-Icon. */
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Header / Navigation ---------- */
/* position: sticky = bleibt beim Scrollen oben kleben.
   z-index: 50 = liegt über dem Inhalt. */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 62px; width: auto; }
.nav { margin-left: auto; } /* schiebt die Navigation nach rechts */
.nav ul { display: flex; gap: clamp(.75rem, 1.6vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-sm); padding: .5rem 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--blue); border-bottom-color: var(--blue-tint); }
/* Aktive Seite: oranger Unterstrich. */
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.tel-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.tel-link svg { width: 20px; height: 20px; flex: none; }
/* Hamburger-Button: standardmäßig versteckt, erst auf Handys sichtbar. */
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--blue); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-nav { display: none; }

/* Responsive: Auf schmalen Bildschirmen wird die Telefonnummer ausgeblendet. */
@media (max-width: 1100px) { .header-actions .tel-link { display: none; } }

/* Ab 960px und schmaler: klassische Navigation aus, Hamburger an. */
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { border-top: 1px solid var(--color-border); background: #fff; padding: var(--space-2) 0 var(--space-6); }
  /* Wird von main.js auf "true" gesetzt. */
  .mobile-nav[data-open="true"] { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-weight: 600; text-decoration: none; }
  .mobile-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 0 var(--orange); padding-left: .9rem; }
  .mobile-nav .btn-row { margin-top: var(--space-5); flex-direction: column; }
  .mobile-nav .btn { width: 100%; }
}

/* ---------- Hero (Startseite) ---------- */
/* Der Hero ist ein großer Bereich mit Hintergrundbild und dunklem Verlauf,
   damit der weiße Text gut lesbar bleibt. */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; } /* füllt den gesamten Hero */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* ::after legt einen Farbverlauf über das Bild (von links dunkel nach rechts hell). */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,34,82,.96) 0%, rgba(29,48,111,.9) 40%, rgba(29,48,111,.35) 75%, rgba(29,48,111,.1) 100%); }
.hero__inner { position: relative; padding-block: clamp(4rem, 3rem + 6vw, 8rem); max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }   /* nur Großtext: 3,3:1 auf #1D306F (AA Großtext) */
.hero__lead { font-size: var(--text-lg); color: #E6E9F2; margin-block: var(--space-6) var(--space-8); max-width: 56ch; }
.hero__slogan { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 700; color: #fff; list-style: none; padding: 0; }
.hero__slogan li { display: inline-flex; align-items: center; gap: .5rem; }
/* Oranger Punkt vor jedem Slogan-Wort. */
.hero__slogan li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Auf Handys wird der Verlauf vertikal statt horizontal. */
@media (max-width: 760px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(20,34,82,.92) 0%, rgba(29,48,111,.9) 60%, rgba(29,48,111,.8) 100%); }
}

/* Hinweis "Symbolbild" unten rechts im Bild. */
.symbol-note { position: absolute; right: .75rem; bottom: .6rem; font-size: .75rem; color: #fff; background: rgba(20,34,82,.75); padding: .15rem .5rem; border-radius: 4px; z-index: 2; }

/* Seitenkopf für Unterseiten (heller Hintergrund, Breadcrumb + Titel). */
.page-hero { background: var(--sand); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--color-border); }
.page-hero p { color: var(--color-muted); font-size: var(--text-lg); margin-top: var(--space-4); max-width: 62ch; }
.breadcrumb { font-size: var(--text-xs); margin-bottom: var(--space-4); color: var(--color-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
/* Trennzeichen "/" zwischen den Breadcrumb-Einträgen. */
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #9097A8; }
.breadcrumb a { color: var(--color-muted); }

/* ---------- Leistungs-Kacheln ---------- */
/* grid mit auto-fit: Die Kacheln passen sich automatisch an die Breite an.
   minmax(210px, 1fr) = jede Kachel mindestens 210px, sonst gleichmäßig breit. */
.services { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.service { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive); }
.service:hover { box-shadow: var(--shadow); border-color: #C9CEDD; transform: translateY(-2px); }
.service h3 a { color: var(--blue); text-decoration: none; }
/* ::after mit inset: 0 macht die GANZE Kachel klickbar, nicht nur den Text. */
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service p { color: var(--color-muted); font-size: var(--text-sm); flex: 1; }
.service .link-arrow { font-size: var(--text-sm); }
/* Rundes Icon-Badge in Orange. */
.icon-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.icon-badge svg { width: 28px; height: 28px; }

/* Große Leistungszeilen auf der Übersichtsseite. */
.service-rows { display: grid; gap: var(--space-8); }
.service-row { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.service-row__img { position: relative; aspect-ratio: 4/3; }
.service-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.service-row__body { padding: var(--space-6) var(--space-6) var(--space-8); }
.service-row__body h2 { font-size: var(--text-xl); margin-block: var(--space-4) var(--space-3); }
.service-row__body p { color: var(--color-muted); margin-bottom: var(--space-5); }

/* Ab 820px: Bild und Text nebeneinander. */
@media (min-width: 820px) {
  .service-row { grid-template-columns: 5fr 6fr; }
  /* Bei jeder zweiten Zeile wandert das Bild nach rechts. */
  .service-row:nth-child(even) .service-row__img { order: 2; }
  .service-row__img { aspect-ratio: auto; align-self: stretch; min-height: 340px; }
  .service-row__body { padding: var(--space-10); }
}

/* ---------- Zwei-Spalten / Inhalt ---------- */
/* .split = Bild + Text nebeneinander (ab 900px). */
.split { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 20%; }
/* Liste mit Häkchen (Zielgruppen). */
.audience { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.audience li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.audience svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: .15rem; }

/* .prose = Fließtext aus dem CMS (Markdown).
   "> * + *" bedeutet: jedes Element, das auf ein Element folgt, bekommt
   Abstand nach oben. So entstehen gleichmäßige Absätze ohne viele Klassen. */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-10); }
.prose h3 { margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--orange); }

/* Inhaltslayout: Haupttext links, Seitenleiste rechts (ab 980px). */
.content-layout { display: grid; gap: var(--space-12); }
@media (min-width: 980px) { .content-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
/* Seitenleiste bleibt beim Scrollen stehen (sticky). */
.aside-card { background: var(--sand); border-radius: var(--radius-lg); padding: var(--space-8); position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.aside-card p { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: var(--space-3); }
.aside-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; border-top: 1px solid var(--color-border); }
.aside-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--color-border); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.aside-list a[aria-current="page"] { color: var(--color-text); box-shadow: inset 3px 0 0 var(--orange); padding-left: .75rem; }

/* Breites Bild in Beiträgen und Leistungen. */
.figure-wide { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-10); }
.figure-wide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 25%; }

/* ---------- Werte ---------- */
.values { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { background: #fff; border-radius: var(--radius); padding: var(--space-8); border-top: 4px solid var(--orange); }
.value h3 { margin-bottom: var(--space-3); }
.value p { color: var(--color-muted); }

/* Faktenliste (Sitz, Gründung, Team ...). */
.facts { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--space-10); }
.fact { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); }
.fact dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); font-weight: 700; }
.fact dd { margin: .3rem 0 0; font-weight: 600; }

/* ---------- Vorher / Nachher ---------- */
/* Beide Bilder liegen übereinander. Der "Nachher"-Teil wird per clip-path
   abgeschnitten; --pos (0–100%) bestimmt, wo die Trennlinie sitzt. */
.ba { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; user-select: none; background: #ddd; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
/* Die senkrechte Linie und der runde Griff. */
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; pointer-events: none; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba__knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow); }
.ba__knob svg { width: 28px; height: 28px; }
.ba__label { position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 4px; font-weight: 700; font-size: var(--text-sm); background: var(--blue); color: #fff; }
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; }
/* Der unsichtbare Range-Input liegt über allem und fängt Maus/Touch/Tastatur ab. */
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
/* :has() = Wenn der Regler per Tastatur fokussiert ist, bekommt der ganze
   Vergleich einen Fokusrahmen. */
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
.ba-caption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- Kundenstimmen-Laufband (rechts → links) ---------- */
/* mask-image blendet die Ränder weich aus. */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--space-5); width: max-content; animation: marquee var(--marquee-duration, 45s) linear infinite; }
/* Pausiert bei Hover, Tastaturfokus oder wenn data-paused="true" gesetzt ist. */
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee[data-paused="true"] .marquee__track { animation-play-state: paused; }
/* Die Bewegung: von 0 bis -50 % (die zweite Kopie der Liste). */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--space-5) / 2)); } }
.quote { width: min(360px, 80vw); flex: none; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.quote blockquote { margin: 0; color: var(--color-text); }
.quote__mark { width: 36px; height: 28px; color: var(--orange); }
.quote figcaption { font-weight: 700; color: var(--blue); font-size: var(--text-sm); margin-top: auto; }
.quote figcaption span { display: block; font-weight: 400; color: var(--color-muted); }
.marquee-controls { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
.marquee-controls p { font-size: var(--text-xs); color: var(--color-muted); }

/* Barrierefreiheit: Bei "Bewegung reduzieren" wird das Laufband statisch
   und horizontal scrollbar. */
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Beiträge (Blog) ---------- */
.posts { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition-interactive); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 4/3; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 400ms ease; }
/* Bild zoomt beim Hover leicht. */
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-card h3 { font-size: var(--text-lg); hyphens: auto; overflow-wrap: break-word; }
.post-card h3 a { text-decoration: none; color: var(--blue); }
/* Ganze Karte klickbar machen. */
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--color-muted); font-size: var(--text-sm); flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--text-xs); color: var(--color-muted); }
.tag { display: inline-block; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: .1rem .55rem; border-radius: 999px; }
.article-header { max-width: 820px; }
.article-header .meta { margin-top: var(--space-5); }
.article-cta { margin-top: var(--space-12); background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: var(--space-8); }
.article-cta h2 { color: #fff; font-size: var(--text-xl); margin: 0 0 var(--space-3) !important; }
.article-cta p { color: #DCE1EE; margin-bottom: var(--space-5); }

/* ---------- Karriere ---------- */
.jobs { display: grid; gap: var(--space-5); }
.job { position: relative; display: grid; gap: var(--space-4); grid-template-columns: 1fr; background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: var(--space-6) var(--space-8); transition: box-shadow var(--transition-interactive); }
.job:hover { box-shadow: var(--shadow); }
.job h3 a { text-decoration: none; color: var(--blue); }
.job h3 a::after { content: ""; position: absolute; inset: 0; }
.job p { color: var(--color-muted); }
@media (min-width: 820px) { .job { grid-template-columns: 1fr auto; align-items: center; } }
/* Kleine "Pillen" mit Eckdaten (Standort, Anstellungsart). */
.job-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.job-facts li { font-size: var(--text-xs); font-weight: 600; background: var(--sand); padding: .25rem .7rem; border-radius: 999px; }
.job-section { margin-top: var(--space-10); }
.job-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: .2rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: var(--space-12); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-list .icon-circle svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.contact-list a { font-weight: 700; font-size: var(--text-lg); text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: var(--text-sm); }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 600; }

/* Formularkarte */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.form-grid { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
/* Ab 640px: zwei Spalten; .full nimmt die ganze Breite ein. */
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: .4rem; color: var(--color-text); }
.field .opt { font-weight: 400; color: var(--color-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid #8C93A5; border-radius: var(--radius-sm); background: #fff; color: var(--color-text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
/* Fehlerhafte Felder bekommen einen roten Rahmen (per aria-invalid). */
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: var(--text-xs); margin-top: .35rem; font-weight: 600; }
.field label.checkbox, .checkbox { display: flex; font-weight: 400; gap: .7rem; align-items: flex-start; font-size: var(--text-sm); }
.checkbox input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; accent-color: var(--blue); flex: none; }
/* Honeypot: unsichtbar für Menschen, aber im HTML vorhanden. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Hinweisboxen (Erfolg, Fehler, Info). */
.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 600; margin-top: var(--space-5); }
.alert--success { background: #E6F4EA; color: #1E5631; border: 1px solid #9CCFAE; }
.alert--error { background: #FCE8E6; color: #8C1D18; border: 1px solid #F0A9A3; }
.alert--info { background: var(--blue-tint); color: var(--blue-dark); border: 1px solid #C3CAE0; }
.form-note { font-size: var(--text-xs); color: var(--color-muted); }

/* Karte nach Klick (OpenStreetMap) */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16/9; background: var(--blue-tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Zustimmungsschicht, solange die Karte nicht geladen ist. */
.map__consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-6);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(29,48,111,.07) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(29,48,111,.07) 38px 40px), var(--blue-tint); }
.map__consent-inner { max-width: 460px; background: #fff; border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow); }
.map__consent svg.pin { width: 40px; height: 40px; color: var(--orange); margin: 0 auto var(--space-3); }
.map__consent p { font-size: var(--text-xs); color: var(--color-muted); margin-block: var(--space-2) var(--space-4); }
@media (max-width: 600px) { .map { aspect-ratio: 3/4; } }

/* Drei Info-Karten unter der Karte (Auto, Parken, Termin). */
.directions { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 820px) { .directions { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.directions > div { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-6); }
.directions h3 { margin-bottom: var(--space-2); font-size: var(--text-base); }
.directions p { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--blue); color: #fff; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
/* Orangefarbene Linie am oberen Rand. */
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--orange); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); }
.cta-band h2 { color: #fff; font-size: var(--text-2xl); max-width: 22ch; }
.cta-band p { color: #DCE1EE; margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.site-footer__grid { display: grid; gap: var(--space-10); padding-block: var(--space-16) var(--space-12); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand img { width: 190px; height: auto; }
.site-footer__brand p { color: var(--color-muted); margin-top: var(--space-4); }
.site-footer h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--color-text); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__bar { background: var(--blue); color: #DCE1EE; font-size: var(--text-xs); }
.site-footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4); }
.site-footer__bar a { color: #fff; }

/* ---------- Mobile Kontaktleiste ---------- */
/* Nur auf Handys: feste Leiste am unteren Rand mit Anrufen/Anfrage. */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(20,34,82,.08); }
  .mobile-cta .btn { min-height: 48px; padding-inline: .5rem; }
  /* Platz schaffen, damit die Leiste den Inhalt nicht verdeckt. */
  body { padding-bottom: 72px; }
}

/* ---------- Scroll-Einblendung ---------- */
/* .reveal ist anfangs unsichtbar und leicht nach unten versetzt.
   main.js fügt .is-visible hinzu, sobald das Element sichtbar wird.
   Wichtig: Ohne JavaScript bleibt alles sichtbar (Klasse .js fehlt dann). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-8); }
.legal address { font-style: normal; }
h3 { hyphens: auto; }
