/* =============================================================================
   R + H Bau GmbH – Haupt-Stylesheet  ·  VARIANTE 1 / rhbau1 (Farbschema "Anthrazit & Logo-Rot")
   -----------------------------------------------------------------------------
   Datei:      assets/css/style.css
   Verwendet:  index.html, impressum.html, datenschutz.html, 404.html
   Prinzip:    "Mobile first" – die Grundregeln gelten für Smartphones,
               größere Bildschirme werden ganz unten unter BREAKPOINTS ergänzt.
   Abhängigk.: keine (kein Framework, keine externen Schriften → DSGVO-freundlich)

   SCHNELLHILFE – häufige Änderungen
   ---------------------------------
   • Farben ändern ............. Abschnitt 1 (Variablen --red, --ink …)
   • Abstände Abschnitte ....... Variable --section (Abschnitt 1)
   • Seitenbreite .............. Variable --max (Abschnitt 1)
   • Schriftgrößen Überschriften  Abschnitt 3 (h2) bzw. .hero h1 (Abschnitt 8)
   • Logo-Größe im Header ...... .brand img (Abschnitt 7) + Breakpoint 1024px
   • Spaltenanzahl Kacheln ..... BREAKPOINTS (ganz unten)

   INHALT
   ------
    1. Variablen (Design-Tokens)
    2. Schrift (lokal eingebunden)
    3. Basis / Reset
    4. Layout-Helfer (.wrap, .section, Hilfsklassen)
    5. Abschnittsköpfe (.eyebrow, .section-head)
    6. Buttons (.btn)
    7. Topbar, Header & Navigation
    8. Hero (Startbild)
    9. Kennzahlen (.stats)
   10. Text/Bild-Blöcke (.split) & Häkchenliste (.checklist)
   11. Schwerpunkte – Bildkacheln (.focus)
   12. Leistungen – Karten (.service)
   13. Ablauf – Schritte (.step)
   14. Vorteile (.benefit)
   15. Einsatzgebiet (.area)
   16. FAQ (details/summary)
   17. Kontakt (.contact-card)
   18. Footer
   19. Schnellkontakt-Leiste Smartphone (.quickbar)
   20. Unterseiten & Rechtstexte (.page-hero, .legal)
   21. Einblend-Animation (.reveal)
   22. BREAKPOINTS (Tablet 560px, 820px, Desktop 1024px)
   23. Druckansicht
   ============================================================================= */


/* =============================================================================
   1. VARIABLEN (Design-Tokens)
   Alle Farben/Abstände zentral. Eine Änderung hier wirkt auf die ganze Website.
   ============================================================================= */
:root {
  /* Farben – abgeleitet aus dem Logo (rotes Dach #d8332f + Anthrazit-Schrift) */
  --red: #c4231d;          /* Hauptakzent: Buttons, Icons, Linien (etwas dunkler als Logo → besserer Kontrast) */
  --red-bright: #d8332f;   /* Original-Logorot: Fokusrahmen, Akzente */
  --red-dark: #9e1b16;     /* Hover-Zustand der roten Buttons */
  --red-light: #e0352b;    /* sattes Rot auf dunklem Hintergrund (Hero, Zahlen) – bewusst KEIN Rosa/Lachs */
  --icon-bg: #f1efed;      /* neutraler Hintergrund der Leistungs-Icons (statt Rosa) */
  --ink: #1c1a1d;          /* Fast-Schwarz: Überschriften, dunkle Abschnitte */
  --ink-2: #26232a;        /* Kennzahlen-Leiste */
  --ink-3: #322e35;        /* Karten auf dunklem Hintergrund */
  --text: #2b282d;         /* Fließtext */
  --muted: #5f5b62;        /* Nebentexte, Beschreibungen */
  --muted-dark: #bdb8b4;   /* Nebentexte auf dunklem Hintergrund */
  --line: #e7e3df;         /* Rahmen, Trennlinien */
  --soft: #f6f3f0;         /* Heller Abschnittshintergrund (warmes Grau) */
  --white: #fff;

  /* Schriften */
  --font-head: "Montserrat", "Century Gothic", "Segoe UI", system-ui, sans-serif;           /* Überschriften – passt zur geometrischen Logo-Schrift */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Fließtext – Systemschrift, lädt sofort */

  /* Maße & Abstände (clamp = min, bevorzugt nach Bildschirmbreite, max) */
  --max: 1200px;                          /* maximale Inhaltsbreite */
  --gutter: clamp(16px, 4vw, 32px);       /* seitlicher Innenabstand */
  --section: clamp(64px, 9vw, 120px);     /* Abstand oben/unten je Abschnitt */
  --radius: 10px;                         /* Eckenradius Karten/Buttons */
  --radius-lg: 16px;                      /* Eckenradius große Bilder */
  --shadow: 0 1px 2px rgba(28, 26, 29, .06), 0 8px 24px rgba(28, 26, 29, .07);
  --shadow-lg: 0 2px 4px rgba(28, 26, 29, .06), 0 20px 48px rgba(28, 26, 29, .14);
  --header-h: 82px;                       /* Header-Höhe (Desktop: siehe Breakpoint 1024px) */
}


/* =============================================================================
   2. SCHRIFT – Montserrat, lokal in assets/fonts (Lizenz: OFL.txt)
   -----------------------------------------------------------------------------
   Bewusst EINZELNE Dateien je Stärke (600/700/800) statt einer variablen Schrift:
   • Ältere Browser verstehen "font-weight: 300 800" (variable Schriften) nicht und
     fetten dann künstlich nach → verschwommene Menü-/Buttontexte.
   • Die Dateien stammen aus dem offiziellen Montserrat-Projekt und enthalten
     Hinting (Pixelraster-Anweisungen) → schärfer unter Windows bei 14–16 px.
   • Auf lateinische Zeichen reduziert (inkl. Umlaute, ß, €, Gedankenstriche).
   • woff2 für alle aktuellen Browser, woff als Rückfall für sehr alte Browser.
   Neue Stärke nötig (z. B. 500)? Datei ergänzen und hier einen Block kopieren.
   ============================================================================= */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600.woff2") format("woff2"),
       url("../fonts/montserrat-latin-600.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-700.woff2") format("woff2"),
       url("../fonts/montserrat-latin-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-800.woff2") format("woff2"),
       url("../fonts/montserrat-latin-800.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}


/* =============================================================================
   3. BASIS / RESET
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* Anker-Sprünge nicht unter dem fixen Header verstecken */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* nie künstlich fetten → bleibt scharf */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
h1, h2, h3, h4 {
  font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em;
  /* Lange deutsche Wörter (z. B. "Datenschutzerklärung") am Handy trennen statt abschneiden.
     hyphens: auto nutzt die Silbentrennung des Browsers (lang="de-AT"), overflow-wrap ist die Notbremse. */
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Barrierefreiheit: sichtbarer Fokus für Tastaturbedienung */
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
/* Nur für Screenreader sichtbar */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "Zum Inhalt springen" – erscheint erst bei Tastaturfokus */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }


/* =============================================================================
   4. LAYOUT-HELFER
   .wrap     = zentrierter Inhaltscontainer mit max. Breite
   .section  = Abschnitt mit einheitlichem Abstand oben/unten
   Varianten: .section--soft (hellgrau), .section--dark (anthrazit, weiße Schrift)
   ============================================================================= */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); } /* schmale Lesespalte (Rechtstexte) */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #d9d5d2; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Hilfsklassen */
.lead { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }   /* größerer Einleitungstext */
.section--dark .lead { color: var(--muted-dark); }
.mt-lg { margin-top: 32px; }                                             /* zusätzlicher Abstand oben */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; } /* Button-Gruppe */


/* =============================================================================
   5. ABSCHNITTSKÖPFE
   Aufbau im HTML:  <div class="section-head"> <p class="eyebrow">…</p> <h2>…</h2> <p>…</p> </div>
   .section-head--center zentriert den Kopf.
   ============================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; } /* kleiner roter Strich */
.section--dark .eyebrow, .hero .eyebrow { color: var(--muted-dark); }
.section--dark .eyebrow::before, .hero .eyebrow::before { background: var(--red-bright); } /* roter Strich, grauer Text */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }
.section--dark .section-head p:not(.eyebrow) { color: var(--muted-dark); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }


/* =============================================================================
   6. BUTTONS
   Basis: .btn  + Variante: --primary (rot), --ghost (transparent auf dunkel),
   --outline (Rahmen auf hell), Größe: --sm. Icons als <svg><use href="#i-…"/></svg>.
   ============================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; /* min. 48px Höhe = gut mit dem Finger treffbar */
  font-family: var(--font-head); font-weight: 700; font-size: .975rem; letter-spacing: .01em;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(196, 35, 29, .28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }


/* =============================================================================
   7. TOPBAR, HEADER & NAVIGATION
   - Topbar (Adresse/Telefon/E-Mail) nur ab 1024px sichtbar.
   - Header klebt oben (sticky); .is-scrolled (per JS) fügt Schatten hinzu.
   - Smartphone: Menü als Vollbild-Ebene, geöffnet über body.nav-open (per JS).
   - Desktop (≥1024px): Menü als normale Zeile – siehe BREAKPOINTS.
   ============================================================================= */
.topbar { background: var(--ink); color: #cfcac6; font-size: .875rem; display: none; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 42px; }
.topbar ul { display: flex; gap: 28px; }
.topbar a:hover { color: #fff; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--red-bright); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; /* bewusst KEIN backdrop-filter: der würde das mobile Menü (position: fixed) auf Header-Höhe beschränken */
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 26, 29, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 62px; width: auto; } /* Logo-Höhe Smartphone (Header-Höhe --header-h mit anpassen) */

/* Hamburger-Button (nur Smartphone/Tablet) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

/* Mobiles Menü: fährt von rechts herein */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
}
.nav-open .menu { transform: none; visibility: visible; }
.menu a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink);
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.menu a:not(.btn):hover { color: var(--red); }
.menu .btn { margin-top: 24px; }
body.nav-open { overflow: hidden; } /* Seite hinter offenem Menü nicht scrollen */


/* =============================================================================
   8. HERO (großes Startbild mit Überschrift)
   Das Bild liegt als <img> in .hero__bg (besser für SEO/Ladezeit als CSS-Hintergrund).
   Die dunkle Überlagerung (::before) sorgt für lesbaren weißen Text.
   ============================================================================= */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; } /* Bildausschnitt am Smartphone: 72 % = rechte, besonders verzierte Fassade */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 18, 21, .68) 0%, rgba(20, 18, 21, .88) 100%); /* Smartphone: kräftiger abdunkeln */
}
@media (min-width: 820px) {
  .hero::before { /* Desktop: links dunkel für den Text, rechts bleibt das Foto sichtbar */
    background: linear-gradient(90deg, rgba(20, 18, 21, .9) 0%, rgba(20, 18, 21, .72) 50%, rgba(20, 18, 21, .3) 100%);
  }
}
.hero .wrap { padding-block: clamp(72px, 12vw, 150px) clamp(64px, 9vw, 120px); }
.hero__copy { max-width: 780px; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -.025em; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--red-light); text-shadow: 0 2px 16px rgba(0, 0, 0, .45); } /* sattes Logo-Rot, Schatten für Lesbarkeit */
.hero__lead { font-size: clamp(1.075rem, 1.6vw, 1.3rem); color: #ebe7e4; max-width: 640px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; font-size: .95rem; color: #ddd8d4; }
.hero__trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero__trust svg { width: 20px; height: 20px; color: var(--red-light); flex: none; }


/* =============================================================================
   9. KENNZAHLEN – Leiste unter dem Hero (Smartphone 2×2, ab 560px 4 nebeneinander)
   ============================================================================= */
.stats { background: var(--ink-2); color: #fff; }
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 28px 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .08); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.stat strong span { color: var(--red-light); }
.stat > span { display: block; margin-top: 6px; color: var(--muted-dark); font-size: .9rem; line-height: 1.4; }


/* =============================================================================
   10. TEXT/BILD-BLÖCKE (.split) & HÄKCHENLISTE (.checklist)
   .split          = Bild + Text (Smartphone untereinander, ab 820px nebeneinander)
   .split--reverse = Bild rechts statt links
   .split__badge   = rotes Kästchen über der Bildecke
   ============================================================================= */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__badge {
  position: absolute; left: -12px; bottom: -24px;
  background: var(--red); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 220px;
}
.split__badge strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.split__badge span { font-size: .875rem; line-height: 1.35; display: block; margin-top: 6px; }
.split__copy h2 { margin-bottom: 22px; }
.split__copy p { color: var(--muted); }
.section--dark .split__copy p { color: var(--muted-dark); }

/* Liste mit roten Häkchen; optional <small> als Unterzeile */
.checklist { display: grid; gap: 14px; margin-top: 30px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); line-height: 1.5; }
.section--dark .checklist li { color: #fff; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; margin-top: 1px; } /* weißes Häkchen auf rotem Kreis */
.checklist small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.section--dark .checklist small { color: var(--muted-dark); }


/* =============================================================================
   11. SCHWERPUNKTE – Bildkacheln mit Text unten (Verlauf für Lesbarkeit)
   ============================================================================= */
.focus-grid { display: grid; gap: 20px; }
.focus {
  position: relative; display: flex; align-items: flex-end;
  min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  isolation: isolate; box-shadow: var(--shadow);
}
.focus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.focus::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 18, 21, 0) 25%, rgba(20, 18, 21, .88) 100%); }
.focus:hover img { transform: scale(1.04); }
.focus__body { padding: 28px; }
.focus h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.focus p { color: #e6e2df; font-size: .975rem; line-height: 1.55; }


/* =============================================================================
   12. LEISTUNGEN – Karten mit Icon (1 / 2 / 3 Spalten je nach Breite)
   Neue Leistung: im HTML einen <article class="service">-Block kopieren.
   ============================================================================= */
.services { display: grid; gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--red); margin-bottom: 20px;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .975rem; line-height: 1.6; }


/* =============================================================================
   13. ABLAUF – nummerierte Schritte (Nummer kommt automatisch per CSS-Zähler)
   ============================================================================= */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--ink-3); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); /* 01, 02, 03 … */
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1;
  color: var(--red-light); margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted-dark); font-size: .975rem; line-height: 1.6; }


/* =============================================================================
   14. VORTEILE – Icon im Kreis + Text
   ============================================================================= */
.benefits { display: grid; gap: 32px 40px; }
.benefit { display: flex; gap: 18px; align-items: flex-start; }
.benefit__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { margin-bottom: 6px; font-size: 1.125rem; }
.benefit p { color: var(--muted); font-size: .975rem; line-height: 1.6; }


/* =============================================================================
   15. EINSATZGEBIET – Bezirks-"Chips" + Standort-Karte
   ============================================================================= */
.area { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.area__list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.area__card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow); }
.area__card h3 { margin-bottom: 14px; }
.area__card p { color: var(--muted); }


/* =============================================================================
   16. FAQ – aufklappbar mit <details>/<summary> (funktioniert ohne JavaScript)
   WICHTIG: Fragen/Antworten auch im JSON-LD (FAQPage) in index.html anpassen!
   ============================================================================= */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* Pfeil rechts, dreht sich beim Öffnen */
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .faq__answer { padding: 0 26px 24px; color: var(--muted); }
.faq .faq__answer a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }


/* =============================================================================
   17. KONTAKT – dunkler Abschnitt mit Kontaktkarten
   ============================================================================= */
.contact { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); background: var(--ink-3);
  transition: background-color .2s;
}
a.contact-card:hover { background: #3d3840; }
.contact-card__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: #a9a4a0; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.contact-card strong { display: block; color: #fff; font-size: 1.1rem; font-weight: 600; line-height: 1.4; word-break: break-word; }
.contact__note { margin-top: 26px; font-size: .9rem; color: #a9a4a0; }


/* =============================================================================
   18. FOOTER
   ============================================================================= */
.site-footer { background: #141215; color: var(--muted-dark); font-size: .95rem; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: .85rem; color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; line-height: 1.5; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .85rem; color: #8f8a87;
}
.footer-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
/* Unterseiten haben nur die untere Footer-Zeile → kein Abstand oben nötig */
.site-footer:not(:has(.footer-grid)) { padding-top: 0; }
.site-footer:not(:has(.footer-grid)) .footer-bottom { border-top: 0; }


/* =============================================================================
   19. SCHNELLKONTAKT-LEISTE (nur Smartphone/Tablet, ab 1024px ausgeblendet)
   Wird über <body class="has-quickbar"> aktiviert, damit unten Platz frei bleibt.
   env(safe-area-inset-bottom) = Abstand für iPhone-Home-Balken.
   ============================================================================= */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(28, 26, 29, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.quickbar .btn { min-height: 48px; padding: 10px 12px; }
body.has-quickbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }


/* =============================================================================
   20. UNTERSEITEN & RECHTSTEXTE (Impressum, Datenschutz, 404)
   ============================================================================= */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(48px, 8vw, 88px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--muted-dark); margin-top: 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: #a9a4a0; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #6f6a6d; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 48px 0 16px; }
.legal > h2:first-child, .legal > .note + h2 { margin-top: 40px; }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1.1em; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 0 0 1.1em; }
.legal dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.legal dd { margin: 0; }
.legal .note { background: var(--soft); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }


/* =============================================================================
   21. EINBLEND-ANIMATION
   Elemente mit class="reveal" werden beim Scrollen sanft eingeblendet (JS setzt
   .is-visible). Ohne JavaScript (.no-js) und bei "weniger Bewegung" sofort sichtbar.
   ============================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =============================================================================
   22. BREAKPOINTS
   ≥ 560px  großes Smartphone quer / kleines Tablet: 2 Spalten
   ≥ 820px  Tablet: Text/Bild nebeneinander, Footer 4 Spalten
   ≥ 1024px Desktop: Topbar + Desktop-Menü sichtbar, Schnellleiste aus, 3–4 Spalten
   ============================================================================= */
@media (min-width: 560px) {
  .focus-grid, .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .08); }
  .stat:last-child { border-right: 0; }
  .legal dl { grid-template-columns: 220px 1fr; }
  .legal dt { margin-top: 0; }
}

@media (min-width: 820px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .area, .contact { grid-template-columns: 1.1fr .9fr; }
  .focus { min-height: 360px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 100px; }
  .topbar { display: block; }
  .brand img { height: 78px; } /* Logo-Höhe Desktop (Header-Höhe --header-h mit anpassen) */
  .nav-toggle { display: none; }
  .menu { /* mobiles Overlay zurücksetzen → normale Menüzeile */
    position: static; inset: auto; transform: none; visibility: visible;
    flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; overflow: visible;
  }
  .menu a:not(.btn) { font-size: .95rem; padding: 6px 0; border: 0; position: relative; }
  .menu a:not(.btn)::after { /* roter Unterstrich beim Überfahren */
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .menu a:not(.btn):hover::after { transform: scaleX(1); }
  .menu .btn { margin-top: 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .focus-grid { grid-template-columns: repeat(4, 1fr); }
  .focus { min-height: 420px; }
  .quickbar { display: none; }
  body.has-quickbar { padding-bottom: 0; }
  .split__badge { left: -28px; bottom: -28px; }
}


/* =============================================================================
   23. DRUCKANSICHT – Navigation/Bilder aus, Schrift schwarz auf weiß
   ============================================================================= */
@media print {
  .topbar, .site-header, .quickbar, .hero__bg, .nav-toggle { display: none !important; }
  .hero, .section--dark, .stats, .site-footer, .page-hero { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3, .page-hero h1 { color: #000 !important; }
  body.has-quickbar { padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
