/* ==========================================================================
   inzweb.de – Stylesheet (One-Pager, Layout D v3 „Rot“)
   Stand: 30.10.2026 · Werner (Frontend)
   Grundlage: 02_bilder/layouts/variante-d-v3/quellen/css/ (basis.css,
   variante-d.css, d-v2.css, d-v3.css) – zusammengeführt, aufgeräumt,
   Mockup-Reste entfernt, mobiles Menü und Rechtstext-Seiten ergänzt.
   Keine externen Ressourcen, keine Frameworks.

   Inhalt
   1. Schrift (Nunito lokal)
   2. Design-Tokens (Custom Properties)
   3. Grundlagen / Reset
   4. Barrierefreiheit: Skip-Link, Fokus
   5. Kopf und Navigation (inkl. mobiles Menü)
   6. Buttons
   7. Hero
   8. Sektionen allgemein
   9. Leistungen, Pakete, Pflege
   10. Ablauf, Für wen
   11. Über mich
   12. Häufige Fragen (details/summary)
   13. Kontakt
   14. Fußbereich
   15. Rechtstext-Seiten (Impressum, Datenschutz)
   16. Responsive (≤ 1100 / ≤ 960 / ≤ 640 px)
   17. Bewegung reduzieren
   ========================================================================== */

/* 1. Schrift ---------------------------------------------------------------
   Nunito 3.602, variable Achse wght 200–1000, Subset Latin (inkl. Umlaute, ß, €).
   Lizenz: SIL OFL 1.1, siehe fonts/OFL.txt */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variabel.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* 2. Design-Tokens -----------------------------------------------------------
   Kontraste (WCAG 2.1, gemessen gegen die jeweilige Fläche) stehen im QS-Bericht. */
:root {
  /* Farben */
  --bg: #FFFFFF;            /* Seitenhintergrund */
  --grau: #F4F4F5;          /* Wechselsektion, Ablauf-Kacheln */
  --grau-2: #E8E8EB;        /* Tags */
  --text: #1E1B1C;          /* Text, Überschriften, Footer-Fläche */
  --muted: #555052;         /* Nebentext (7,9:1 auf Weiß) */
  --rot: #A3182F;           /* Markenrot: Akzente, Buttons (7,7:1 auf Weiß) */
  --rot-dunkel: #7E1023;    /* Hover, Text auf hellem Rot */
  --rot-hell: #FBEBED;      /* Icon-Kacheln, Kontaktsektion */
  --auf-rot: #FFFFFF;       /* Text auf Rot */
  --fuss-text: #E4E1E2;     /* Text im Footer (auf --text) */
  --linie: #D9D7D8;         /* dekorative Linien/Ränder (keine UI-Grenze) */
  --linie-ui: #8E888B;      /* Rand von Bedienelementen, ≥ 3:1 */
  --fokus: #1E1B1C;         /* Fokusrahmen auf hellen Flächen */
  --fokus-dunkel: #FFFFFF;  /* Fokusrahmen auf dunklen Flächen */

  /* Typografie */
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;     /* 17 px Fließtext */
  --fs-klein: 0.875rem;     /* 14 px: nur Labels/Eyebrows, kein Fließtext */

  /* Abstände, Radien, Schatten */
  --wrap: 1200px;
  --rand: 32px;             /* seitlicher Innenabstand */
  --sek-abstand: 112px;
  --radius-s: 16px;
  --radius-m: 24px;
  --radius-l: 28px;
  --pille: 999px;
  --schatten-karte: 0 6px 24px rgba(30, 27, 28, .06);
  --schatten-heben: 0 12px 30px rgba(30, 27, 28, .16);
  --kopf-hoehe: 80px;
}

/* 3. Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;          /* Sicherheitsnetz; Überlauf wird zusätzlich getestet */
  /* Footer bei kurzen Seiten (Impressum, Datenschutz) unten halten */
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; hyphens: auto; overflow-wrap: break-word; }
/* Überschriften ausgeglichen umbrechen (kein einzelnes Wort allein in der letzten Zeile) */
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--rand); }

/* Icons (Lucide, ISC-Lizenz, inline-SVG, immer aria-hidden) */
.ico   { width: 26px; height: 26px; flex: none; }
.ico-s { width: 18px; height: 18px; flex: none; }
.ico-l { width: 64px; height: 64px; }

/* 4. Barrierefreiheit ------------------------------------------------------- */
/* Skip-Link: unsichtbar bis zum Fokus, dann oben links */
.skip {
  position: absolute; left: 16px; top: 16px; z-index: 100;
  background: var(--text); color: #FFFFFF;
  padding: 12px 18px; border-radius: 12px; font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.skip:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

/* Sichtbarer Tastaturfokus (WCAG 2.4.7, 1.4.11): 3 px, dunkel auf hell */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 12px;
}
/* Ziel des Skip-Links bekommt per tabindex=-1 Fokus, aber keinen Rahmen */
main:focus { outline: none; }
/* Sprungziele der Ankerlinks (Sektionen mit tabindex=-1) erhalten den Fokus
   per Skript; kein Rahmen um die ganze Sektion (nicht per Tab erreichbar) */
section[tabindex="-1"]:focus { outline: none; }
/* Wörter mit Bindestrich nicht trennen, z. B. „E-Mail“ (Text bleibt unverändert) */
.nowrap { white-space: nowrap; }

/* 5. Kopf und Navigation ---------------------------------------------------- */
.kopf { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--linie); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--kopf-hoehe); }

.logo { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; }
.logo img { height: 34px; width: auto; }

.hauptnav ul { display: flex; gap: 32px; }
.hauptnav a {
  display: inline-block; padding: 8px 2px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.hauptnav a:hover { color: var(--rot); text-decoration: underline; text-underline-offset: 4px; }

/* Menü-Button: nur mobil sichtbar (siehe 16.); Zustand über aria-expanded */
.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  font: inherit; font-weight: 700; color: var(--text);
  background: var(--grau); border: 1px solid var(--linie-ui); border-radius: var(--pille);
  cursor: pointer;
}
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .ico-zu { display: none; }
.menu-btn[aria-expanded="true"] .ico-auf { display: none; }
.menu-btn[aria-expanded="true"] .ico-zu { display: block; }

/* 6. Buttons ----------------------------------------------------------------- */
.aktionen { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }
.btn, .btn-2 {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 16px 28px;
  font-weight: 700; text-decoration: none; border-radius: var(--pille);
}
.btn { background: var(--rot); color: var(--auf-rot); box-shadow: 0 8px 20px rgba(163, 24, 47, .22); }
.btn:hover { background: var(--rot-dunkel); }
.btn-2 { background: var(--bg); color: var(--text); border: 2px solid var(--text); }
.btn-2:hover { background: var(--grau); }
/* Pillenförmige Ziele: Fokusrahmen folgt der Form, weißer Abstand zur Fläche */
.btn:focus-visible, .btn-2:focus-visible, .menu-btn:focus-visible, .k-weg:focus-visible {
  border-radius: var(--pille);
  box-shadow: 0 0 0 6px var(--bg);
}

/* 7. Hero -------------------------------------------------------------------- */
.hero { padding: 80px 0 112px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow {
  margin-bottom: 16px;
  font-size: var(--fs-klein); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rot);
}
.hero .eyebrow { margin-bottom: 20px; }
/* H1 „Ab inz Web“: einzeilig (&nbsp; zwischen inz und Web), „inz“ rot unterstrichen */
.hero h1 { font-size: 5.5rem; font-weight: 800; line-height: 1.02; letter-spacing: -.015em; }
.hero h1 .inz {
  color: var(--rot); font-weight: 1000;
  text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .14em;
}
.lead { max-width: 36em; margin-top: 28px; font-size: 1.25rem; color: var(--muted); text-wrap: pretty; }

/* Bild mit versetzter roter Fläche (rein dekorativ) */
.hero-visual { position: relative; padding: 0 32px 32px 0; }
.hero-visual::before {
  content: ""; position: absolute; top: 32px; left: 32px; right: 0; bottom: 0;
  background: var(--rot); border-radius: var(--radius-m);
}
.hero-visual picture { display: block; position: relative; z-index: 1; }
.hero-visual img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 20.83% 50%;
  border-radius: var(--radius-m);
}
/* „KI-generiert“ ist im Bild selbst eingesetzt (≥ 10,9:1); Alt-Text nennt es zusätzlich */
.badge {
  position: absolute; z-index: 2; left: -24px; bottom: 72px;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 20px; border-radius: 20px;
  background: var(--bg); box-shadow: var(--schatten-heben);
  font-size: 1rem; font-weight: 800; line-height: 1.3;
}
.badge .ico { color: var(--rot); }

/* 8. Sektionen allgemein ----------------------------------------------------- */
.sek { padding: var(--sek-abstand) 0; }
.sek-alt { background: var(--grau); }
.sek-kopf { max-width: 880px; margin-bottom: 56px; }
.sek-kopf h2 { font-size: 2.5rem; font-weight: 900; }
.sek-kopf > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }

/* 9. Leistungen, Pakete, Pflege ---------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card { padding: 32px; background: var(--bg); border: 1px solid var(--linie); border-radius: var(--radius-m); }
.card .ico {
  width: 52px; height: 52px; padding: 13px; border-radius: var(--radius-s);
  background: var(--rot-hell); color: var(--rot);
}
.card h3, .paket h3 { margin: 18px 0 10px; font-size: 1.3rem; font-weight: 800; }
.card p, .paket p:not(.preis), .pflege p:not(.preis) { color: var(--muted); }

.paket {
  display: flex; flex-direction: column;
  padding: 36px; background: var(--bg); border-radius: var(--radius-l); box-shadow: var(--schatten-karte);
}
.paket-hl { outline: 3px solid var(--rot); outline-offset: -3px; }   /* Paket B hervorgehoben */
.paket-kopf { display: flex; align-items: center; justify-content: space-between; }
.paket .ico, .pflege .ico { color: var(--rot); }
.paket-label {
  padding: 4px 12px; border-radius: var(--pille);
  background: var(--rot-hell); color: var(--rot-dunkel);
  font-size: var(--fs-klein); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.haken { display: grid; gap: 10px; margin: 20px 0 24px; }
.haken li { display: flex; gap: 10px; align-items: flex-start; }
.haken .ico-s { margin-top: 5px; color: var(--rot); }
.preis { margin-top: auto; font-weight: 700; color: var(--rot); }

.pflege {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  margin-top: 28px; padding: 28px 36px; background: var(--bg); border-radius: var(--radius-l);
}
.pflege h3 { margin-bottom: 6px; font-size: 1.3rem; font-weight: 800; }

/* 10. Ablauf, Für wen ---------------------------------------------------------- */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.schritt { padding: 28px; background: var(--grau); border-radius: var(--radius-m); }
.schritt h3 { margin: 12px 0 8px; font-size: 1.25rem; font-weight: 800; }
.schritt p { color: var(--muted); }
.nr {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--rot); color: var(--auf-rot); font-size: 1.1rem; font-weight: 900;
}

.zielgruppe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zielgruppe li {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  background: var(--bg); border: 1px solid var(--linie); border-radius: var(--pille); font-weight: 700;
}
.zielgruppe .ico { color: var(--rot); }

/* 11. Über mich ---------------------------------------------------------------- */
.um-in { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center; }
/* Ohne Porträt (derzeit): eine Spalte, Lesebreite wie die Sektionsköpfe.
   Beim Wiedereinbau des Fotos die Klasse „um-ohne-foto“ im HTML entfernen. */
.um-ohne-foto { grid-template-columns: 1fr; }
.um-ohne-foto .um-text { max-width: 880px; }
/* Porträt-Rahmen: derzeit ungenutzt (Porträt im HTML auskommentiert),
   bleibt für den Wiedereinbau stehen. Platzhalter-Variante: gestrichelter Kreis, Rand 3,4:1 auf Weiß */
.portrait {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 1 / 1; text-align: center; font-weight: 700; color: var(--muted);
  background: var(--grau); border: 3px dashed var(--linie-ui); border-radius: 50%;
}
.portrait .ico-l { color: var(--rot); }
.portrait small { font-size: 1rem; font-weight: 400; }
.um-text h2 { font-size: 2.5rem; font-weight: 900; }
.um-titel { margin: 8px 0 20px; font-weight: 700; color: var(--rot); }
.um-text > p:not(.eyebrow):not(.um-titel) { color: var(--muted); }
.um-text > p:not(.eyebrow):not(.um-titel) + p { margin-top: 14px; }
.fakten { display: flex; gap: 40px; margin: 28px 0; }
.fakten li { display: flex; flex-direction: column; }
.fakten b { font-size: 2rem; line-height: 1.1; font-weight: 900; color: var(--rot); }
.fakten span { color: var(--muted); }
.klein {
  margin-bottom: 12px; font-size: var(--fs-klein); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 6px 16px; border-radius: var(--pille); background: var(--grau-2); font-size: 1rem; font-weight: 700; }

/* 12. Häufige Fragen ------------------------------------------------------------
   Natives details/summary: Zustand offen/geschlossen kommt vom Browser, kein JS.
   Frage als h3 im summary (Hierarchie H2 → H3). Pfeil nur dekorativ. */
.faq-link { margin-top: 12px; }
.faq-link a {
  /* Tap-Ziel ≥ 44 px; negativer Rand gleicht die Mehrhöhe aus (Zeile/Abstände wie vorher) */
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  margin-block: -5px; margin-block: calc((1lh + 4px - 44px) / 2);
  color: var(--rot); font-weight: 700; text-underline-offset: 4px;
}
.faq-link a:hover { color: var(--rot-dunkel); }
.faq-liste { display: grid; gap: 14px; max-width: 880px; }
.faq { background: var(--bg); border: 1px solid var(--linie); border-radius: 20px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 20px 28px; border-radius: 20px;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.faq summary:hover h3 { color: var(--rot-dunkel); }
.faq-pfeil {
  width: 32px; height: 32px; padding: 6px; border-radius: 50%;
  background: var(--rot-hell); color: var(--rot);
  transition: transform .2s ease;
}
.faq[open] .faq-pfeil { transform: rotate(180deg); }
.faq-antwort { padding: 0 28px 24px; }
.faq-antwort p { max-width: 68ch; color: var(--muted); }

/* 13. Kontakt -------------------------------------------------------------------- */
.kontakt { background: var(--rot-hell); }
.kontakt .eyebrow { color: var(--rot-dunkel); }
.kontakt .sek-kopf > p:not(.eyebrow) { color: var(--text); }
.k-wege { display: flex; flex-wrap: wrap; gap: 20px; }
.k-weg {
  display: flex; align-items: center; gap: 16px; min-width: 300px;
  padding: 20px 28px; border: 1px solid var(--linie-ui); border-radius: var(--pille);
  background: var(--bg); color: var(--text);
  font-size: 1.2rem; font-weight: 700; text-decoration: none;
}
.k-weg:hover { border-color: var(--rot); }
.k-weg .ico { color: var(--rot); }
.k-weg small {
  white-space: nowrap;
  display: block; font-size: var(--fs-klein); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
/* .k-zusatz: Zusatzzeile unter den Kontaktwegen, derzeit ungenutzt */
.k-zusatz { margin-top: 24px; }

/* 14. Fußbereich ------------------------------------------------------------------ */
.fuss { padding: 40px 0 24px; background: var(--text); color: var(--fuss-text); }
.fuss-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo-klein img { height: 28px; width: auto; }
.fuss ul { display: flex; gap: 24px; }
.fuss a {
  /* Tap-Ziel ≥ 44 px; negativer Rand gleicht die Mehrhöhe aus (Zeile/Abstände wie vorher) */
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  margin-block: -5px; margin-block: calc((1lh + 8px - 44px) / 2);
  color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px;
}
.fuss a:focus-visible { outline-color: var(--fokus-dunkel); }

/* 15. Rechtstext-Seiten (Impressum, Datenschutz) ----------------------------------- */
.recht { padding: 80px 0 var(--sek-abstand); }
.recht-in { max-width: 800px; }
/* Rechtstexte: Lesebreite begrenzen, lange Wörter/URLs dürfen umbrechen */
.recht-in > p, .recht-in > ul, .recht-in > h2, .recht-in > h3, .recht-in > h4 { max-width: 62ch; }
.recht-in p, .recht-in li, .recht h4 { overflow-wrap: break-word; hyphens: auto; }
.recht h1 { font-size: 3rem; font-weight: 900; margin-bottom: 28px; }
.recht h2 { font-size: 1.5rem; font-weight: 800; margin: 48px 0 14px; }
.recht h3 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 10px; }
.recht h4 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; margin: 24px 0 6px; }
.recht h1 + h2, .recht h2 + h3, .recht h3 + h4 { margin-top: 16px; }
.recht h1 + p { margin-top: 0; }
.recht p + p, .recht ul + p, .recht p + ul { margin-top: 14px; }
.recht-in ul { list-style: disc; padding-left: 1.4em; }
.recht-in li + li { margin-top: 6px; }
.recht-in p:not(.zurueck) a { color: var(--rot); text-decoration: underline; text-underline-offset: .14em; overflow-wrap: anywhere; }
.recht-in p:not(.zurueck) a:hover { text-decoration-thickness: .12em; }
.recht .quelle { margin-top: 40px; }
.zurueck { margin-top: 40px; }
.zurueck a {
  /* Tap-Ziel ≥ 44 px; negativer Rand gleicht die Mehrhöhe aus (Zeile/Abstände wie vorher) */
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  margin-block: -5px; margin-block: calc((1lh + 8px - 44px) / 2);
  color: var(--rot); font-weight: 700; text-underline-offset: 4px;
}

/* 16. Responsive -------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4, .schritte, .zielgruppe { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  /* Mobiles Menü: Button sichtbar, Navigation als Ausklappbereich unter dem Kopf */
  .menu-btn { display: inline-flex; }
  .hauptnav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten-heben);
  }
  .menu-btn[aria-expanded="true"] + .hauptnav { display: block; }
  .hauptnav ul { flex-direction: column; gap: 0; max-width: var(--wrap); margin: 0 auto; padding: 8px var(--rand) 16px; }
  .hauptnav li + li { border-top: 1px solid var(--linie); }
  .hauptnav a { display: flex; align-items: center; min-height: 48px; width: 100%; padding: 8px 4px; font-size: 1.125rem; }

  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .grid-3 { grid-template-columns: 1fr; }
  .um-in { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 360px; width: 100%; }
  .pflege { grid-template-columns: auto 1fr; }
  .pflege .preis { grid-column: 2; }
}

@media (max-width: 640px) {
  :root { --rand: 20px; --sek-abstand: 72px; --kopf-hoehe: 68px; }
  body { font-size: 1rem; }                /* 16 px Fließtext mobil */
  .logo img { height: 28px; }
  .sek-kopf { margin-bottom: 36px; }
  .sek-kopf h2, .um-text h2 { font-size: 1.875rem; }
  .grid-4, .schritte, .zielgruppe { grid-template-columns: 1fr; }

  .hero { padding: 44px 0 72px; }
  .hero h1 { font-size: clamp(2.5rem, 14.4vw, 3.5rem); }   /* 390 px: 56 px; 320 px: 46 px */
  .lead { font-size: 1.125rem; }
  .aktionen { flex-direction: column; align-items: stretch; }
  .btn, .btn-2 { justify-content: center; }
  .hero-visual { padding: 0 16px 16px 0; margin-bottom: 28px; }
  .hero-visual::before { top: 16px; left: 16px; border-radius: 18px; }
  .hero-visual img { aspect-ratio: 4 / 3; object-position: 50% 50%; border-radius: 18px; }
  .badge { left: 0; bottom: -4px; transform: translateY(50%); font-size: .9375rem; }

  .card, .paket, .schritt { padding: 26px; }
  .pflege { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
  .pflege .preis { grid-column: auto; }
  .portrait { max-width: 300px; }
  .fakten { gap: 32px; }

  .faq summary { padding: 16px 20px; }
  .faq summary h3 { font-size: 1.0625rem; }
  .faq-antwort { padding: 0 20px 20px; }

  .k-weg { min-width: 0; width: 100%; font-size: 1.1rem; border-radius: var(--radius-m); overflow-wrap: anywhere; }
  .k-weg:focus-visible { border-radius: var(--radius-m); }
  .fuss-in { flex-direction: column; align-items: flex-start; }
  .recht { padding-top: 44px; }
  .recht h1 { font-size: 2.25rem; }
}

/* 17. Bewegung reduzieren ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 18. Fixierte Leiste und Nach oben (ENTWURF 25.11.2026, Werner) -------------------- */
/* Leiste klebt oben (sticky im Fluss, kein Platzhalter nötig). Ab 64 px Scrollweg setzt
   js/menu.js die Klasse .ist-kompakt (IntersectionObserver auf eine Marke, kein Scroll-Listener).
   Kompakt: niedrigere Leiste, kleineres Logo, Schatten. Der Höhenverlust wird über margin-bottom
   ausgeglichen (gleiche Dauer und Kurve), dadurch springt der Inhalt darunter nicht. */
:root { --kopf-kompakt: 64px; --logo-h: 34px; --logo-h-kompakt: 28px; --kopf-dauer: .2s; }
@media (max-width: 640px) {
  :root { --kopf-kompakt: 56px; --logo-h: 28px; --logo-h-kompakt: 24px; }
}
/* Anker und Tastaturfokus nicht unter der Leiste bzw. hinter dem Nach-oben-Button (WCAG 2.4.11) */
html { scroll-padding-top: calc(var(--kopf-kompakt) + 16px); scroll-padding-bottom: 88px; }
.kopf {
  position: sticky; top: 0;
  transition: box-shadow var(--kopf-dauer) ease, margin-bottom var(--kopf-dauer) ease;
}
.kopf-in { transition: min-height var(--kopf-dauer) ease; }
.logo img { height: var(--logo-h); transition: height var(--kopf-dauer) ease; }
.kopf.ist-kompakt {
  margin-bottom: calc(var(--kopf-hoehe) - var(--kopf-kompakt));
  box-shadow: 0 6px 18px rgba(30, 27, 28, .10);
}
.kopf.ist-kompakt .kopf-in { min-height: var(--kopf-kompakt); }
.kopf.ist-kompakt .logo img { height: var(--logo-h-kompakt); }
/* Marken für den IntersectionObserver (vom Skript eingefügt, unsichtbar, nicht bedienbar) */
.scroll-marke { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
@media (max-width: 960px) {
  /* Geöffnetes Menü: nie höher als der Platz unter der Leiste, sonst eigener Scrollbereich */
  .hauptnav { max-height: calc(100vh - var(--kopf-hoehe)); max-height: calc(100dvh - var(--kopf-hoehe)); overflow-y: auto; overscroll-behavior: contain; }
  .kopf.ist-kompakt .hauptnav { max-height: calc(100vh - var(--kopf-kompakt)); max-height: calc(100dvh - var(--kopf-kompakt)); }
}

/* Nach-oben-Button: Link auf #top (funktioniert auch ohne JS), Markenrot mit weißem Rand,
   damit er auch über dem dunklen Fuß erkennbar bleibt. Versteckt = visibility: hidden
   (nicht fokussierbar); sichtbar ab ca. einer Viewporthöhe Scrollweg (.ist-sichtbar per JS). */
.nach-oben {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rot); color: var(--auf-rot);
  border: 2px solid var(--bg);
  box-shadow: 0 8px 20px rgba(30, 27, 28, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}
.nach-oben.ist-sichtbar { opacity: 1; visibility: visible; transform: none; }
.nach-oben:hover { background: var(--rot-dunkel); }
.nach-oben .ico { width: 24px; height: 24px; }
.nach-oben:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 50%; box-shadow: 0 0 0 6px var(--bg); }
/* Fuß unten frei halten, damit der Button am Seitenende keine Fuß-Links verdeckt */
body:has(> .nach-oben) .fuss { padding-bottom: 100px; }
@media (max-width: 640px) {
  .nach-oben { right: 16px; bottom: 16px; }
  body:has(> .nach-oben) .fuss { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .kopf, .kopf-in, .logo img, .nach-oben { transition: none; }
}
/* Niedrige Viewports (v. a. Handy quer; Änderung 25.11.2026 abends, Wunsch Mathias nach iPhone-Test):
   Leiste bleibt fixiert (sticky wie oben), aber von Anfang an in der kompakten Höhe 56 px mit Logo 24 px.
   Normal- und Kompakthöhe sind gleich, dadurch ist der Margin-Ausgleich 0 und nichts springt; beim
   Scrollen kommt nur der Schatten dazu. scroll-padding-top (56 + 16 = 72 px) und die max-height des
   Mobilmenüs (100dvh − 56 px, Fallback 100vh, eigener Scroll) ergeben sich aus den Variablen in Abschnitt 18. */
@media (max-height: 500px) {
  :root { --kopf-hoehe: 56px; --kopf-kompakt: 56px; --logo-h: 24px; --logo-h-kompakt: 24px; }
}
