/* ==========================================================================
   Kfz-Sachverständigenbüro Steinert
   Stylesheet — Design-Tokens, Layout, Komponenten
   ========================================================================== */

/* --- Schrift (lokal gehostet, kein Google-Fonts-Aufruf) ------------------ */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  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;
}

/* --- Design-Tokens ------------------------------------------------------- */
:root {
  --font-sans: "Inter var", "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Markenfarben (Blau aus dem Firmenlogo) */
  --navy-900: #071320;
  --navy-800: #0c1d2f;
  --navy-700: #12293f;
  --navy-600: #1b3a58;
  --brand: #1a6bb8;
  --brand-600: #145a9c;
  --brand-700: #0f4678;
  --brand-100: #d7e8f7;
  --brand-50: #eef5fc;
  --accent: #e8930f;
  --accent-soft: #fdf1dc;

  /* Flächen & Text */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-sunk: #e9eff7;
  --surface: #ffffff;
  --ink: #0b1a28;
  --ink-2: #2f4459;
  --muted: #5a7089;   /* auf --bg-alt knapp über 4,5:1 (WCAG AA) */
  --line: #dbe4ef;
  --line-strong: #c3d1e2;

  /* Kopf-/Fußbereich bleiben in beiden Modi dunkel */
  --header-bg: rgba(9, 24, 39, 0.92);
  --header-bg-solid: #091827;
  --header-ink: #eaf1f8;
  --header-muted: #9fb4c9;

  /* Effekte */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 40, 0.06),
               0 2px 8px rgba(11, 26, 40, 0.05);
  --shadow: 0 4px 12px rgba(11, 26, 40, 0.07),
            0 12px 32px rgba(11, 26, 40, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 26, 40, 0.12),
               0 32px 64px rgba(11, 26, 40, 0.14);
  --ring: 0 0 0 3px rgba(26, 107, 184, 0.35);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-alt: #0d1a2a;
    --bg-sunk: #101f33;
    --surface: #122032;
    --ink: #e9f0f8;
    --ink-2: #c2d1e1;
    --muted: #8ba0b7;
    --line: #1d3149;
    --line-strong: #2a4463;
    --brand: #57a3ec;
    --brand-600: #79b7f2;
    --brand-700: #9ccbf7;
    --brand-100: #16324d;
    --brand-50: #102338;
    --accent: #f0ab35;
    --accent-soft: #2c2110;
    /* Im Dunkelmodus ist --brand hell; weiße Schrift darauf ergibt nur 2,7:1.
       Deshalb hier dunkle Schrift auf blauen Schaltflächen. */
    --btn-primary-ink: #06121f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

/* --- Reset / Basis ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-600); text-decoration-color: currentColor; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

strong, b { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--sunk { background: var(--bg-sunk); }
.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-head > :last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: inherit; font-weight: 620; font-size: 0.975rem;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease);
  box-shadow: 0 1px 2px rgba(11, 26, 40, 0.14);
}
.btn:hover {
  color: var(--btn-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 107, 184, 0.32);
}
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--brand); --btn-ink: var(--btn-primary-ink, #fff); }
.btn--primary:hover { --btn-bg: var(--brand-600); }

.btn--accent { --btn-bg: var(--accent); --btn-ink: #2a1c02; }
.btn--accent:hover { box-shadow: 0 6px 18px rgba(232, 147, 15, 0.4); }

.btn--ghost {
  --btn-bg: transparent; --btn-ink: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--bg-alt);
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(11, 26, 40, 0.09);
}

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.1); --btn-ink: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { --btn-bg: rgba(255, 255, 255, 0.2); }

.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn--lg { padding: 0.95rem 1.85rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
/* Grundgröße für alle Symbole.
   WICHTIG: Ein <svg> ohne width/height-Attribut hat keine eigene Größe und
   streckt sich auf den verfügbaren Platz — im mobilen Menü waren das 291 px
   je Pfeil, wodurch jeder Menüpunkt über 300 px hoch wurde. Alle
   spezifischeren Regeln (.btn .icon usw.) haben höhere Spezifität und
   überschreiben diesen Wert weiterhin; er greift nur dort, wo sonst gar
   keine Größe gesetzt wäre. */
.icon { width: 1.15em; height: 1.15em; flex: none; }

.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn-row--center { justify-content: center; }

/* --- Kopfbereich --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(4, 12, 22, 0.35); }

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 2.6rem; width: auto; }
@media (min-width: 40em) { .brand img { height: 3rem; } }

.nav { display: none; }
.nav ul {
  display: flex; align-items: center; gap: 0.2rem;
  margin: 0; padding: 0; list-style: none;
}
.nav a {
  display: block; position: relative;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  color: var(--header-muted); font-size: 0.94rem; font-weight: 550;
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0.24rem;
  width: 1.15rem; height: 2px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%);
}

.header-cta { display: none; }

/* 67em: unterhalb davon passen Logo, sieben Menüpunkte und die
   Anruf-Schaltfläche nicht mehr nebeneinander. Bis dahin greift das
   Klappmenü. Derselbe Wert steuert unten Schnellkontakt und Fußleiste. */
@media (min-width: 67em) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; flex: none;
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px; background: rgba(255, 255, 255, 0.07);
  color: #fff; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.15); }
@media (min-width: 67em) { .nav-toggle { display: none; } }

.nav-toggle span {
  position: relative; display: block;
  width: 1.15rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.15s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Navigation */
.mobile-nav {
  position: fixed; inset: 4.5rem 0 auto; z-index: 99;
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  background: var(--header-bg-solid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s;
}
.mobile-nav.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav ul { margin: 0; padding: 0.75rem var(--gutter) 1.25rem; list-style: none; }
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--header-ink); font-weight: 550; font-size: 1.05rem;
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }

/* Der Pfeil rechts. Zurückhaltend, damit die Beschriftung führt — und mit
   fester Größe, siehe Hinweis bei der Grundregel .icon weiter oben. */
.mobile-nav .icon {
  width: 1.05rem; height: 1.05rem; flex: none;
  opacity: 0.45;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.mobile-nav a:hover .icon,
.mobile-nav a:focus-visible .icon { opacity: 0.9; transform: translateX(3px); }
.mobile-nav a[aria-current="page"] .icon { opacity: 0.9; }

/* Mindesthöhe für sichere Bedienung mit dem Daumen (Zielgröße 48 px). */
.mobile-nav a { min-height: 3rem; gap: 1rem; }
.mobile-nav li:last-child a { border-bottom: 0; }

/* Der Cookie-Hinweis liegt mit z-index 150 über dem Menü (z-index 99) und
   verdeckte es im geöffneten Zustand. Solange das Menü offen ist, tritt er
   zurück. Browser ohne :has() zeigen weiterhin beides — das ist der alte
   Zustand, also kein Rückschritt. */
body:has(.mobile-nav.is-open) .cookie,
body:has(.mobile-nav.is-open) .to-top { opacity: 0; pointer-events: none; }

@media (min-width: 67em) { .mobile-nav { display: none; } }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--navy-900);
  /* Erste Zeile ist der Rückfall für Browser ohne image-set(). */
  background-image: url("../img/hero/unfall-hero.jpg");
  background-image: image-set(
    url("../img/hero/unfall-hero.webp") type("image/webp"),
    url("../img/hero/unfall-hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed bewusst weggelassen: auf iOS-Safari
     fehlerhaft umgesetzt und ruckelig, und da die Hero ein begrenzter
     Abschnitt ist, würde das Motiv beim Scrollen zusätzlich verrutschen. */
  color: #dce7f2;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  min-height: 100vh;
  min-height: 100svh;   /* springt nicht, wenn die mobile Browserleiste ein- und ausblendet */
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70rem 40rem at 78% -10%, rgba(26, 107, 184, 0.5), transparent 60%),
    radial-gradient(50rem 35rem at 5% 105%, rgba(232, 147, 15, 0.16), transparent 62%),
    /* War ein deckender Verlauf. Jetzt teiltransparent, damit das
       Hintergrundfoto durchscheint; dient zugleich als Abdunklung, die
       den Text lesbar hält. Farbwerte entsprechen --navy-800/--navy-900.
       Die Deckung ist nicht frei gewählt: Bindend ist der orangefarbene
       Akzent in der Überschrift. Gemessen über den gesamten Ebenenstapel
       ergibt 0,75/0,80 dort 3,47:1 (nötig sind 3:1 für große Schrift),
       bei 0,70 nur noch 3,08:1. Wer hier heller stellt, verletzt AA. */
    linear-gradient(165deg, rgba(12, 29, 47, 0.75), rgba(7, 19, 32, 0.8) 62%);
}
/* Schmale Bildschirme bekommen nicht das verkleinerte Querformat, sondern
   einen eigenen Hochformat-Ausschnitt um die Aufprallstelle. Aus dem
   16:9-Bild würde "cover" auf einem hohen Handy-Viewport sonst einen
   Streifen von rund einem Fünftel der Bildbreite herausschneiden, auf dem
   vom Motiv nichts mehr zu erkennen ist. Der Ausschnitt ist zugleich
   kleiner (25 statt 44 kB). */
@media (max-width: 47.99em) {
  .hero {
    background-image: url("../img/hero/unfall-hero-mobile.jpg");
    background-image: image-set(
      url("../img/hero/unfall-hero-mobile.webp") type("image/webp"),
      url("../img/hero/unfall-hero-mobile.jpg") type("image/jpeg"));
  }
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(60% 65% at 50% 40%, #000 20%, transparent 100%);
}

.hero-grid {
  display: grid; gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
/* Ohne min-width: 0 zwingt der Bilder-Slider der einspaltigen Rasterspalte
   seine Mindestbreite auf; Überschrift und Text ragen dann aus dem Bild. */
.hero-grid > * { min-width: 0; }
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero h1 .accent {
  background: linear-gradient(96deg, #7fc0ff, #ffd07a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  font-size: clamp(1.045rem, 0.98rem + 0.35vw, 1.2rem);
  color: #b9cde0; max-width: 34rem;
}
.hero .eyebrow { color: #86c2ff; }
.hero .eyebrow::before { background: linear-gradient(90deg, #86c2ff, transparent); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.9rem; padding: 0; list-style: none;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0; padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.83rem; font-weight: 550; color: #cfe0f0;
}
.hero-badges .icon { width: 1rem; height: 1rem; color: var(--accent); flex: none; }

/* Bildkarte im Hero */
.hero-media { position: relative; }
.hero-media .slider { box-shadow: var(--shadow-lg); }
.hero-media::before {
  content: ""; position: absolute; inset: -8% -6% -12% -6%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 107, 184, 0.4), transparent);
  filter: blur(28px);
}

.hero-stamp {
  position: absolute; z-index: 3; right: -0.4rem; bottom: -1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem; line-height: 1.35;
}
.hero-stamp .icon { width: 1.6rem; height: 1.6rem; color: var(--brand); flex: none; }
.hero-stamp strong { display: block; font-size: 0.94rem; }
.hero-stamp span { color: var(--muted); }
@media (max-width: 30em) { .hero-stamp { display: none; } }

/* --- Slider (Scroll-Snap, funktioniert auch ohne JS) --------------------- */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  overflow: hidden;
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* auto statt smooth: mit smooth meldet Chrome für die Startseite keinen
     Largest Contentful Paint, wodurch Lighthouse/PageSpeed keinen
     Performance-Wert berechnen können. Das weiche Scrollen macht site.js
     pro Klick selbst (scrollTo mit behavior: "smooth"). */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide {
  position: relative; flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; inset: auto 0 0;
  padding: 3.5rem 1.15rem 1.05rem;
  background: linear-gradient(transparent, rgba(4, 12, 22, 0.88));
  color: #fff; font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em;
}

.slider-btn {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-top: -1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%;
  background: rgba(9, 24, 39, 0.55); color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer; opacity: 0;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.slider:hover .slider-btn, .slider-btn:focus-visible { opacity: 1; }
.slider-btn:hover { background: var(--brand); }
.slider-btn[data-dir="prev"] { left: 0.7rem; }
.slider-btn[data-dir="next"] { right: 0.7rem; }
.slider-btn .icon { width: 1.1rem; height: 1.1rem; }
@media (hover: none) { .slider-btn { opacity: 1; } }

.slider-dots {
  position: absolute; inset: auto 0 0.6rem; z-index: 2;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.34rem;
  margin: 0; padding: 0 1rem; list-style: none;
}
/* Die Schaltfläche ist 24 × 24 px groß (Mindestgröße für Berührungsziele,
   WCAG 2.5.8); sichtbar ist nur der kleine Punkt darin. */
.slider-dots button {
  width: 24px; height: 24px; padding: 0;
  border: 0; background: none;
  display: grid; place-items: center;
  cursor: pointer;
}
.slider-dots button::before {
  content: ""; display: block;
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.22s var(--ease), background-color 0.22s var(--ease);
}
.slider-dots button[aria-current="true"]::before {
  width: 1.35rem; border-radius: 999px; background: #fff;
}
/* Auf schmalen Displays reichen 14 Punkte à 24 px nicht nebeneinander —
   dort führen Wischen und die Pfeiltasten durch die Bilder. */
@media (max-width: 44.99em) { .slider-dots { display: none; } }

/* --- Kennzahlen ---------------------------------------------------------- */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--line); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats > div { padding: 1.6rem 1.35rem; background: var(--surface); text-align: center; }
.stats dt { color: var(--muted); font-size: 0.855rem; font-weight: 550; }
.stats dd {
  margin: 0 0 0.15rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.stats dd .unit { color: var(--brand); }

/* --- Karten -------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.965rem; }
.card > :last-child { margin-bottom: 0; }

.card--link:hover, .card--link:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
}
.card--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link a { text-decoration: none; }

.card-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: 1.05rem;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
}
.card-icon .icon { width: 1.5rem; height: 1.5rem; }
.card-more {
  margin-top: auto; padding-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--brand); font-size: 0.9rem; font-weight: 620;
}
.card-more .icon { width: 0.95rem; height: 0.95rem; transition: transform 0.2s var(--ease); }
.card--link:hover .card-more .icon { transform: translateX(3px); }

/* --- Ablauf / Prozess ---------------------------------------------------- */
.steps { counter-reset: step; }
.steps .step {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.steps .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 0.7rem;
  font-size: 1.6rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text;
}
.steps .step h3 { font-size: 1.075rem; margin-bottom: 0.35rem; }
.steps .step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* --- Hinweis-Box --------------------------------------------------------- */
.callout {
  display: flex; gap: 1.05rem; align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.callout .icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent); margin-top: 0.15rem; }
.callout h3 { font-size: 1.075rem; margin-bottom: 0.35rem; }
.callout p { font-size: 0.975rem; }
.callout > div > :last-child { margin-bottom: 0; }

/* --- Akkordeon (native <details>) ---------------------------------------- */
.accordion { display: grid; gap: 0.75rem; }

.acc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.acc[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-sm); }

.acc > summary {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem clamp(1rem, 2vw, 1.4rem);
  color: var(--ink); font-size: 1.03rem; font-weight: 640;
  cursor: pointer; list-style: none;
  transition: background-color 0.18s var(--ease);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--bg-alt); }
.acc > summary .chev {
  width: 1.05rem; height: 1.05rem; margin-left: auto; flex: none;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}
.acc[open] > summary .chev { transform: rotate(180deg); color: var(--brand); }

.acc-num {
  display: grid; place-items: center;
  width: 2.15rem; height: 2.15rem; flex: none;
  border-radius: 9px;
  background: var(--brand-50); color: var(--brand);
  font-size: 0.85rem; font-weight: 700;
}
.acc-num .icon { width: 1.15rem; height: 1.15rem; }

.acc-body { padding: 0 clamp(1rem, 2vw, 1.4rem) 1.35rem; }
.acc-body > :first-child { margin-top: 0; }
.acc-body p:first-child { padding-top: 0.15rem; }
.acc-body h3, .acc-body h4 { font-size: 1.02rem; margin-top: 1.2rem; }

/* Rich-Text aus dem alten CMS bändigen */
.rich :is(p, div) { margin: 0 0 0.9em; }
.rich > :last-child { margin-bottom: 0; }
.rich :is(h3, h4, h5) { font-size: 1.05rem; margin: 1.4em 0 0.5em; }
.rich ul { padding-left: 1.25em; }
.rich a { font-weight: 550; }
.rich table { margin: 0 0 1em; }
.rich td { padding: 0.5rem 0.9rem 0.5rem 0; vertical-align: top; }
.rich div:empty { display: none; }

/* --- Checkliste ---------------------------------------------------------- */
.checklist {
  display: grid; gap: 0.55rem 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 0; padding: 0; list-style: none;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0; font-size: 0.965rem;
}
.checklist .icon {
  width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.24rem;
  color: var(--brand);
}

/* --- Galerie ------------------------------------------------------------- */
.gallery {
  display: grid; gap: clamp(0.7rem, 1.6vw, 1.1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  margin: 0; padding: 0; list-style: none;
}
.gallery li { margin: 0; }

.tile {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--radius);
  background: var(--bg-sunk);
  overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.055); }
.tile figcaption {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 2.75rem 0.9rem 0.8rem;
  background: linear-gradient(transparent, rgba(4, 12, 22, 0.85));
  color: #fff; font-size: 0.885rem; font-weight: 600; text-align: left;
}
.tile figcaption .icon {
  width: 0.95rem; height: 0.95rem; margin-left: auto; flex: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.tile:hover figcaption .icon { opacity: 1; transform: translateY(0); }

/* Zertifikate: Hochformat */
.gallery--certs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.gallery--certs .tile { aspect-ratio: 445 / 640; background: var(--surface); }
.gallery--certs .tile img { object-fit: contain; padding: 0.4rem; }
.gallery--certs .tile { border: 1px solid var(--line); }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 11, 20, 0.93);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(100%, 62rem); text-align: center; }
.lightbox img {
  max-height: 78dvh; width: auto; margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  margin-top: 1rem; color: #dbe6f1;
  font-size: 0.95rem; font-weight: 550;
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav[data-dir="prev"] { left: clamp(0.5rem, 2vw, 1.75rem); top: 50%; margin-top: -1.45rem; }
.lightbox-nav[data-dir="next"] { right: clamp(0.5rem, 2vw, 1.75rem); top: 50%; margin-top: -1.45rem; }
.lightbox .icon { width: 1.2rem; height: 1.2rem; }

/* --- Glossar ------------------------------------------------------------- */
.glossary-search {
  position: relative;
  max-width: 30rem; margin-bottom: 1.75rem;
}
.glossary-search .icon {
  position: absolute; left: 1rem; top: 50%; margin-top: -0.6rem;
  width: 1.2rem; height: 1.2rem; color: var(--muted); pointer-events: none;
}
.glossary-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.glossary-search input::placeholder { color: var(--muted); }
.glossary-search input:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.glossary-empty {
  display: none;
  padding: 2.5rem 1rem; text-align: center; color: var(--muted);
}
.glossary-empty.is-visible { display: block; }
.acc.is-hidden { display: none; }
mark {
  padding: 0 0.15em; border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  color: inherit;
}

/* --- Kontakt / Standorte ------------------------------------------------- */
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none; color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
a.contact-card:hover {
  transform: translateY(-2px); color: inherit;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
}
.contact-card .card-icon { margin-bottom: 0; width: 2.7rem; height: 2.7rem; flex: none; }
.contact-card .label {
  display: block; color: var(--muted);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.contact-card .value {
  display: block; color: var(--ink);
  font-size: 1.05rem; font-weight: 650; letter-spacing: -0.015em;
  word-break: break-word;
}
.contact-card .hint { display: block; color: var(--muted); font-size: 0.86rem; }

.hours { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours th, .hours td { padding: 0.85rem 1.15rem; text-align: left; }
.hours th { font-weight: 550; color: var(--ink-2); }
.hours td { color: var(--ink); font-weight: 620; text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--brand-50); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand-700); }

.location {
  display: flex; flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.location .tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 0.35rem;
  margin-bottom: 0.7rem; padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.location h3 { font-size: 1.06rem; margin-bottom: 0.3rem; }
.location address {
  color: var(--muted); font-size: 0.955rem; font-style: normal; line-height: 1.6;
}
.location .btn { margin-top: 1.15rem; align-self: flex-start; }

.map-frame { margin-bottom: 1.75rem; }

.locations-map {
  height: clamp(320px, 42vw, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.locations-map[hidden] { display: none; }

/* Vorschaltfläche: die Karte lädt erst auf Klick, damit nicht ungefragt
   Kartenbilder von OpenStreetMap angefordert werden. */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(320px, 42vw, 460px);
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--brand) 7%, var(--surface)),
      var(--surface));
}
.map-consent[hidden] { display: none; }
.map-consent-icon { width: 42px; height: 42px; color: var(--brand); margin-bottom: 0.9rem; }
.map-consent h3 { margin: 0 0 0.6rem; font-size: 1.12rem; }
.map-consent p { max-width: 46ch; margin: 0 0 0.75rem; color: var(--muted); font-size: 0.93rem; }
.map-consent-hint { font-size: 0.86rem !important; }
.map-consent .btn { margin-top: 0.35rem; }
.map-consent-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
}
.map-consent-remember input { cursor: pointer; }
.locations-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.locations-map .leaflet-popup-tip { background: var(--surface); }
.locations-map .leaflet-popup-content { margin: 0.9rem 1rem; }
.map-popup { display: flex; flex-direction: column; }
.map-popup strong { font-size: 0.98rem; }
.map-popup-tag {
  align-self: flex-start;
  margin: 0.35rem 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.map-popup-address { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.65rem; }
.map-popup-link { font-weight: 620; font-size: 0.9rem; }
.map-pin { background: none; border: none; }
.locations-map .leaflet-control-attribution .leaflet-attribution-flag { display: none !important; }

@media (prefers-color-scheme: dark) {
  .locations-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.8);
  }
  .locations-map .leaflet-control-attribution {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    color: var(--muted);
  }
  .locations-map .leaflet-control-zoom a {
    background: var(--surface); color: var(--ink); border-color: var(--line);
  }
}

/* --- CTA-Band ------------------------------------------------------------ */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--navy-800); color: #d6e3f0;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45rem 25rem at 50% -20%, rgba(26, 107, 184, 0.55), transparent 65%),
    radial-gradient(35rem 20rem at 85% 120%, rgba(232, 147, 15, 0.2), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40rem; margin-inline: auto; color: #adc4d9; }

/* --- Fußbereich ---------------------------------------------------------- */
.site-footer {
  background: var(--navy-900); color: #a7bccf;
  font-size: 0.945rem;
}
.footer-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.site-footer h3 {
  margin-bottom: 1rem; color: #fff;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #a7bccf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-brand img { height: 3rem; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { color: #86a0b8; font-size: 0.9rem; max-width: 24rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #7f97ad; font-size: 0.87rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.35rem; }
.footer-bottom li { margin: 0; }

/* --- Schnellkontakt (Schiene rechts / Leiste unten) ---------------------- */
.quick-contact {
  position: fixed; z-index: 90;
  right: 0; top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; gap: 1px;
  /* Einträge richten sich nach ihrer eigenen Breite aus. Ohne das würden
     alle mitwachsen, sobald einer ausfährt — es sähe aus, als öffne sich
     die ganze Leiste. */
  align-items: flex-end;
}
@media (min-width: 67em) { .quick-contact { display: flex; } }
.quick-contact a {
  display: flex; align-items: center;
  padding: 0.85rem 1.05rem;
  background: var(--navy-800); color: #fff;
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -2px 2px 14px rgba(4, 12, 22, 0.28);
  overflow: hidden;
  transition: background-color 0.2s var(--ease);
}
.quick-contact a:hover, .quick-contact a:focus-visible { color: #fff; }
.quick-contact a .icon { width: 1.35rem; height: 1.35rem; flex: none; }
/* Beschriftung erst beim Überfahren ausfahren — sonst würde sie am
   Bildschirmrand angeschnitten. */
.quick-contact a span {
  display: block; max-width: 0; opacity: 0;
  overflow: hidden; white-space: nowrap;
  transition: max-width 0.28s var(--ease), opacity 0.18s var(--ease),
              padding-left 0.28s var(--ease);
}
.quick-contact a:hover span, .quick-contact a:focus-visible span {
  max-width: 9rem; opacity: 1; padding-left: 0.65rem;
}
.quick-contact .qc-phone:hover { background: var(--brand); }
.quick-contact .qc-mail:hover { background: var(--brand-600); }
.quick-contact .qc-whatsapp:hover { background: #1fa855; }
.quick-contact .qc-review:hover { background: var(--accent); color: #2a1c02; }

.mobile-bar {
  position: fixed; inset: auto 0 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--header-bg-solid);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(4, 12, 22, 0.3);
}
@media (min-width: 67em) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem 0.4rem 0.65rem;
  color: #cfe0f0; font-size: 0.72rem; font-weight: 600;
  text-decoration: none;
}
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-bar a:active { background: rgba(255, 255, 255, 0.08); }
.mobile-bar .icon { width: 1.3rem; height: 1.3rem; }
.mobile-bar .qc-whatsapp .icon { color: #3ddc84; }
.mobile-bar .qc-phone .icon { color: #6fb5f5; }
.mobile-bar .qc-mail .icon { color: #ffc978; }

body { padding-bottom: 0; }
@media (max-width: 66.99em) { body { padding-bottom: 4.25rem; } }

/* --- Nach oben ----------------------------------------------------------- */
.to-top {
  position: fixed; z-index: 89;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(5.5rem, 6vw, 1.5rem);
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
@media (min-width: 67em) { .to-top { bottom: 1.5rem; right: 4.75rem; } }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top .icon { width: 1.15rem; height: 1.15rem; }

/* --- Cookie-Hinweis ------------------------------------------------------ */
.cookie {
  position: fixed; z-index: 150;
  inset: auto clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
  max-width: 30rem;
  padding: 1.35rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.925rem;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}
@media (max-width: 66.99em) {
  .cookie { bottom: 5rem; padding: 1rem 1.1rem; font-size: 0.875rem; }
  .cookie h3 { font-size: 0.98rem; }
  .cookie p { font-size: 0.85rem; }
  .cookie .btn-row { margin-top: 0.8rem; }
}
.cookie.is-open { transform: translateY(0); }
.cookie h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cookie p { color: var(--muted); font-size: 0.9rem; }
.cookie .btn-row { margin-top: 1.1rem; gap: 0.5rem; }

/* --- Seitenkopf (Unterseiten) -------------------------------------------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--navy-900); color: #c3d5e6;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50rem 26rem at 82% -35%, rgba(26, 107, 184, 0.55), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.page-head h1 { color: #fff; margin-bottom: 0.35em; }
.page-head p { max-width: 42rem; color: #a9c1d6; font-size: 1.06rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  margin: 0 0 1.15rem; padding: 0; list-style: none;
  font-size: 0.85rem; color: #7f9ab3;
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; color: #4d687f; }
.breadcrumb a { color: #a9c1d6; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* --- Inhaber-Profil ------------------------------------------------------ */
.profile {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (min-width: 52em) { .profile { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
.profile-card {
  padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--brand-50), var(--surface) 62%);
  text-align: center;
}
.profile-card .monogram {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em;
}
.profile-card h3 { margin-bottom: 0.15rem; }
.profile-card .role { color: var(--muted); font-size: 0.92rem; margin: 0; }

.cert-seal {
  margin-top: 1.35rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cert-seal img { display: block; width: 100%; height: auto; }

.qual-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.qual-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin: 0; padding: 0.95rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.965rem;
}
.qual-list .icon { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.2rem; color: var(--brand); }
.qual-list strong { display: block; color: var(--ink); }
.qual-list span { color: var(--muted); font-size: 0.9rem; }

/* --- Rechtstexte --------------------------------------------------------- */
.legal { max-width: 52rem; }
.legal h2 {
  font-size: 1.3rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal :is(h3, h4, h5) { font-size: 1.05rem; margin: 1.75em 0 0.5em; }
.legal :is(p, div) { margin: 0 0 0.85em; }
.legal div:empty { display: none; }
.legal a { word-break: break-word; }

.legal-toc {
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt);
}
.legal-toc h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; padding: 0; border: 0; }
.legal-toc ul { columns: 2; column-gap: 2rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 40em) { .legal-toc ul { columns: 1; } }
.legal-toc li { margin-bottom: 0.4rem; break-inside: avoid; }
.legal-toc a { font-size: 0.925rem; }

/* --- Bewertungshinweis --------------------------------------------------- */
.review-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.review-cta .stars { display: flex; gap: 0.15rem; color: var(--accent); }
.review-cta .stars .icon { width: 1.25rem; height: 1.25rem; }
.review-cta > div { flex: 1 1 18rem; }
.review-cta h3 { margin-bottom: 0.3rem; }
.review-cta p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Online-Bewertungen -------------------------------------------------- */
.rating-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-50), var(--surface) 60%);
}
.rating-summary .score {
  display: flex; align-items: baseline; gap: 0.4rem;
  color: var(--ink); font-size: clamp(2.1rem, 1.6rem + 1.8vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.rating-summary .score small {
  font-size: 1rem; font-weight: 600; color: var(--muted);
}
.rating-summary .meta { flex: 1 1 14rem; }
.rating-summary .meta p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.925rem; }

.stars { display: inline-flex; gap: 0.12rem; color: var(--accent); }
.stars .icon { width: 1.15rem; height: 1.15rem; }
.stars .icon.is-empty { color: var(--line-strong); }

.reviews {
  display: grid; gap: clamp(0.85rem, 2vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  margin: 0; padding: 0; list-style: none;
}
.reviews li { margin: 0; }

.review {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.review .stars { margin-bottom: 0.85rem; }
.review blockquote {
  margin: 0 0 1.15rem; color: var(--ink-2);
  font-size: 0.975rem; line-height: 1.65;
}
.review blockquote::before { content: "„"; }
.review blockquote::after { content: "“"; }

/* Lange Rezensionen auf acht Zeilen kürzen; die Schaltfläche darunter
   klappt sie auf. Ohne JavaScript bleibt der Text ungekürzt sichtbar. */
.review-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.review-text.is-clamped.is-expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.review-more {
  align-self: flex-start;
  margin-bottom: 1.15rem; padding: 0;
  border: 0; background: none;
  color: var(--brand); font: inherit;
  font-size: 0.9rem; font-weight: 620;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 0.18em;
}
.review-more:hover { color: var(--brand-600); }
.review footer {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: auto; padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.review .avatar {
  display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem; flex: none;
  border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.82rem; font-weight: 700;
}
.review cite {
  display: block; color: var(--ink);
  font-size: 0.925rem; font-weight: 640; font-style: normal;
}
.review time { display: block; color: var(--muted); font-size: 0.82rem; }

/* Verweis auf das Google-Profil, solange keine Rezensionen gepflegt sind */
.google-panel {
  max-width: 44rem; margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--brand-50), var(--surface) 65%);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.google-panel .stars { justify-content: center; margin-bottom: 1rem; }
.google-panel .stars .icon { width: 1.5rem; height: 1.5rem; }
.google-panel h3 { margin-bottom: 0.5rem; }
.google-panel p { color: var(--muted); margin-inline: auto; max-width: 34rem; }
.google-panel .btn-row { margin-top: 1.6rem; }

.reviews-source {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem; color: var(--muted); font-size: 0.86rem;
}
.reviews-source .icon { width: 0.95rem; height: 0.95rem; }

/* --- Formulare ----------------------------------------------------------- */
.form-panel {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.form-panel > h3 { margin-bottom: 0.4rem; }
.form-panel > .lead { color: var(--muted); margin-bottom: 1.5rem; }

.form { display: grid; gap: 1.05rem; }
.form-row {
  display: grid; gap: 1.05rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > label { font-size: 0.9rem; font-weight: 620; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;   /* 1rem verhindert das Hineinzoomen auf iOS */
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
  background-size: 1.1rem;
}
/* Im Dunkelmodus reicht --line-strong als Feldrahmen nicht aus (1,65:1);
   Bedienelemente brauchen 3:1. Der Pfeil im Auswahlfeld ist als Bilddatei
   eingebettet und muss die Farbe deshalb ebenfalls eigens mitbekommen. */
@media (prefers-color-scheme: dark) {
  .field input, .field select, .field textarea { border-color: #4d6f95; }
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ba0b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field-note { color: var(--muted); font-size: 0.85rem; }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; margin-top: 0.35rem;
}
.form-foot .privacy-note {
  color: var(--muted); font-size: 0.85rem; line-height: 1.55;
  flex: 1 1 16rem; margin: 0;
}

/* Rückmeldung nach dem Absenden; wird von site.js eingeblendet */
.form-status {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  background: var(--brand-50);
  font-size: 0.93rem; line-height: 1.6;
}
.form-status[hidden] { display: none; }
.form-status .icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--brand); margin-top: 0.1rem; }
.form-status strong { display: block; margin-bottom: 0.15rem; }

/* Kompakter Rückrufblock auf der Startseite */
.callback {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
@media (min-width: 56em) {
  .callback { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.callback-copy h2 { margin-bottom: 0.75rem; }
.callback-copy p { color: var(--muted); }
.callback-copy .checklist { margin-top: 1.25rem; }

/* Einsatzgebiete */
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.area-list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 0.9rem;
}
.area-list li strong { color: var(--ink); font-weight: 620; }

/* --- Einblenden beim Scrollen ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .slider-track { scroll-behavior: auto; }
}

/* --- Druck --------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .quick-contact, .mobile-bar, .to-top,
  .cookie, .cta-band, .site-footer, .slider-btn, .slider-dots { display: none !important; }
  body { padding: 0; color: #000; background: #fff; font-size: 11pt; }
  .page-head { background: none; color: #000; padding-block: 0 1.5rem; }
  .page-head h1, .page-head p { color: #000; }
  .acc, .card { border-color: #bbb; box-shadow: none; break-inside: avoid; }
  .acc-body { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
