/* ==========================================================================
   MS Sanierungstechnik – Stylesheet
   Statische Website ohne externe Abhängigkeiten, Systemschriften, kein CDN.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --color-primary: #c70015;
  --color-primary-dark: #9f0011;
  --color-primary-soft: #fdf0f1;
  --color-text: #202124;
  --color-text-light: #5f6368;
  --color-background: #ffffff;
  --color-background-soft: #f6f4f2;
  --color-border: #e5e1de;
  --color-logo-blue: #1173b0;
  --color-anthracite: #26282b;
  --color-anthracite-deep: #1c1e20;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(32, 33, 36, 0.08);
  --shadow-md: 0 6px 20px rgba(32, 33, 36, 0.10);
  --container: 1160px;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

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

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-dark); }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 650; }

address { font-style: normal; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--color-primary); color: #fff; }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--color-anthracite);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(52px, 8vw, 88px); }
.section-soft { background: var(--color-background-soft); }
.section-tight { padding-block: clamp(36px, 5vw, 56px); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.centered { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid rgba(199, 0, 21, 0.14);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--color-text-light); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
}
/* Beim Überfahren hebt sich der Button leicht, beim Klick drückt er herunter – dieselbe
   Geste wie bei den Karten. Reihenfolge zählt: :active muss NACH :hover stehen, sonst
   gewinnt bei gleicher Spezifität das :hover und der Button bleibt beim Drücken oben. */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
/* Der rote Hauptknopf bekommt zusätzlich einen farbigen Schein – er ist der
   wichtigste Klick der Seite und darf sich am deutlichsten melden. */
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(199, 0, 21, 0.30); }

.btn-outline { border-color: var(--color-border); color: var(--color-text); background: var(--color-background); }
.btn-outline:hover { border-color: var(--color-text); color: var(--color-text); }

.btn-inverse { background: #fff; color: var(--color-primary); }
.btn-inverse:hover { background: var(--color-background-soft); color: var(--color-primary-dark); }

.btn-ghost-inverse { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-ghost-inverse:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
  max-width: 1400px; /* Platz für 8 Reiter in voller Länge */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}
/* Zeichen (Haus im roten Oval) + Schriftzug daneben als echter Text. Das vollständige
   Logo gehört nicht in den Header: sein Schriftzug wäre bei Header-Höhe unlesbar –
   es steht dafür im Footer. Rotes Oval ist Teil der PNG (Logo-Rot #ed242a, nicht
   --color-primary); über die Höhe steuern, Breite folgt dem Oval (916∶744). */
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-text small { font-size: 0.78rem; color: var(--color-text-light); white-space: nowrap; }
/* Zusatz einzeilig „Marcel Schmidt · Alles aus einer Hand!" – der Text, der im Logo
   unter dem Haus steht. Der Trennpunkt ist Dekoration und kommt per ::before, damit
   die Zeile unten sauber umbrechen kann. */
.brand-sub { display: flex; gap: 5px; }
.brand-sub small + small::before { content: "· "; }
/* Auf schmalen Handys reicht die Breite neben dem Hamburger nicht: dann untereinander
   statt mitten im Wort abgeschnitten. Der Punkt entfällt, die Zeilen tragen sich selbst. */
@media (max-width: 440px) {
  .brand-sub { flex-direction: column; gap: 0; }
  .brand-sub small + small::before { content: none; }
}

/* Menü sitzt direkt neben dem Logo, der Telefon-Button rückt nach rechts */
.main-nav { margin-left: clamp(16px, 2.5vw, 36px); }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 9px 9px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--color-background-soft); color: var(--color-primary-dark); }
.main-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }

/* Dropdown „Weitere Leistungen" */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.2;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-toggle:hover { background: var(--color-background-soft); color: var(--color-primary-dark); }
.dropdown-toggle .chevron { transition: transform 0.2s ease; }
.has-dropdown.is-current > .dropdown-toggle { color: var(--color-primary); font-weight: 700; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .chevron,
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 550;
  white-space: nowrap;
}
.dropdown-menu a[aria-current="page"] { color: var(--color-primary); font-weight: 700; background: var(--color-primary-soft); }
/* Untermenü linksbündig – überschreibt das geerbte .main-nav ul { align-items:center } */
.main-nav ul.dropdown-menu { align-items: stretch; gap: 2px; text-align: left; }

.header-call { margin-left: auto; padding: 10px 16px; font-size: 0.94rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-background);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1340px) {
  .nav-toggle { display: flex; }
  .main-nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 16px; }
  .main-nav a { padding: 13px 12px; font-size: 1.05rem; border-radius: 8px; white-space: normal; }
  .main-nav li { margin: 0; }

  /* Dropdown wird auf schmalen Screens zum Akkordeon */
  .has-dropdown { position: static; }
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1.05rem; }
  .dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 4px;
    padding: 2px 0 6px 12px;
    border: 0;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .dropdown-toggle[aria-expanded="true"] + .dropdown-menu { display: flex; }
  .dropdown-menu a { padding: 11px 12px; font-size: 1rem; }
}

/* Telefon-Button im Header erst auf sehr schmalen Screens ausblenden
   (dort übernimmt die fixe Anruf-Leiste am unteren Rand) */
@media (max-width: 660px) {
  .header-call { display: none; }
  /* Ohne den Telefon-Button schiebt nichts mehr nach rechts – sonst klebt der
     Hamburger direkt am Logo. Nur hier setzen: sonst teilen sich zwei auto-Margins
     den Platz und der Telefon-Button rutscht in die Mitte. */
  .nav-toggle { margin-left: auto; }
}

/* ---------- Mobiler Anruf-Button ---------- */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
}
.mobile-call .btn { width: 100%; }

@media (max-width: 767px) {
  .mobile-call { display: block; }
  body { padding-bottom: 74px; }
}

/* ---------- Seiten-Navigator (Startseite) ----------
   Liegt fest am rechten Rand – dort, wo auf dem Handy der Daumen ist.
   Antippen springt zum Abschnitt, Daumen darüberziehen scrollt live mit.
   Im Hero ausgeblendet, damit die Überschrift frei bleibt. */
.page-nav {
  position: fixed;
  top: 54%;
  right: 0;
  z-index: 85;
  touch-action: none; /* Daumen zieht den Navigator, nicht die Seite */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  opacity: 0;
  transform: translateY(-50%) translateX(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.page-nav.is-visible,
.page-nav:focus-within {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.page-nav-title {
  display: none;
  margin: 0 6px 10px 0;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
}
.page-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 6px;
}
/* Keine Flächen – nur Schrift. Eine weiße Aura hält sie auch auf Fotos lesbar,
   der aktive Abschnitt leuchtet rot auf. */
.page-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  background: none;
  border: 0;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  /* Im Ruhezustand zurückgenommen, damit sie nicht mit dem Fließtext
     konkurriert – bei Daumen/Hover wird sie voll deckend. */
  opacity: 0.72;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 7px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease, text-shadow 0.16s ease;
}
.page-nav a svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.55;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
}
.page-nav a.is-active {
  opacity: 1;
  color: var(--color-primary);
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 7px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(199, 0, 21, 0.55),
    0 0 22px rgba(199, 0, 21, 0.35);
}
.page-nav a.is-active svg {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 8px rgba(199, 0, 21, 0.6));
}

/* Daumen zieht darüber: Schrift wird kräftiger, der aktive Punkt leuchtet stärker */
.page-nav.is-scrubbing a {
  opacity: 1;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.95);
}
.page-nav.is-scrubbing a.is-active {
  transform: scale(1.08);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(199, 0, 21, 0.7),
    0 0 28px rgba(199, 0, 21, 0.45);
}

/* Mobil: im Ruhezustand nur die Icons – so bleibt der Fließtext frei.
   Sobald der Daumen die Leiste berührt (oder beim ersten Einblenden kurz),
   fahren die Beschriftungen aus. */
@media (max-width: 899px) {
  .page-nav a { gap: 0; padding: 0 10px; opacity: 0.88; }
  .page-nav a svg {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    filter:
      drop-shadow(0 0 3px rgba(255, 255, 255, 1))
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
  }
  .page-nav a span {
    display: block;
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.22s ease, margin-left 0.22s ease, opacity 0.18s ease;
  }
  .page-nav.is-peeking a span,
  .page-nav.is-scrubbing a span,
  .page-nav:focus-within a span {
    max-width: 180px;
    margin-left: 9px;
    opacity: 1;
  }
}

/* Desktop: dieselbe Leiste, nur größer – und Hover statt Daumen */
@media (min-width: 900px) {
  .page-nav { right: 14px; }
  .page-nav-title { display: block; }
  .page-nav ul { gap: 4px; padding: 0; }
  .page-nav a {
    min-height: 44px;
    padding: 0 12px;
    gap: 10px;
    font-size: 0.94rem;
  }
  .page-nav a svg { width: 18px; height: 18px; }
  .page-nav a:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: translateX(-3px);
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.95),
      0 0 7px rgba(255, 255, 255, 0.9),
      0 0 12px rgba(199, 0, 21, 0.5);
  }
  .page-nav a:hover svg { opacity: 1; }
}

/* Sprungziele: html reserviert bereits Header + 12px */
#inhalt section[id] { scroll-margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .page-nav,
  .page-nav a,
  .page-nav a span { transition: none; }
}

/* ---------- Hero (Startseite) ----------
   Bild über die volle Breite, Text darüber. Ein dunkler Verlauf über dem Foto
   hält die Schrift lesbar (mobil von oben, ab 901 px von links). */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-anthracite-deep);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 21, 23, 0.90) 0%,
    rgba(20, 21, 23, 0.82) 40%,
    rgba(20, 21, 23, 0.48) 76%,
    rgba(20, 21, 23, 0.40) 100%
  );
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(480px, 74vh, 680px);
  padding-block: clamp(48px, 8vw, 96px);
}
.hero-copy {
  max-width: 640px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Der Hero-Text zieht beim Laden kurz von unten ins Bild – der erste Eindruck soll
   nicht wie ein Standbild wirken. Bewusst reines CSS (läuft auch ohne JavaScript)
   und nur opacity/transform, das erledigt die Grafikkarte.
   `backwards` gilt NUR während der Verzögerung; danach steht der Text wieder auf
   seinem normalen Wert. Fällt die Animation ganz aus, ist er trotzdem sichtbar –
   deshalb steht der Startwert ausschließlich im from-Block, nicht am Element. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
}
.hero-copy > * { animation: heroIn 0.4s ease-out backwards; }
.hero-copy > h1 { animation-delay: 40ms; }
.hero-copy > .lead { animation-delay: 80ms; }
.hero-copy > .hero-actions { animation-delay: 120ms; }
.hero-copy > .hero-note { animation-delay: 160ms; }
.hero .kicker {
  color: #fff;
  background: rgba(199, 0, 21, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
}
.hero h1 { color: #fff; margin-bottom: 0.5em; text-wrap: balance; }
.hero .lead { margin-bottom: 1.4em; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero .btn-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
  color: var(--color-text);
  background: #fff;
  border-color: #fff;
}
.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 12px 16px;
  max-width: 560px;
}
.hero-note strong { color: #fff; }
.hero-note svg { flex: none; margin-top: 2px; color: #ff6470; }
.hero-note a { color: #fff; font-weight: 650; white-space: nowrap; }

@media (min-width: 901px) {
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(20, 21, 23, 0.90) 0%,
      rgba(20, 21, 23, 0.78) 38%,
      rgba(20, 21, 23, 0.42) 66%,
      rgba(20, 21, 23, 0.20) 100%
    );
  }
}

/* ---------- Vertrauensleiste ---------- */
.trust { border-block: 1px solid var(--color-border); background: var(--color-background); }
.trust-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-block: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.trust-item svg { flex: none; color: var(--color-primary); }

@media (max-width: 980px) { .trust-items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .trust-items { grid-template-columns: 1fr 1fr; } .trust-item { font-size: 0.88rem; } }

/* ---------- Karten (Hauptleistungen) ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d8d3cf; }

.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-icon { display: grid; place-items: center; background: var(--color-primary-soft); }
.card-media.is-icon svg { width: 52px; height: 52px; color: var(--color-primary); }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--color-text-light); font-size: 0.97rem; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 650;
  color: var(--color-primary);
  font-size: 0.97rem;
}
.card:hover .card-link { color: var(--color-primary-dark); }
.card-link svg { transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Weitere Leistungen (Kategorien) ---------- */
.cat-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-card .card-media { aspect-ratio: 16 / 9; }
.cat-card h3 { padding: 18px 22px 0; margin-bottom: 6px; font-size: 1.12rem; }
.cat-card ul { list-style: none; margin: 0; padding: 4px 22px 20px; }
.cat-card li {
  padding: 7px 0 7px 26px;
  margin: 0;
  position: relative;
  font-size: 0.96rem;
  border-bottom: 1px dashed var(--color-border);
}
.cat-card li:last-child { border-bottom: 0; }
.cat-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--color-primary-soft);
  border: 2px solid var(--color-primary);
}

/* ---------- Kompakte Leistungs-Chips (Startseite) ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 auto clamp(26px, 3.5vw, 36px);
  max-width: 860px;
}
.tag-list li {
  margin: 0;
  padding: 8px 15px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.3;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.about-facts li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.about-facts svg { flex: none; color: var(--color-primary); margin-top: 4px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; margin-inline: auto; }
}

/* ---------- Ablauf / Schritte ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: 0.94rem; color: var(--color-text-light); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform 0.3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(28, 30, 32, 0.72));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Bewertungen ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.review-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { display: inline-flex; gap: 3px; color: #f5a300; }
.review-card blockquote { margin: 0; font-size: 0.98rem; flex: 1; }
.review-card footer { font-size: 0.9rem; color: var(--color-text-light); font-weight: 600; }
.review-placeholder { border-style: dashed; background: var(--color-background-soft); }
.review-placeholder blockquote { color: var(--color-text-light); font-style: italic; }
.reviews-note { font-size: 0.88rem; color: var(--color-text-light); margin-top: 18px; }

/* Google-Rezensionen: Übersichtsleiste + Kartenkopf */
.reviews-summary {
  gap: 16px 28px;
  padding: 18px 24px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.google-badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 0.98rem; }
.reviews-score { display: flex; align-items: center; gap: 12px; }
.score-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.score-meta { display: flex; flex-direction: column; gap: 3px; }
.score-meta small { color: var(--color-text-light); font-size: 0.84rem; }
.reviews-summary .btn { margin-left: auto; }

#reviews-grid { align-items: start; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; flex: none; }
.review-ident { display: flex; flex-direction: column; line-height: 1.2; }
.review-name { font-weight: 650; }
.review-ident small { color: var(--color-text-light); font-size: 0.82rem; }
.review-head .google-g { margin-left: auto; flex: none; }
.review-card blockquote { line-height: 1.6; }

@media (max-width: 620px) {
  .reviews-summary { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reviews-summary .btn { margin-left: 0; width: 100%; }
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.cta-banner .cta-sub { margin-top: 18px; font-size: 0.95rem; }
.cta-banner .cta-sub a { color: #fff; font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-anthracite); color: #cfd2d6; margin-top: clamp(52px, 8vw, 88px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-block: clamp(40px, 6vw, 64px);
}
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e8eaec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Im Footer ist Platz für das vollständige Logo inkl. Schriftzug (im Header wäre es unlesbar).
   Feste px-Breite, keine Prozente: der Link ist inline-block (shrink-to-fit), eine
   Prozentbreite am Bild wäre zirkulär und fiele auf eine zu kleine Breite zurück. */
.footer-brand { display: inline-block; margin-bottom: 18px; }
.footer-brand img { display: block; width: 210px; height: auto; }
.footer-list { list-style: none; margin: 0; padding: 0; }
/* Tap-Target: Footer-Links sind eigenständige Ziele, keine Fließtext-Links – sie
   brauchen Höhe für den Daumen (WCAG 2.5.8 verlangt 24 px). Die Zeilenhöhe allein
   ergibt nur 22 px, das Padding bringt sie auf 30 px; dafür rückt der Abstand
   zwischen den Einträgen zusammen, damit der Rhythmus gleich bleibt. */
.footer-list li { margin-bottom: 4px; }
.footer-list a { display: inline-block; padding-block: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.96rem; }
.footer-contact svg { flex: none; margin-top: 4px; color: #9aa0a6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #9aa0a6;
}

.footer-social { margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #e8eaec;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.footer-social svg { flex: none; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Unterseiten: Seitenkopf + Breadcrumb ---------- */
/* Seitenkopf der Unterseiten: dunkel mit rotem Lichtschein – gibt jeder
   Leistungsseite sofort Farbe und bildet die Klammer zum dunklen Footer. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(199, 0, 21, 0.55) 0%, rgba(199, 0, 21, 0) 62%),
    linear-gradient(140deg, var(--color-anthracite) 0%, var(--color-anthracite-deep) 100%);
  color: #fff;
  border-bottom: 0;
}
/* feine diagonale Struktur, damit die Fläche nicht tot wirkt */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.035) 0 2px,
    rgba(255, 255, 255, 0) 2px 12px
  );
}
.page-hero-inner { padding-block: clamp(38px, 6vw, 66px); max-width: 860px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { margin-top: 6px; color: rgba(255, 255, 255, 0.88); }
.page-hero .breadcrumb { color: rgba(255, 255, 255, 0.62); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.35); }
.page-hero .breadcrumb [aria-current="page"] { color: #fff; }

.breadcrumb { font-size: 0.88rem; margin-bottom: 14px; color: var(--color-text-light); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--color-border); font-size: 1rem; }
/* padding-block hebt das Tap-Target über 24 px, ohne die Zeile zu verschieben */
.breadcrumb a { color: var(--color-text-light); text-decoration: none; display: inline-block; padding-block: 3px; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* ---------- Text-Bild-Reihen ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4.5vw, 56px);
  align-items: center;
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split h2 { margin-bottom: 0.5em; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.media-first .split-media { order: -1; }
}

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.checklist svg { flex: none; color: var(--color-primary); margin-top: 4px; }

/* Einsatzbereiche / Info-Kacheln */
.tile {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.tile h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.tile h3 svg { color: var(--color-primary); flex: none; }
.tile p { font-size: 0.92rem; color: var(--color-text-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 650;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 22px 18px; color: var(--color-text-light); }

/* ---------- Kontaktseite ---------- */
/* Kompaktes Layout: Formular (Hauptaktion) + schmale Kontaktspalte.
   Auf dem Handy steht das Formular zuerst und ist ohne langes Scrollen da. */
.contact-section { padding-top: clamp(28px, 4vw, 44px); }
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-form-col h2 { margin-bottom: 6px; }
.contact-intro { color: var(--color-text-light); margin-bottom: 20px; }

/* Kontaktspalte als kompakte Karte */
.contact-aside {
  background: linear-gradient(180deg, #faf5f4 0%, #f6f2f1 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}
.contact-aside-title { font-size: 1.12rem; margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.contact-list svg {
  box-sizing: content-box;
  flex: none;
  padding: 8px;
  background: var(--color-primary-soft);
  border-radius: 10px;
  color: var(--color-primary);
}
.contact-list span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-list small { font-size: 0.8rem; color: var(--color-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list a { font-size: 1.06rem; font-weight: 700; text-decoration: none; color: var(--color-text); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--color-primary); }
.contact-list .contact-addr { line-height: 1.4; }
.contact-list .contact-route { font-size: 0.9rem; font-weight: 650; color: var(--color-primary); margin-top: 4px; }

/* Formular (Versand über kontakt.php, Fallback per mailto) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 650; font-size: 0.95rem; }
.form-field input,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-text);
  width: 100%;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: var(--color-primary); background: #fff7f7; }
.form-hint { font-size: 0.88rem; color: var(--color-text-light); margin-top: 10px; }

/* Honeypot – für Menschen unsichtbar, nur Bots füllen es aus */
.form-field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rückmeldung nach dem Absenden */
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.is-ok { background: #eaf7ee; border: 1px solid #b7e0c4; color: #1c7a3a; }
.form-status.is-error { background: var(--color-primary-soft); border: 1px solid #f3c9cd; color: var(--color-primary-dark); }

@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Dialog „Initiativbewerbung" ----------
   Nutzt das native <dialog>: Escape, Fokusfalle und der abgedunkelte
   Hintergrund kommen damit vom Browser statt aus eigenem JavaScript.
   Markup und Öffnen stehen in main.js – ohne JS bleibt der Menüpunkt ein
   normaler Link auf die Kontaktseite, deshalb gibt es hier nichts zu
   verstecken. */
.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgba(32, 33, 36, 0.28);
  overflow: auto;
  /* überschreibt die UA-Vorgabe margin:auto nicht – das zentriert von selbst */
}
.modal::backdrop { background: rgba(28, 30, 32, 0.55); }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 0;
}
.modal-head h2 { font-size: 1.4rem; margin: 0; }
.modal-intro { padding: 0 24px; margin: 10px 0 0; color: var(--color-text-light); }
.modal-body { padding: 18px 24px 24px; }

/* Schließen-Kreuz: 40px Fläche, damit es auch mit dem Daumen sicher trifft */
.modal-close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-background);
  color: var(--color-text-light);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: #f3c9cd; }
.modal-close:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* Kurzes Auftauchen; Länge bewusst unter der Wahrnehmungsschwelle für „lädt" */
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes backdropIn { from { opacity: 0; } }
.modal[open] { animation: modalIn 0.18s ease-out; }
.modal[open]::backdrop { animation: backdropIn 0.18s ease-out; }

/* Solange der Dialog offen ist, soll die Seite dahinter nicht mitscrollen.
   Bewusst über :has() und nicht über eine Klasse aus dem Skript: der Zustand
   hängt direkt am geöffneten Dialog und kann nicht steckenbleiben, falls der
   Dialog einmal auf einem Weg geschlossen wird, den das Skript nicht mitbekommt.
   Kennt ein Browser :has() nicht, scrollt der Hintergrund mit – harmlos. */
html:has(dialog.modal[open]),
html:has(dialog.modal[open]) body { overflow: hidden; }

@media (max-width: 620px) {
  .modal-head { padding: 18px 18px 0; }
  .modal-head h2 { font-size: 1.25rem; }
  .modal-intro { padding: 0 18px; }
  .modal-body { padding: 16px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal[open], .modal[open]::backdrop { animation: none; }
  .modal-close { transition: none; }
}

/* ---------- Jobseite ---------- */
.tasks-label { margin-top: 20px; margin-bottom: 2px; }
.job-highlight {
  background: var(--color-primary-soft);
  border: 1px solid #f3c9cd;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.job-highlight h2 { font-size: 1.2rem; }

/* ---------- Rechtsseiten / Fließtext ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.prose td, .prose th { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--color-background-soft); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--color-primary); line-height: 1; letter-spacing: -0.03em; }

/* ---------- Dezente Einblendungen ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Karten einer Reihe kommen leicht versetzt statt alle gleichzeitig – das wirkt
   lebendig, ohne zu bremsen. Maximal 80 ms Versatz: zusammen mit den 0,4 s
   Übergang bleibt die Reihe unter 0,5 s. Träge Reveals lesen sich wie langsames
   Laden. Der 3er-Rhythmus wiederholt sich pro Reihe (Grid ist 3-spaltig). */
.grid > .reveal:nth-child(3n + 2) { transition-delay: 40ms; }
.grid > .reveal:nth-child(3n + 3) { transition-delay: 80ms; }

/* Bild zieht beim Überfahren leicht an – dieselbe Sprache wie in der Galerie.
   Der Zuschnitt hat bereits overflow:hidden, das Bild bleibt in der Karte. */
.card-media img { transition: transform 0.35s ease; }
.card:hover .card-media img { transform: scale(1.04); }

/* Ohne JavaScript und bei reduzierter Bewegung: alles sofort sichtbar */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grid > .reveal { transition-delay: 0s; }
  .gallery img, .card, .card-link svg, .btn { transition: none; }
  .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
  /* Hero-Einzug und Button-Anheben ganz abschalten – der Farbwechsel beim Hover
     bleibt als Rückmeldung erhalten. */
  .hero-copy > * { animation: none; }
  .btn:hover { transform: none; box-shadow: none; }
}

/* ==========================================================================
   Farbe & Akzente
   Die Seiten lebten fast nur von Schwarz auf Weiß. Hier kommt die Marke rein:
   rote Icon-Chips, rote Nummern-Badges, farbige Zustände – ohne die Ruhe der
   Textblöcke zu zerstören.
   ========================================================================== */

/* Ruhige Sektionen bekommen einen Hauch Wärme statt Neutralgrau */
.section-soft { background: linear-gradient(180deg, #faf5f4 0%, #f6f2f1 100%); }

/* Icons in Kacheln und Vertrauensleiste sitzen auf einem soft-roten Chip */
.tile h3 svg,
.trust-item svg {
  box-sizing: content-box;
  padding: 7px;
  background: var(--color-primary-soft);
  border-radius: 10px;
  color: var(--color-primary);
}
.tile {
  border-top: 3px solid var(--color-primary-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tile:hover {
  border-top-color: var(--color-primary);
  box-shadow: 0 10px 26px rgba(199, 0, 21, 0.12);
  transform: translateY(-2px);
}

/* Karten: roter Akzent beim Überfahren */
.card:hover {
  border-color: rgba(199, 0, 21, 0.35);
  box-shadow: 0 14px 32px rgba(199, 0, 21, 0.14);
}

/* Checklisten-Haken als runder Chip */
.checklist svg {
  box-sizing: content-box;
  padding: 5px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  margin-top: 1px;
}

/* Ablauf-Schritte: Nummer als rotes Badge statt nackter Ziffer */
.step { border-top: 3px solid var(--color-primary); }
.step::before {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 6px 16px rgba(199, 0, 21, 0.30);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* FAQ: geöffnete Frage bekennt Farbe */
.faq summary { transition: color 0.18s ease, background-color 0.18s ease; }
.faq summary:hover { color: var(--color-primary); }
.faq details[open] {
  border-color: rgba(199, 0, 21, 0.35);
  box-shadow: inset 3px 0 0 var(--color-primary), 0 8px 22px rgba(199, 0, 21, 0.10);
}
.faq details[open] summary {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Fotos in Text-Bild-Blöcken bekommen einen leicht roten Schattenton */
.split-media img { box-shadow: 0 18px 40px rgba(199, 0, 21, 0.16); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .mobile-call, .site-footer, .cta-banner, .nav-toggle { display: none; }
  body { padding-bottom: 0; }
}
