/* Hausarztpraxis Roger Eliu – Gestaltung
   Schriften: Cormorant Garamond (Titel) und Atkinson Hyperlegible Next (Text, Zeiten, Telefon),
   beide SIL Open Font License 1.1 (Lizenztexte in /assets/fonts/). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
/* Ersatzschriften mit angeglichener Breite: kein Springen, falls die Webschrift fehlt */
/* Werte gemessen: Cormorant 600 = 77 % der Breite von Georgia Bold, Atkinson = 99 % von Arial */
@font-face {
  font-family: "Cormorant Ersatz";
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Georgia");
  font-weight: 600;
  size-adjust: 77%;
  ascent-override: 119%;
  descent-override: 38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson Ersatz";
  src: local("Arial"), local("Helvetica");
  size-adjust: 99%;
  ascent-override: 99%;
  descent-override: 32%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --ivoire: #f6f1e7;       /* Seitengrund */
  --ivoire-tief: #ece4d4;  /* ruhige Bänder */
  --papier: #fffcf6;       /* Tafeln, Karten */
  --tinte: #172324;        /* Text */
  --tinte-2: #3c4a4a;      /* Nebentext */
  --petrol-tief: #0b3a40;  /* Hero, Kopfbänder, Fuß */
  --petrol: #0f4c54;       /* Knöpfe, Links */
  --petrol-mittel: #17636c;
  --petrol-hauch: #e2ebe6; /* heutiger Tag */
  --linie: #d9cfbe;        /* feine warme Linien */
  --akzent: #b9773e;       /* Kupfer: Herzlinie, Linien, Cursor */
  --akzent-tief: #8a4c18;  /* Kupfer als Text auf hell */
  --akzent-hell: #eab98a;  /* Kupfer auf Petrol */
  --hell-text: #f6f1e7;
  --hell-text-2: #d6e0dc;
  --signal: #9e2328;
  --offen: #2f8f57;
  --fokus: #8a4c18;

  --titel: "Cormorant Garamond", "Cormorant Ersatz", Georgia, serif;
  --schrift: "Atkinson Hyperlegible Next", "Atkinson Ersatz", "Segoe UI", system-ui, sans-serif;

  --breite: 76rem;
  --rand: clamp(1rem, 4.5vw, 3rem);
  --band: clamp(4rem, 9vw, 8rem);
  --weich: cubic-bezier(0.22, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: clamp(1.125rem, 1.07rem + 0.22vw, 1.25rem);
  line-height: 1.62;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)); /* Platz für den Anrufknopf auf dem Handy */
}

::selection { background: var(--petrol); color: var(--hell-text); }

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
  text-wrap: balance;
  hyphens: auto;
  color: var(--petrol-tief);
}
h1 { font-size: clamp(2.75rem, 1.5rem + 4.6vw, 5.5rem); }
h2 { font-size: clamp(2.375rem, 1.55rem + 3vw, 4rem); }
h3 { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); }
p { margin: 0 0 1em; max-width: 64ch; }

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--petrol-tief); text-decoration-color: var(--akzent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.icon-klein { width: 1em; height: 1em; vertical-align: -0.12em; margin-left: 0.35em; }
.nowrap, a[href^="tel:"]:not(.knopf), .knopf-neben { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprunglink {
  position: absolute; left: 1rem; top: -5rem; z-index: 60;
  background: var(--petrol-tief); color: var(--hell-text); padding: 0.85rem 1.25rem; font-weight: 700;
}
.sprunglink:focus { top: 1rem; color: var(--hell-text); }

.vorschau-hinweis {
  margin: 0; max-width: none; text-align: center; font-size: 0.875rem; font-weight: 700;
  background: #f3e2b8; color: #4a3500; padding: 0.4rem var(--rand);
}

/* ---------- Kopf ---------- */

.kopf { background: var(--ivoire); border-bottom: 1px solid var(--linie); }
.kopf-innen {
  width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 0.5rem 2.5rem;
  padding-block: 0.9rem 0.25rem;
}
.marke { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--petrol-tief); line-height: 1; justify-self: start; }
.marke-zeile { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--akzent-tief); }
.marke-name { font-family: var(--titel); font-weight: 600; font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem); letter-spacing: -0.01em; margin-top: 0.15rem; }
.marke:hover { color: var(--petrol-tief); }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.hauptnav a {
  position: relative; display: flex; align-items: center; min-height: 3rem;
  font-weight: 700; font-size: 1.0625rem; color: var(--tinte); text-decoration: none;
}
.hauptnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0.55rem; width: 2rem; height: 2px;
  background: var(--akzent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--weich);
}
.hauptnav a:hover, .hauptnav a[aria-current="page"] { color: var(--petrol-tief); }
.hauptnav a:hover::after, .hauptnav a[aria-current="page"]::after { transform: scaleX(1); }

.kopf-telefon {
  display: none; align-items: center; gap: 0.5rem; justify-self: end;
  font-weight: 700; font-size: 1.125rem; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--petrol);
}
.kopf-telefon .icon { color: var(--akzent-tief); }

@media (min-width: 48rem) {
  .kopf-innen { grid-template-columns: auto 1fr auto; padding-block: 1.1rem; }
  .hauptnav ul { display: flex; gap: 2rem; justify-content: center; }
  .kopf-telefon { display: inline-flex; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .kopf-innen { grid-template-columns: auto auto; }
  .hauptnav { grid-row: 2; grid-column: 1 / -1; }
  .hauptnav ul { justify-content: flex-start; }
}

/* ---------- Knöpfe und die Herzlinie ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1.75rem; }

.knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 3.5rem; padding: 0.8rem 1.4rem;
  font-family: var(--schrift); font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
  text-decoration: none; border-radius: 2px; border: 1.5px solid var(--petrol);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.12s ease-out;
}
.knopf-zweit { background: transparent; color: var(--petrol); }
.knopf-zweit:hover { background: var(--papier); color: var(--petrol-tief); border-color: var(--akzent); }

.knopf-primaer {
  background: var(--petrol); color: var(--hell-text); border-color: var(--petrol);
  justify-content: flex-start; text-align: left;
  min-height: 4.25rem; padding: 0.85rem 1.6rem 1.15rem 1.3rem; overflow: hidden;
}
.knopf-primaer:hover { background: var(--petrol-tief); border-color: var(--petrol-tief); color: var(--hell-text); }
.knopf-primaer .icon { width: 1.5rem; height: 1.5rem; }
.knopf-text { display: flex; flex-direction: column; }
.knopf-haupt { font-size: 1.125rem; }
.knopf-neben { font-weight: 600; font-size: 0.95rem; opacity: 0.88; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; margin-top: 0.15rem; }

/* Herzlinie: einmal beim Zeigen oder Fokussieren, danach still */
.puls { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 0.3rem; height: 0.85rem; width: auto; overflow: visible; pointer-events: none; opacity: 0; }
.puls path {
  fill: none; stroke: var(--akzent-hell); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Die Linie wird einmal von links nach rechts gezeichnet und blendet dann aus */
@keyframes puls-einmal {
  0%   { clip-path: inset(-50% 100% -50% 0); opacity: 1; }
  62%  { clip-path: inset(-50% 0 -50% 0); opacity: 1; }
  100% { clip-path: inset(-50% 0 -50% 0); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .knopf-primaer:hover .puls,
  .knopf-primaer:focus-visible .puls { animation: puls-einmal 0.95s var(--weich) 1 both; }
}

/* Touch: sichtbare Rückmeldung beim Antippen */
@media (hover: none) {
  .knopf:active, .hero-wege a:active, .linien a:active { transform: scale(0.98); }
  .knopf-primaer:active { background: var(--petrol-mittel); }
}

/* ---------- Startseite: Hero ---------- */

.hero { position: relative; background: var(--petrol-tief); color: var(--hell-text); isolation: isolate; }
.hero :focus-visible { outline-color: var(--akzent-hell); }
.hero-bild { position: relative; height: clamp(12rem, 31svh, 24rem); overflow: hidden; background: var(--petrol); }
.hero-bild picture, .hero-bild img { display: block; width: 100%; height: 100%; }
.hero-bild img { object-fit: cover; object-position: var(--pos-hoch, 50% 50%); }
.hero-bild::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--petrol-tief) 0%, rgb(11 58 64 / 0.72) 22%, rgb(11 58 64 / 0) 52%);
}
.hero-bild-leer {
  background:
    radial-gradient(120% 90% at 78% 30%, var(--petrol-mittel) 0%, rgb(23 99 108 / 0) 60%),
    var(--petrol-tief);
}
.hero-bild-leer .puls { left: 8%; right: 8%; top: 45%; bottom: auto; height: 3rem; }
.hero-bild-leer .puls { opacity: 0.35; }

.hero-inhalt {
  position: relative; width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto;
  padding-block: 0 3.25rem; margin-top: -4.25rem;
}
.hero-titel { color: var(--hell-text); font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6.5rem); line-height: 0.96; letter-spacing: -0.018em; margin-bottom: 0.3em; text-wrap: initial; }
.hero-titel span { display: block; }
.hero-unter { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); font-weight: 700; color: var(--akzent-hell); margin-bottom: 0.9rem; }
.hero-info { color: var(--hell-text-2); max-width: 34ch; }

/* Auf dem Handy übernimmt der feste Anrufknopf unten diese Aufgabe: nur ein Anrufknopf */
@media (max-width: 47.99rem) { .knopf-hero, .hero-info { display: none; } .hero-wege { margin-top: 1.25rem; } }
.knopf-hero { background: var(--hell-text); color: var(--petrol-tief); border-color: var(--hell-text); margin-top: 0.75rem; }
.knopf-hero:hover { background: #fff; color: var(--petrol-tief); border-color: #fff; }
.knopf-hero .icon { color: var(--akzent-tief); }
.knopf-hero .puls path { stroke: var(--akzent); }

.hero-wege { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; max-width: 34rem; }
.hero-wege li { border-top: 1px solid rgb(246 241 231 / 0.2); }
.hero-wege li:last-child { border-bottom: 1px solid rgb(246 241 231 / 0.2); }
.hero-wege a {
  display: flex; align-items: center; gap: 0.9rem; min-height: 3.75rem; padding-block: 0.65rem;
  color: var(--hell-text); text-decoration: none; transition: transform 0.12s ease-out;
}
.hero-wege .icon { color: var(--akzent-hell); width: 1.4rem; height: 1.4rem; }
.weg-text { display: flex; flex-direction: column; line-height: 1.3; }
.weg-titel { font-weight: 700; }
.weg-detail { color: var(--hell-text-2); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.hero-wege a:hover .weg-titel { text-decoration: underline; text-decoration-color: var(--akzent-hell); text-underline-offset: 0.2em; }

@media (min-width: 30rem) {
  .hero-wege { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .hero-wege li:last-child { border-bottom: 0; }
}

@media (min-width: 60rem) {
  .hero { min-height: clamp(40rem, calc(100svh - 8rem), 54rem); display: flex; align-items: center; }
  .hero-bild { position: absolute; inset: 0 0 0 42%; height: auto; }
  .hero-bild img { object-position: var(--pos-quer, 50% 50%); }
  .hero-bild::after {
    background:
      linear-gradient(90deg, var(--petrol-tief) 0%, rgb(11 58 64 / 0.9) 12%, rgb(11 58 64 / 0.42) 34%, rgb(11 58 64 / 0) 60%),
      linear-gradient(0deg, rgb(11 58 64 / 0.5) 0%, rgb(11 58 64 / 0) 34%);
  }
  .hero-bild-leer { inset: 0 0 0 38%; }
  .hero-inhalt { margin-top: 0; padding-block: clamp(4rem, 9vh, 6.5rem); }
  .hero-inhalt > * { max-width: 40rem; }
}

/* ---------- Bänder und Raster ---------- */

.inhalt-start { display: block; }
.band { padding-block: var(--band); }
.band-hell { background: var(--papier); border-block: 1px solid var(--linie); }
.band-ort { background: var(--ivoire-tief); }
.band-innen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.raster { display: grid; gap: clamp(2.25rem, 5vw, 5rem); align-items: start; }
@media (min-width: 60rem) {
  .raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .raster-gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .raster-klebend { position: sticky; top: 2rem; }
}
.raster-text h2::before, .anfahrt h2::before, .seitenkopf h1::before {
  content: ""; display: block; width: 3rem; height: 2px; background: var(--akzent); margin-bottom: 1.4rem;
}
.einleitung { font-size: 1.15em; color: var(--tinte-2); }
.hinweis-klein { font-size: 0.95em; color: var(--tinte-2); }
.weiter { font-weight: 700; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Sprechzeiten-Tafel ---------- */

.tafel {
  container: tafel / inline-size; position: relative;
  background: var(--papier); border: 1px solid var(--linie);
  box-shadow: 0 1px 0 rgb(11 58 64 / 0.04), 0 28px 50px -34px rgb(11 58 64 / 0.45);
  font-variant-numeric: tabular-nums;
}
.tafel-kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem;
  padding: 1.5rem 1.75rem 1.1rem; border-bottom: 1px solid var(--linie);
}
.tafel-titel { margin: 0; font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.tafel-status { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.95rem; color: var(--petrol); }
.tafel-status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; background: var(--linie); }
.tafel-status.ist-offen::before { background: var(--offen); box-shadow: 0 0 0 3px rgb(47 143 87 / 0.18); }
.tafel-status.ist-zu::before { background: transparent; border: 2px solid var(--tinte-2); }

.tafel-tabelle { width: 100%; border-collapse: collapse; }
.tafel-tabelle th, .tafel-tabelle td { text-align: left; padding: 0.95rem 1.75rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tafel-tabelle tbody tr:last-child th, .tafel-tabelle tbody tr:last-child td { border-bottom: 0; }
.tafel-tabelle thead th {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinte-2);
  padding-block: 0.9rem 0.6rem;
}
.tafel-tabelle tbody th { font-weight: 700; white-space: nowrap; }
.tag-kurz { display: none; }
.heute-marke {
  display: inline-block; margin-left: 0.65rem; padding: 0.12rem 0.55rem; border-radius: 999px;
  background: var(--petrol); color: var(--hell-text); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 0.15em;
}
.zeit { font-weight: 600; font-size: 1.12em; white-space: nowrap; }
.bis { padding-inline: 0.18em; color: var(--tinte-2); }
.zu { color: var(--tinte-2); }
.ist-heute th, .ist-heute td { background: var(--petrol-hauch); }
.tafel-fuss { margin: 0; padding: 1rem 1.75rem 1.2rem; color: var(--tinte-2); font-size: 0.95em; border-top: 1px solid var(--linie); background: var(--ivoire); }

/* Herzlinie unter dem heutigen Tag, einmal nach dem Sprung zu den Sprechzeiten */
.puls-zeile { position: absolute; left: 0; right: 0; height: 1.25rem; width: 100%; pointer-events: none; overflow: visible; opacity: 0; z-index: 1; }
.puls-zeile path { fill: none; stroke: var(--akzent); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.puls-zeile.spielt { animation: puls-einmal 1.1s var(--weich) 1 both; }

@container tafel (max-width: 38rem) {
  .tafel-kopf, .tafel-fuss { padding-inline: 1rem; }
  .tafel-tabelle th, .tafel-tabelle td { padding-inline: 0.6rem; }
  .tafel-tabelle th:first-child, .tafel-tabelle td:first-child { padding-left: 1rem; }
  .zeit { font-size: 1.05em; }
  .bis { padding-inline: 0.05em; }
  .heute-marke { display: block; width: fit-content; margin: 0.3rem 0 0; }
}
@container tafel (max-width: 24rem) {
  .tag-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tag-kurz { display: inline; }
  .tafel-tabelle th, .tafel-tabelle td { padding-inline: 0.45rem; }
  .tafel-tabelle th:first-child, .tafel-tabelle td:first-child { padding-left: 0.85rem; }
}
@container tafel (max-width: 19.5rem) {
  .zeit, .zu { font-size: 0.9em; }
  .tafel-tabelle thead th { font-size: 0.66rem; letter-spacing: 0.05em; }
  .heute-marke { font-size: 0.6rem; padding: 0.08rem 0.35rem; letter-spacing: 0.06em; }
  .tafel-tabelle th, .tafel-tabelle td { padding-inline: 0.35rem; }
  .tafel-tabelle th:first-child, .tafel-tabelle td:first-child { padding-left: 0.6rem; }
}

/* ---------- Leistungs-Linien ---------- */

.linien { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.linien li { border-bottom: 1px solid var(--linie); }
.linien a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; align-items: center;
  padding: 1.35rem 0.25rem; text-decoration: none; color: var(--tinte); transition: transform 0.12s ease-out;
}
.linie-titel { font-family: var(--titel); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); line-height: 1.1; color: var(--petrol-tief); }
.linie-text { grid-column: 1; color: var(--tinte-2); }
.linie-pfeil { grid-column: 2; grid-row: 1 / span 2; color: var(--akzent); transition: transform 0.25s var(--weich); }
.linien a:hover .linie-titel { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--akzent); }
.linien a:hover .linie-pfeil { transform: translateX(0.35rem); }

/* ---------- Anfahrt und Notfall ---------- */

.anfahrt h2 { margin-bottom: 0.6em; }
.anfahrt-adresse { font-style: normal; display: flex; flex-direction: column; color: var(--tinte-2); font-size: 1.1em; }
.anfahrt-strasse { font-family: var(--titel); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1.1; color: var(--petrol-tief); }

.notfall { background: var(--papier); border: 1px solid var(--linie); border-top: 3px solid var(--signal); padding: 1.5rem 1.75rem 0.75rem; margin-top: var(--band); }
.raster .notfall, .zweispaltig .notfall { margin-top: 0; }
.notfall-titel { display: flex; align-items: center; gap: 0.6rem; color: var(--signal); font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.notfall-titel .icon { width: 1.75rem; height: 1.75rem; }
.notfall-liste { margin: 0; }
.notfall-liste div { padding: 0.85rem 0; border-top: 1px solid var(--linie); }
.notfall-liste dt { font-weight: 700; }
.notfall-liste dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.8rem; color: var(--tinte-2); }
.notfall-liste a {
  font-weight: 700; font-size: 2rem; color: var(--signal); text-decoration: none;
  font-variant-numeric: tabular-nums; min-height: 2.75rem; display: inline-flex; align-items: center;
}
.notfall-liste a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Unterseiten ---------- */

.seitenkopf { background: var(--petrol-tief); color: var(--hell-text); }
.seitenkopf-innen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.seitenkopf h1 { color: var(--hell-text); margin-bottom: 0.3em; }
.seitenkopf .einleitung { color: var(--hell-text-2); max-width: 46ch; margin: 0; }

/* Unterseiten: Petrol-Band über volle Breite, darunter der Inhalt in der Satzbreite */
.inhalt { display: block; padding-bottom: var(--band); }
.inhalt > * { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.inhalt > .seitenkopf { width: 100%; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.inhalt-schmal > :not(.seitenkopf) > * { max-width: 50rem; }

.zweispaltig { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .zweispaltig { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stapel { display: grid; gap: 2rem; }
.zweispaltig > *, .stapel > *, .raster > * { min-width: 0; }
@media (max-width: 29.99rem) {
  .kasten, .notfall { padding-inline: 1.15rem; }
  .anfahrt-strasse { font-size: 1.875rem; }
}

.kasten { background: var(--papier); border: 1px solid var(--linie); padding: 1.6rem 1.75rem 0.9rem; }
.kasten h2 { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); display: flex; align-items: center; gap: 0.55rem; }
.kasten h2 .icon { color: var(--akzent-tief); width: 1.5rem; height: 1.5rem; }
.kasten .anfahrt h2::before { display: none; }
.kontaktliste { margin: 0 0 1rem; }
.kontaktliste div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--linie); }
.kontaktliste dt { font-weight: 700; }
.kontaktliste dd { margin: 0; overflow-wrap: anywhere; }

.abschluss { margin-top: var(--band); padding-top: 2rem; border-top: 1px solid var(--linie); }
.block { margin-top: var(--band); }
.gross-telefon a { font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); text-decoration: none; font-variant-numeric: tabular-nums; }

/* Termin: auf dem Handy übernimmt der feste Knopf unten den Anruf, hier steht die Nummer */
.nur-mobil { display: none; }
@media (max-width: 47.99rem) {
  .knopf-gross { display: none; }
  .nur-mobil { display: block; }
}
.gross-telefon a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--petrol-tief); }
.gross-telefon .icon { color: var(--akzent-tief); }
/* Termin */
.termin-anruf h2 { margin-bottom: 0.4em; }
.knopf-gross { min-height: 4.75rem; padding-inline: 1.5rem 2rem; margin-top: 0.5rem; }
.knopf-gross .knopf-haupt { font-size: 1.25rem; }
.knopf-gross .knopf-neben { font-size: 1.05rem; }
.termin-regeln { margin: 0; border-top: 1px solid var(--linie); }
.termin-regeln div { padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.termin-regeln dt { font-family: var(--titel); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--petrol-tief); margin-bottom: 0.25rem; }
.termin-regeln dd { margin: 0; color: var(--tinte-2); max-width: 60ch; }

/* Leistungen */
.sprungmarken { margin-bottom: var(--band); }
.sprungmarken ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sprungmarken a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 1rem;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--papier);
  text-decoration: none; font-weight: 700; font-size: 0.95em; color: var(--petrol);
}
.sprungmarken a:hover { border-color: var(--akzent); }
.gruppe { margin-bottom: var(--band); }
.gruppe-titel { padding-bottom: 0.45em; margin-bottom: 0; border-bottom: 1px solid var(--tinte); }
.leistung { display: grid; gap: 0.25rem 3rem; padding: 2rem 0 1rem; border-bottom: 1px solid var(--linie); scroll-margin-top: 1rem; }
.leistung h3 { color: var(--petrol-tief); }
@media (min-width: 60rem) { .leistung { grid-template-columns: 20rem minmax(0, 1fr); } }
.fuer-wen { background: var(--petrol-hauch); padding: 0.65rem 1rem; display: inline-block; }
.liste { padding-left: 1.2em; margin: 0 0 1em; }
.liste li { margin-bottom: 0.35em; }
.liste li::marker { color: var(--akzent); }
.unterpunkte { margin: 0 0 1em; }
.unterpunkte div { padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.unterpunkte div:first-child { border-top: 0; padding-top: 0; }
.unterpunkte dt { font-weight: 700; }
.unterpunkte dd { margin: 0; }
.preise { border-collapse: collapse; min-width: min(100%, 30rem); background: var(--papier); font-variant-numeric: tabular-nums; border: 1px solid var(--linie); }
.preise th, .preise td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--linie); }
.preise thead th { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinte-2); }
.preise tbody th { font-weight: 400; }
.preise td { text-align: right; font-weight: 700; white-space: nowrap; }

/* Aktuelles, Team, Rechtstexte */
.hinweis { background: var(--papier); border: 1px solid var(--linie); border-top: 3px solid var(--akzent); padding: 1.5rem 1.75rem 0.75rem; margin-bottom: 1.5rem; }
.hinweis-titel { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.hinweis-datum { font-size: 0.9em; color: var(--tinte-2); }
.leer { background: var(--papier); border: 1px solid var(--linie); padding: 1.5rem 1.75rem; }
.personen { list-style: none; margin: 0; padding: 0; }
.personen li { display: grid; gap: 0.15rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 40rem) { .personen li { grid-template-columns: 18rem 1fr; align-items: baseline; } }
.person-name { font-family: var(--titel); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--petrol-tief); }
.person-rolle { color: var(--tinte-2); }
.rechtstext h2 { font-size: clamp(1.625rem, 1.4rem + 0.7vw, 2rem); margin-top: 1.8em; }
.rechtstext h2:first-child { margin-top: 0; }
.entwurf { background: #f3e2b8; color: #3f2d00; border: 1px solid #c79a2e; padding: 0.9rem 1.1rem; }

/* ---------- Fuß ---------- */

.fuss { background: var(--petrol-tief); color: var(--hell-text-2); }
.fuss-innen {
  width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; padding-block: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.fuss p { margin: 0; }
.fuss-name { font-family: var(--titel); font-weight: 600; font-size: 1.875rem; line-height: 1.1; color: var(--hell-text); margin-bottom: 0.4rem !important; }
.fuss-titel { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--akzent-hell); margin-bottom: 0.5rem !important; }
.fuss a { color: var(--hell-text); }
.fuss a:hover { color: #fff; text-decoration-color: var(--akzent-hell); }
.fuss :focus-visible { outline-color: var(--akzent-hell); }
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links a { display: inline-flex; min-height: 2.5rem; align-items: center; }

/* ---------- Anrufknopf fest unten (nur Handy) ---------- */

.aktionsleiste {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--petrol-tief); border-top: 1px solid rgb(246 241 231 / 0.15);
}
.aktionsleiste .knopf-primaer { width: 100%; min-height: 4rem; background: var(--hell-text); color: var(--petrol-tief); border-color: var(--hell-text); }
.aktionsleiste .knopf-primaer:hover { background: #fff; color: var(--petrol-tief); border-color: #fff; }
.aktionsleiste .knopf-primaer:active { background: var(--ivoire-tief); }
.aktionsleiste .knopf-primaer .icon { color: var(--akzent-tief); }
.aktionsleiste .knopf-primaer .puls path { stroke: var(--akzent); }
.aktionsleiste :focus-visible { outline-color: var(--akzent-hell); }
@media (min-width: 48rem) {
  .aktionsleiste { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Zeiger-Kontur (nur Maus, nur über Hauptaktionen) ---------- */

.zeiger {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%;
  border: 1.5px solid var(--akzent);
  opacity: 0; scale: 0.55;
  transition: opacity 0.18s ease-out, scale 0.28s var(--weich);
}
.zeiger.aktiv { opacity: 1; scale: 1; }
.zeiger svg {
  position: absolute; right: -0.9rem; bottom: -0.9rem; width: 1.6rem; height: 1.6rem; padding: 0.3rem;
  border-radius: 50%; background: var(--akzent); color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .zeiger { transition: none; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .aktionsleiste, .hauptnav, .sprunglink, .vorschau-hinweis, .zeiger, .hero-bild { display: none !important; }
  body { padding: 0; background: #fff; }
  .hero, .seitenkopf, .fuss { background: none; color: var(--tinte); }
  .hero-titel, .seitenkopf h1 { color: var(--tinte); }
}

/* Erzeugt von build.mjs aus content/praxis.json → heroBild */
.hero-bild { --pos-quer: 40% 55%; --pos-hoch: 50% 60%; }
