/* Gemeinschaftspraxis Elztal-Dallau
   Überarbeitet 2026-10-18: mehr Farbtiefe, weiche Elevation, Karten statt Hairlines.
   Kein JavaScript, keine Cookies, keine externen Ressourcen.
   Schriften: Fraunces (Display) + Atkinson Hyperlegible (Text), beide self-hosted, OFL.
   Stil-Richtung nach ui-ux-pro-max: Soft UI Evolution (subtle depth, 200-300 ms)
   + Aurora-Hero (Verlauf in Markenfarben) + Bento-Karten. Palette bleibt logo-abgeleitet (#810505). */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-700-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-900-italic.woff2") format("woff2");
  font-weight: 900; font-style: italic; font-display: swap;
}

:root {
  /* Flächen */
  --paper: #f8f2e9;
  --card: #fffcf7;
  --card-2: #fff7ee;

  /* Text */
  --ink: #1a1410;
  --ink-2: #3d342a;
  --muted: #6b6152;
  --faint-strong: #8a7c64;   /* Index-Nummern/Icons: 3.6:1 auf Karte */

  /* Linien */
  --rule: #d8cbb6;
  --rule-soft: #e9dfcd;

  /* Marke, abgeleitet aus dem Logo (#810505) */
  --accent: #810505;
  --accent-2: #5c0404;
  --accent-deep: #2b0606;
  --accent-lift: #a51717;
  --ember: #b4491f;
  --on-dark: #fdf4e8;
  --on-dark-2: #e8d3c4;

  /* Panels */
  --tint-a: #f8e4de;
  --tint-b: #f3d7d1;
  --tint-rule: #e6c7c0;
  --warn-bg: #fdf1de;
  --warn-rule: #e8cda2;

  /* Elevation (Soft UI Evolution: weicher als flat, klarer als Neumorphism) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(26,20,16,.06), 0 2px 6px rgba(26,20,16,.05);
  --sh-2: 0 2px 4px rgba(26,20,16,.07), 0 10px 24px -8px rgba(26,20,16,.18);
  --sh-3: 0 4px 10px rgba(26,20,16,.10), 0 22px 48px -12px rgba(26,20,16,.26);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sp: clamp(2rem, 4.5vw, 3.2rem);   /* verkürzt: die Seite war zu lang zum Scrollen */
  --t: 220ms;

  /* Logo-Motiv als Wasserzeichen (dieselben fünf Kreise wie das Logo) */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 466'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='429' cy='81' r='79'/%3E%3Ccircle cx='252' cy='181' r='79'/%3E%3Ccircle cx='78' cy='285' r='79'/%3E%3Ccircle cx='433' cy='285' r='79'/%3E%3Ccircle cx='255' cy='384' r='79'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Ankerziele dürfen nicht unter dem sticky-Header verschwinden (WCAG 2.4) */
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  font-family: var(--body);
  /* 18 px Basis: Praxis-Publikum ist überwiegend über 60 */
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  /* Farbtiefe statt einfarbigem Papier: warme Lichtzonen, alle sehr zurückhaltend */
  background:
    radial-gradient(1100px 620px at 8% -10%, #fff8ec 0%, rgba(255,248,236,0) 62%),
    radial-gradient(880px 520px at 96% 2%, #f9e6da 0%, rgba(249,230,218,0) 66%),
    radial-gradient(1200px 760px at 50% 112%, #efe2cd 0%, rgba(239,226,205,0) 72%),
    var(--paper);
  background-attachment: fixed;   /* Lichtzonen bleiben beim Scrollen stehen */
  -webkit-font-smoothing: antialiased;
}
/* feines Papierkorn — eine Ebene, bewusst kaum sichtbar */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(26,20,16,.020) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(26,20,16,.012) 0 1px, transparent 1px 5px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; cursor: pointer; transition: color var(--t) linear; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #f0cfc7; color: var(--accent-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--accent-deep); color: var(--on-dark); padding: .7rem 1.1rem;
  text-decoration: none; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.022em; line-height: 1.06; margin: 0;
  /* skill-Regel: natürlicher, ausbalancierter Umbruch statt harter <br> */
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
h1 { font-size: clamp(2.55rem, 6.6vw, 4.35rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
h1 em, .hero h1 em { font-style: italic; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin: .3rem 0; }
strong { font-weight: 700; }

/* Abschnitts-Marke: Überschrift mit kurzem Farbstrich */
section > h2 { margin-bottom: 1.4rem; position: relative; }
section > h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .85rem;
  border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--ember) 60%, rgba(180,73,31,0));
}

.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--accent);
  display: inline-block; margin-bottom: .95rem;
  padding: .34rem .7rem; border-radius: 999px;
  background: #f6e2dc; border: 1px solid #ecc9c2;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,244,235,.86);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 22px -14px rgba(26,20,16,.35);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.2rem;
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand svg {
  width: 36px; height: 33px; flex: none; color: var(--accent);
  filter: drop-shadow(0 3px 6px rgba(129,5,5,.28));
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.04rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand-name small {
  display: block; font-family: var(--body); font-weight: 700; font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .2rem;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: .45rem .85rem; text-decoration: none; color: var(--ink);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 999px;
  transition: color var(--t) linear, background-color var(--t) linear, border-color var(--t) linear;
}
.site-nav a:hover { color: var(--accent-2); background: #f4e3dc; border-color: #e9cdc5; }
.site-nav a[aria-current="page"] {
  color: #fff4ec; background: var(--accent); border-color: var(--accent-2);
  box-shadow: 0 2px 8px rgba(129,5,5,.28);
}

/* ---------- Hero: Farbfläche mit Verlauf und Logo-Motiv ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(760px 420px at 82% 8%, rgba(180,73,31,.55) 0%, rgba(180,73,31,0) 62%),
    radial-gradient(620px 420px at 6% 92%, rgba(165,23,23,.45) 0%, rgba(165,23,23,0) 60%),
    linear-gradient(132deg, #2b0606 0%, #6d0808 46%, #9c1f14 100%);
  border-bottom: 1px solid #7d120f;
  padding: clamp(1.9rem,4.4vw,3.2rem) 0 clamp(1.7rem,4vw,2.6rem);
}
/* Wasserzeichen aus den fünf Logo-Kreisen, dazu eine langsame Lichtwanderung */
.hero::before {
  content: ""; position: absolute; inset: -12%; z-index: 0;
  background-image: var(--motif);
  background-repeat: no-repeat;
  background-position: 78% 40%;
  background-size: min(620px, 52vw) auto;
  opacity: .07;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 30% 20%, rgba(255,236,214,.16) 0%, rgba(255,236,214,0) 70%);
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
/* Hinweisleiste: die eine Info, die zählt — statisch, kein Laufband */
.notice {
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(255,224,208,.24);
  padding: .6rem 0; margin: 0 0 clamp(1.3rem,2.6vw,1.9rem);
  background: rgba(26,12,10,.34);
  font-size: .88rem; font-weight: 700; letter-spacing: .02em;
  line-height: 1.45; color: #ffd9c6; max-width: 62ch;
}
.notice a { color: #ffe6d8; }
.notice a:hover { color: #fff6ee; }

/* Hero-Beileitung: eine nüchterne Zeile */
.hero-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #ffd9c6; margin: 0 0 .85rem;
}

/* Kurzangaben unter dem Hero: eine Zeile Text, keine Typo-Show */
.hero-facts { margin: 1.25rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--on-dark-2); max-width: 58ch; }

/* Foto-Ausschnitt: Rahmen, keine Bewegung */
.hero-crop {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.35); box-shadow: var(--sh-3);
}
/* Kompakte Variante der Unterseiten: gleiche Fläche, deutlich weniger Höhe */
.hero--sub { padding: clamp(1.6rem,3.5vw,2.4rem) 0 clamp(1.4rem,3vw,2rem); }
.hero--sub h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .8rem; }
.hero--sub .lede { margin-bottom: 0; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero--sub .actions { margin-top: 1.2rem; }
.hero--sub::before { background-size: min(360px, 34vw) auto; background-position: 88% 30%; opacity: .05; }
.hero-copy { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(1.8rem,4vw,3.4rem); grid-template-columns: 1.28fr .72fr; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.1rem; color: var(--on-dark); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .lede { margin-bottom: 1.4rem; color: var(--on-dark-2); }
.hero .eyebrow { color: #ffe9df; background: rgba(255,233,223,.14); border-color: rgba(255,233,223,.34); }

.hero-figure { position: relative; }
/* farbiger Rahmen hinter dem Foto: Tiefe ohne Deko-Overkill */
.hero-figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #f0c9a8, #e79a7a);
  box-shadow: var(--sh-3);
}
.hero-figure img {
  position: relative; z-index: 1; width: 100%; height: auto;
  aspect-ratio: 1600/917; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-figure figcaption {
  /* steht über der hellen Farbfläche hinter dem Foto: eigene Plakette, sonst zu niedrig */
  position: relative; z-index: 2; display: inline-block;
  font-size: .78rem; color: #ffe0d0; margin-top: .8rem; letter-spacing: .02em;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(26,12,10,.78); border: 1px solid rgba(255,224,208,.28);
}

.actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* Links in den dunklen Farbflächen: eigene Farbe, geprüfte 6.4:1 auf der hellsten Zone */
.hero a { color: #ffe0d0; }
.hero a:hover { color: #fff6ee; }

/* Grundvariante: für helle Flächen (Papier, Karten) */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .9rem 1.5rem; text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid #e2c6bf; color: var(--accent-2); background: var(--card);
  border-radius: 999px; box-shadow: var(--sh-2);
  transition: background-color var(--t) linear, color var(--t) linear, border-color var(--t) linear, box-shadow var(--t) ease, transform var(--t) ease;
}
.btn:hover { color: var(--accent-deep); background: #fbeae5; box-shadow: var(--sh-3); transform: translateY(-2px); }
.btn-primary {
  color: #fff6ee; border-color: #5c0404;
  background: linear-gradient(135deg, #a51717, #7c0404);
}
.btn-primary:hover { background: linear-gradient(135deg, #b8211f, #8c0606); color: #fff; }
/* auf den dunklen Farbflächen: Glas statt Kontur */
.hero .btn {
  color: #fff6ee; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.10);
}
.hero .btn:hover {
  color: #fff; background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.75);
}
.hero .btn-primary {
  color: #fff6ee; border-color: #5c0404; background: linear-gradient(135deg, #a51717, #7c0404);
}
.hero .btn-primary:hover {
  background: linear-gradient(135deg, #b8211f, #8c0606); color: #fff;
}

/* ---------- Daten-Leiste: ungleichgewichtig, greift in den Hero ---------- */
.rail { padding: 0 0 .4rem; margin-top: clamp(-2.6rem,-3.4vw,-1.6rem); position: relative; z-index: 2; }
.rail .wrap { display: grid; gap: clamp(.7rem,1.6vw,1.1rem); grid-template-columns: 1.35fr 1fr 1fr; align-items: start; }
.rail-lead { padding: 1.25rem 1.3rem 1.35rem; box-shadow: var(--sh-3); }
.rail-big {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(1.75rem,3.6vw,2.35rem); line-height: 1; margin-bottom: .4rem; color: var(--accent-2);
}
.rail-lead p:last-child { color: var(--muted); font-size: .92rem; }
.rail-item {
  background: var(--card); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
  padding: 1.15rem 1.25rem; box-shadow: var(--sh-1);
  transition: box-shadow var(--t) ease, transform var(--t) ease;
}
.rail-item:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rail-item .eyebrow { margin-bottom: .5rem; background: transparent; border-color: transparent; padding: 0; }
.rail-item p { margin: 0; font-size: .95rem; line-height: 1.55; }

/* ---------- Abschnitte ---------- */
main { position: relative; z-index: 1; }
section { padding: var(--sp) 0 0; }
section > .lede { margin-bottom: 1.8rem; }
/* Redaktionelles Verzeichnis: Nummer hängt links, Ziel ist ein Textlink */
.editorial { list-style: none; margin: 0; padding: 0; }
.ed-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1.1rem; align-items: baseline;
  padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--rule-soft);
}
.editorial li:last-child { border-bottom: 1px solid var(--rule-soft); }
.ed-num {
  position: absolute; left: -2.8rem; top: 1rem;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 1.35rem; color: var(--faint-strong); line-height: 1;
}
.ed-row h3 { font-size: clamp(1.4rem,2.9vw,1.9rem); margin-bottom: .35rem; }
.ed-row h3 a { text-decoration: none; color: var(--ink); transition: color 220ms linear; }
.ed-row h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ed-row p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 52ch; }
.ed-row > div { max-width: 46ch; }
.ed-link {
  font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none;
  color: var(--accent-2); transition: color 220ms linear;
}
.ed-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Leistungs-Karten (Bento) ---------- */
.index {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.9rem,2vw,1.2rem); grid-template-columns: repeat(2, 1fr);
}
.index.cols-3 { grid-template-columns: repeat(3, 1fr); }
.index-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 3rem; gap: 1rem;
  align-items: start; padding: 1.5rem 1.5rem 1.6rem;
  background: var(--card); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) ease, transform var(--t) ease, border-color var(--t) ease;
}
.index-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--ember));
}
.index-row:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: #e6cfc7; }
.index-num {
  position: absolute; top: .9rem; right: 1rem;
  font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--faint-strong);
  line-height: 1; letter-spacing: 0;
}
.index-row h3 { margin: 0 0 .4rem; padding-right: 2.6rem; }
.index-row h3 a { text-decoration: none; color: var(--ink); border-bottom: 1px solid transparent; transition: color var(--t) linear, border-color var(--t) linear; }
.index-row h3 a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.index-row p { margin: 0; color: var(--muted); font-size: .98rem; }
.index-row:hover 
/* ---------- Absprünge (Leistungen): eine Zeile statt vier Karten ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .5rem 1rem; text-decoration: none; font-size: .88rem; font-weight: 700;
  color: var(--accent-2); background: var(--card);
  border: 1px solid #e2c6bf; border-radius: 999px; box-shadow: var(--sh-1);
  transition: background-color var(--t) linear, color var(--t) linear, box-shadow var(--t) ease, transform var(--t) ease;
}
.jump a:hover { background: #fbeae5; color: var(--accent-deep); box-shadow: var(--sh-2); transform: translateY(-2px); }

/* ---------- Team ---------- */
.doctors { display: grid; gap: clamp(1rem,2.5vw,1.6rem); grid-template-columns: repeat(2, 1fr); }
/* quer statt hochkant: halbe Höhe, gleiche Information */
.doctor {
  display: grid; grid-template-columns: 168px 1fr; gap: clamp(1rem,2vw,1.4rem); align-items: center;
  background: var(--card); border: 1px solid var(--rule-soft); border-radius: var(--r-lg);
  padding: 1.1rem; box-shadow: var(--sh-2);
  transition: box-shadow var(--t) ease, transform var(--t) ease;
}
.doctor:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.doctor img {
  width: 168px; height: 168px; object-fit: cover; object-position: top center;
  border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.doctor h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.doctor .role { font-size: .74rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }

.staff { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
.staff li {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: center;
  padding: .9rem 1.1rem; background: var(--card);
  border: 1px solid var(--rule-soft); border-radius: var(--r-md); box-shadow: var(--sh-1);
  transition: box-shadow var(--t) ease, transform var(--t) ease;
}
.staff li:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.staff img { width: 64px; height: 64px; object-fit: cover; object-position: top center; border-radius: 50%; }
.staff strong { font-family: var(--display); font-weight: 700; font-size: 1.12rem; display: block; }
.staff .role { color: var(--muted); font-size: .92rem; }

/* ---------- Notfalldienst / Panels ---------- */
.panel {
  border: 1px solid var(--rule-soft); border-left: 5px solid var(--accent);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  padding: clamp(1.4rem,3.5vw,2.2rem); border-radius: var(--r-md); box-shadow: var(--sh-2);
}
.panel h2 { margin-top: 0; }
.panel h2::after { display: none; }
.badge {
  display: inline-block; font-family: var(--body); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; padding: .34rem .7rem;
  background: linear-gradient(135deg, var(--accent-lift), var(--accent)); color: #fff6ee;
  border-radius: 999px; margin-right: .7rem; vertical-align: middle;
  box-shadow: 0 2px 8px rgba(129,5,5,.30);
}
.split { display: grid; gap: clamp(1.4rem,3vw,2.5rem); grid-template-columns: 1fr 1.25fr; }

/* ---------- Kontakt & Tabellen ---------- */
address { font-style: normal; }
.contact-line { margin: 0 0 .4rem; }
table.hours {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem;
  background: var(--card); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1);
}
table.hours th, table.hours td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.hours tr:nth-child(even) th, table.hours tr:nth-child(even) td { background: #fbf5ec; }
table.hours th { font-weight: 700; width: 46%; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }

/* ---------- Rechtliches ---------- */
.legal h2 { font-size: 1.15rem; font-family: var(--body); font-weight: 700; letter-spacing: .02em; margin: 2rem 0 .6rem; }
.legal h2::after { display: none; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { max-width: 70ch; }

/* ---------- Footer: Wortmarke dominant, Meta darunter ---------- */
.site-footer {
  margin-top: var(--sp); position: relative; overflow: hidden;
  border-top: 1px solid #3a100c;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(180,73,31,.28) 0%, rgba(180,73,31,0) 60%),
    linear-gradient(180deg, #24100c, #170d09);
  color: #cfc3b4;
}
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem;
  padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.footer-mark {
  margin: 0 0 .85rem; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem,4.4vw,3rem); line-height: .96; letter-spacing: -.025em;
  color: #f7ecdd; text-wrap: balance;
}
.footer-mark em { font-style: italic; color: #ffc4a8; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.footer-id { margin: 0; font-size: .9rem; color: #d9cfc1; max-width: none; }
.site-footer .footer-row { display: block; padding-top: 1.7rem; padding-bottom: 1.7rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.footer-nav a {
  font-size: .85rem; font-weight: 700; text-decoration: none; color: #f7ecdd;
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid transparent;
  transition: background-color var(--t) linear, border-color var(--t) linear;
}
.footer-nav a:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff; }
.copyright { margin: 0; font-size: .85rem; color: #a9998a; margin-left: auto; }

/* ---------- Entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .14s; }
.rise-3 { animation-delay: .23s; } .rise-4 { animation-delay: .32s; }

/* ---------- Farbpanel: Rhythmus über die Seite ---------- */
.tint {
  background: linear-gradient(160deg, var(--tint-a) 0%, var(--tint-b) 100%);
  border-top: 1px solid var(--tint-rule); border-bottom: 1px solid var(--tint-rule);
  padding: var(--sp) 0;
}
.tint .doctor { background: var(--card); }
.tint .role { color: 6a6051; }
.tint .eyebrow { color: var(--accent-deep); background: rgba(255,255,255,.55); border-color: #e3c4bd; }

/* ---------- Foto über volle Breite, als Rahmenbild ---------- */
.band { margin: var(--sp) auto 0; padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); }
.band img {
  width: 100%; height: auto; max-height: 58vh; object-fit: cover; object-position: center 30%;
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.5); box-shadow: var(--sh-3);
}
.band figcaption {
  font-size: .82rem; color: var(--muted); letter-spacing: .01em;
  padding: .8rem .2rem 0;
}

/* ---------- Inhaltsfotos in Textabschnitten ---------- */
.figure { margin: 1.8rem 0 0; }
.figure img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--sh-2);
}
.figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.figure-split {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start;
}
.figure-split .figure { margin-top: 0; }


/* ---------- Daueranruf im Kopf: die Nummer, die am häufigsten gebraucht wird ---------- */
.call-chip {
  display: inline-flex; align-items: baseline; gap: .55rem; flex: none;
  min-height: 44px; padding: .5rem 1.15rem; text-decoration: none; white-space: nowrap;
  color: #fff6ee; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(135deg, #a51717, #7c0404);
  border: 1px solid #5c0404; border-radius: 999px; box-shadow: var(--sh-2);
  transition: background-color var(--t) linear, color var(--t) linear, box-shadow var(--t) ease, transform var(--t) ease;
}
.call-chip .chip-num {
  font-family: var(--display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: .01em; text-transform: none;
}
.call-chip:hover { background: linear-gradient(135deg, #b8211f, #8c0606); color: #fff; box-shadow: var(--sh-3); transform: translateY(-1px); }

/* ---------- Soforthilfe: drei Wege, eindeutig geschieden ---------- */
.triage { margin-top: var(--sp); }
.triage-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.8rem,1.8vw,1.2rem); grid-template-columns: repeat(3, 1fr);
}
.triage-list li {
  background: var(--card); border: 1px solid var(--rule-soft); border-top: 4px solid var(--accent);
  border-radius: var(--r-md); padding: 1rem 1.15rem 1.1rem; box-shadow: var(--sh-1);
}
/* Lebensgefahr ist der einzige Fall, der nicht in diese Praxis gehört: eigene Fläche */
.triage-list .li-112 {
  background: linear-gradient(150deg, #7c0404, #2b0606);
  border-color: #5c0404; color: var(--on-dark); box-shadow: var(--sh-3);
}
.triage-tag {
  display: block; margin-bottom: .55rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.li-112 .triage-tag { color: #ffc4a8; }
.triage-num {
  margin-bottom: .55rem;
  font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem,3.6vw,2.5rem);
  line-height: 1; letter-spacing: -.02em; color: var(--accent-2);
}
.triage-num a { text-decoration: none; color: inherit; }
.triage-list p { margin: 0; font-size: .98rem; line-height: 1.55; }
.li-112 p { color: var(--on-dark-2); }
.li-112 strong { color: #fff3ea; }

/* Kompaktvarianten: gleiche Information, weniger Höhe */
.triage--tight { margin-top: clamp(1.4rem,3vw,2rem); }
.triage--tight .triage-list li { padding: .85rem 1rem 1rem; }
.triage--tight .triage-num { font-size: clamp(1.45rem,3vw,1.9rem); margin-bottom: .3rem; }
.triage--tight .triage-tag { margin-bottom: .35rem; font-size: .62rem; }
.triage--tight p:not(.triage-num):not(.triage-tag) { font-size: .92rem; }
.triage--tight .mini { margin-bottom: .9rem; }
h2.mini { margin-bottom: .9rem; }

/* Soforthilfe zwischen Hero und Leiste: die Leiste darf sie nicht anschieben */
.triage + .rail { margin-top: 1.4rem; }

/* ---------- Abläufe als nummerierte Schritte ---------- */
ol.steps { list-style: none; counter-reset: schritt; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
/* der Inhalt muss EINE Zelle sein, sonst wird jedes Textstück eine eigene Spalte */
ol.steps li {
  counter-increment: schritt; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start;
  background: var(--card); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
  padding: 1.1rem 1.2rem; box-shadow: var(--sh-1);
}
ol.steps li::before {
  content: counter(schritt); font-family: var(--display); font-weight: 900;
  font-size: 1.7rem; line-height: 1; color: var(--faint-strong);
}

/* ---------- Tabellen-Überschrift: nur für Screenreader ---------- */
/* sichtbar wäre sie die zweite Überschrift über derselben Tabelle */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
table.hours caption.vh { caption-side: top; }

/* ---------- Kleine Helfer (ersetzen Inline-Styles) ---------- */
.last { margin-bottom: 0; }
.gap-top { margin-top: 1.5rem; }
.no-top { padding-top: 0; }
h2.mini {
  font-family: var(--body); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
h2.mini::after { display: none; }

/* ---------- Responsive ---------- */
/* unter 1100 px ist im Satzspiegel kein Platz für hängende Nummern */
@media (max-width: 1100px) {
  .ed-num { position: static; display: block; margin-bottom: .35rem; }
  .ed-row { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 900px) {
  body { background-attachment: initial; } /* mobil: kein festes Repaint */
  /* Kopf wird zweizeilig: Marke + Navigation, darunter der Daueranruf */
  .site-header .wrap { flex-wrap: wrap; row-gap: .5rem; }
  .call-chip { margin-left: auto; }
  html { scroll-padding-top: 9rem; }
  .hero-grid, .doctors, .split, .figure-split { grid-template-columns: 1fr; }
  .index, .index.cols-3, .staff { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 132px 1fr; }
  .doctor img { width: 132px; height: 132px; }
  .band img { max-height: 42vh; }
  .hero-figure { order: -1; }
  .hero-figure::before { inset: 10px -10px -10px 10px; }
  .rail .wrap { grid-template-columns: 1fr; }
  .rail { margin-top: 0; }
  .notice { font-size: .82rem; padding: .5rem 0; }
  .triage-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 9rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .site-nav { margin-left: 0; width: 100%; }
  html { scroll-padding-top: 12rem; }
  .site-nav ul { flex-wrap: wrap; gap: .3rem; }
  /* Touch-Ziele: mindestens 44 px Berührfläche */
  .site-nav a { min-height: 44px; padding: .5rem .85rem; font-size: .78rem; }
  .index-row { grid-template-columns: 1fr; padding: 1.3rem 1.2rem 1.4rem; }
  .index-row h3 { padding-right: 2.4rem; }
  .split { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .staff li { grid-template-columns: 52px 1fr; gap: .8rem; }
  .staff img { width: 52px; height: 52px; }
  .doctor { grid-template-columns: 1fr; }
  .doctor img { width: 100%; height: auto; aspect-ratio: 4/3; }
  .footer-mark { font-size: clamp(1.6rem,7vw,2.2rem); }
  .footer-meta { gap: .7rem; }
  .footer-nav a { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .hero::before { animation: none; }
  .btn:hover, .index-row:hover, .doctor:hover, .rail-item:hover,
  .staff li:hover, .jump a:hover, .call-chip:hover { transform: none; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .call-chip, .btn, .actions, body::before, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; }
  .notice { background: #fff; }
  .hero h1, .hero .lede, .hero-kicker, .hero-facts, .notice { color: #000; }
    .panel, .doctor, .index-row, .rail-item, .staff li, .jump a, .triage-list li, ol.steps li { border-color: #999; box-shadow: none; }
  .triage-list .li-112 { background: #fff; color: #000; }
  .li-112 p, .li-112 .triage-tag, .li-112 .triage-num, .li-112 strong { color: #000; }
}
