/* ==========================================================================
   Praxis-CMS – Website
   Grundgerüst für alle Layouts. Layout-Dateien (layouts/*.css) gestalten den
   Startbereich und setzen Akzente; Farben kommen aus /theme.css.
   Alle Textfarben erreichen auf ihrem Hintergrund mindestens 4,5:1 (WCAG 2.1 AA).
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-600.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  /* Farben (Akzent und Hintergrund überschreibt /theme.css) */
  --accent: #0b6b66;
  --accent-strong: #095854;
  --accent-soft: #ebf3f2;
  --accent-tint: #d8e8e7;
  --accent-line: #b3d0ce;
  --bg: #ffffff;
  --surface: #fbfdfd;
  --section-tint: #f0f6f5;
  --ink: #13232b;
  --muted: #4b5a62;
  --line: rgba(19, 35, 43, .13);
  --line-strong: rgba(19, 35, 43, .28);
  --on-accent: #ffffff;
  --focus: #b3410e;
  --ok: #1d7a45; --warn: #9a5b00; --off: #6b7a82; --away: #b42318;
  --info-bg: #eaf1fb; --info-line: #2c5aa0;
  --warn-bg: #fff4d9; --warn-line: #8a5a00;
  --urgent-bg: #fdeceb; --urgent-line: #a3231b;
  --success-bg: #e7f5ec; --success-line: #22663a;

  /* Schrift (Option „Schrift“) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter Display", "Inter", system-ui, sans-serif;
  --head-weight: 600;
  --track-xl: -0.032em;
  --track-l: -0.022em;

  /* Ecken (Option „Ecken“) */
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-btn: 10px;

  --wrap: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --sec-pad: clamp(4rem, 9vw, 7.5rem);
  --shadow-float: 0 1px 2px rgba(19, 35, 43, .06), 0 18px 48px -18px rgba(19, 35, 43, .32);
  font-size: 100%;
}

/* Option: Schrift */
.font-klassisch { --font-head: "Lora", Georgia, "Times New Roman", serif; --head-weight: 500; --track-xl: -0.018em; --track-l: -0.01em; }
.font-freundlich { --font-head: "Poppins", "Inter", system-ui, sans-serif; --head-weight: 600; --track-xl: -0.03em; --track-l: -0.018em; }

/* Option: Ecken */
.corners-eckig { --r-xs: 2px; --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-btn: 3px; }
.corners-rund  { --r-xs: 8px; --r-sm: 14px; --r-md: 22px; --r-lg: 34px; --r-btn: 999px; }

/* Hochkontrast (Schalter oben, nur lokal gespeichert) */
html.hc body {
  --ink: #000; --muted: #000; --bg: #fff; --surface: #fff; --section-tint: #fff; --line: #000; --line-strong: #000;
  --accent: #000; --accent-strong: #000; --accent-soft: #fff; --accent-tint: #fff; --accent-line: #000;
  --info-bg: #fff; --warn-bg: #fff; --urgent-bg: #fff; --success-bg: #fff;
}
html.hc .stage-media, html.hc .portal-img, html.hc .hero-photo img { filter: grayscale(1) contrast(1.1); }
html.hc a { text-decoration-thickness: 2px; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html[data-fs="3"] { font-size: 150%; }
html[data-fs="4"] { font-size: 175%; }
html[data-fs="5"] { font-size: 200%; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, h4 { overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.12; margin: 0 0 .55em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem); letter-spacing: var(--track-xl); }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.65rem); letter-spacing: var(--track-l); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.05rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
p { max-width: 68ch; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-xs); }
main:focus { outline: none; }
.small { font-size: .9375rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.no-js .js-only { display: none !important; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 0; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .65rem 1.3rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { color: var(--accent); }
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.is-primary, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.is-primary .icon, .btn-primary .icon { color: inherit; }
.btn.is-primary:hover, .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); padding-inline: .6rem; }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn-light { background: #fff; border-color: #fff; color: var(--accent-strong); }
.btn-light .icon { color: inherit; }
.btn-light:hover { background: rgba(255,255,255,.88); border-color: transparent; color: var(--accent-strong); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light .icon { color: inherit; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.button { display: inline-flex; align-items: center; min-height: 3rem; padding: .6rem 1.2rem; border: 1.5px solid var(--accent); border-radius: var(--r-btn); background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-soft); }
.button.primary { background: var(--accent); color: var(--on-accent); }
.actions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.action-text { display: grid; text-align: left; }
.action-hint { font-weight: 400; font-size: .875rem; color: var(--muted); }

/* ---------- Kopfbereich ---------- */
.top { display: contents; }
.utility { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.utility-inner { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; justify-content: space-between; min-height: 2.5rem; }
.utility-help { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin: 0; max-width: none; }
.utility-help a { color: var(--ink); font-weight: 600; text-decoration: none; }
.utility-help a:hover { text-decoration: underline; }
.a11y-tools { display: flex; gap: .3rem; }
.tool { font: inherit; font-size: .8rem; font-weight: 500; min-width: 2.3rem; min-height: 2rem; padding: 0 .55rem; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--r-xs); cursor: pointer; }
.tool:hover { border-color: var(--ink); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand-logo { max-height: 3.1rem; width: auto; max-width: min(15rem, 52vw); }
.brand-mark { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.2; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 .1rem; margin: 0; padding: 0; }
.nav-list a { display: block; white-space: nowrap; padding: .55rem .62rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; border-radius: var(--r-sm); }
.nav-list a:hover { background: var(--accent-soft); }
.nav-list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { min-height: 2.75rem; padding: .55rem 1.1rem; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: .45rem; font: inherit; font-weight: 600; min-height: 2.75rem; padding: 0 .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); background: transparent; color: inherit; cursor: pointer; }

/* Kopfzeile in Akzentfarbe */
.header-farbig .site-header { background: var(--accent); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-farbig .site-header, .header-farbig .brand, .header-farbig .nav-list a { color: #fff; }
.header-farbig .nav-list a:hover { background: rgba(255,255,255,.14); }
.header-farbig .nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.header-farbig .brand-mark { background: #fff; color: var(--accent); }
/* Logo auf farbigem oder Bild-Hintergrund: auf heller Plakette, damit Logofarben erhalten bleiben */
.header-farbig .brand:has(.brand-logo), .header-transparent .brand:has(.brand-logo) { background: #fff; padding: .4rem .7rem; border-radius: var(--r-sm); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.header-farbig .header-cta { background: #fff; border-color: #fff; color: var(--accent-strong); }
.header-farbig .nav-toggle { border-color: rgba(255,255,255,.7); }
.header-farbig .site-header :focus-visible { outline-color: #fff; }

/* Kopfzeile über dem Startbild (nur Startseite mit Bild) */
.header-transparent .top { display: block; position: absolute; inset: 0 0 auto 0; z-index: 30; }
.header-transparent .utility { background: transparent; border-bottom-color: rgba(255,255,255,.22); color: rgba(255,255,255,.9); }
.header-transparent .utility-help a, .header-transparent .tool { color: #fff; }
.header-transparent .tool { border-color: rgba(255,255,255,.4); }
.header-transparent .site-header { position: relative; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-transparent .site-header, .header-transparent .brand, .header-transparent .nav-list a { color: #fff; }
.header-transparent .nav-list a:hover { background: rgba(255,255,255,.14); }
.header-transparent .nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.header-transparent .header-cta { background: #fff; border-color: #fff; color: var(--accent-strong); }
.header-transparent .nav-toggle { border-color: rgba(255,255,255,.7); }
.header-transparent .top :focus-visible { outline-color: #fff; }

@media (max-width: 74rem) {
  .nav-list { flex-wrap: wrap; }
  html.js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  html.js .site-nav { order: 3; flex-basis: 100%; margin: 0; display: none; padding-bottom: .9rem; }
  html.js .site-nav.open { display: block; }
  html.no-js .site-nav { order: 3; flex-basis: 100%; margin: 0; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .header-farbig .nav-list a[aria-current="page"], .header-transparent .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 #fff; }
  .header-transparent .site-nav.open { background: var(--ink); border-radius: var(--r-md); padding: .5rem; }
}
@media (max-width: 40rem) {
  .header-cta { display: none; }
  .utility-help span:last-child { display: none; }
}

/* ---------- Hinweise (Urlaub, Eilmeldungen) ---------- */
.status-area { padding: 1rem 0 0; }
.notice { border-left: 4px solid var(--info-line); background: var(--info-bg); padding: 1rem 1.25rem; border-radius: var(--r-sm); margin: 0 0 1rem; }
.notice > :last-child { margin-bottom: 0; }
.notice p { max-width: none; }
.notice-title { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .35rem; }
.notice-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.notice-urgent, .notice-absence { border-color: var(--urgent-line); background: var(--urgent-bg); }
.notice-success { border-color: var(--success-line); background: var(--success-bg); }
.header-transparent .status-area { position: relative; z-index: 31; }

/* ---------- Öffnungsstatus ---------- */
.opening { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0; padding: .4rem .9rem .4rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; line-height: 1.3; max-width: 100%; }
.opening strong { font-weight: 600; }
.opening-detail { color: var(--muted); }
.opening-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--off); flex: 0 0 auto; }
.opening-open .opening-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.opening-akut .opening-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.opening-away .opening-dot { background: var(--away); }
.opening.on-dark { background: rgba(10, 20, 24, .45); border-color: rgba(255,255,255,.35); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.opening.on-dark .opening-detail { color: rgba(255,255,255,.9); }
.opening.plain { background: none; border: 0; padding: 0; }

/* ---------- Heute ---------- */
.today { display: grid; gap: .15rem; }
.today p { margin: 0; }
.today-head { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--muted); }
.today-head .icon { color: var(--accent); }
.today-main { font-size: 1.2rem; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.today-sub { color: var(--muted); font-size: .93rem; }

/* ---------- Gemeinsame Hero-Bausteine ---------- */
.hero-title { font-size: clamp(2.5rem, 1.35rem + 4.3vw, 4.5rem); line-height: 1.03; letter-spacing: var(--track-xl); margin: .5em 0 .35em; max-width: 16ch; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 40ch; margin: 0 0 1.75rem; }
.doctor-line { list-style: none; padding: 1.5rem 0 0; margin: 2rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.doctor-line li { display: flex; align-items: center; gap: .7rem; }
.doctor-avatar { width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--accent-soft); }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-text { display: grid; line-height: 1.3; }
.doctor-name { font-weight: 600; }
.doctor-title { color: var(--muted); font-size: .9rem; }
.hero-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--accent-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-empty { background:
  radial-gradient(circle at 28% 30%, var(--accent-tint) 0 18%, transparent 18.5%),
  radial-gradient(circle at 72% 68%, var(--accent-line) 0 24%, transparent 24.5%),
  var(--accent-soft); }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.35rem; box-shadow: var(--shadow-float); }

/* ---------- Abschnitte der Startseite ---------- */
.sec { padding-block: var(--sec-pad); }
.sec.is-tinted { background: var(--section-tint); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.sec-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.more .icon { width: 1.1em; height: 1.1em; }
.more:hover { text-decoration: underline; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.card h3 { margin-top: 0; }

/* Willkommen & Auf einen Blick */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.prose-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; }
.prose-lead p { max-width: 54ch; }
.chips { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 500; }
.chips .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.glance h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.glance-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.glance-list > li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; align-items: start; }
.glance-list > li > .icon { color: var(--accent); margin-top: .15rem; }
.glance-label { display: block; font-size: .85rem; color: var(--muted); }

/* Sprechzeiten */
.hours-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.hours-grid.has-akut { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.akut-card { background: var(--accent); border-color: var(--accent); color: #fff; }
.akut-card h3, .akut-card a { color: #fff; }
.akut-card table.hours caption, .akut-card .muted { color: rgba(255,255,255,.88); }
.akut-card table.hours th, .akut-card table.hours td { border-color: rgba(255,255,255,.25); }
.akut-card table.hours tr.is-today th, .akut-card table.hours tr.is-today td { background: rgba(255,255,255,.12); }
.akut-card .today-tag { background: #fff; color: var(--accent-strong); }
.akut-card :focus-visible { outline-color: #fff; }
table.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; margin-bottom: 1.25rem; }
table.hours:last-child { margin-bottom: 0; }
table.hours caption { text-align: left; font-weight: 600; padding-bottom: .5rem; color: var(--muted); font-size: .9rem; }
table.hours thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.hours th, table.hours td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hours th[scope="row"] { font-weight: 500; width: 40%; white-space: nowrap; }
table.hours tr.is-today th, table.hours tr.is-today td { background: var(--accent-soft); font-weight: 650; }
table.hours tr.is-today th { border-radius: var(--r-sm) 0 0 var(--r-sm); }
table.hours tr.is-today td { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.today-tag { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: .05rem .5rem; margin-left: .4rem; vertical-align: .12em; }

/* Leistungen */
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s; }
.service-card:hover, .service-card:focus-within { border-color: var(--accent-line); }
.service-card h3 { font-size: 1.15rem; margin: .9rem 0 .35rem; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-card p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.service-card .badge { margin-top: auto; }
.service-icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.service-icon .icon { width: 1.6rem; height: 1.6rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.badge-kasse { background: var(--accent-soft); color: var(--accent-strong); }
.badge-igel { background: var(--warn-bg); color: #6b4300; }

/* Team */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.person { display: grid; align-content: start; gap: 1rem; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initial { font-family: var(--font-head); font-size: 4rem; font-weight: var(--head-weight); color: var(--accent); }
.person-name { font-size: 1.12rem; margin: 0; }
.person-role { color: var(--muted); margin: .2rem 0 .5rem; font-size: .96rem; }
.person-body p { margin-bottom: .45rem; }
.person-focus { font-weight: 500; }
.lang-label { color: var(--muted); }
.team-group + .team-group { margin-top: var(--sec-pad); }

/* Termin-Band */
.sec-cta { background: var(--accent); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.sec-cta h2 { color: #fff; margin-bottom: .4rem; }
.sec-cta p { color: rgba(255,255,255,.92); margin: 0; font-size: 1.1rem; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.sec-cta :focus-visible { outline-color: #fff; }

/* Galerie */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 16vw, 14rem); }
.gallery-item { overflow: hidden; border-radius: var(--r-md); background: var(--accent-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery.count-1 { grid-template-columns: 1fr; grid-auto-rows: clamp(14rem, 36vw, 30rem); }
.gallery.count-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(12rem, 28vw, 24rem); }
.gallery.count-3 .gallery-item:first-child, .gallery.count-4 .gallery-item:first-child,
.gallery.count-5 .gallery-item:first-child, .gallery.count-6 .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery.count-3 .gallery-item:first-child { grid-column: auto; }
.gallery.count-4 .gallery-item:nth-child(4) { grid-column: span 2; }

/* Anfahrt */
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.location-address { font-style: normal; font-size: 1.3rem; font-weight: 600; line-height: 1.45; margin-bottom: 1.25rem; }
.location-directions { color: var(--muted); }
.location-directions h3 { color: var(--ink); font-size: 1.05rem; margin-top: 1rem; }
.location-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.location-card { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; }
.map-grid { position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 0 41%, var(--surface) 41% 45%, transparent 45%),
  linear-gradient(20deg, transparent 0 58%, var(--surface) 58% 61%, transparent 61%),
  linear-gradient(160deg, transparent 0 25%, color-mix(in srgb, var(--surface) 70%, transparent) 25% 27%, transparent 27%),
  repeating-linear-gradient(0deg, transparent 0 46px, var(--accent-tint) 46px 47px),
  repeating-linear-gradient(90deg, transparent 0 46px, var(--accent-tint) 46px 47px); }
.map-pin { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); color: #fff; box-shadow: var(--shadow-float); }
.map-pin .icon { transform: rotate(45deg); width: 1.7rem; height: 1.7rem; }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--section-tint); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.25rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); max-width: 22ch; }
.page-lead { margin: .9rem 0 0; font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.page { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--sec-pad); }
.page h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2.5rem; }
.page > :first-child, .page section:first-child > h2:first-child { margin-top: 0; }
.service-section + .service-section { margin-top: 4rem; }
.service-details { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-detail { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.service-detail h3 { margin: .45rem 0 .5rem; }
.price { font-weight: 600; }
details.guide { margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1rem; background: var(--surface); }
details.guide summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 3rem; display: flex; align-items: center; }
details.guide[open] { padding-bottom: .5rem; }
.steps li { margin-bottom: .4rem; }
.grid-2 { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; }
address { font-style: normal; margin-bottom: 1rem; }
.consent-box { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; background: var(--surface); max-width: 48rem; }
.map-frame iframe, .booking-frame iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); }
.map-frame iframe { height: 400px; }
.booking-frame iframe { height: 760px; }

/* ---------- Formulare ---------- */
.patient-form { max-width: 44rem; }
.field { margin: 0 0 1.35rem; border: 0; padding: 0; }
fieldset.field { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem; background: var(--surface); }
legend, .field > label { display: block; font-weight: 600; margin-bottom: .4rem; padding: 0 .25rem 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%; font: inherit; padding: .7rem .85rem; min-height: 3rem;
  border: 1.5px solid #77868d; border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.choice { display: flex; gap: .65rem; align-items: flex-start; margin: .45rem 0; }
.choice input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--accent); }
.choice label { font-weight: 400; }
.req { color: var(--urgent-line); font-weight: 700; }
.has-error input, .has-error textarea { border-color: var(--urgent-line); }
.has-error { border-left: 4px solid var(--urgent-line); padding-left: .85rem; }
.field-error { color: var(--urgent-line); font-weight: 600; margin: 0 0 .4rem; }
.error-summary { border: 2px solid var(--urgent-line); background: var(--urgent-bg); border-radius: var(--r-md); padding: .75rem 1.4rem; margin-bottom: 1.75rem; }
.error-summary h2 { margin-top: .5rem; font-size: 1.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.result { border: 2px solid var(--accent); border-radius: var(--r-lg); padding: .75rem 1.5rem; margin-bottom: 1.75rem; background: var(--accent-soft); }

/* ---------- Fußbereich ---------- */
.site-footer { background: #13232b; color: #d9e3e7; padding: clamp(3rem, 7vw, 5rem) 0 3.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.footer-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.4rem; color: #fff; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: .5rem; }
.footer-tag { color: #b9c8ce; }
.site-footer .opening { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.site-footer .opening-detail { color: #c6d3d8; }
.footer-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: #fff; margin: 0 0 .9rem; }
.footer-big { font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.site-footer :focus-visible { outline-color: #ffb48f; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile Schnellzugriffe ---------- */
.mobile-bar { display: none; }
@media (max-width: 52rem) {
  body { padding-bottom: 4.6rem; }
  .mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3.2rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .mobile-bar-link .icon { color: var(--accent); }
  .mobile-bar-link.is-primary { background: var(--accent); color: #fff; }
  .mobile-bar-link.is-primary .icon { color: #fff; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 60rem) {
  .intro-grid, .location-grid, .hours-grid.has-akut { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery.count-3 { grid-template-columns: 1fr 1fr; }
  .gallery.count-4 .gallery-item:nth-child(4) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .utility, .site-nav, .skip-link, .actions, .nav-toggle, .mobile-bar, .header-cta { display: none !important; } .site-header { position: static; } .site-footer { background: none; color: #000; } .site-footer a { color: #000; } }

/* Feinschliff Handy: Zeiten nicht mitten im Zeitraum umbrechen, Team zweispaltig */
table.hours .period { white-space: nowrap; }
@media (max-width: 40rem) {
  table.hours th, table.hours td { padding: .6rem .4rem; }
  table.hours th { width: 40%; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 1rem !important; }
  .person-name { font-size: 1rem; }
  .person-role { font-size: .88rem; }
  .person-initial { font-size: 2.6rem; }
}
