/* ==========================================================================
   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-inline-start: 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-inline-start: 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-inline-start: 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-inline-start: .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-inline-start: 4px solid var(--urgent-line); padding-inline-start: .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; }
}

/* ===== Formular-Raster & Hilfetexte ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; max-width: 48rem; }
.form-grid > .field-wide, .form-grid > fieldset, .form-grid > .form-subhead, .form-grid > p, .form-grid > .hp + p, .form-grid > div:not(.field) { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: .92rem; margin: -.15rem 0 .45rem; }
.form-subhead { grid-column: 1 / -1; font-size: 1.2rem; margin: 1.25rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.choices-inline .choice { display: inline-flex; margin-inline-end: 1.25rem; }
.btn-lg { min-height: 3.4rem; padding-inline: 1.6rem; font-size: 1.05rem; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Online-Terminbuchung ===== */
.booking-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0 0 1.75rem; counter-reset: s; }
.booking-steps li { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 500; font-size: .95rem; }
.step-no { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .88rem; }
.booking-steps .is-current { color: var(--ink); font-weight: 700; }
.booking-steps .is-current .step-no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.booking-steps .is-done .step-no { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.booking-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding: 1rem 1.25rem; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-md); margin-bottom: 1.75rem; }
.summary-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.summary-change { margin-inline-start: auto; font-weight: 600; }
.booking-step-title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); margin: 0 0 1.25rem; }
.pick-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.pick-card { position: relative; display: grid; gap: .4rem; height: 100%; padding: 1.25rem 3rem 1.25rem 1.35rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick-card:hover { border-color: var(--accent); box-shadow: var(--shadow-float); transform: translateY(-1px); }
.pick-title { font-weight: 700; font-size: 1.1rem; }
.pick-meta { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .92rem; }
.pick-meta .icon { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.pick-desc { color: var(--muted); font-size: .95rem; }
.pick-go { position: absolute; inset-inline-end: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--accent); }
.pick-people .pick-card { grid-template-columns: 4rem 1fr; column-gap: 1rem; align-items: center; padding-inline-end: 1.35rem; }
.pick-people .pick-card > :not(.pick-avatar) { grid-column: 2; }
.pick-avatar { grid-row: span 2; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; }
.pick-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pick-any { border-style: dashed; }
.doctor-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.doctor-filter a { padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.doctor-filter a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.next-slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--accent-line); margin-bottom: 1.5rem; }
.next-slot > span { display: inline-flex; align-items: center; gap: .5rem; }
.next-slot .icon { color: var(--accent); }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.week-label { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-grid { display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week-grid.count-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.week-grid.count-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: .85rem .7rem; min-width: 0; }
.day.is-today { border-color: var(--accent-line); }
.day.is-empty { background: transparent; }
.day-head { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .65rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.day-date { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.slot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); }
.slot-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: .8rem 0 .4rem; }
.slot-group:first-of-type { margin-top: 0; }
.slot { display: block; text-align: center; padding: .5rem .2rem; border-radius: var(--r-sm); border: 1.5px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-none { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 52rem) {
  .week-grid, .week-grid.count-6, .week-grid.count-7 { grid-template-columns: minmax(0, 1fr); }
  .day.is-empty { display: none; }
  .slot-list { grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); }
  .week-nav .btn { padding-inline: .4rem; font-size: .92rem; }
}
.booking-done, .booking-cancel { max-width: 40rem; text-align: center; margin-bottom: 1.5rem; }
.done-icon { width: 3.6rem; height: 3.6rem; border-radius: 50%; margin: 0 auto 1rem; background: var(--success-bg); color: var(--success-line); display: grid; place-items: center; }
.done-icon .icon { width: 1.8rem; height: 1.8rem; stroke-width: 2.2; }
.done-when { font-size: 1.15rem; margin: 0 0 1.25rem; }
.done-when strong { font-family: var(--font-head); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); font-weight: var(--head-weight); letter-spacing: var(--track-l); }
.done-details { display: grid; gap: .5rem; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 0 0 1.25rem; }
.done-details div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; }
.done-details dt { color: var(--muted); }
.done-details dd { margin: 0; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.next-card { max-width: 40rem; margin-bottom: 1.5rem; border-color: var(--accent-line); }
.next-card h2 { font-size: 1.3rem; margin-top: 0; }
.booking-phone { max-width: 40rem; }
.booking-phone-lead { font-size: 1.15rem; }
@media (max-width: 30rem) { .done-details div { grid-template-columns: 1fr; gap: 0; } }

/* ===== Online-Anmeldung ===== */
.reg-toc ol { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 0 0 1.75rem; list-style: none; counter-reset: toc; }
.reg-toc li { counter-increment: toc; }
.reg-toc li::before { content: counter(toc) ". "; color: var(--muted); }
.reg-form { max-width: 52rem; }
.reg-section { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.reg-section > h2 { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 0 0 1rem; }
.reg-no { display: inline-grid; place-items: center; flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.reg-intro { color: var(--muted); margin: -.25rem 0 1.25rem; }
.reg-section .form-grid { max-width: none; }
.reg-section fieldset.field { background: var(--bg); }
.reg-section fieldset.field .choice { margin: .35rem 0; }
.reg-section .field-wide fieldset, .reg-section fieldset.field-wide { grid-column: 1 / -1; }
fieldset.field:has(input[type="checkbox"]) { columns: 2 16rem; column-gap: 1.5rem; }
fieldset.field:has(input[type="checkbox"]) > legend { column-span: all; }
fieldset.field:has(input[type="checkbox"]) .choice { break-inside: avoid; }
.reg-info { border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--accent-soft); margin: 0 0 1.25rem; }
.reg-info summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--accent-strong); }
.reg-info-body { padding: 0 1.1rem 1rem; max-height: 26rem; overflow: auto; }
.reg-info-body h3 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; margin: 1rem 0 .3rem; }
.reg-info-body p { font-size: .95rem; margin: 0; }
.consent-card { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 0 0 1rem; background: var(--bg); }
.consent-card:has(input[type="checkbox"]:checked) { border-color: var(--accent); background: var(--accent-soft); }
.consent-card h3 { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; margin: 0 0 .5rem; }
.consent-card > p { font-size: .95rem; color: var(--ink); margin: 0 0 .75rem; }
.consent-card .field { margin: .75rem 0 0; }
.sig-date { grid-column: 1 / -1; margin: 0 0 1rem; }
.signature { margin-top: .5rem; }
.sig-label { font-weight: 600; margin: 0 0 .4rem; }
.sig-pad { display: block; width: 100%; max-width: 40rem; aspect-ratio: 900 / 260; height: auto; border: 2px dashed var(--line-strong); border-radius: var(--r-md); background: #fff linear-gradient(transparent calc(100% - 3.2rem), var(--line) calc(100% - 3.2rem), var(--line) calc(100% - 3.1rem), transparent calc(100% - 3.1rem)); touch-action: none; cursor: crosshair; }
.sig-clear { margin-top: .35rem; }
.reg-actions { margin: 0 0 2rem; }
.patient-copy { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); max-width: 48rem; }
.patient-copy h2 { margin-top: 0; }
.patient-copy h3 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
.copy-meta div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; margin-bottom: .35rem; }
.copy-meta dt { color: var(--muted); } .copy-meta dd { margin: 0; }
.copy-consents { list-style: none; padding: 0; }
.copy-consents li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.copy-consents .is-no { color: var(--muted); }
.copy-signature { max-width: 18rem; height: auto; border-bottom: 1px solid var(--ink); }
.kiosk-done { text-align: center; padding: 2rem 1rem; font-size: 1.2rem; }
/* Praxis-Tablet: nur das Formular */
.is-kiosk .utility, .is-kiosk .site-nav, .is-kiosk .header-actions, .is-kiosk .site-footer, .is-kiosk .mobile-bar, .is-kiosk .status-area, .is-kiosk .notices { display: none !important; }
.is-kiosk .brand { pointer-events: none; }
@media print {
  .utility, .site-header, .site-footer, .mobile-bar, .print-hide, .notice, .page-head { display: none !important; }
  .patient-copy { border: 0; padding: 0; }
  .patient-copy details > *:not(summary) { display: block; }
}
/* Legende innerhalb des Rahmens (lange Fragen brechen sauber um) */
fieldset.field > legend { float: inline-start; width: 100%; margin-bottom: .5rem; }
fieldset.field > legend + * { clear: both; }
fieldset.field > .choice:first-of-type, fieldset.field > .field-help { clear: both; }
@media (max-width: 40rem) {
  .next-slot > span { display: block; }
  .next-slot .btn { width: 100%; justify-content: center; }
}
.waitlist-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1.5px dashed var(--accent-line); border-radius: var(--r-md); }
.waitlist-hint p { margin: 0; }
.reminder-box { background: var(--surface); }

/* ---------- Sprachen ---------- */
.utility-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-xs); color: var(--ink); font-size: .8rem; font-weight: 500; cursor: pointer; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-inline-start: .15rem; }
.lang-switch[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.lang-switch > summary:hover { border-color: var(--ink); }
.lang-switch .icon { width: 1rem; height: 1rem; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + .35rem); z-index: 60; list-style: none; margin: 0; padding: .3rem; min-width: 11rem; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.lang-list a { display: block; padding: .5rem .7rem; border-radius: var(--r-xs); color: var(--ink); text-decoration: none; font-size: .92rem; text-align: start; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--bg); }
.lang-list a[aria-current="true"] { font-weight: 700; color: var(--accent-ink, var(--accent)); }
.lang-list a[aria-current="true"]::before { content: "✓ "; }
.header-transparent .lang-switch > summary { color: #fff; border-color: rgba(255,255,255,.4); }
.legal-note { margin-bottom: 1.5rem; }

/* Schriften für Kyrillisch und Arabisch: Systemschriften als Rückfall */
:lang(ru), :lang(uk) { --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
:lang(ar) { --font-body: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; --font-head: var(--font-body); }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .brand-name { letter-spacing: 0; hyphens: manual; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .lang-list :lang(de), html[lang="ar"] .lang-list :lang(en) { font-family: "Inter", system-ui, sans-serif; }

/* Rechts-nach-links */
[dir="rtl"] .icon-arrow, [dir="rtl"] .more .icon, [dir="rtl"] .pick-go .icon, [dir="rtl"] .dir-arrow, [dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .dir-arrow { display: inline-block; }
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .hp { left: auto; right: -10000px; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .period, [dir="rtl"] .slot, [dir="rtl"] .done-when strong, [dir="rtl"] .code, [dir="rtl"] time { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* =====================================================================
   Mobile-Feinschliff (1.6): kein seitliches Überlaufen, ruhige Abstände,
   volle Breite für Buttons und Formulare, Schnellzugriff stört nie.
   ===================================================================== */
html, body { overflow-x: clip; }
img, svg, video, iframe, canvas { max-width: 100%; }
input, select, textarea { max-width: 100%; min-width: 0; }
.form-grid > *, .field, .hero-text, .cta-inner > * { min-width: 0; }
h1, h2, h3, p, li, dd, dt, td, th, label, legend { overflow-wrap: break-word; }
/* iOS: Datumsfelder haben sonst eine feste Mindestbreite und ragen aus dem Formular */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 3rem; text-align: start; }
input[type="date"]::-webkit-date-and-time-value { text-align: start; }
.hours-note { display: block; font-size: .85em; }

/* Schnellzugriff: nur auf Info-Seiten, verschwindet beim Tippen und beim Herunterscrollen */
.mobile-bar { transition: transform .25s ease; }
.mobile-bar.is-hidden { transform: translateY(115%); }
@media (max-width: 52rem) {
  body { padding-bottom: 0; }
  body.has-mobile-bar { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  html.kb-open .mobile-bar { display: none; }
}

@media (max-width: 40rem) {
  :root { --gutter: 1.1rem; }

  /* Kopfzeile: eine Zeile, gleich große Bedienelemente */
  .utility-inner { flex-wrap: nowrap; gap: .5rem; min-height: 2.75rem; }
  .utility-help { flex-wrap: nowrap; white-space: nowrap; }
  .utility-help span:not(:first-child) { display: none; }
  .utility-tools { gap: .3rem; }
  .tool, .lang-switch > summary { min-height: 2.25rem; min-width: 2.25rem; padding: 0 .45rem; font-size: .78rem; }
  .lang-switch { position: static; }
  .lang-list { position: absolute; inset-inline: var(--gutter); top: 2.9rem; min-width: 0; }
  .lang-list a { padding: .75rem .9rem; font-size: 1rem; }
  .header-inner { min-height: 4rem; gap: .75rem; }

  /* Buttons untereinander und gleich breit */
  .actions-buttons, .cta-actions, .actions { flex-direction: column; align-items: stretch; }
  .actions-buttons .btn, .cta-actions .btn, .actions .btn, .reg-actions .btn, .form-actions .btn { width: 100%; justify-content: center; }
  .actions-buttons li { width: 100%; }
  .btn { min-height: 3.1rem; }

  /* Startbereich und Abschnitte: weniger Luft, klare Kante */
  .hero-title { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.4rem); line-height: 1.12; }
  .hero-lead { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .sec { padding-block: 2.75rem; }
  .sec h2 { font-size: clamp(1.5rem, 1.25rem + 1.5vw, 1.8rem); }
  .page-head { padding-block: 1.75rem 1.5rem; }
  .page-head h1 { font-size: clamp(1.7rem, 1.35rem + 2.2vw, 2.2rem); }
  .notice { padding: .85rem 1rem; }

  /* Sprechzeiten: Tag links, Zeiten rechts; nichts ragt heraus */
  table.hours th { width: 38%; padding-inline: .5rem .25rem; }
  table.hours td { padding-inline: .25rem .5rem; }
  .akut-card table.hours tr { display: block; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .akut-card table.hours th, .akut-card table.hours td { display: block; width: auto; border: 0; padding: 0 .5rem; }
  .akut-card table.hours thead { display: none; }

  /* Formulare: keine Kästen in Kästen, Auswahl untereinander */
  .reg-section { padding: 1.15rem 1rem 1.3rem; border-radius: var(--r-md); }
  .reg-section > h2 { font-size: 1.3rem; }
  fieldset.field, .reg-section fieldset.field { padding: .8rem .9rem; }
  .choices-inline .choice { display: flex; margin-inline-end: 0; }
  fieldset.field:has(input[type="checkbox"]) { columns: 1; }
  .choice { margin: .55rem 0; }
  .choice label { line-height: 1.4; }
  .consent-card { padding: .9rem 1rem; }
  .consent-card > p { font-size: .92rem; }
  .reg-toc ol { flex-wrap: nowrap; overflow-x: auto; gap: .45rem; margin-bottom: 1.25rem; padding-bottom: .4rem; scrollbar-width: none; }
  .reg-toc li { flex: 0 0 auto; }
  .reg-toc li::before { content: none; }
  .reg-toc a { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .9rem; white-space: nowrap; }
  .sig-pad { aspect-ratio: 2 / 1; }

  /* Buchung */
  .step-list, .booking-steps { font-size: .9rem; }
  .slot { min-height: 2.9rem; }
}
.lang-code { display: none; font-weight: 700; letter-spacing: .02em; }
.tool-contrast { display: inline-flex; align-items: center; gap: .35rem; }
.tool-contrast .icon { width: 1rem; height: 1rem; }
@media (max-width: 40rem) {
  .lang-switch .lang-name { display: none; }
  .lang-code { display: inline; }
  .tool-contrast .tool-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .utility-help { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 21rem) {
  table.hours { font-size: .92rem; }
  table.hours th { width: 34%; }
  .utility-help { display: none; }
  .utility-inner { justify-content: flex-end; }
}

/* ---------- Fix 1.6.3: Team-Fotos und Kopfzeile auf Handy/Tablet ---------- */
/* Echte Fotos (z. B. 1200 × 1500 px) machten die Fotospalte so breit wie das Bild → Karten überlappten */
.person { min-width: 0; }
.person-photo { display: block; position: relative; width: 100%; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 25%; }
.person-initial { position: absolute; inset: 0; display: grid; place-items: center; }
.person-body { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.person-focus { font-size: .95rem; line-height: 1.45; }
.person-lang { font-size: .92rem; color: var(--muted); }
/* Teamseite mit langen Texten: auf dem Handy eine Spalte, ab Tablet zwei bzw. mehr */
.people:has(.person-body p:nth-of-type(3)) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)) !important; }
@media (max-width: 34rem) {
  .people:has(.person-body p:nth-of-type(3)) { grid-template-columns: minmax(0, 1fr) !important; gap: 2.25rem !important; }
  .people:has(.person-body p:nth-of-type(3)) .person-photo { aspect-ratio: 4 / 3; }
}

/* Kopfzeile: Logo/Name und Menü-Knopf immer in einer Zeile, mit Luft nach oben und unten */
@media (max-width: 74rem) {
  .header-inner { flex-wrap: wrap; padding-block: .7rem; column-gap: .75rem; }
  .brand { flex: 1 1 0; min-width: 0; }
  .header-actions, .nav-toggle { flex: 0 0 auto; }
}
@media (max-width: 40rem) {
  .header-inner { padding-block: .65rem; min-height: 0; }
  .brand-name { font-size: 1.02rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .brand-mark { flex-basis: 2.3rem; height: 2.3rem; }
  .brand-logo { max-height: 2.6rem; max-width: 55vw; }
  .nav-toggle { padding: 0 .75rem; }
}

/* Gesperrte Website (Lizenz): nur Kontakt und Notruf */
.locked-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; background: var(--bg, #f6f8f9); }
.locked-card { width: min(100%, 32rem); padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--line, #dfe5e8); border-radius: 18px; text-align: center; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
.locked-card h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin: 0 0 .5rem; }
.locked-lead { font-size: 1.1rem; margin-bottom: 1.5rem; }
.locked-emergency { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line, #dfe5e8); }
.locked-emergency p { margin: .25rem 0; }

/* =====================================================================
   Kopfzeile 1.7: ruhiger, kompakter Kopf; auf Smartphone und Tablet ein
   Vollbild-Menü mit Sprache, Darstellung und Notrufnummern.
   ===================================================================== */
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .22); }
.header-inner { min-height: 4.5rem; gap: 1rem 1.5rem; }
.brand-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nav-list { gap: 0 .15rem; }
.nav-list a { position: relative; padding: .55rem .75rem; border-radius: 999px; font-weight: 550; transition: background-color .15s ease, color .15s ease; }
.nav-list a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); box-shadow: none; border-radius: 999px; }
.header-farbig .nav-list a[aria-current="page"], .header-transparent .nav-list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .18); box-shadow: none; }
.header-actions { gap: .5rem; flex: none; }
.header-actions .lang-switch > summary { min-height: 2.75rem; padding: 0 .8rem; border: 1.5px solid var(--line); border-radius: var(--r-btn); font-size: .92rem; font-weight: 600; background: transparent; }
.header-actions .lang-switch > summary:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.header-farbig .header-actions .lang-switch > summary, .header-transparent .header-actions .lang-switch > summary { color: #fff; border-color: rgba(255, 255, 255, .45); }
.header-farbig .header-actions .lang-switch > summary:hover, .header-transparent .header-actions .lang-switch > summary:hover { background: rgba(255, 255, 255, .14); }
.header-actions .lang-list { top: calc(100% + .5rem); }
.utility { font-size: .8rem; }
.utility-inner { min-height: 2.25rem; }
.utility .tool { min-height: 1.75rem; }
.nav-extras { display: none; }
.nav-toggle-icon { display: inline-grid; }
.nav-toggle-icon .icon { grid-area: 1 / 1; width: 1.35rem; height: 1.35rem; transition: opacity .15s ease, transform .2s ease; }
.nav-toggle-icon .icon:last-child { opacity: 0; transform: rotate(-90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .icon:first-child { opacity: 0; transform: rotate(90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .icon:last-child { opacity: 1; transform: none; }
.nav-toggle:hover { background: var(--accent-soft); }
.header-farbig .nav-toggle:hover, .header-transparent .nav-toggle:hover { background: rgba(255, 255, 255, .14); }

@media (max-width: 74rem) {
  /* Die Werkzeugleiste wandert ins Menü */
  html.js .utility { display: none; }
  .header-inner { flex-wrap: nowrap; min-height: 4rem; gap: .6rem; }
  .brand { flex: 1 1 auto; }
  .brand-name { font-size: 1.02rem; }
  .brand-logo { max-height: 2.6rem; max-width: min(13rem, 46vw); }
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { padding: 0 .85rem; border-width: 1.5px; }

  html.js .site-nav { display: none; position: fixed; inset: var(--menu-top, 4rem) 0 0 0; z-index: 40; margin: 0; padding: .75rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
  html.js .site-nav.open { display: flex; flex-direction: column; gap: 1.25rem; animation: menu-in .18s ease-out; }
  html.js.nav-open, html.js.nav-open body { overflow: hidden; }
  html.js.nav-open .mobile-bar { display: none; }
  html.js.nav-open .header-transparent .site-header, html.js.nav-open .header-transparent .top { background: var(--accent); }
  html.js.nav-open .site-header { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  html.js.nav-open .header-farbig .site-header { background: var(--accent); }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  html.js body .site-nav .nav-list a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; border-radius: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); background: none; border-bottom: 1px solid var(--line); box-shadow: none; }
  html.js body .site-nav .nav-list a::after { content: ""; width: .5rem; height: .5rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); margin-inline-end: .35rem; }
  [dir="rtl"] .site-nav .nav-list a::after { transform: rotate(135deg); }
  html.js body .site-nav .nav-list a[aria-current="page"] { color: var(--accent-strong); }
  html.js body .site-nav .nav-list a[aria-current="page"]::after { border-color: var(--accent); }
  html.js .nav-extras { display: grid; gap: 1.25rem; }
  .nav-extras-actions { display: grid; gap: .6rem; }
  .nav-extras-actions .btn { width: 100%; justify-content: center; min-height: 3.1rem; }
  .nav-extras-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .nav-extras-title .icon { width: 1rem; height: 1rem; }
  .lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
  .lang-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; }
  .lang-chips a:hover { border-color: var(--line-strong); }
  .lang-chips a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
  .nav-a11y { display: flex; flex-wrap: wrap; gap: .45rem; }
  .nav-a11y .tool { min-height: 2.75rem; min-width: 3.2rem; font-size: .95rem; border-radius: var(--r-btn); border-width: 1.5px; color: var(--ink); border-color: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
  .nav-a11y .tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .nav-a11y .tool .icon { width: 1.05rem; height: 1.05rem; }
  .nav-emergency { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .nav-emergency a { display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--urgent-bg); color: var(--urgent-line); text-decoration: none; font-size: .82rem; line-height: 1.3; }
  .nav-emergency a + a { background: var(--section-tint); color: var(--ink); }
  .nav-emergency strong { font-size: 1.3rem; letter-spacing: .01em; }
}
@media (max-width: 40rem) {
  .header-inner { min-height: 3.75rem; }
  .brand { gap: .55rem; }
  .brand-mark { flex-basis: 2.25rem; height: 2.25rem; font-size: 1.05rem; }
  .brand-name { font-size: .97rem; }
  .header-actions .lang-switch > summary { padding: 0 .6rem; min-width: 2.75rem; }
  .header-actions .lang-switch { position: static; }
  .header-actions .lang-list { inset-inline: var(--gutter); top: calc(100% + .25rem); }
  .nav-toggle { padding: 0 .7rem; }
}
@media (max-width: 23rem) {
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { min-width: 2.75rem; justify-content: center; }
  .header-actions .lang-switch > summary .icon { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .site-nav.open { animation: none; } .nav-toggle-icon .icon { transition: none; } }
.is-kiosk .nav-extras { display: none !important; }
@media (max-width: 22rem) {
  .hours-card { padding-inline: .9rem; }
  table.hours th, table.hours td { padding-inline: .35rem; }
  table.hours td .period { white-space: normal; }
}

/* Demo-Hinweis */
.demo-ribbon { background: #fff7e0; border-bottom: 1px solid #f0d58a; color: #5b4300; font-size: .9rem; }
.demo-ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; padding-block: .55rem; }
.demo-ribbon a { color: inherit; font-weight: 650; margin-inline-start: auto; }
.demo-tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #5b4300; color: #fff7e0; padding: .1rem .5rem; border-radius: 999px; }
@media print { .demo-ribbon { display: none; } }

/* Kopfzeile: Menü einklappen, sobald die Navigation nicht mehr in eine Zeile passt (per JS gemessen) */
html.nav-collapsed .nav-list { flex-wrap: wrap; }
html.js.nav-collapsed .nav-toggle { display: inline-flex; }
html.nav-collapsed .header-inner { flex-wrap: wrap; }
html.nav-collapsed .header-actions { margin-inline-start: auto; }
html.js.nav-collapsed .site-nav { order: 3; flex-basis: 100%; margin: 0; display: none; padding-bottom: .9rem; }
html.js.nav-collapsed .site-nav.open { display: block; }
html.nav-collapsed .nav-list { flex-direction: column; align-items: stretch; }
html.nav-collapsed .nav-list a { padding: .8rem .75rem; font-size: 1.05rem; }
html.nav-collapsed .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
html.nav-collapsed .header-farbig .nav-list a[aria-current="page"], html.nav-collapsed .header-transparent .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 #fff; }
html.nav-collapsed .header-transparent .site-nav.open { background: var(--ink); border-radius: var(--r-md); padding: .5rem; }
html.nav-collapsed .header-inner { flex-wrap: wrap; padding-block: .7rem; column-gap: .75rem; }
html.nav-collapsed .brand { flex: 1 1 0; min-width: 0; }
html.nav-collapsed .header-actions, html.nav-collapsed .nav-toggle { flex: 0 0 auto; }
html.nav-collapsed .header-inner { flex-wrap: nowrap; min-height: 4rem; gap: .6rem; }
html.nav-collapsed .brand { flex: 1 1 auto; }
html.nav-collapsed .brand-name { font-size: 1.02rem; }
html.nav-collapsed .brand-logo { max-height: 2.6rem; max-width: min(13rem, 46vw); }
html.nav-collapsed .header-actions { margin-inline-start: auto; }
html.nav-collapsed .nav-toggle { padding: 0 .85rem; border-width: 1.5px; }
html.js.nav-collapsed .site-nav { display: none; position: fixed; inset: var(--menu-top, 4rem) 0 0 0; z-index: 40; margin: 0; padding: .75rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
html.js.nav-collapsed .site-nav.open { display: flex; flex-direction: column; gap: 1.25rem; animation: menu-in .18s ease-out; }
html.js.nav-collapsed.nav-open, html.js.nav-collapsed.nav-open body { overflow: hidden; }
html.js.nav-collapsed.nav-open .mobile-bar { display: none; }
html.js.nav-collapsed.nav-open .header-transparent .site-header, html.js.nav-collapsed.nav-open .header-transparent .top { background: var(--accent); }
html.js.nav-collapsed.nav-open .site-header { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
html.js.nav-collapsed.nav-open .header-farbig .site-header { background: var(--accent); }
html.nav-collapsed .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
html.js.nav-collapsed body .site-nav .nav-list a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; border-radius: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); background: none; border-bottom: 1px solid var(--line); box-shadow: none; }
html.js.nav-collapsed body .site-nav .nav-list a::after { content: ""; width: .5rem; height: .5rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); margin-inline-end: .35rem; }
html.nav-collapsed[dir="rtl"] .site-nav .nav-list a::after { transform: rotate(135deg); }
html.js.nav-collapsed body .site-nav .nav-list a[aria-current="page"] { color: var(--accent-strong); }
html.js.nav-collapsed body .site-nav .nav-list a[aria-current="page"]::after { border-color: var(--accent); }
html.js.nav-collapsed .nav-extras { display: grid; gap: 1.25rem; }
html.nav-collapsed .nav-extras-actions { display: grid; gap: .6rem; }
html.nav-collapsed .nav-extras-actions .btn { width: 100%; justify-content: center; min-height: 3.1rem; }
html.nav-collapsed .nav-extras-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
html.nav-collapsed .nav-extras-title .icon { width: 1rem; height: 1rem; }
html.nav-collapsed .lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
html.nav-collapsed .lang-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; }
html.nav-collapsed .lang-chips a:hover { border-color: var(--line-strong); }
html.nav-collapsed .lang-chips a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
html.nav-collapsed .nav-a11y { display: flex; flex-wrap: wrap; gap: .45rem; }
html.nav-collapsed .nav-a11y .tool { min-height: 2.75rem; min-width: 3.2rem; font-size: .95rem; border-radius: var(--r-btn); border-width: 1.5px; color: var(--ink); border-color: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
html.nav-collapsed .nav-a11y .tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
html.nav-collapsed .nav-a11y .tool .icon { width: 1.05rem; height: 1.05rem; }
html.nav-collapsed .nav-emergency { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
html.nav-collapsed .nav-emergency a { display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--urgent-bg); color: var(--urgent-line); text-decoration: none; font-size: .82rem; line-height: 1.3; }
html.nav-collapsed .nav-emergency a + a { background: var(--section-tint); color: var(--ink); }
html.nav-collapsed .nav-emergency strong { font-size: 1.3rem; letter-spacing: .01em; }
@media (min-width: 74.01rem) {
  .brand { flex: none; }
  html.no-js .nav-list { flex-wrap: wrap; justify-content: flex-end; }
}
/* Kopfzeile auf breiten Bildschirmen: etwas mehr Breite, kompakte Sprachwahl, damit Logo, Menü und Knöpfe in eine Zeile passen */
.site-header > .wrap.header-inner { max-width: min(100%, 92rem); }
.header-actions .lang-switch .lang-name { display: none; }
.header-actions .lang-switch .lang-code { display: inline; }
@media (min-width: 74.01rem) {
  .header-inner { gap: 1rem 1.25rem; }
  .nav-list a { padding-inline: .6rem; }
}
