/* Website Marvin Pirner — mobile-first, keine externen Font-/Asset-Requests.
   Tokens aus docs/Design.md (Layout A in Farben C). Komponenten nutzen nur
   die Tokens, nie feste Farben, damit Dark Mode automatisch mitläuft. */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --color-bg: #ffffff;
  --color-surface: #f4f6f9;
  --color-panel: #14263d;
  --color-text: #14263d;
  --color-muted: #46566b;
  --color-border: #dde3ea;
  --color-primary: #1c4f86;
  --color-primary-contrast: #ffffff;
  --color-accent: #8a5200;
  --color-highlight: #f2c77a;
  --color-tint: #fff4e0;
  --color-panel-text: #eef2f7;
  --color-focus: #1d5fae;
  --color-danger: #b3261e;
  --radius: 8px;
  --max-width: 1600px;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Mode: Werte aus Design.md, im Build ergänzt (dort als "Vorschlag,
   im Build prüfen" markiert) um --color-highlight/--color-tint/--color-focus/
   --color-primary-contrast, die im Dokument für den hellen Modus feststehen,
   aber für Dark Mode noch keinen expliziten Wert hatten. --color-danger (003)
   ist im Dokument gar nicht enthalten, für Formularfehler aber nötig; Werte
   auf ≥ 4.5:1 gegen bg/surface geprüft. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1b2b;
    --color-surface: #16263a;
    --color-panel: #0b1522;
    --color-text: #eef2f7;
    --color-muted: #b3c0cf;
    --color-border: #2a3b52;
    --color-primary: #8fb8e8;
    --color-primary-contrast: #0b1522;
    --color-accent: #f2c77a;
    --color-highlight: #f2c77a;
    --color-tint: #1c2c40;
    --color-panel-text: #eef2f7;
    --color-focus: #8fb8e8;
    --color-danger: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
@media (min-width: 1024px) { body { font-size: 19px; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 0.6em;
}
h1 { font-size: 44px; font-weight: 700; line-height: 1.03; margin-top: 0; }
@media (min-width: 1024px) { h1 { font-size: 78px; } }
h2 { font-size: 34px; }
@media (min-width: 1024px) { h2 { font-size: 50px; } }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: var(--color-primary-contrast); padding: 0.75em 1.2em; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Layout (007 Teil A, "Raster und Breiten"): Container bis 1600 px, fließender
   Seitenabstand statt fester Breakpoints – wächst mit dem Viewport, statt bei
   1280 px stehen zu bleiben (vorher blieb auf 1440–2560 px ungenutzte Fläche
   links/rechts liegen). */
.wrap { max-width: var(--max-width); margin: 0 auto; padding-inline: clamp(20px, 5vw, 120px); }
/* Kein eigenes padding-top: .prose steckt bislang immer als erster Block in
   einem .section, das schon eigenes Padding mitbringt – zusammen ergab das
   auf Leistungsseiten/Erstgespräch ~100 px Leerraum über dem Seitenkopf
   (Auflage aus Abnahme 003).
   .prose selbst hat KEIN max-width mehr (007): der Container ist jetzt breit
   genug für Kopf-Raster und sticky Aside, die diese Breite auch nutzen sollen.
   Stattdessen begrenzen p/li/tip-box/hint-box einzeln auf ~68 Zeichen/Zeile –
   Karten-Raster (.card-grid etc.) und Prompt-Kästen bleiben davon unberührt
   und dürfen die volle Spaltenbreite nutzen. */
.prose { padding-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose p, .prose li, .prose .tip-box p, .prose .hint-box p { max-width: 68ch; }

/* Platzhalterseite (für Seiten, die noch nicht gebaut sind) */
.placeholder { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* Abschnittsabstand (007): fließend 64–160 px statt fester Breakpoints, an
   Design.md orientiert (64 mobil / 104 ab 1024 px liegen beide im Bereich). */
.section { padding: clamp(64px, 8vw, 160px) 0; }

/* Vollbreites Band als Gestaltungsmittel (007): auf <section> selbst, nicht
   auf .wrap – die Fläche geht bis an den Bildschirmrand, der Inhalt bleibt im
   Container. Abwechselnd mit unbehandelten (--color-bg) Abschnitten einsetzen. */
.section-band { background: var(--color-surface); }

.eyebrow {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent); margin: 0 0 0.8em;
}
.eyebrow-on-dark { color: var(--color-highlight); }

/* Header / Navigation: unter 1024 px Hamburger, darüber einzeilig (Architektur B4).
   Ohne JavaScript bleibt die Navigation als einfache, sichtbare Liste erreichbar:
   .nav-toggle ist standardmäßig ausgeblendet und erscheint erst, wenn main.js
   die Klasse "js" auf <html> gesetzt hat; erst dann klappt .primary-nav ein. */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding-top: 0.8rem; padding-bottom: 0.8rem; gap: 1rem;
}
.brand {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--color-text); text-decoration: none; line-height: 1.2;
}
.brand-sub {
  display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--color-text); text-decoration: none;
}
.icon-btn:hover { color: var(--color-primary); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border); border-radius: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 22px; height: 2px; background: var(--color-text); position: relative;
}
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.primary-nav { display: block; width: 100%; }
.js .primary-nav { display: none; }
.js .primary-nav.open { display: block; }
.primary-nav ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.primary-nav a {
  display: block; padding: 0.7em 0.3em; text-decoration: none; color: var(--color-text);
  border-bottom: 1px solid var(--color-border); white-space: nowrap;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.primary-nav .nav-lang { display: flex; gap: 0.6em; padding: 0.7em 0.3em; border-bottom: 1px solid var(--color-border); }
.primary-nav .nav-lang a { padding: 0; border-bottom: none; }
/* .primary-nav a setzt sonst color/display/padding fürs Menü: höhere
   Klassen-Spezifität nötig, damit der CTA-Button seine eigenen Button-Maße
   (52 px, zentriert) und seine Textfarbe behält (002b: Button wirkte zu
   hoch, Text nicht zentriert, weil .primary-nav a mit display:block und
   eigenem Padding gewonnen hat). */
.primary-nav a.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6em; color: var(--color-primary-contrast); border-bottom: none;
}
.primary-nav .btn { margin-top: 0.4em; }

@media (min-width: 1024px) {
  .header-actions .phone-icon { display: none; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .js .primary-nav, .js .primary-nav.open, .primary-nav { display: block; width: auto; min-width: 0; }
  .primary-nav ul { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1.1rem; margin: 0; }
  .primary-nav a { border-bottom: none; padding: 0.4em 0.1em; font-size: 0.9rem; white-space: nowrap; }
  .primary-nav .nav-lang { padding: 0; border-bottom: none; }
  .primary-nav .btn { margin-top: 0; }
}

/* Buttons: 52 px hoch, Touch-Ziel ≥ 44 px (Design.md) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem; font-family: var(--font-body);
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: var(--color-primary-contrast); }
/* Jede Fläche mit --color-panel-Hintergrund (Panel, dunkle Paketkarte)
   braucht dieselbe helle Variante des sekundären Buttons (003:
   check-contrast fand .pricing-card-dark .btn-secondary mit 1.83:1). */
.panel .btn-secondary, .pricing-card-dark .btn-secondary { border-color: var(--color-panel-text); color: var(--color-panel-text); }
.panel .btn-secondary:hover, .pricing-card-dark .btn-secondary:hover { background: var(--color-panel-text); color: var(--color-panel); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { padding: 48px 0 64px; }
@media (min-width: 1024px) { .hero { padding: 80px 0 104px; } }

.hero-inner { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .hero-inner { flex-direction: row; align-items: center; gap: 64px; } }

/* Kopf mit Foto zuerst im Markup (mobil oben), ab Desktop rechts statt links
   (Über mich, 005): row-reverse dreht nur die Anzeige, DOM-Reihenfolge
   bleibt Foto-dann-Text. Muss nach der .hero-inner-Regel stehen, sonst
   gewinnt bei gleicher Spezifität die spätere .hero-inner-Regel im CSS. */
@media (min-width: 1024px) { .hero-inner-reverse { flex-direction: row-reverse; } }
.hero-text { flex: 1; min-width: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.hero-actions .btn { width: 100%; }
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}
.hero-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.hero-benefits li { padding-left: 1.4em; position: relative; color: var(--color-muted); }
.hero-benefits li::before { content: "\2022"; position: absolute; left: 0; color: var(--color-primary); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: 300px; object-fit: cover; object-position: 72% 62%; border-radius: var(--radius); }
.hero-photo figcaption {
  font-family: var(--font-heading); font-style: italic; font-size: 20px; color: var(--color-muted);
  margin-top: 12px; text-align: center;
}
@media (min-width: 1024px) {
  .hero-photo { flex: 0 0 420px; }
  .hero-photo img { height: 520px; }
}

/* Karte (generisch, z. B. "Kennst du das?") */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin-bottom: 0.4em; }
.card p { color: var(--color-muted); margin: 0; }

/* Schrittliste mit Zahlenkreis */
.step-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 768px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
/* Innerhalb einer schmalen .prose-Spalte (Leistungsseiten) bleibt die Liste
   einspaltig, auch ab 768 px – zwei Spalten wären dort zu schmal. */
.step-list.step-list-single { grid-template-columns: 1fr; }
.step-list li { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-tint); color: var(--color-accent); font-family: var(--font-heading);
  font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.step-list-on-dark .step-number { background: rgba(255, 255, 255, 0.12); color: var(--color-highlight); }
.step-list h3 { font-size: 19px; margin: 0 0 0.3em; }
.step-list p { margin: 0; color: var(--color-muted); }
.step-list-on-dark p { color: var(--color-panel-text); opacity: 0.85; }

/* Paketkarte (hell/dunkel mit Badge) */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.pricing-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px 28px; }
.pricing-card-dark { background: var(--color-panel); color: var(--color-panel-text); border-color: var(--color-panel); }
.pricing-card-dark h1, .pricing-card-dark h2, .pricing-card-dark h3, .pricing-card-dark h4 { color: #ffffff; }
.pricing-card .badge {
  display: inline-block; background: var(--color-highlight); color: var(--color-panel);
  font-size: 13px; font-weight: 600; padding: 0.3em 0.9em; border-radius: 999px; margin-bottom: 1em;
}
.pricing-card .price { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin: 0.2em 0; }
.pricing-card .price span { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--color-muted); }
.pricing-card-dark .price span { color: var(--color-highlight); }
.pricing-card .duration { color: var(--color-muted); margin: 0 0 1.2em; }
.pricing-card-dark .duration { color: var(--color-panel-text); opacity: 0.8; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 0.6em; }
.pricing-card li { padding-left: 1.4em; position: relative; }
.pricing-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.pricing-card-dark li::before { color: var(--color-highlight); }

/* Hinweis-Kasten (gestrichelt) */
.hint-box {
  border: 1px dashed var(--color-border); border-radius: var(--radius);
  padding: 20px 24px; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 0.6em 1.2em; align-items: baseline;
}
.hint-box p { margin: 0; }
.hint-box a { font-weight: 600; }
.fine-print { color: var(--color-muted); font-size: 14px; margin-top: 20px; }

/* Abstands-Hilfsklassen für Übersichtsseiten mit mehreren Blöcken in einem
   .section (Vergleichstabelle, Abschluss-CTA etc.), statt Inline-Styles. */
.mt-64 { margin-top: 64px; }
.cta-block { text-align: center; margin-top: 48px; }
.cta-block p { font-family: var(--font-heading); font-size: 24px; margin-bottom: 20px; }
.panel .fine-print { color: var(--color-panel-text); opacity: 0.7; }

/* Kachel-Link (Branchen) */
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 88px; padding: 16px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); color: var(--color-text); text-decoration: none; font-weight: 600;
}
.tile:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Dunkles Panel (große dunkle Flächen, z. B. Erstgespräch) */
/* Alle Flächen mit --color-panel bekommen explizite helle Textfarben statt
   der ererbten h1–h4-Regel (color-text) – die war für Überschriften auf
   dunklem Grund unsichtbar (Abnahme 002, .step-list-on-dark h3). */
.panel { background: var(--color-panel); color: var(--color-panel-text); }
.panel h1, .panel h2, .panel h3, .panel h4 { color: #ffffff; }
.panel p { color: var(--color-panel-text); }

/* Footer */
.site-footer {
  background: var(--color-panel); color: var(--color-panel-text); padding: 2.5rem 0 1.2rem;
}
.site-footer a { color: var(--color-panel-text); }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 0 0 0.4em; }
.footer-nav ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }

/* Mobile Sticky-Leiste (< 1024 px), darf den Footer nicht verdecken */
body { padding-bottom: 76px; }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 12px; align-items: center; padding: 10px 16px;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
}
.sticky-bar-cta { flex: 1; }
.sticky-bar-call {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-primary-contrast);
}
/* Auf /erstgespraech/ selbst ergibt der CTA-Button keinen Sinn (Auflage aus
   Abnahme 003: man ist ja schon da) – nur der Anruf-Button bleibt, zentriert
   statt am linken Rand. */
.sticky-bar-call-only { justify-content: center; }
@media (min-width: 1024px) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Formulare (Kontaktformular auf /erstgespraech/: #contact-form, Status: #form-status) */
.contact-form {
  max-width: 640px; margin: 1rem auto 3rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem;
}
.form-row { margin-bottom: 1.1em; display: flex; flex-direction: column; gap: 0.35em; }
.form-row-check { flex-direction: row; align-items: flex-start; gap: 0.6em; }
.form-row-check input { margin-top: 0.3em; }
label { font-weight: 600; font-size: 0.95rem; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  padding: 0.65em 0.8em; border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; background: var(--color-bg); color: var(--color-text); width: 100%;
}
textarea { resize: vertical; }
/* Auflage aus Abnahme 003: Radios/Checkboxen in Markenfarbe statt der
   Browser-Standardfarbe (meist Blau). */
input[type="radio"], input[type="checkbox"] { accent-color: var(--color-primary); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { margin-top: 1em; font-weight: 600; }
.form-status:empty { display: none; }
fieldset { border: none; padding: 0; margin: 0; }
fieldset legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 0.4em; }
.radio-group { display: flex; flex-direction: column; gap: 0.5em; }
.radio-group label { display: flex; align-items: center; gap: 0.5em; font-weight: 400; cursor: pointer; }
.radio-group input[type=radio] { width: 20px; height: 20px; flex: none; }
.form-hint { font-size: 0.85rem; color: var(--color-muted); margin: 0.3em 0 0; }
.form-error { color: var(--color-danger); font-size: 0.85rem; margin: 0.3em 0 0; font-weight: 600; }
.form-error:empty { display: none; }
.field-invalid { border-color: var(--color-danger); }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 1em; }
.form-note a { color: var(--color-muted); }
.form-alt-contact { margin-top: 1.5rem; text-align: center; color: var(--color-muted); }

/* Formular-Fehler ohne JavaScript (Auflage aus Abnahme 003): der Worker
   entfernt das hidden-Attribut serverseitig, wenn er nach einem
   gescheiterten Formular-POST auf /erstgespraech/?fehler=1 weiterleitet
   (siehe worker/index.js) – das ist der einzige Fall, in dem kein
   JavaScript zur Verfügung stand, um den Hinweis selbst einzublenden. */
.form-server-error {
  background: var(--color-tint); border: 1px solid var(--color-highlight); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 24px; color: var(--color-text);
}
.form-server-error p { margin: 0; }

/* Sofort-Tipp-Kasten (Leistungsseiten), direkt unter dem Seitenkopf */
.tip-box { background: var(--color-tint); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.tip-box .tip-label {
  display: block; font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-accent); margin-bottom: 6px;
}
.tip-box p { margin: 0 0 0.5em; color: var(--color-text); }
.tip-box p:last-child { margin-bottom: 0; }

/* Ablauf-Liste mit Zeitangabe: erweitert .step-list um ein Zeit-Label */
.step-time { display: inline-block; font-size: 13px; font-weight: 600; color: var(--color-accent); margin-left: 0.6em; white-space: nowrap; }
.step-list-on-dark .step-time { color: var(--color-highlight); }

/* Vergleichstabelle, mobil als gestapelte Liste */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.compare-table th, .compare-table td { padding: 14px 16px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.compare-table thead th, .compare-table th[scope="row"] { background: var(--color-surface); }
@media (max-width: 767px) {
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
  .compare-table th[scope="row"], .compare-table td { border: none; border-bottom: 1px solid var(--color-border); }
  .compare-table td:last-child { border-bottom: none; }
  .compare-table td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 13px; color: var(--color-muted); margin-bottom: 4px; }
}

/* FAQ als <details>/<summary>, ohne JS nutzbar */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1em; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4em; color: var(--color-primary); flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 0 18px; margin: 0; color: var(--color-muted); }

/* Backoffice (004): Anfragenliste, per Cloudflare Access geschützt */
.bo-summary { font-weight: 600; }
.bo-filter { display: flex; align-items: center; gap: 0.6em; margin: 20px 0; }
.bo-filter select { width: auto; }
.bo-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--color-surface); }
.bo-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6em; align-items: baseline; }
.bo-card h3 { margin: 0; font-size: 1.15rem; }
.bo-meta { color: var(--color-muted); font-size: 0.9rem; }
.bo-badge { display: inline-block; padding: 0.2em 0.8em; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.bo-badge-neu { background: var(--color-tint); color: var(--color-accent); }
.bo-badge-kontaktiert { background: var(--color-highlight); color: var(--color-panel); }
.bo-badge-erledigt { background: var(--color-border); color: var(--color-muted); }
/* Feste Farbe statt --color-danger: das Token wechselt im Dark Mode zu einem
   HELLEN Rot (gedacht als Text auf dunklem Grund), als Badge-Hintergrund mit
   weißer Schrift ergäbe das nur 2.28:1. Ein Warn-Badge darf in beiden Modi
   gleich aussehen. */
.bo-badge-alt { background: #b3261e; color: #ffffff; margin-left: 0.4em; }
.bo-fields { margin: 12px 0; display: grid; gap: 0.2em; }
.bo-fields dt { font-weight: 600; color: var(--color-muted); font-size: 0.85rem; margin-top: 0.5em; }
.bo-fields dd { margin: 0; }
.bo-actions { display: flex; flex-wrap: wrap; gap: 0.6em; align-items: center; margin-top: 12px; }
.bo-actions select { width: auto; }
.bo-notiz { margin-top: 8px; }
.bo-empty { color: var(--color-muted); padding: 40px 0; text-align: center; }

/* Breadcrumb (005): sichtbar zusätzlich zum BreadcrumbList-Schema */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; font-size: 0.85rem; color: var(--color-muted); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "\203A"; margin: 0 0.5em; color: var(--color-border); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li[aria-current] { color: var(--color-text); font-weight: 600; }

/* Prompt-Kasten mit Kopier-Button (005): ohne JS bleibt der Text normal
   markierbar, der Button erscheint erst mit JavaScript (main.js setzt die
   Klasse "js", wie beim Menü-Button) – ein Button ohne Funktion wäre
   schlechter als gar keiner. */
.prompt-box {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 16px 20px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.prompt-box p { margin: 0; flex: 1; min-width: 220px; }
.prompt-copy { display: none; flex: none; min-height: 44px; padding: 0 1.2em; }
.js .prompt-copy { display: inline-flex; }

/* Datenschutz-Kasten: gestrichelt normal, bei Gesundheit/Beratung-Recht mit
   Akzentrahmen hervorgehoben (Umfang 005). */
.hint-box.hint-box-accent { border: 2px solid var(--color-accent); }

/* Kachel mit zwei Zeilen (Branchen-Übersicht): Name + Satz statt nur Name */
.tile-branche { flex-direction: column; align-items: flex-start; text-align: left; gap: 0.4em; min-height: auto; padding: 20px; }
.tile-branche .tile-title { font-weight: 700; font-size: 1.05rem; }
.tile-branche .tile-text { font-weight: 400; font-size: 0.9rem; color: var(--color-muted); }
.tile-grid-branchen { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tile-grid-branchen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid-branchen { grid-template-columns: repeat(4, 1fr); } }

/* Passender Einstieg: zwei einfache Einstiegskarten zu den Leistungsseiten */
.entry-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 600px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
.entry-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; background: var(--color-surface); }
.entry-card h3 { margin: 0 0 0.4em; font-size: 1.1rem; }
.entry-card p { color: var(--color-muted); margin: 0 0 0.8em; }

/* Ratgeber (006) */

/* "Das Wichtigste in Kürze": wiederverwendet die .tip-box, aber mit Liste
   statt Fließtext. */
.tip-box ul { margin: 0; padding-left: 1.2em; }
.tip-box li { margin-bottom: 0.3em; }
.tip-box li:last-child { margin-bottom: 0; }

/* Inhaltsverzeichnis mit Sprungmarken (ab 4 H2, siehe Auftrag 006) */
.toc { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.toc p { margin: 0 0 0.6em; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.3em; }

/* Checkliste: rein dekorative Kästchen-Optik, keine echten Formularelemente
   (Auftrag 006 verlangt ausdrücklich keine <input type="checkbox">). */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.8em; margin-bottom: 0.5em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.1em; height: 1.1em;
  border: 2px solid var(--color-border); border-radius: 4px;
}

/* Liste zweispaltig ab Tablet (Auftrag 006, "Wo ich vor Ort bin") */
.list-2col { columns: 1; }
@media (min-width: 768px) { .list-2col { columns: 2; column-gap: 32px; } }
.list-2col li { break-inside: avoid; margin-bottom: 0.6em; }

/* Ratgeber-Übersicht: 3 Kacheln, eigene Spaltenzahl statt .tile-grid-branchen (4) */
.tile-grid-ratgeber { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tile-grid-ratgeber { grid-template-columns: repeat(3, 1fr); } }
.tile-branche .tile-cta { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); margin-top: 0.2em; }

/* Breites Layout (007 Teil A): zwei wiederkehrende Zwei-Spalten-Raster ab
   1024 px, darunter je 1 Spalte (mobil unverändert). 12er-Grid nur
   konzeptionell (Design.md) – umgesetzt als 7:5 bzw. 1fr:340px, weil die
   Aside feste Buttons/Boxen enthält und keinen Bruchteil braucht. */

/* Kopf-Raster: H1 + Vorspann links (7/12), rechts (5/12) Foto, Sofort-Tipp
   oder Kurzfakten je nach Seite. */
.head-grid { display: grid; gap: clamp(32px, 4vw, 96px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .head-grid { grid-template-columns: 7fr 5fr; } }
.head-grid .head-main :is(p, li) { max-width: 68ch; }
.head-grid .head-aside .tip-box { margin-top: 0; }

/* Inhalts-Raster mit sticky Aside (Branchen-, Leistungs-, Vorgehen-,
   Oberland-Seiten): Hauptspalte links, rechts eine bei Scroll fixierte
   Einstiegs-/Preis-Box mit den beiden Kopf-Buttons. Unter 1024 px verschwindet
   die Aside als eigenes Element – ihr Inhalt bleibt über die Sticky-Leiste
   (main.js/CSS, unverändert) erreichbar. */
.body-grid { display: grid; gap: clamp(32px, 4vw, 96px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .body-grid { grid-template-columns: 1fr 300px; } }
.body-aside {
  display: none; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 94px;
}
@media (min-width: 1024px) { .body-aside { display: block; } }
.body-aside h2 { font-size: 1.1rem; margin: 0 0 0.6em; }
.body-aside .hero-actions { margin: 0.8em 0 0; }
.body-aside .hero-actions .btn { width: 100%; }

/* Ratgeber-Artikel: sticky Inhaltsverzeichnis links, Text rechts (≤ 68ch über
   .prose p/li), statt des Inhaltsverzeichnisses als Kasten im Textfluss. */
.article-grid { display: grid; gap: clamp(32px, 4vw, 96px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: 240px 1fr; }
  .article-grid .toc { position: sticky; top: 94px; margin: 0; }
}
