/* Praxis Dr. Faske – Stylesheet.
   Optik nach dem Vorbild der früheren Website (WordPress-Theme „Regina“): Dunkelblau #193354,
   Lato (Text) + Montserrat (Überschriften), weißer Kopf, dunkelgraue Fußzeile.
   Eigenständig neu geschrieben, keine externen Ressourcen. */

@font-face { font-family: "Lato"; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --blau: #193354;        /* Hauptfarbe wie früher */
  --blau-hell: #4870a2;
  --text: #333333;
  --grau: #6b6b6b;        /* früher #808080, für Kontrast AA leicht nachgedunkelt */
  --flaeche: #f2f2f2;
  --linie: #eaeaea;
  --fuss: #2d3435;
  --fuss-text: #a9afb0;   /* früher #808080 auf Dunkelgrau, aufgehellt für AA */
  --unterfuss: #404546;
  --unterfuss-text: #bcc1c2;
  --gelb-grund: #fff3c4;
  --gelb-rand: #b8890a;
  --gelb-text: #3f3100;
  --text-schrift: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --titel-schrift: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--text-schrift); font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); transition: color .3s linear, background-color .3s linear; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
::selection { background: var(--blau); color: #fff; }

h1, h2, h3, h4 { font-family: var(--titel-schrift); font-weight: 700; color: var(--text); line-height: 1.1; margin: 20px 0 10px; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 10px; }
strong { font-weight: 700; }
p a { font-weight: 700; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klein { font-size: 14px; color: var(--grau); }
.mitte { text-align: center; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--blau); color: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; color: #fff; }
.skip:hover { color: #fff; }

/* Knöpfe (Pillenform wie früher) */
.knopf {
  display: inline-block; padding: 12px 35px; border-radius: 50px; background: var(--blau); color: #fff;
  font-size: 14px; text-transform: uppercase; text-decoration: none; font-weight: 400; line-height: 1.5;
}
.knopf:hover { background: var(--text); color: #fff; }
.knopf.rahmen { background: none; border: 2px solid var(--text); color: var(--text); }
.knopf.rahmen:hover { background: var(--text); color: #fff; }
.knopf.hell { background: none; border: 2px solid #fff; color: #fff; }

/* ---------- Kopfleiste (Telefon, E-Mail) ---------- */
.kopfleiste { background: #fff; border-bottom: 1px solid var(--linie); line-height: 60px; }
.kopfleiste .container { display: flex; justify-content: flex-end; gap: 0 25px; }
.kopfleiste p { margin: 0; }
.kopfleiste a { color: var(--text); text-decoration: none; font-weight: 400; }
.kopfleiste a:hover { color: var(--blau); text-decoration: underline; }
.sym { display: inline-block; vertical-align: -1px; margin-right: 8px; color: var(--text); }

/* ---------- Kopf: Logo links, Menü rechts ---------- */
.kopf { background: #fff; position: relative; z-index: 20; }
.kopf-in { display: flex; align-items: center; justify-content: space-between; min-height: 130px; }
.logo { display: block; flex: none; width: 262px; }
.logo img { width: 262px; height: auto; transition: opacity .3s linear; }
.logo:hover img { opacity: .6; }
.menu-knopf { display: none; }

.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav > ul { display: flex; align-items: center; }
.hauptnav li { position: relative; margin: 0 14px 0 0; padding: 15px 0; border-bottom: 1px solid transparent; transition: background-color .4s ease-in-out; }
.hauptnav > ul > li:last-child { margin-right: 0; }
.hauptnav li:hover { background: #f6f6f6; border-bottom-color: var(--blau); }
.hauptnav a {
  display: block; padding: 0 10px; font-size: 14px; line-height: 1.5; color: var(--text);
  text-transform: uppercase; text-decoration: none;
}
.hauptnav a:hover { color: var(--blau); }
.hauptnav li:has(> a[aria-current="page"]), .hauptnav li:has(> a.aktiv) { border-bottom-color: var(--blau); }
.hat-unter > a::after { content: "+"; display: inline-block; margin-left: 4px; color: #a0a0a0; font-size: 14px; }

/* Untermenü (nur CSS, auch per Tastatur) */
.untermenue {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}
.hauptnav li:hover > .untermenue, .hauptnav li:focus-within > .untermenue { display: block; }
.untermenue li { width: 220px; margin: 0; padding: 8px 5px; border-bottom: 1px solid #eee; }
.untermenue li:last-child { border-bottom: 0; }
.untermenue a { text-transform: none; font-size: 14px; }

/* ---------- Startseite: großes Bild + blauer Begrüßungskasten ---------- */
.buehne img { width: 100%; height: auto; }
.gruss {
  position: relative; width: 750px; max-width: 100%; margin: -175px auto 100px; padding: 40px;
  background: var(--blau); color: #fff; text-align: center;
}
.gruss h1, .gruss h2 { color: #fff; margin-top: 0; }
.gruss h1 { font-size: 40px; margin-bottom: 20px; }
.gruss a, .gruss a:hover { color: #fff; }
.gruss .notiz { text-align: left; }

/* Abschnitte mit zentriertem Titel und blauem Strich */
.abschnitt { padding: 0 0 100px; }
.abschnitt-weiss { padding-top: 0; }
.abschnitt-info { text-align: center; margin: 0 0 50px; }
.abschnitt-info h2::after, .inhalt h2::after {
  content: ""; display: block; width: 65px; height: 2px; background: var(--blau); margin: 20px auto 15px;
}
.inhalt h2::after { margin-left: 0; margin-right: 0; }
.abschnitt-info h2 { margin: 0; }
.abschnitt-info p { max-width: 1140px; margin: 0 auto; }

/* Leistungs-Kacheln: graue Kästen mit rundem Symbol oben */
.kacheln { list-style: none; margin: 0; padding: 65px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 65px 30px; }
.kachel {
  position: relative; background: var(--flaeche); text-align: center; padding: 0 10px 40px;
  display: flex; flex-direction: column; align-items: center;
}
.kachel-icon {
  display: flex; align-items: center; justify-content: center; width: 129px; height: 129px; margin: -64.5px 0 30px;
  background: #fff; color: var(--blau); border: 2px solid var(--blau); border-radius: 50%;
  transition: background-color .3s linear, color .3s linear;
}
.kachel:hover .kachel-icon { background: var(--blau); color: #fff; }
.ikon { width: 54px; height: 54px; }
.kachel-titel { font-size: 18px; text-transform: uppercase; margin: 0 0 10px; line-height: 1.4; }
.inhalt .kachel-titel { font-size: 18px; margin-top: 0; }
.inhalt .kachel-titel::after { display: none; }
.kachel p { margin: 0 0 30px; flex: 1 0 auto; }
.mehr { text-transform: uppercase; font-size: 14px; text-decoration: none; }
.mehr:hover { text-decoration: underline; }
.kacheln + .mitte { margin-top: 50px; }

/* Team-Karten */
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.mitglied { width: 262px; text-align: center; }
.mitglied a { position: relative; display: block; text-decoration: none; color: var(--text); }
.mitglied img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.mitglied-inner { display: block; padding: 40px 0; }
.mitglied-name { display: block; font-family: var(--titel-schrift); font-weight: 700; font-size: 16px; }
.mitglied-rolle { display: block; font-size: 12px; color: var(--grau); line-height: 1.6; margin-top: 4px; }
.mitglied-hover {
  position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(25, 51, 84, .88); opacity: 0; transition: opacity .5s linear;
}
.mitglied a:hover .mitglied-hover, .mitglied a:focus-visible .mitglied-hover { opacity: 1; }

/* Team-Seite: Raster wie früher (4 Karten je Reihe, Hover mit Anriss + „Mehr lesen“) */
.inhalt:has(.team-raster), .inhalt:has(.medic) { max-width: none; }
.inhalt .team-raster, .abschnitt-team .team-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.inhalt .team-raster .mitglied, .abschnitt-team .team-raster .mitglied { margin: 0; }
.team-raster .mitglied { width: auto; background: #fff; }
.team-raster .mitglied a { height: 100%; }
.mitglied .silhouette { display: block; width: 100%; aspect-ratio: 1; }
.team-raster .mitglied-hover { inset: 0; aspect-ratio: auto; flex-direction: column; justify-content: space-between; align-items: stretch; background: var(--blau); color: #fff; }
.mitglied-anriss { display: block; padding: 30px 30px 10px; font-size: 15px; line-height: 1.6; text-align: center; }
.mitglied-weiter { display: block; margin-top: auto; padding: 32px 20px; background: var(--blau-hell); }
.mitglied-mehr-text { display: none; margin-top: 10px; font-size: 14px; text-transform: uppercase; color: var(--blau); }
@media (hover: none) and (pointer: coarse) { .team-raster .mitglied-mehr-text { display: block; } }

/* Team-Detailseite (früher „medic“): Foto + Kurzdaten links, Text rechts */
.medic { display: grid; grid-template-columns: 5fr 7fr; gap: 30px; align-items: start; }
.medic-meta { background: #fff; text-align: center; padding: 0 0 30px; }
.medic-meta img, .medic-meta .silhouette { display: block; width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 40px; }
.medic-inner { padding: 0 40px; }
.medic-name { font-family: var(--titel-schrift); font-weight: 700; font-size: 18px; margin: 0; }
.medic-rolle { font-size: 14px; color: var(--grau); margin: 4px 0 25px; padding-bottom: 25px; border-bottom: 1px solid var(--linie); }
.medic-meta .klein { margin-top: 10px; }
.inhalt .medic-titel { margin: 0; }
.inhalt .medic-titel::after { display: none; }
.medic-position { color: var(--blau); margin: 8px 0 25px; }
.medic-text > ul { padding-left: 25px; }
.medic-zurueck { margin-top: 40px; }

/* Startseite: „Unsere Praxis“ – Slider wie früher (boxed, 800 px, ein Foto, Pfeile + Punkte).
   Ohne JavaScript: wischbare Leiste mit scroll-snap. Steuerung: assets/site.js */
.slider { max-width: 800px; margin: 0 auto; }
.slider-rahmen { position: relative; }
.slider-leiste {
  list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--flaeche);
}
.slider-leiste::-webkit-scrollbar { display: none; }
.slider-leiste:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.slider-folie { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slider-folie a { display: block; }
.slider-folie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .3s linear; }
.slider-folie a:hover img { opacity: .9; }
.slider-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(25, 51, 84, .85); color: #fff; transition: background-color .3s linear;
}
.slider-pfeil[hidden] { display: none; }
.slider-pfeil:hover { background: var(--blau); }
.slider-pfeil:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--blau); }
.slider-zurueck { left: 15px; }
.slider-weiter { right: 15px; }
.slider-steuerung { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; min-height: 28px; }
.slider-steuerung[hidden] { display: none; }
.slider-punkte { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.slider-punkt {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.slider-punkt::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--blau); background: transparent; transition: background-color .3s linear;
}
.slider-punkt[aria-current="true"]::before, .slider-punkt:hover::before { background: var(--blau); }
.slider-pause {
  width: 28px; height: 28px; padding: 0; border: 2px solid var(--blau); border-radius: 50%;
  background: #fff; color: var(--blau); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slider-pause[hidden] { display: none; }
.slider-pause:hover { background: var(--blau); color: #fff; }
.slider-pause .ikon-play, .slider-pause.angehalten .ikon-pause { display: none; }
.slider-pause.angehalten .ikon-play { display: inline; }

/* ---------- Unterseiten: Titel-Band + Brotkrumen ---------- */
.seitenkopf {
  padding: 70px 0; text-align: center; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url("img/praxisteam-1600.jpg") center 30% / cover no-repeat;
}
@media (min-width: 1200px) { .seitenkopf { background-attachment: scroll, fixed; } }
.seitenkopf h1 { font-family: var(--text-schrift); font-size: 30px; line-height: 1.6; color: #fff; margin: 0 0 5px; }
.seitenkopf p { margin: 0; color: #fff; }
/* Titelband mit eigenem Foto (Frontmatter „kopfbild:“, z. B. Personenfoto auf Teamseiten wie früher).
   Das Bild selbst setzt build.mjs als Klasse .kb-<name>; hier nur Ausschnitt und Lesbarkeit. */
.seitenkopf-foto { background-position: center 30%; background-attachment: scroll; }
.seitenkopf-foto h1, .seitenkopf-foto p { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.brot { font-size: 14px; line-height: 50px; }
.brot ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.brot li + li::before { content: "›"; padding: 0 6px 0 5px; }
.brot a { color: var(--text); text-decoration: none; }
.brot a:hover { color: var(--blau); text-decoration: underline; }

.inhalt { max-width: 750px; padding: 40px 0 100px; }
.inhalt > h1 { margin-top: 0; }
.inhalt h2 { font-size: 30px; margin-top: 40px; }
.inhalt h3 { font-size: 20px; margin-top: 30px; }
.inhalt ul, .inhalt ol { margin: 20px 0 30px; padding: 0 0 0 50px; }
.inhalt ul { list-style-type: square; }
.inhalt li { margin-bottom: 5px; }

.entwurf { border: 2px solid var(--gelb-rand); background: var(--gelb-grund); color: var(--gelb-text); padding: 12px 16px; }

/* Bilder im Text */
.bild { margin: 30px 0; }
.bild-portrait { max-width: 300px; }
@media (min-width: 768px) {
  .bild-portrait { float: right; width: 263px; margin: 6px 0 20px 30px; }
}
.inhalt .bild-wide { clear: both; }

/* Hinweise (Urlaub, Schließtage) */
.hinweis { background: var(--flaeche); border-top: 3px solid var(--blau); padding: 25px 30px; margin: 0 0 20px; }
.abschnitt-hinweise .hinweis { max-width: 750px; margin: 0 auto 20px; text-align: center; background: none; border-top: 0; padding: 0; }
.hinweis-titel { margin: 0 0 10px; font-size: 18px; }
.hinweis-titel::after { display: none !important; }
.hinweis p:last-child { margin-bottom: 0; }

/* Sprechzeiten-Tabelle */
.zeiten { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zeiten thead th { font-weight: 400; font-size: 14px; color: var(--grau); padding-top: 0; }
.zeiten tbody th { font-weight: 400; white-space: nowrap; }
.zeiten td { font-weight: 700; white-space: nowrap; }
.zeiten tbody tr:last-child th, .zeiten tbody tr:last-child td { border-bottom: 0; }
.zeiten .zu { color: var(--grau); font-weight: 400; }
.zeiten tr.heute th, .zeiten tr.heute td { background: var(--flaeche); }
.zeiten tr.heute th::after { content: " (heute)"; font-size: 14px; color: var(--grau); }
.zeiten-block { max-width: 560px; margin: 0 0 20px; }
.zeiten-tel { margin-top: 20px; }
.tel-gross { font-size: 22px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tel-gross:hover { text-decoration: underline; }

/* Notfallnummern */
.notfall ul { list-style: none; margin: 0 0 15px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.notfall li { margin: 0; }
.notfall a { display: flex; flex-direction: column; height: 100%; background: var(--flaeche); padding: 15px 18px; text-decoration: none; color: var(--text); font-weight: 400; }
.notfall a:hover { background: #e8e8e8; }
.notfall-nr { font-family: var(--titel-schrift); font-size: 26px; font-weight: 700; color: var(--blau); line-height: 1.3; }
.notfall-label { font-size: 14px; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 10px 0 30px; }
.kontakt-karte { background: var(--flaeche); padding: 25px 30px; }
.kontakt-karte h2 { font-size: 18px; text-transform: uppercase; margin: 0 0 15px; }
.kontakt-karte h2::after { display: none; }
.kontakt-karte p:last-child { margin-bottom: 0; }
.kontakt-liste { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 15px; align-items: baseline; }
.kontakt-liste dt { color: var(--grau); }
.kontakt-liste dd { margin: 0; overflow-wrap: anywhere; }

/* Leistungs-Unterseiten: lange Listen zweispaltig */
@media (min-width: 992px) {
  .inhalt > ul:has(> li:nth-child(12)) { columns: 2; column-gap: 40px; }
  .inhalt > ul:has(> li:nth-child(12)) li { break-inside: avoid; }
}
.inhalt .kacheln { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.inhalt:has(.kacheln) { max-width: none; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--fuss); color: var(--fuss-text); font-size: 14px; line-height: 30px; padding: 30px 0 0; }
.fuss-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.fuss-spalte { padding: 30px 0 0; margin: 0 0 50px; }
.fuss-titel { font-family: var(--text-schrift); font-size: 14px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 15px; line-height: 1.5; }
.fuss p { margin: 0 0 30px; }
.fuss p:last-child { margin-bottom: 0; }
.fuss a { color: #fff; font-weight: 400; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss strong { font-weight: 700; }
/* „nach oben“-Knopf wie früher (Regina „back-to-top“): runder Rahmen rechts in der Fußzeile */
.fuss-in { position: relative; }
.nach-oben { position: absolute; top: 30px; right: 15px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; color: #fff; transition: opacity .3s linear; }
.fuss a.nach-oben:hover { opacity: .6; text-decoration: none; }
.nach-oben:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.unterfuss { background: var(--unterfuss); color: var(--unterfuss-text); font-size: 13px; padding: 21px 0; }
.unterfuss .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 30px; }
.unterfuss p { margin: 0; }
.unterfuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 30px; text-transform: uppercase; }
.unterfuss a { color: var(--unterfuss-text); text-decoration: none; }
.unterfuss a:hover { color: #fff; text-decoration: underline; }

/* ---------- Vorschau ---------- */
.vorschau-band { background: var(--gelb-grund); color: var(--gelb-text); border-bottom: 2px solid var(--gelb-rand); padding: 6px 15px; font-size: 14px; text-align: center; }
.vorschau-band a { color: var(--gelb-text); font-weight: 700; }
.notiz { background: var(--gelb-grund); border: 1px dashed var(--gelb-rand); color: var(--gelb-text); padding: 10px 14px; font-size: 14px; margin: 0 0 20px; clear: both; }
.offene-punkte li { margin-bottom: 15px; }

/* ---------- Tablet / Mobil (wie früher: Menü ab < 1200 px hinter dem Menü-Knopf) ---------- */
@media (max-width: 1199px) {
  .kopf-in { flex-wrap: wrap; min-height: 0; padding-top: 15px; padding-bottom: 15px; }
  .hauptnav { flex: 1 1 100%; }
  .hauptnav > ul { display: block; padding-top: 10px; }
  .hauptnav li { margin: 5px 0; padding: 0 15px; border-bottom: 1px solid var(--linie); line-height: 50px; }
  .hauptnav li:hover { background: none; border-bottom-color: var(--linie); }
  .hauptnav > ul > li:last-child { margin-bottom: 5px; }
  .hauptnav a { font-weight: 700; line-height: 50px; padding: 0; }
  .hat-unter > a::after { display: none; }
  .untermenue { display: block; position: static; box-shadow: none; }
  .untermenue li { width: auto; margin-left: 20px; padding: 0; border-bottom: 0; }
  .untermenue a { font-weight: 400; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199px) and (scripting: enabled) {
  .menu-knopf {
    display: block; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #6f6f6f;
  }
  .menu-knopf:hover { color: var(--blau); }
  .hauptnav { display: none; }
  .hauptnav.offen { display: block; }
}
@media (max-width: 991px) {
  .inhalt .team-raster, .abschnitt-team .team-raster { grid-template-columns: repeat(2, 1fr); }
  .medic { grid-template-columns: 1fr 1fr; }
  .medic-inner { padding: 0 20px; }
  .gruss { width: 80%; }
  .inhalt .kacheln { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .medic { grid-template-columns: 1fr; }
  .medic-meta { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
  .inhalt .team-raster, .abschnitt-team .team-raster { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 30px; }
  .slider-pfeil { width: 38px; height: 38px; }
  .slider-zurueck { left: 8px; }
  .slider-weiter { right: 8px; }
  h1 { font-size: 30px; }
  .kopfleiste { line-height: 26px; padding: 10px 0; }
  .kopfleiste .container { flex-direction: column; align-items: center; gap: 8px; }
  .gruss { width: auto; margin: 0 0 70px; padding: 30px 20px; }
  .logo, .logo img { width: 300px; max-width: 78vw; }
  .gruss h1 { font-size: 25px; }
  .kacheln, .inhalt .kacheln { grid-template-columns: 1fr; gap: 100px; padding-top: 65px; }
  .abschnitt { padding-bottom: 70px; }
  .notfall ul, .kontakt-raster, .fuss-in { grid-template-columns: 1fr; }
  .fuss-spalte { margin-bottom: 20px; }
  .inhalt ul, .inhalt ol { padding-left: 25px; }
  .seitenkopf { padding: 50px 0; }
  .zeiten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zeiten tr { display: grid; grid-template-columns: 8.5rem 1fr; border-bottom: 1px solid var(--linie); }
  .zeiten tbody tr:last-child { border-bottom: 0; }
  .zeiten th, .zeiten td { border: 0; padding: 3px 6px; }
  .zeiten tbody th { grid-row: 1 / span 2; padding-top: 9px; }
  .zeiten td { grid-column: 2; }
  .zeiten td:first-of-type { padding-top: 9px; }
  .zeiten td:last-child { padding-bottom: 9px; }
  .zeiten td.leer { display: none; }
  .zeiten tr:has(td.leer) td:first-of-type { padding-bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .slider-leiste { scroll-behavior: auto; } .seitenkopf { background-attachment: scroll !important; } }

@media print {
  .kopfleiste, .hauptnav, .menu-knopf, .skip, .vorschau-band, .notiz, .bild, .buehne, .seitenkopf { display: none; }
  .gruss { margin: 0; background: none; color: #000; }
  .gruss h1 { color: #000; }
  .fuss, .unterfuss { background: none; color: #000; }
  .fuss a, .fuss-titel, .unterfuss a { color: #000; }
}

/* Kopfbilder – von build.mjs aus dem Frontmatter „kopfbild:“ erzeugt */
.kb-team-dr-robert-faske { background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("img/team-dr-robert-faske-512.jpg"); }
.kb-team-sabrina-lang { background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("img/team-sabrina-lang-512.jpg"); }
.kb-team-kerstin-runzheimer { background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("img/team-kerstin-runzheimer-512.jpg"); }
.kb-team-kadjana-momberger { background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("img/team-kadjana-momberger-512.jpg"); }
