/* ============================================================
   HAUSARZTZENTRUM DR. WERNER – Haupt-Stylesheet
   Schriften: fonts/fonts.css (selbst gehostet, DSGVO).
   components.css wird NACH dieser Datei geladen.
   ============================================================ */

/* ============================================================
   TOKENS
   Drei Grundfarben, Stufen nur über Deckkraft (100 / 70 / 15 / 6).
   Rot steht für Handlung: Knöpfe, Links, Notfall-Leiste, CTA-Band.
   ============================================================ */
:root {
  --papier-rgb: 247 244 238;   /* #F7F4EE  Grund, Karten, Schrift auf Rot und Tinte */
  --tinte-rgb:   43  33  28;   /* #2B211C  Text, Linien, Footer-Grund */
  --rot-rgb:    178  58  46;   /* #B23A2E  Handlung */
  --papier: rgb(var(--papier-rgb));
  --tinte:  rgb(var(--tinte-rgb));
  --rot:    rgb(var(--rot-rgb));

  /* Text und Linien, durchscheinend */
  --tinte-70:  rgb(var(--tinte-rgb) / 0.70);   /* einziger Zweittext: 5,58 auf Papier */
  --tinte-15:  rgb(var(--tinte-rgb) / 0.15);   /* Haarlinie, nie einziger Feldrand */
  --papier-70: rgb(var(--papier-rgb) / 0.70);  /* nur auf Tinte: 7,69 */
  --papier-15: rgb(var(--papier-rgb) / 0.15);  /* Linien auf Tinte und Rot */

  /* Flächen: 6 % Tinte bzw. Rot über Papier, deckend vorgerechnet,
     damit sie nicht stapeln und auch ohne color-mix() laufen. */
  --flaeche-neutral: rgb(235 231 225);
  --flaeche-rot:     rgb(243 233 226);

  --fokus: var(--tinte);       /* auf Rot und Tinte per Vererbung Papier, siehe FOKUS */

  --radius-s: 8px;             /* Knöpfe, Felder, Kacheln, Pillen, kleine Bilder */
  --radius-l: 16px;            /* Karten, große Bilder, Karte, Formular */
  --schatten-overlay: 0 12px 40px rgb(var(--tinte-rgb) / 0.18);   /* nur Drawer */

  --font-heading: 'Lora', 'Lora Fallback', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', system-ui, sans-serif;

  /* Atkinson hat 9 % weniger x-Höhe als die bisherige Inter. Die Text-Tokens
     sind deshalb angehoben: Fließtext 17 → 18 px, nichts unter 14 px.
     Die Lora-Skala der Überschriften bleibt. */
  --text-xs:   clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);    /* 14 → 15 */
  --text-sm:   clamp(1rem, 0.9rem + 0.45vw, 1.09375rem);        /* 16 → 17,5 */
  --text-base: clamp(1.0625rem, 0.95rem + 0.35vw, 1.125rem);    /* 17 → 18 */
  --text-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.375rem);    /* 19 → 22, Vorlauf */
  --text-lg:   clamp(1.125rem, 2.2vw, 1.25rem);                 /* Lora 18 → 20 */
  --text-xl:   clamp(1.1875rem, 2.5vw, 1.5rem);
  --text-2xl:  clamp(1.375rem, 3vw, 2rem);
  --text-h3:   clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);         /* 20 → 24 */
  --text-3xl:  clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  --text-4xl:  clamp(2rem, 1.4rem + 2.6vw, 3.5rem);

  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  /* Höhe von Notfall-Leiste + Kopf, für scroll-padding. */
  --header-offset: 128px;

  /* Übergang: Aliase NUR für Inline-Styles im HTML. Kein CSS benutzt sie. */
  --primary: var(--rot);
  --error: var(--rot);
  --neutral-400: var(--tinte-70);
  --neutral-500: var(--tinte-70);
  --neutral-700: var(--tinte);
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Keine Fake-Kursiv und kein Fake-Fett: es gibt nur echte Schnitte. */
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Sprung- und Fokusziele dürfen nicht unter dem Sticky-Kopf verschwinden (WCAG 2.4.11). */
  scroll-padding-top: var(--header-offset);
  /* clip statt hidden: kein Querscrollen, position:sticky bleibt intakt. */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

/* Fokus IM Sticky-Kopf: kein Abstand. Sonst gilt der Kopf selbst als verdeckt,
   und die Seite sprang bei jedem Fokus darin (gemessen aus 1200 px Tiefe:
   −392 px Chrome, −114 px Safari). scroll-margin am Inhalt statt scroll-padding
   geht nicht: Safari ignoriert es beim Zeigen von Formularfeldern (Shift+Tab
   ließ das E-Mail-Feld unter dem Kopf verschwinden). */
html:has(.site-header :focus) {
  scroll-padding-top: 0;
}

/* Icons behalten ihre Größe, wenn Text daneben umbricht (gemessen: 16 → 7 px). */
svg {
  flex-shrink: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

/* (C) 17.11.2026: html hat overflow-x:clip, die Sperre muss deshalb am html sitzen */
html:has(> body.nav-open) {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

/* Formularelemente erben sonst die Systemschrift (Arial). */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--tinte);
  line-height: 1.2;
  text-wrap: balance;
}

/* Getrennt wird nur an gesetzten &shy;-Stellen, nie automatisch mitten im
   Titel („Hausarzt-praxis"). overflow-wrap bleibt der Notnagel. */
h1, h2, h3, h4, h5, h6,
.accordion-title, .doctor-name, .info-box-title {
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
}

/* Ab 1024 px passt jedes Wort in seine Spalte: H1/H2 ohne Trennung.
   Safari und Firefox nutzten die &shy; sonst zum Ausbalancieren
   („Sprech-stunde", „Pflicht-informationen", „medizi-nischen" bei 1440 px). */
@media (min-width: 1024px) {
  h1, h2 {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

h1 { font-size: var(--text-4xl); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-h3); line-height: 1.3; }
h4 { font-size: var(--text-lg); line-height: 1.3; }

p, li, dd, dt, figcaption, .breadcrumb {
  overflow-wrap: break-word;
}

p, li {
  text-wrap: pretty;
}

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

strong, b { font-weight: 600; }

small { font-size: var(--text-xs); }

::selection {
  background: var(--rot);
  color: var(--papier);
}

/* ============================================================
   LINKS
   Rot gegen Fließtext misst nur 2,65:1. Links im Text sind deshalb
   unterstrichen (WCAG 1.4.1), Farbe allein reicht nicht.
   ============================================================ */
a {
  color: var(--rot);
  text-decoration: none;
  transition: color var(--transition);
}

:where(p, li:not([class]), dd, address, label, .info-banner-text, .notice-text, .form-note,
       .map-consent-text, .location-phone, .contact-row) a:not(:where(.btn, .nav-cta)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

@media (hover: hover) {
  :where(p, li:not([class]), dd, address, label, .info-banner-text, .notice-text, .form-note,
         .location-phone, .contact-row) a:not(:where(.btn, .nav-cta)):hover {
    text-decoration-thickness: 2px;
  }
}

/* Telefonnummern: rot und ziffernfest. :where() hält die Spezifität bei
   0,1,1, damit Footer und Knöpfe sie überschreiben können. */
a[href^="tel"]:not(:where(.btn, .nav-cta, .quick-info-item)) {
  color: var(--rot);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Telefon- und Mail-Links im Fließtext: Trefferfläche wachsen lassen,
   ohne den Zeilenfluss zu verschieben. Karten sind <li class="…"> und
   zählen nicht als Fließtext. Notrufnummern bekommen außerhalb von p/li
   bewusst KEINE größere Fläche (Entscheidung: Verhalten unverändert). */
p a[href^="tel"],
p a[href^="mailto"],
li:not([class]) a[href^="tel"],
li:not([class]) a[href^="mailto"],
:where(address, label, .info-banner-text, .form-note) a[href^="mailto"],
:where(address, label, .info-banner-text, .form-note) a[href^="tel"]:not([href="tel:112"], [href="tel:116117"]) {
  padding: 0.45rem 0.2rem;
  margin: -0.45rem -0.2rem;
}

/* Tap-Größen (WCAG 2.5.8) für eigenständige Links, nicht für Fließtext. */
.footer-contact-item a,
.contact-row a,
.location-card-body a,
.service-link,
.download-card,
.map-tab-btn,
.map-open-btn,
.footer-links a,
.footer-bottom a,
.footer-legal a,
.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   FOKUS
   Ein Ring für alles: 3 px Tinte auf hellem Grund (14,31:1),
   auf Rot und Tinte per Vererbung Papier (5,41 bzw. 14,31).
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.cta-section,
.site-footer,
.emergency-banner {
  --fokus: var(--papier);
}

/* Der Skiplink erscheint auf der roten Notfall-Leiste: Ring nach innen. */
.skip-link:focus-visible {
  outline-color: var(--papier);
  outline-offset: -6px;
}

/* Sprungziel des Skiplinks: kein Rahmen um die ganze Seite. */
main[tabindex="-1"]:focus {
  outline: none;
}

/* ============================================================
   SKIPLINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--rot);
  color: var(--papier);
  font-weight: 600;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: var(--papier);
}

/* ============================================================
   NOTFALL-LEISTE
   Die Nummern sind bewusst <span> und keine tel-Links: ganz oben auf jeder
   Seite liegt der Daumen beim Scrollen, ein Fehltipp wählt den Rettungsdienst.
   Kein Hover, kein :active, keine vergrößerte Fläche.
   ============================================================ */
.emergency-banner {
  position: relative;
  z-index: 60;              /* unter dem Drawer (1000+) */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 40px;
  padding: 0.5rem max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
  background: var(--rot);
  color: var(--papier);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 400;
}

.emergency-banner .eb-numbers {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.emergency-banner .eb-num {
  font-weight: 600;
}

.emergency-banner .eb-num + .eb-num::before {
  content: '\00a0|\00a0';
  color: var(--papier);
  font-weight: 400;
}

@media (max-width: 640px) {
  .emergency-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
    gap: 0;
    text-align: left;
  }

  /* Die Nummern als Gruppe mittig, jede so breit wie ihr Inhalt: Der
     Trennstrich steht zwischen den Nummern, und „Bereitschaftsdienst"
     hält bei 320 px Abstand zum Rand (vorher 8 px). */
  .emergency-banner .eb-numbers {
    display: flex;
    justify-content: center;
  }

  /* min-height ist reine Zeilenhöhe, kein Tap-Ziel. */
  .emergency-banner .eb-num {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.25rem 0.75rem;
    text-align: center;
    line-height: 1.3;
  }

  .emergency-banner .eb-num + .eb-num {
    border-left: 1px solid var(--papier-15);
  }

  .emergency-banner .eb-num + .eb-num::before {
    display: none;
  }
}

/* ============================================================
   KOPF & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--papier);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--tinte-15);
}

.header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Handy: 12 px weniger fester Kopf (Lesefläche bei 320 × 640). Fest, nicht
   erst beim Scrollen schrumpfen: das verschiebt den Inhalt und ruckelt in
   iOS. Hamburger bleibt 44 × 44. */
@media (max-width: 480px) {
  .header-inner { height: 60px; }
}

.site-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--rot);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--tinte-70);
  line-height: 1.3;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--tinte);
  white-space: nowrap;
  border-radius: var(--radius-s);
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 4px;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--rot);
  font-weight: 600;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  margin-left: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: var(--rot);
  color: var(--papier);
  border: 2px solid var(--rot);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-cta:active {
  background: var(--papier);
  color: var(--rot);
}

@media (hover: hover) {
  .nav-link:hover { color: var(--rot); }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-cta:hover { background: var(--papier); color: var(--rot); }
}

/* Zwischen 769 und 1023 px wird es im Kopf eng: Abstände statt Schrift kürzen. */
@media (min-width: 769px) and (max-width: 1023px) {
  .header-inner { gap: 1rem; }
  .main-nav { gap: 0; }
  .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; }
  .nav-link::after { left: 0.5rem; right: 0.5rem; }
  .nav-cta { margin-left: 0.25rem; padding-left: 0.875rem; padding-right: 0.875rem; }
}

/* Hamburger: nur mit JS, denn ohne JS öffnet er nichts. */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 4px;
  background: none;
  border: 0;
  border-radius: var(--radius-s);
  color: var(--tinte);
  cursor: pointer;
  transition: background-color var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

@media (hover: hover) {
  .hamburger:hover { background: var(--flaeche-rot); }
}

/* ── Drawer ──
   Ohne JS steht das Menü mobil als Liste unter dem Kopf. Nur mit JS
   wird daraus ein Drawer, der zugeklappt aus Tab-Reihenfolge und
   Accessibility-Tree verschwindet (visibility erst NACH dem Gleiten). */
.mobile-nav {
  display: none;
}

.mobile-nav-close {
  display: none;
}

@media (max-width: 768px) {
  .main-nav { display: none; }

  .mobile-nav {
    display: block;
    padding: 0.25rem max(1.5rem, env(safe-area-inset-right)) 1.5rem max(1.5rem, env(safe-area-inset-left));
    background: var(--papier);
    border-bottom: 1px solid var(--tinte-15);
  }

  .js .hamburger { display: flex; }
}

.js .mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;            /* über Overlay (1000), Kopf (70), Leiste (60) */
  width: min(320px, 85vw);
  /* --x-top setzt main.js beim Öffnen (Lage des Hamburgers): das X liegt
     auf dem Hamburger, der erste Eintrag beginnt darunter. */
  padding: calc(var(--x-top, 0.75rem) + 44px + 1rem) max(1.5rem, env(safe-area-inset-right)) 2rem 1.5rem;
  background: var(--papier);
  border-bottom: 0;
  box-shadow: var(--schatten-overlay);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.35s;
}

body.nav-open .mobile-nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

.js .mobile-nav-close {
  position: absolute;
  top: var(--x-top, 0.75rem);
  right: var(--x-right, 0.75rem);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius-s);
  color: var(--tinte);
  cursor: pointer;
  transition: background-color var(--transition);
}

@media (hover: hover) {
  .mobile-nav-close:hover { background: var(--flaeche-rot); color: var(--rot); }
}

.mobile-nav .nav-link {
  display: flex;
  padding: 0.875rem 1rem;
  font-size: var(--text-lead);
  border-bottom: 1px solid var(--tinte-15);
  border-radius: 0;
}

.mobile-nav .nav-link::after {
  display: none;
}

.mobile-nav .nav-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
}

/* Anruf im Drawer: die Anrufleiste ist bei offenem Menü ausgeblendet. */
.mobile-nav .btn {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
}

/* Abdunkler: sichtbar/unsichtbar über opacity + visibility statt display,
   sonst springt er ohne Übergang auf, während der Drawer 350 ms gleitet. */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgb(var(--tinte-rgb) / 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* ============================================================
   HERO STARTSEITE
   Seit 10.10.2026 Bild-Hero mit dem Teamfoto statt Männchen (Titus:
   „bilder heros sind gut“, dann „mach einfach“). Quelle team.jpg
   1024 × 504, größer gibt es sie nicht (alte Seite auch 1024): das
   Handy schneidet nur so eng, dass das iPhone höchstens 2,5-fach
   hochrechnet; der Desktop zeigt das Foto in der rechten Spalte (3:2).
   Handy: Foto über die volle Breite, die H1 liegt unten auf dem Foto,
   Unterzeile und Knöpfe darunter auf Papier.
   Desktop: Text links, Foto rechts, beide auf einer Mittelachse.
   ============================================================ */
.hero {
  background: var(--papier);
  /* Unten Luft für die Infokarten, die über die Kante ragen. */
  padding: 0 0 clamp(4.5rem, 8vw, 7rem);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Handy: die Inhaltsgruppe löst sich auf (div ohne Rolle), damit nur die
   H1 in der Rasterzelle des Fotos liegt und Unterzeile und Knöpfe darunter. */
.hero-content {
  display: contents;
}

.hero-visual {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  height: clamp(340px, 46svh, 420px);
  margin: 0 calc(-1 * max(1.5rem, env(safe-area-inset-right))) 1.25rem calc(-1 * max(1.5rem, env(safe-area-inset-left)));
  overflow: hidden;
  background: var(--tinte);       /* bis das Foto da ist, steht die H1 schon lesbar */
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 22%;       /* Dr. Werner und die Ärztinnen neben ihm */
}

/* Schleier für die H1. Stopps in px ab Unterkante, nicht in %: die H1 ist
   3–4 Zeilen hoch, egal wie hoch das Foto ist (mit % lag sie bei 320 px
   auf 2,1 : 1). Gemessen 10.10.: Papier auf dem hellsten Pixel unter der
   H1 mindestens 8,0 : 1 von 320 bis 768 px. */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgb(var(--tinte-rgb) / 0.9) 0,
    rgb(var(--tinte-rgb) / 0.8) 190px,
    rgb(var(--tinte-rgb) / 0.35) 250px,
    rgb(var(--tinte-rgb) / 0) 320px);
  pointer-events: none;
}

.hero h1 {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  position: relative;
  z-index: 1;
  max-width: 13em;
  margin: 0 0 2.25rem;            /* 1,25rem Fotoabstand + 1rem Luft zur Fotokante */
  font-size: clamp(2rem, 8.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--papier);
}

/* Zweiter Satz in eigener Zeile, nie „Landau. Auch / für die Kinder.“ */
.hero h1 .highlight {
  display: block;
  color: inherit;
  background: none;
}

.hero-subline {
  grid-row: 2;
  grid-column: 1;
  max-width: 30em;
  margin: 0 0 1.5rem;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--tinte);
}

.hero-actions {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 400px) {
  .hero-subline {
    font-size: var(--text-base);
  }
}

/* Unter 360 px passten „Ihre Hausarztpraxis" und „Auch für die Kinder."
   bei 32 px nicht in 272 px (gemessen: „Hausarzt-/praxis", „Auch für /
   die Kinder."). 28–31 px halten die drei Zeilen. */
@media (max-width: 359px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8.8vw, 2rem);
  }
}

/* Einzige Bewegung: das Foto setzt sich beim Laden. Kein Einblenden der
   H1, damit der größte Inhalt sofort steht. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: hero-foto-setzt 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes hero-foto-setzt {
  from { transform: scale(1.06); }
  to   { transform: none; }
}

/* Handy: Knöpfe gestapelt über die volle Breite. Ab 481 px stehen sie
   nebeneinander (bei 768 px waren es zwei 720-px-Balken). */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* 481–768 px: gleiche Mindestbreite, damit die Knöpfe auch dort gleich
   breit sind, wo sie noch umbrechen (bis ~560 px). */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-actions .btn {
    min-width: 15.5rem;
  }
}

@media (min-width: 769px) {
  .hero {
    padding-top: clamp(1.75rem, 5vw, 4.5rem);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }

  .hero-content {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  /* Größe an der Textspalte gemessen: „Ihre Hausarztpraxis" passt von
     769 bis 1920 px in eine Zeile, also nie „Ihre" allein und nie die
     Trennung „Hausarzt-/praxis". */
  .hero h1 {
    max-width: 11em;
    margin: 0 0 1.5rem;
    text-wrap: wrap;
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    line-height: 1.06;
    color: var(--tinte);
  }

  /* Akzentsatz Rot auf Papier (5,41 : 1). */
  .hero h1 .highlight {
    color: var(--rot);
  }

  .hero-subline {
    margin: 0 0 2.25rem;
  }

  /* Brechen die Knöpfe um (bis ~1100 px), füllen beide die Spalte,
     statt ungleich breit untereinander zu stehen. */
  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* 3:2 statt 2:1: bei 1440 px ~527 × 351, am Retina-Bildschirm
     1,4-fach hochgerechnet. */
  .hero-visual {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0;
    border-radius: var(--radius-l);
  }

  .hero-visual::after {
    content: none;
  }

  .hero-visual img {
    object-position: 62% 30%;
  }
}

/* 769–1199 px: weniger Seitenpolster, damit beide Knöpfe ab ~1000 px in
   eine Reihe passen (bei 1024 px 205 + 226 + 12 ≤ 474 px). Darunter
   stapeln sie sich weiter und füllen die Spalte (flex 1 1 auto). */
@media (min-width: 769px) and (max-width: 1199px) {
  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn-lg {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ============================================================
   INFOKARTEN (Startseite)
   Grundlayout 08.08.2026: drei einzelne Karten auf der Naht zwischen
   Hero (Papier) und dem folgenden Abschnitt (Fläche). Der Grund ist
   hart geteilt, kein Verlauf. Kein farbiger Rand, kein Lift beim Hover.
   ============================================================ */
.quick-info {
  position: relative;
  margin-top: calc(-1 * clamp(3rem, 5.5vw, 4.5rem));
  padding: 0 max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
  background: linear-gradient(var(--papier) 50%, var(--flaeche-neutral) 50%);
}

/* Nach dem Hero ohne Rand nach unten: die Naht liegt mitten in den Karten. */
.quick-info + .section-alt {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.quick-info-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.375rem 1.5rem;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
  box-shadow: none;               /* Schatten nur am Drawer; die Haarlinie trägt die Karte */
  color: inherit;
  text-decoration: none;
}

.quick-info-title {
  margin-bottom: 0.2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tinte);
  line-height: 1.35;
}

.quick-info-text {
  font-size: var(--text-xs);
  color: var(--tinte-70);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .quick-info-item:hover .quick-info-title {
    color: var(--rot);
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}

/* Öffnungsstatus: Bedeutung trägt der Text, Farbe nur als Beiwerk. */
#qi-open-status[data-state="open"]   { color: var(--tinte); font-weight: 600; }
#qi-open-status[data-state="phone"]  { color: var(--tinte); }
#qi-open-status[data-state="closed"] { color: var(--tinte-70); }

/* Tablet (641–1023 px): drei Karten bleiben nebeneinander, die Kachel
   weicht dem Text (bei 820 px brach sonst „Theresienhöhe / 46"). Zwei
   Klassen, weil ICON-KACHELN weiter unten display:flex setzt und sonst
   gewinnt. Bis 768 px standen hier drei flache 720-px-Balken. */
@media (min-width: 641px) and (max-width: 1023px) {
  .quick-info-item .quick-info-icon { display: none; }
  .quick-info-item { padding: 1.125rem 1.25rem; }
}

@media (max-width: 640px) {
  .quick-info-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .quick-info-item {
    padding: 1rem 1.25rem;
  }

  /* Drei Karten untereinander: alle drei ganz auf Papier, die Fläche
     beginnt 24 px unter der letzten Karte (der Verlauf mit 100 % − 3rem
     lag mitten in Karte 3, weil unten kein Polster war). */
  .quick-info {
    background: var(--papier);
    padding-bottom: 1.5rem;
  }

  .quick-info + .section-alt {
    padding-top: 2.5rem;
  }
}

/* ============================================================
   ICON-KACHELN – eine Form für alle
   ============================================================ */
.service-icon,
.quick-info-icon,
.accordion-icon,
.notice-icon,
.info-box-icon,
.download-icon,
.location-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-s);
  background: var(--flaeche-rot);
  color: var(--rot);
}

/* ============================================================
   SEKTIONEN
   ============================================================ */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--flaeche-neutral);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* ============================================================
   ÜBER UNS / AUSSTATTUNG
   ============================================================ */
.about-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-grid {
  display: grid;
  /* Die Ausstattungsliste braucht die breitere Spalte, sonst bricht
     fast jeder Eintrag zweizeilig. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--tinte);
  line-height: 1.7;
}

.about-content .lead {
  margin-bottom: 1rem;
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.55;
}

.about-image img {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  color: var(--tinte);
}

.equipment-item svg {
  flex-shrink: 0;
  color: var(--rot);
}

/* Unter 1200 px: Häkchen-Liste mit Haarlinien statt zehn Kästen in
   Knopf-Optik (sie wirkten antippbar und bei 1024 halbleer). Ab 1200 px
   bleiben die Kästen. Zweispaltig nur, wo eine Spalte ≥ 250 px hat
   (gemessen: „Impfkühlschrank (zertifiziert)" braucht 253 px):
   1024–1199 und 600–899 px; 900–1023 und < 600 px einspaltig. */
@media (max-width: 1199px) {
  .equipment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0;
  }

  .equipment-item {
    align-items: flex-start;
    padding: 0.5rem 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--tinte-15);
    border-radius: 0;
  }

  .equipment-item svg {
    margin-top: 0.2em;
  }

  /* Letzte Reihe ohne Unterlinie (gerade und ungerade Anzahl). */
  .equipment-item:last-child,
  .equipment-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

/* 1024–1199: der Liste etwas mehr Breite geben, damit beide Spalten
   ≥ 250 px haben (bei 1024 px: 260 statt 247 px). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

/* Zwei Spalten bis 900 px halten: einspaltig liefen die Absätze bei
   1024 px über 976 px (≈ 105 Zeichen). Darunter Lesebreite begrenzen. */
@media (max-width: 899px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .about-grid .about-content {
    max-width: 40rem;
  }
}

/* Einspaltige Liste: neben dem Text bei 900–1023 px (Liste nur ≈ 450 px
   breit) und unter 600 px. */
@media (min-width: 900px) and (max-width: 1023px), (max-width: 599px) {
  .equipment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .equipment-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--tinte-15);
  }
}

/* 769–899 px: zwei Spalten wie ab 900 px, Liste einspaltig daneben.
   Einspaltig stand der Kopf links, die Köpfe davor und danach mittig. */
@media (min-width: 769px) and (max-width: 899px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 2rem;
  }

  .about-grid .about-content {
    max-width: none;
  }

  .equipment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .equipment-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--tinte-15);
  }
}

@media (max-width: 768px) {
  .about-split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* Lesebreite: am Tablet liefen die Zeilen sonst über 720 px (~95 Zeichen). */
  .about-split-grid .about-content {
    max-width: 38rem;
  }

  .about-image {
    order: -1;
  }
}

/* ============================================================
   FAKTENLEISTE (Startseite)
   Auf Papier, Haarlinien statt Rotband, Keilen und Hochzählen.
   ============================================================ */
/* Rotes Band (Titus 29.09.2026), flach: keine Keile, kein Hochzählen.
   Papier auf Rot misst 5,41:1, deshalb keine Deckkraft-Stufen auf dem Band. */
.stats-section {
  background: var(--rot);
  color: var(--papier);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.stat-item {
  min-width: 0;
  padding: 1rem clamp(0.75rem, 2vw, 1.75rem);
  border-left: 1px solid var(--papier-15);
}

.stat-item:first-child {
  border-left: 0;
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  height: 1em;              /* Zahl und Icon gleich hoch: Beschriftungen fluchten */
  color: var(--papier);
  font-variant-numeric: tabular-nums;
}

.stat-number svg {
  width: 0.75em;
  height: 0.75em;
  color: var(--papier);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
  color: var(--papier);
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item {
    padding: 1.25rem 1rem;
  }

  .stat-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item:nth-child(n+3) {
    border-top: 1px solid var(--papier-15);
  }
}

/* ============================================================
   LEISTUNGSKARTEN (Startseite, 5 Karten)
   3 + 2 ab 1024 px, sonst 2 + 2 + 1 über volle Breite, mobil einspaltig.
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

.service-icon {
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: var(--text-h3);
}

.service-card p {
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--tinte);
}

.service-link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--rot);
}

@media (hover: hover) {
  .service-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}

@media (min-width: 641px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 769–1023 px: die fünfte Karte läuft über die volle Breite. Gebaut wie
   die schmalen Karten stand ihr Text in einer Zeile mit ~110 Zeichen und
   die Karte war ~300 px hoch. Hier liegt sie quer: Kachel links, Titel
   und Text in Lesebreite, Link rechts. */
@media (min-width: 769px) and (max-width: 1023px) {
  .service-card:last-child:nth-child(odd) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 1.5rem;
    align-items: center;
  }

  .service-card:last-child:nth-child(odd) .service-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .service-card:last-child:nth-child(odd) h3 {
    grid-column: 2;
    margin-bottom: 0.25rem;
  }

  .service-card:last-child:nth-child(odd) p {
    grid-column: 2;
    max-width: 52ch;
    margin: 0;
  }

  .service-card:last-child:nth-child(odd) .service-link {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .service-card {
    grid-column: span 2;
  }

  .service-card:nth-child(4):nth-last-child(2),
  .service-card:nth-child(5):last-child {
    grid-column: span 3;
  }
}

/* ============================================================
   STANDORTE
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.location-card {
  overflow: hidden;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

/* Grundlayout 08.08.2026: eigener Kopfstreifen je Standort. Flach in
   der Rot-Fläche statt Verlauf; die Haarlinie trennt Kopf und Inhalt. */
.location-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--flaeche-rot);
  box-shadow: inset 0 -1px 0 var(--tinte-15);
  color: var(--tinte);
}

.location-card-header h3 {
  margin-bottom: 0.25rem;
  font-size: var(--text-h3);
  color: var(--tinte);
}

/* Kachel und Pille auf der Rot-Fläche: Papier als Grund, sonst
   verschwinden sie im Streifen. */
.location-card-header .location-icon-wrapper,
.location-card-header .location-tag {
  background: var(--papier);
}

/* Pillen: eine Form für Standort-Tag und Fachrichtung (4,97:1). */
.location-tag,
.doctor-speciality {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius-s);
  background: var(--flaeche-rot);
  color: var(--rot);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
}

.location-card-body {
  padding: 1.5rem 2rem 2rem;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--tinte-15);
}

.location-address svg,
.location-phone svg {
  flex-shrink: 0;
  color: var(--rot);
}

.location-address svg {
  margin-top: 0.2em;
}

.location-address p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.location-phone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  color: var(--tinte);
  font-variant-numeric: tabular-nums;
}

.opening-hours-title {
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tinte);
}

.hours-grid {
  display: grid;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.hours-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--tinte-15);
}

.hours-row:last-child {
  border-bottom: 0;
}

.hours-day {
  font-weight: 600;
  color: var(--tinte);
}

.hours-time {
  color: var(--tinte);
}

.hours-time.closed {
  color: var(--tinte-70);
}

/* Zusatz in Klammern („(Tel.-Sprechstunde)") nie am Bindestrich trennen;
   die Spannen schützt <span class="nobr"> im Markup (10.10.2026). */
.hours-time .closed {
  white-space: nowrap;
}

.hours-row.is-today {
  margin: 0 -0.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--flaeche-rot);
  border-radius: var(--radius-s);
}

.hours-row.is-today .hours-day {
  color: var(--rot);
}

/* Bis 1023 px untereinander: nebeneinander blieb die Zeitspalte bei
   769–1023 px ≈ 190 px breit und fast jeder Tag brach um. Der Reiter
   (main.js) bleibt bei ≤ 768 px. */
@media (max-width: 1023px) {
  .locations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .location-card-header { padding: 1rem 1.25rem; }
  .location-card-body { padding: 1.25rem 1.25rem 1.5rem; }
  .hours-row { grid-template-columns: 6.25rem minmax(0, 1fr); }
  .hours-time .closed { display: block; }
}

/* Unter 375 px: schmalere Tagesspalte, damit „8–12 & 14–18 Uhr" in eine
   Zeile passt (Zeitspalte 138 statt 122 px; „Donnerstag" passt noch). */
@media (max-width: 374px) {
  .location-card-body { padding: 1.25rem 1rem 1.5rem; }
  .hours-row { grid-template-columns: 5.75rem minmax(0, 1fr); }
}

/* ============================================================
   HINWEISE (Startseite)
   Grundlayout 08.08.2026: einzelne Karten untereinander, mittig.
   Ohne farbigen Randstreifen, die Kachel trägt das Zeichen.
   ============================================================ */
.notices-grid {
  display: grid;
  gap: 0.875rem;
  max-width: 800px;
  margin: 0 auto;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

/* Zwei H3-Stufen auf der ganzen Website: Karten mit Kopf --text-h3,
   Zeilen und Listen (Leistungszeilen, Akkordeon, Schritte, Hinweise)
   --text-lg, beide in Lora. */
.notice-title {
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tinte);
}

.notice-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--tinte);
}

/* Handy: Kachel neben dem Titel, der Text darunter über die volle Breite
   (bei 320 px 230 statt 159 px, 8 statt 11 Zeilen). Der namenlose
   Wrapper um Titel und Text löst sich per display:contents auf, damit
   beide Grid-Kinder werden; die Kachel selbst bleibt ein Kasten. */
@media (max-width: 480px) {
  .notice-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 0.875rem;
    align-items: center;
    padding: 1.25rem;
  }

  .notice-item > div:not(.notice-icon) {
    display: contents;
  }

  .notice-title {
    margin: 0;
  }

  .notice-text {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
  }
}

/* ============================================================
   CTA-BAND – eine rote Fläche je Seite
   ============================================================ */
.cta-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--rot);
  color: var(--papier);
  text-align: center;
}

/* Gleiche Stufe wie jede H2 (26,6 → 44 px): Das Band hebt sich über die
   rote Fläche ab, nicht über eine eigene Schriftgröße. */
.cta-section h2 {
  margin-bottom: 1rem;
  font-size: var(--text-3xl);
  color: var(--papier);
}

.cta-section p {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: var(--text-lead);
  color: var(--papier);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   TEAM
   ============================================================ */
/* Grundlayout 08.08.2026: Gruppenfoto mittig über den Karten.
   Höchstens 1024 px = Quellbreite, also nie hochgezogen, nie beschnitten. */
.team-photo-wrapper {
  max-width: 1024px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 504;
  object-fit: cover;
  border-radius: var(--radius-l);
}

/* Flex statt auto-fill: eine unvollständige letzte Reihe steht mittig. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-grid > .doctor-card {
  flex: 0 1 calc((100% - 4.5rem) / 4);
  min-width: 0;
}

/* Genau fünf Karten (Filiale): ab 1200 px eine Reihe, keine Waise.
   Bei 1024–1199 px waren fünf Karten nur 176 px breit (Namen und
   „Leitende MFA · NäPA" brachen um); dort 3 + 2 mittig, nie 4 + 1. */
@media (min-width: 1200px) {
  .team-grid > .doctor-card:first-child:nth-last-child(5),
  .team-grid > .doctor-card:first-child:nth-last-child(5) ~ .doctor-card {
    flex-basis: calc((100% - 6rem) / 5);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .team-grid > .doctor-card:first-child:nth-last-child(5),
  .team-grid > .doctor-card:first-child:nth-last-child(5) ~ .doctor-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

@media (max-width: 1023px) {
  .team-grid > .doctor-card { flex-basis: calc((100% - 3rem) / 3); }
}

@media (max-width: 768px) {
  .team-grid { gap: 1rem; }
  .team-grid > .doctor-card { flex-basis: calc((100% - 1rem) / 2); }
}

@media (max-width: 480px) {
  .team-grid > .doctor-card { flex-basis: 100%; }
}

.doctor-card {
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

.doctor-photo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.doctor-name {
  margin-bottom: 0.375rem;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tinte);
}

.doctor-title {
  margin-bottom: 0.75rem;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--tinte-70);
}

/* Zwei Fachrichtungen (Dr. Werner): zwei Pillen statt einer zweizeiligen
   Pille. Der Trennpunkt bleibt im HTML und erscheint am Handy, wo die
   Fachrichtung als Textzeile steht (components.css). */
.doctor-specialities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.fach-trenner {
  display: none;
}

/* Schlusssatz unter dem Ärzteteam: mittig unter dem Kartenraster, am
   Handy linksbündig an der Kante der Team-Zeilen. */
.team-schluss {
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--tinte-70);
  text-align: center;
}

@media (max-width: 768px) {
  .team-schluss {
    text-align: left;
  }
}

/* Karten ab 769 px: Name immer zwei Zeilen hoch, unten bündig. So stehen
   Rolle und Pille in einer Reihe auf einer Linie, auch wenn ein Name
   umbricht. (Ein Kindelement im Namen braucht eine Hülle, sonst wird es
   ein eigenes Flex-Element; siehe Hoffman-Weber.) */
@media (min-width: 769px) {
  .doctor-name {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 2.6em;
  }
}

/* Handy: 21 Karten untereinander wären 5 500 px. Foto links, Text rechts
   halbiert die Strecke; das 200-px-Porträt bleibt bei 64 px scharf. */
@media (max-width: 480px) {
  .doctor-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
  }

  .doctor-photo {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .doctor-name,
  .doctor-title,
  .doctor-speciality {
    grid-column: 2;
    margin-bottom: 0;
  }

  .doctor-name { grid-row: 2; margin-bottom: 0.125rem; }
  .doctor-title { grid-row: 3; }

  .doctor-speciality {
    grid-row: 4;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

/* ============================================================
   GALERIE & FOTOS
   Bilder sind keine Links: kein Hover-Zoom.
   ============================================================ */
.practice-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 3rem;
}

.gallery-img,
.diag-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.diagnostic-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Handy/Tablet: Diagnostik-Fotos als Wisch-Streifen statt drei
   Vollbildern untereinander (gut 700 px). Der Streifen scrollt in sich,
   die Seite nicht (das Panel hat overflow:hidden). tabindex="0" im HTML
   macht ihn auch in Safari per Tastatur scrollbar, Ring kommt aus
   :focus-visible. */
@media (max-width: 768px) {
  .practice-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-photos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .diagnostic-photos > * { scroll-snap-align: start; }
}

@media (max-width: 480px) {
  .practice-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   WERTE (Unsere Praxis)
   Grundlayout 08.08.2026: drei mittige Spalten. Haarlinien statt
   dreier gleicher Kästen.
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.philosophy-item {
  padding: 0.25rem clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--tinte-15);
  text-align: center;
}

.philosophy-item:first-child {
  border-left: 0;
}

.philosophy-item p {
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
}

.philosophy-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
  color: var(--rot);
}

.philosophy-item h3 {
  margin-bottom: 0.75rem;
}

.philosophy-item p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--tinte);
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .philosophy-item,
  .philosophy-item:first-child {
    padding: 1.5rem 0;
    border-left: 0;
    border-top: 1px solid var(--tinte-15);
  }

  .philosophy-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  /* Handy: Symbol links, Titel und Text rechts daneben, linksbündig.
     Zentrierte 4-Zeilen-Absätze lasen sich schlecht und die Symbolzeile
     kostete je Wert ~45 px. Spalte 28 px = Breite des SVG. */
  .philosophy-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 0.875rem;
    text-align: left;
  }

  .philosophy-icon {
    grid-row: 1 / span 2;
    justify-content: flex-start;
    margin: 0;
    padding-top: 0.15rem;
  }

  .philosophy-item h3,
  .philosophy-item p {
    grid-column: 2;
  }

  .philosophy-item p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================================
   AKKORDEON
   ============================================================ */
/* Eine Akkordeonbreite auf der ganzen Website (wie .faq-grid): bei 1440
   lief das Leistungs-Akkordeon über 1152 px, der Text endete bei 33em,
   der Pfeil stand 1000 px vom Titel entfernt. */
.accordion {
  display: grid;
  gap: 0.875rem;
  max-width: 800px;
  margin-inline: auto;
}

/* overflow:hidden hält Kopf-Fläche und Radius zusammen; der Fokusring
   liegt deshalb innen (siehe .accordion-header:focus-visible). */
.accordion-item {
  overflow: hidden;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

/* Kopf steckt in einer h3 unter der H2. Die h3 selbst ist unsichtbar. */
.accordion-heading {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition);
}

.accordion-header:focus-visible {
  outline-offset: -4px;
}

.accordion-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.accordion-item.open .accordion-icon {
  background: var(--rot);
  color: var(--papier);
}

.accordion-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tinte);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--tinte-70);
  transition: transform var(--transition), color var(--transition);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--rot);
}

@media (hover: hover) {
  .accordion-header:hover { background: var(--flaeche-rot); }
}

/* Zugeklappt nur mit JS. Ohne JS, bei einem JS-Fehler und im Druck
   ist jeder Inhalt offen. visibility nimmt geschlossene Panels aus
   Tab-Reihenfolge und Vorlesen. */
.accordion-body {
  overflow: hidden;
}

/* Übergang nur mit JS: fällt html.js beim Laden weg (main.js kaputt),
   stehen die Panels sofort offen statt 0,4 s später. */
.js .accordion-body {
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.4s ease, visibility 0s linear 0.4s;
}

.js .accordion-item.open > .accordion-body {
  max-height: none;
  visibility: visible;
  transition: max-height 0.4s ease, visibility 0s linear 0s;
}

.accordion-body-inner {
  padding: 0 1.5rem 1.5rem calc(1.5rem + 44px + 1rem);
}

.accordion-body-inner p,
.accordion-body-inner ul,
.accordion-body-inner li {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--tinte);
}

.accordion-body-inner ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.accordion-body-inner li {
  margin-bottom: 0.35rem;
}

/* Lesespalte ≤ 75 Zeichen, auch wenn das Akkordeon volle Breite hat. */
.accordion-body-inner > :is(p, ul, ol) {
  max-width: 33em;
}

.accordion-body-inner li::marker {
  color: var(--rot);
}

/* Weiterführender Link im Panel: der Pfeil folgt dem letzten Wort statt
   allein am Kartenrand zu hängen. Eigenständiges Tippziel, deshalb
   inline-block mit 44 px Mindesthöhe statt inline-flex. */
.accordion-body-inner .service-link {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.5rem;
}

.accordion-body-inner .service-link svg {
  display: inline;
  vertical-align: -0.15em;
  margin-left: 0.3rem;
}

/* Handy: Punkte als Liste lesbar. Weniger Luft im Punkt, etwas mehr
   zwischen den Punkten (vorher 28 zu 34 px, die Liste zerfiel). */
@media (max-width: 768px) {
  .accordion-body-inner li {
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .accordion-body-inner p {
    line-height: 1.6;
  }
}

/* Auf schmalen Schirmen fraß der Einzug die halbe Textspalte. */
@media (max-width: 640px) {
  .accordion-header { padding: 1.125rem 1.25rem; }
  .accordion-body-inner { padding: 0 1.25rem 1.25rem; }
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ ohne Kachel: sechsmal dasselbe „?" (aria-hidden) trug keine
   Information und kostete am Handy 60 px Titelbreite. Die Antwort steht
   damit auf der Kante der Frage, auch auf gewichtsreduktion (dort hatte
   der Kopf nie eine Kachel, die Antwort war trotzdem 84 px eingerückt).
   Die Leistungs-Kacheln (verschiedene Symbole) bleiben. */
.faq-grid .accordion-icon {
  display: none;
}

.faq-grid .accordion-body-inner {
  padding-left: 1.5rem;
}

@media (max-width: 640px) {
  .faq-grid .accordion-body-inner { padding-left: 1.25rem; }
}

/* Handy schmal: kleinere Kachel und engeres Polster, damit Leistungstitel
   nicht vier- bis fünfzeilig in 134 px stehen. Die Kachel ist kein
   Tippziel, das ist der ganze Kopf. */
@media (max-width: 480px) {
  .accordion-header { padding: 1rem 1.125rem; gap: 0.75rem; }
  .accordion-header-inner { gap: 0.75rem; }
  .accordion-icon { width: 36px; height: 36px; }
  .accordion-body-inner { padding: 0 1.125rem 1.25rem; }
  .faq-grid .accordion-body-inner { padding-left: 1.125rem; }
}

/* Unter 375 px auch ohne Leistungs-Kachel: sonst bleiben bei 320 px
   nur ~158 px für „Beratung zur medikamentösen Gewichtsreduktion". */
@media (max-width: 374px) {
  .accordion .accordion-icon { display: none; }
}

/* ============================================================
   KONTAKT & FORMULAR
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.contact-info-group {
  display: grid;
  gap: 1.5rem;
}

/* Kontakt: Banner steht vor dem Raster und spannt über beide Spalten
   (volle Rasterbreite). Mit 52rem und mittig fluchtete es mit keiner
   Spalte darunter; der Satz läuft auch bei 1440 px in einer Zeile. */
.container > .info-banner:has(+ .contact-layout) {
  max-width: none;
}

.contact-location-card {
  overflow: hidden;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

.contact-location-header {         /* h3, Kopfstreifen wie die Standortkarten */
  padding: 1.25rem 2rem;
  background: var(--flaeche-rot);
  color: var(--tinte);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: inset 0 -1px 0 var(--tinte-15);
}

/* Rumpf auf derselben Innenkante wie der Kopf (wie .location-card-body). */
.contact-location-body {
  padding: 1.5rem 2rem;
}

@media (max-width: 480px) {
  .contact-location-header { padding: 1rem 1.25rem; }
  .contact-location-body { padding: 1.25rem; }
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: var(--text-sm);
  color: var(--tinte);
  font-variant-numeric: tabular-nums;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--rot);
}

.contact-row strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--tinte);
}

/* Trefferfläche bleibt 44 px (Tap-Regel oben); der negative Rand nimmt
   den Überstand aus dem Zeilenfluss, damit Link- und Textzeilen gleich
   hoch stehen. */
.contact-row a {
  margin-block: -9px;
  color: var(--rot);
  font-weight: 600;
}

.contact-hours {
  display: grid;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.contact-form-wrapper {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

@media (max-width: 400px) {
  .contact-form-wrapper {
    padding: 1.25rem 1rem;
  }
}

.form-title {
  margin-bottom: 0.5rem;
  font-size: var(--text-2xl);
}

.form-subtitle {
  margin-bottom: 2rem;
  font-size: var(--text-sm);
  color: var(--tinte-70);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tinte);
}

.form-group label .optional {
  margin-left: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--tinte-70);
}

/* Feldrand Tinte 70 (5,61:1 nach WCAG 1.4.11), nie nur die Haarlinie.
   Schrift ≥ 16 px, sonst zoomt iOS beim Fokus in die Seite. */
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--tinte-70);
  border-radius: var(--radius-s);
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
  color: var(--tinte-70);
  opacity: 1;
}

@media (hover: hover) {
  .form-control:hover { border-color: var(--tinte); }
}

.form-control:focus-visible {
  border-color: var(--tinte);
}

/* Fehler: Rand wird optisch 2 px (Schatten statt Randbreite, kein Springen). */
.form-control.is-invalid {
  border-color: var(--rot);
  box-shadow: inset 0 0 0 1px var(--rot);
  background-color: var(--flaeche-rot);
}

.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--rot);
}

select.form-control {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368605B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
}

/* block: als inline-block hing unter dem Feld die Unterlänge der Zeile
   (13 statt 6 px bis zur Fehlermeldung bzw. zum Hinweis). */
textarea.form-control {
  display: block;
  min-height: 130px;
  resize: vertical;
}

/* Nur Spaltenabstand: der Zeilenabstand kommt aus .form-group (1,25 rem),
   sonst stand das erste Feldpaar einspaltig 16 px weiter auseinander. */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

/* 769–1023 px: Formularspalte nur ~365–425 px breit, zwei Felder à 175 px
   schnitten eine echte E-Mail-Adresse ab. */
@media (max-width: 1023px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Raster statt Flex: main.js hängt die Fehlermeldung an .form-check an.
   Als drittes Flex-Kind lief sie rechts neben dem Label aus der Karte;
   so steht sie in Spalte 2 bündig unter dem Label (09.10.2026). */
.form-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.form-check > .form-error {
  grid-column: 2;
  margin-top: 0.25rem;
}

.form-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-top: 0.1rem;
  appearance: none;
  background: var(--papier);
  border: 1.5px solid var(--tinte-70);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.form-check input[type="checkbox"]:checked {
  background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F7F4EE' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  border-color: var(--rot);
}

/* pretty: „zu. *" stand sonst allein in der letzten Zeile (1199–1440 px,
   560–620 px). pretty gilt global nur für p und li, das hier ist ein label. */
.form-check label {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--tinte);
  cursor: pointer;
  text-wrap: pretty;
}

/* Icon + EIN Textblock (<span>): sonst liefen Satz und Nummer als zwei
   Flex-Spalten nebeneinander (Handy: „Für dringende / Anliegen rufen" | Nummer). */
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--flaeche-rot);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--tinte);
}

/* 16-px-Icon mittig auf der ersten Zeile (Zeilenhöhe 1,65em). */
.form-note svg {
  margin-top: calc(0.825em - 8px);
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--tinte-70);
}

/* Steht über dem Absende-Knopf (main.js), 1 rem Abstand zum Knopf. */
.form-status {
  margin-bottom: 1rem;
}

.form-status > .info-banner {
  margin: 0;
}

.form-status:empty {
  display: none;
}

/* Honeypot: für Menschen unsichtbar, bewusst nicht display:none. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-layout,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   KARTEN (Google Maps) mit Zwei-Klick-Einwilligung
   ============================================================ */
.location-map-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Raster statt Flex-Umbruch: der Titelblock bricht in sich um, der Knopf
   bleibt oben rechts. flex-grow: der Wrapper ist eine Flex-Spalte und wird
   vom .grid-2 gestreckt, der kürzere Kopf schluckt die Differenz, damit
   beide Reiterleisten auf einer Höhe beginnen (1024 px: vorher 64 px Versatz). */
.location-map-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  align-content: start;
  gap: 1rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* ≤ 400 px einspaltig, sonst Querscroll bei 320 px. */
@media (max-width: 400px) {
  .location-map-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map-header .map-open-btn {
    justify-self: start;   /* Knopf in Inhaltsbreite wie bisher */
  }
}

/* 769–1099 px: zwei Karten nebeneinander, neben dem Knopf blieben dem
   Titelblock nur 150–300 px, die Anschrift brach zwischen PLZ und Ort.
   Knopf unter den Titel; beide Köpfe gleich gebaut, Reiter auf einer Höhe. */
@media (min-width: 769px) and (max-width: 1099px) {
  .location-map-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map-header .map-open-btn {
    justify-self: start;
  }
}

.location-map-title {              /* Kartentitel mit Kopf: --text-h3 */
  margin: 0 0 0.15rem;
  font-size: var(--text-h3);
  color: var(--tinte);
}

.location-map-sub {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--tinte-70);
}

.map-open-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.map-tab-bar {
  display: flex;
  padding: 0.35rem;
  background: var(--flaeche-neutral);
  border: 1px solid var(--tinte-15);
  border-bottom: 0;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.map-tab-btn {
  flex: 1;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius-s);
  color: var(--tinte-70);
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.map-tab-btn[aria-selected="true"] {
  background: var(--papier);
  color: var(--rot);
  font-weight: 600;
}

@media (hover: hover) {
  .map-tab-btn:hover { color: var(--tinte); }
  .map-tab-btn[aria-selected="true"]:hover { color: var(--rot); }
}

.map-tab-panel {
  overflow: hidden;
  border: 1px solid var(--tinte-15);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--flaeche-neutral);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--flaeche-neutral);
  color: var(--tinte-70);
}

.map-consent {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--flaeche-neutral);
}

.map-consent-text {
  max-width: 34ch;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--tinte-70);
}

.map-consent-btn {
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--papier);
  background: var(--rot);
  border: 2px solid var(--rot);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.map-consent-btn:active {
  background: var(--papier);
  color: var(--rot);
}

@media (hover: hover) {
  .map-consent-btn:hover { background: var(--papier); color: var(--rot); }
}

.map-consent-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-xs);
  color: var(--tinte-70);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Handy: Die Einwilligung braucht ~230 px, 400 px ließen je ~85 px leere
   Fläche darüber und darunter. */
@media (max-width: 768px) {
  .map-container {
    height: 320px;
  }
}

/* ≤ 400 px: „Street View" und „Karte von Google Maps laden" brachen
   zweizeilig (Reiter 70 statt 44 px). Nur Polster, Farben bleiben. */
@media (max-width: 400px) {
  .map-tab-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    white-space: nowrap;
  }

  .map-consent {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .map-consent-btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: var(--text-xs);
  }
}

/* ============================================================
   SEITENKOPF DER UNTERSEITEN
   Grundlayout 08.08.2026: volles Band, Pfad, Titel und Vorlauf mittig.
   Flaches Rot statt Verlauf; Papier auf Rot misst 5,41:1, deshalb
   keine Deckkraft-Stufen auf dem Band.
   ============================================================ */
.page-hero {
  --fokus: var(--papier);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6.5vw, 5rem);
  background: var(--rot);
  color: var(--papier);
  text-align: center;
}

.page-hero h1 {
  max-width: 18em;
  margin: 0 auto 1rem;
  color: var(--papier);
}

.page-hero p {
  max-width: 32em;
  margin: 0 auto;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--papier);
}

/* flex-wrap ist Pflicht: ein dreistufiger Pfad passt bei 320 px nicht
   in eine Zeile. */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
}

.breadcrumb a,
.breadcrumb span {
  color: var(--papier);
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.breadcrumb .current {
  font-weight: 600;
}

/* Trenner und Folgeglied als ein Stück: „›" hängt nie am Zeilenende,
   sondern wandert mit in die nächste Zeile (gewichtsreduktion.html). */
.breadcrumb .krume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (hover: hover) {
  .breadcrumb a:hover { text-decoration-thickness: 2px; }
}

/* ============================================================
   INFO-BOXEN (Patienteninfo, Gewichtsreduktion)
   ============================================================ */
/* align-content:start: Die kürzere Karte einer Rasterzeile bleibt gleich
   hoch, der Leerraum sammelt sich unten statt zwischen Kopf und Liste. */
.info-box {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;   /* sonst setzt der Titel eine harte Mindestbreite */
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

.info-box > *,
.info-box-header > * {
  min-width: 0;
}

/* Abstand kommt aus dem Raster-gap, nicht zusätzlich vom Absatz. */
/* Lesebreite ≤ 75 Zeichen, auch einspaltig bei 768 px (720-px-Karte).
   33em wie Akkordeon und Rechtstext; die geplanten 38em ließen bei
   768 px noch 80 Zeichen je Zeile stehen (gemessen). */
.info-box > p {
  max-width: 33em;
  margin-bottom: 0;
}

/* Kachel immer neben dem Titel: Mit wrap rutschte „Notfälle &
   Bereitschaftsdienst" (320–900 px) unter die Kachel, die drei anderen
   Karten nicht. Der Titel bricht jetzt in sich um (&shy; im Wort). */
.info-box-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  min-width: 0;
}

/* Kartentitel mit Kopf: eine H3-Stufe (--text-h3) wie die übrigen Karten. */
.info-box-title {
  flex: 1 1 0;
  font-size: var(--text-h3);
  color: var(--tinte);
  text-wrap: balance;
}

/* Bis 400 px: 36-px-Kachel (wie die Leistungszeilen) und schmaleres
   Polster. Mit Kachel immer daneben und 20-px-Titel blieben bei 320 px
   nur 164 px, „Rezeptbestellung" brach ohne Strich mitten im Wort. */
@media (max-width: 400px) {
  .info-box {
    padding: 1.25rem;
  }

  .info-box-header {
    gap: 0.75rem;
  }

  .info-box-icon {
    width: 36px;
    height: 36px;
  }
}

/* 769–819 px: zwei Karten nebeneinander (je ≈ 349 px). „Kommt nicht in
   Frage" brauchte 245 px Titelspalte und hatte 239, brach zweizeilig und
   setzte die Liste 26 px tiefer als die Nachbarkarte. +12 px Titelbreite. */
@media (min-width: 769px) and (max-width: 819px) {
  .info-box {
    padding: 1.25rem;
  }

  .info-box-header {
    gap: 0.75rem;
  }
}

.info-box ul {
  display: grid;
  gap: 0.625rem;
  list-style: none;
}

/* Hängender Einzug statt display:flex: jedes <a>/<strong> würde sonst
   zum eigenen Flex-Item und der Text könnte nicht umbrechen. */
.info-box li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--tinte);
}

.info-box li::before,
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rot);
}

/* ============================================================
   DOWNLOADS (HTML derzeit auskommentiert, PDFs folgen)
   ============================================================ */
.download-card {
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
  color: inherit;
  text-decoration: none;
}

.download-title {
  margin-bottom: 0.2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tinte);
}

.download-meta {
  font-size: var(--text-xs);
  color: var(--tinte-70);
}

.download-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--tinte-70);
}

@media (hover: hover) {
  .download-card:hover .download-title { color: var(--rot); text-decoration: underline; }
}

/* ============================================================
   RECHTSTEXTE – Lesespalte ≤ 75 Zeichen
   ============================================================ */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;                  /* mittig unter dem mittigen Seitenkopf */
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--papier);
  border: 1px solid var(--tinte-15);
  border-radius: var(--radius-l);
}

/* Eigene Kurve statt --text-2xl: bei 768 px war die H2 (23,0) kleiner als
   die H3 (23,7). Jetzt H2:H3 = 24:19 (390), 29,9:19,2 (768), 32:24 (≥ 1024). */
.legal-content h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 2.5rem;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  border-top: 1px solid var(--tinte-15);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: var(--text-xl);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--tinte);
}

.legal-content :is(p, li, address) {
  max-width: 33em;
}

/* Gleicher Marker wie in den Info-Boxen (roter 6-px-Punkt, Regel dort). */
.legal-content ul {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.legal-content li {
  position: relative;
  padding-left: 1.15rem;
}

.legal-content address {
  padding: 1.25rem 1.5rem;
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.75;
  background: var(--flaeche-neutral);
  border-radius: var(--radius-s);
}

/* Handy: keine Karte um den ganzen Text (Papier auf Papier), sonst blieben
   bei 320 px nur 222 px Lesespalte. Die Haarlinien über den H2 gliedern
   weiter, die Adresskästen bleiben. Ab 641 px steht die Karte. */
@media (max-width: 640px) {
  .legal-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .legal-content address {
    padding: 1rem 1.25rem;
  }
}

.legal-content em {
  font-style: normal;
  color: var(--tinte-70);
}

/* ============================================================
   FOOTER – Tinte, Schrift Papier 70 (7,69:1)
   ============================================================ */
.site-footer {
  padding: 4rem 0 0;
  background: var(--tinte);
  color: var(--papier-70);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(1.5rem, env(safe-area-inset-right)) 3rem max(1.5rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}

.footer-logo .logo-name {
  margin-bottom: 0.25rem;
  font-size: 1.375rem;          /* wie im Kopf, keine eigene Stufe */
  color: var(--papier);
}

.footer-logo .logo-subtitle {
  margin-bottom: 1.25rem;
  color: var(--papier-70);
}

.footer-description {
  max-width: 20rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--papier);
}

.footer-links {
  display: grid;
  justify-items: start;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--papier-70);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-bottom: 0.25rem;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--papier-70);
}

.footer-contact-item a,
.site-footer a[href^="tel"] {
  color: var(--papier-70);
  font-weight: 400;
}

.footer-bottom {
  /* Linie genau so breit wie der Inhalt darüber (1152 px). */
  margin-left: max(1.5rem, env(safe-area-inset-left), calc((100% - 1152px) / 2));
  margin-right: max(1.5rem, env(safe-area-inset-right), calc((100% - 1152px) / 2));
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  border-top: 1px solid var(--papier-15);
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--papier-70);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--papier-70);
}

@media (hover: hover) {
  .site-footer a:hover {
    color: var(--papier);
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}

/* Impressum/Datenschutz bleiben in der Navigationsspalte UND in der
   Rechtszeile (Hauptsession 10.10.2026: Links sind Inhalt, am Desktop nicht
   ausblenden; am Handy fehlt die Navigationsspalte ohnehin). */

/* 769–1199 px: drei Spalten statt zwei. Mit zwei stand „Kontakt" allein
   in einer zweiten Reihe (Fuß 868 statt 588 px hoch). */
@media (min-width: 769px) and (max-width: 1199px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
  }

  .footer-description { max-width: 16rem; }
}

/* 769–899 px: die Markenspalte war ≈ 236 px schmal, „Kinderarzt in" stand
   als Waise allein in einer Zeile. Breitere erste Spalte, ohne Deckel. */
@media (min-width: 769px) and (max-width: 899px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .footer-description { max-width: none; }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* Eine Achse im ganzen Fuß: alles fluchtet links mit den Kontaktzeilen. */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.25rem;
  }
}

/* ©-Zeile bei 320 px: kein „·" am Zeilenende. Der Ort steht in eigener
   Zeile, der Trennpunkt ist dort überflüssig und entfällt am Handy. */
@media (max-width: 480px) {
  .footer-bottom .fb-sep { display: none; }
  .footer-bottom .fb-ort { display: block; }
}

/* ============================================================
   REVEAL
   Versteckt nur mit JS (html.js). Ohne JS, bei einem JS-Fehler und im
   Druck ist alles sichtbar. animation statt transition: nichts vererbt
   sich auf spätere Hover-Übergänge. Eine Einblendung je Raster, keine
   Staffelung je Karte.
   ============================================================ */
.js .animate-in:not(.visible) {
  opacity: 0;
  transform: translateY(16px);
}

.js .animate-in.visible {
  animation: reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
}


/* (C) 17.11.2026: feste Handy-Leiste entfernt (Titus: „Weg“), Anrufen steht im Menü und im Fuß */

/* ============================================================
   REDUZIERTE BEWEGUNG
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .animate-in:not(.visible) {
    opacity: 1;
    transform: none;
  }

  .js .animate-in.visible {
    animation: none;
  }
}

/* ============================================================
   DRUCK – alles sichtbar, nichts Klebendes
   ============================================================ */
@media print {
  .animate-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .accordion-body {
    max-height: none !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  .nav-overlay,
  .mobile-nav,
  .hamburger,
  .skip-link {
    display: none !important;
  }

  .site-header {
    position: static;
    box-shadow: none;
  }

  /* Hero: Schleier druckt nicht mit, die helle H1 stünde weiß auf Weiß. */
  .hero-visual::after {
    content: none;
  }

  .hero h1 {
    color: var(--tinte);
  }

  .hero-visual img {
    animation: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}
