/* ==========================================================================
   Gemeinschaftspraxis Dr. Riedel & Dr. Hausberg – Stylesheet
   Alle Ressourcen lokal, keine externen Anfragen.
   Grundwerte (Farben, Schrift, Rundungen): farben.css, gemeinsam mit der Verwaltung.
   ========================================================================== */
@import url("farben.css");

:root {
  /* nur Webseite */
  --surface: #ffffff;
  --draw: #6f7b72;
  --draw-fill: #ffffff;
  --draw-roof: #f0f2ef;
  --draw-slate: #dfe4df;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; line-height: 1.15; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand-tint-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; border-radius: var(--r-sm); background: var(--brand-ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s ease; }
.skip-link:focus { transform: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* Einheitliche Versal-Beschriftung; die Farbe setzt der jeweilige Kontext */
.kicker, .job-label, .section-label, .phone-label, .after-hours-title,
.week-table thead th, .footer-brand span, .footer-col h2, .toc-title {
  font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 16px/1 var(--font); font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 10px 22px -12px rgba(11, 69, 18, 0.7); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-tint); }

/* ---------- Live-Status ---------- */
.status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.status[hidden] { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-label { font-weight: 600; color: var(--ink); }
.status-detail::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
.status-detail:empty { display: none; }
.status.is-open .status-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.status.is-open .status-label { color: var(--brand-ink); }
.status.is-closed .status-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-line); }

/* ---------- Kopfzeile mit Logo-Abzeichen ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.header-bar { height: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s ease; }
.site-header.is-scrolled .header-bar { box-shadow: 0 2px 16px rgba(22, 29, 24, 0.06); }
.header-grid { display: grid; grid-template-columns: minmax(0, 1fr) 162px minmax(0, 1fr); align-items: center; gap: 32px; height: 100%; }
.header-side { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.header-meta { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brand-ink); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-call { display: none; }
.logo-slot { position: relative; height: 100%; }
.logo-badge {
  position: absolute; top: 10px; left: 50%;
  display: grid; place-items: center;
  width: 162px; height: 162px; margin-left: -81px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden;   /* weiße Bildecken an der Kreiskante abschneiden */
  box-shadow: 0 10px 30px -12px rgba(22, 29, 24, 0.22);
  transform-origin: 50% 0; transition: transform 0.45s var(--ease), box-shadow 0.3s ease;
}
/* Logo so groß, dass die Ringschrift knapp am Kreisrand liegt (das Bild hat weißen Rand; Mitte der Ringschrift
   liegt leicht links oberhalb der Bildmitte, daher translate). Höhen je Kreisgröße hier und in den Media-Queries. */
.logo-badge img { width: auto; height: 154px; transform: translate(0.8%, 0.5%); }
.logo-badge:hover { box-shadow: 0 14px 34px -12px rgba(22, 29, 24, 0.3); }
/* Kleines Logo: beim Scrollen, und auf Unterseiten von Anfang an (Klasse logo-klein) – man ist ja schon auf der Seite */
.site-header.is-scrolled .logo-badge, .site-header.logo-klein .logo-badge { transform: scale(0.37); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; flex: none; }
.menu-toggle span { position: absolute; left: 50%; width: 18px; height: 1.6px; background: var(--ink); transform: translateX(-50%); transition: transform 0.25s ease, top 0.25s ease; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: calc(var(--header-h) + 64px) var(--gutter) 28px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.mobile-menu nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--brand-ink); }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 12px; }
.mobile-menu-foot .btn { width: 100%; min-height: 56px; font-size: 17px; }
.mobile-menu-foot p { margin: 0; text-align: center; font-size: 14px; color: var(--ink-3); }
body.menu-open { overflow: hidden; }

/* ---------- Start ---------- */
.hero { padding-top: calc(var(--header-h) + 128px); text-align: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -0.032em; margin-bottom: 18px; }
.kicker { display: block; margin-bottom: 16px; color: var(--brand-ink); }
.hero-sub { margin: 0 auto 30px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero-sub .sep { padding: 0 10px; color: var(--line-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .status { margin-top: 22px; justify-content: center; }

/* ---------- Zeichnung Hauptplatz ---------- */
.drawing { margin-top: clamp(36px, 4vw, 52px); border-bottom: 1.2px solid #3b453e; }
.drawing .hauptplatz { width: 100%; max-width: 1400px; height: auto; margin-inline: auto; overflow: visible; }
.hauptplatz .f, .hauptplatz .rf, .hauptplatz .w { stroke: var(--draw); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hauptplatz .f, .hauptplatz .w { fill: var(--draw-fill); }
.hauptplatz .w { stroke-width: 0.9; }
.hauptplatz .rf { fill: var(--draw-roof); }
.hauptplatz .slate { fill: var(--draw-slate); }
.hauptplatz .l, .hauptplatz .d, .hauptplatz .lead { fill: none; stroke: var(--draw); stroke-width: 0.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hauptplatz .d { stroke-width: 0.6; }
.hauptplatz .apo { fill: var(--brand-tint); }
.hauptplatz .accent { fill: var(--brand); stroke: var(--brand-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hauptplatz .hand { fill: none; stroke: #2a332c; stroke-width: 1.3; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: transform 1.8s var(--ease); }
.hauptplatz .hand-dot { fill: #2a332c; }
.hauptplatz .lead { stroke: var(--brand); stroke-width: 1; }
.hauptplatz .lead-dot { fill: var(--brand); }
.hauptplatz .label { font: 600 15px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--brand-ink); }
.hauptplatz .shop-label { font: 600 6.4px/1 var(--font); letter-spacing: 0.22em; fill: var(--ink-2); }
.hauptplatz .tint { fill: #f5e9d2; stroke: none; }          /* Fassadenfarbe des Praxishauses (Creme) */
.hauptplatz .w.pf { fill: var(--brand-tint-2); }            /* Praxisfenster im 1. Stock */

/* ---------- Stellenanzeige ---------- */
.job { position: relative; margin-top: clamp(40px, 5vw, 64px); background: var(--brand-deep); color: #fff; overflow: hidden; isolation: isolate; }
.job::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 85% 100%, rgba(255, 255, 255, 0.07), transparent 60%); }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 40px; }
.job-copy { align-self: center; padding: clamp(56px, 7vw, 96px) 0; }
.job-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--brand-on-dark); }
.job-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.job h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; color: #fff; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }  /* nur an der weichen Trennstelle in „Weiterbildungs-assistent“ */
.job-text { max-width: 30em; margin-bottom: 30px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, 0.82); }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.job .status { color: rgba(255, 255, 255, 0.75); }
.job .status-label { color: #fff; }
.job .status-detail::before { color: rgba(255, 255, 255, 0.5); }
.job .status.is-open .status-dot { background: var(--brand-on-dark); box-shadow: 0 0 0 3px rgba(185, 224, 168, 0.25); }
.job .status.is-open .status-label { color: #fff; }
.job-art { align-self: end; }
.job-art .hauptplatz { width: 100%; height: auto; max-height: 420px; margin-left: auto; }
.job-art {
  --draw: rgba(255, 255, 255, 0.72);
  --draw-fill: var(--brand-deep);
  --draw-roof: #0f5418;
  --draw-slate: #0f5418;
}
.job-art .hauptplatz .apo { fill: rgba(255, 255, 255, 0.08); }
.job-art .hauptplatz .accent { fill: #fff; stroke: #fff; }
.job-art .hauptplatz .shop-label { fill: rgba(255, 255, 255, 0.85); }
.job-art .hauptplatz .tint { fill: rgba(255, 255, 255, 0.07); }
.job-art .hauptplatz .w.pf { fill: rgba(185, 224, 168, 0.32); }
.job-art .hauptplatz .hand, .job-art .hauptplatz .hand-dot { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--brand-ink); }
.section-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.028em; }

/* ---------- Ärzte: Übersicht „Wer macht was“ (Tabelle) ---------- */
.matrix-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 29, 24, 0.04), 0 24px 48px -36px rgba(22, 29, 24, 0.28);
}
.matrix { width: 100%; border-collapse: collapse; table-layout: fixed; }
.matrix .c-field { width: 40%; }
.matrix thead th { padding: 36px 24px 28px; vertical-align: bottom; text-align: center; border-bottom: 1px solid var(--ink); }
.matrix thead th + th, .matrix tbody td { border-left: 1px solid var(--line); }
.matrix thead .m-corner { padding-left: 32px; text-align: left; color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.m-doc .monogram {
  position: relative; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-ink); font-size: 19px; font-weight: 650; letter-spacing: 0.04em; line-height: 1;
}
.m-doc .monogram::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand-tint-2); }
.m-name { display: block; margin-top: 18px; font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -0.024em; color: var(--ink); }
.n-short { display: none; white-space: nowrap; }   /* „Dr. Riedel“ / „Dr. Hausberg“ auf schmalen Bildschirmen */
.m-role { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--brand-ink); }
.matrix tbody th { padding: 18px 24px 18px 32px; text-align: left; font-size: 17px; font-weight: 600; color: var(--ink); }
.matrix tbody td { padding: 16px 12px; text-align: center; vertical-align: middle; }
.matrix tbody tr + tr > * { border-top: 1px solid var(--line); }
.matrix tbody tr:nth-child(3) > * { border-bottom: 1px solid var(--line-2); }  /* trennt „beide“ von „nur einer“ */
.matrix tbody tr { transition: background-color 0.2s ease; }
.matrix tbody tr:hover { background: var(--bg-alt); }
.tick { display: inline-block; width: 28px; height: 28px; vertical-align: middle; color: var(--brand); }
.dash { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--ink-3); vertical-align: middle; }

/* ---------- Sprechzeiten & Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 26px; }
.panel-title { font-size: clamp(24px, 2.4vw, 30px); }

/* Tageslineal */
.today[hidden] { display: none; }
.today { margin-bottom: 30px; }
.today-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.today-title span { color: var(--ink-3); font-weight: 500; }
/* --from und --to (volle Stunden) setzt site.js nach den tatsächlichen Sprechzeiten; hier stehen bewusst keine Uhrzeiten */
.ruler { position: relative; height: 78px; }
.ruler-band { position: absolute; left: 0; right: 0; top: 28px; height: 14px; }
.ruler-session {
  position: absolute; top: 0; bottom: 0;
  left: calc((var(--s) - var(--from)) / (var(--to) - var(--from)) * 100%);
  width: calc((var(--e) - var(--s)) / (var(--to) - var(--from)) * 100%);
  border: 1px solid var(--brand-ink);
  background: repeating-linear-gradient(-45deg, var(--brand-ink) 0 1.2px, transparent 1.2px 5px), var(--brand-tint);
  transform-origin: left;
}
.ruler-scale {
  position: absolute; left: 0; right: 0; top: 42px; height: 12px;
  border-top: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / (var(--to) - var(--from)))) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px calc(100% / ((var(--to) - var(--from)) * 2))) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / ((var(--to) - var(--from)) * 4))) 0 0 / 100% 4px no-repeat;
}
.ruler-scale::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 10px; background: var(--ink); }
.ruler-hours span { position: absolute; top: 58px; transform: translateX(-50%); left: calc((var(--h) - var(--from)) / (var(--to) - var(--from)) * 100%); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.ruler-progress { position: absolute; left: 0; top: 41px; height: 3px; width: 0; background: var(--ink); transition: width 1.6s var(--ease); }
.ruler-needle { position: absolute; top: 4px; bottom: 22px; left: 0; width: 0; transition: left 1.6s var(--ease); }
.ruler-needle[hidden] { display: none; }
.ruler-needle::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 0; width: 2px; background: var(--ink); }
.ruler-needle::after { content: ""; position: absolute; left: -5px; bottom: -4px; border: 5px solid transparent; border-bottom: 0; border-top: 7px solid var(--ink); transform: rotate(180deg); }
.ruler-needle span { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 1px 6px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Wochentabelle */
.week-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week-table th, .week-table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.week-table thead th { padding-top: 0; color: var(--ink-3); border-bottom-color: var(--ink); }
.week-table tbody th { font-weight: 600; color: var(--ink); width: 36%; }
.week-table td { color: var(--ink-2); }
.week-table .none { color: var(--ink-3); }
.week-table tr.is-today .none { color: var(--ink-2); }
.week-table td { white-space: nowrap; }
.week-table .d-short { display: none; }
.week-table tr.is-today th, .week-table tr.is-today td { background: var(--brand-tint); color: var(--ink); }
.week-table tr.is-today th { color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand); }
.today-flag { display: none; margin-left: 8px; padding: 1px 7px; border-radius: var(--r-sm); background: var(--brand-ink); color: #fff; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
tr.is-today .today-flag { display: inline-block; }
.week-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.week-note[hidden] { display: none; }
.week-note + .week-note { margin-top: 6px; }
.week-note a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }

/* Kontaktkarte */
.contact-panel { display: flex; flex-direction: column; }
.phone-label { margin: 0 0 4px; color: var(--ink-3); }
.phone-big { align-self: flex-start; margin-bottom: 8px; font-size: clamp(36px, 3.6vw, 48px); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--brand-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.phone-big:hover { background-size: 100% 2px; }
.facts { margin: 20px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { display: flex; gap: 12px; margin: 24px 0 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--brand-tint); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--brand-ink); }
.note a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }

/* Außerhalb der Sprechzeiten: sitzt am unteren Rand der Kontaktkarte */
.after-hours { margin-top: auto; padding-top: 28px; }
.after-hours-title { margin: 0 0 4px; color: var(--ink-3); }
.after-hours-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.after-hours-title + .after-hours-line { border-top: 1px solid var(--line); }
.after-hours-line:last-child { border-bottom: 0; padding-bottom: 0; }
.after-hours-num { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--brand-ink); text-decoration: none; }
.after-hours-num:hover { text-decoration: underline; text-underline-offset: 3px; }
.after-hours-line.is-emergency a { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; background: var(--bg); border-top: 1px solid var(--line); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: auto; height: 84px; }
.footer-brand p { margin: 0; line-height: 1.35; }
.footer-brand span { display: block; color: var(--ink-3); }
.footer-brand strong { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.footer-col h2 { margin: 0 0 12px; color: var(--ink-3); }
.footer-col p, .footer-col li { margin: 0 0 6px; font-size: 15px; }
.footer-col a { color: var(--brand-ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* ---------- Mobile Anrufleiste ---------- */
.call-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05); transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
.call-dock.is-visible { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
.call-dock .status { display: grid; grid-template-columns: 8px auto; column-gap: 8px; row-gap: 1px; font-size: 14px; min-width: 0; }
.call-dock .status-detail { grid-column: 2; font-size: 12px; }
.call-dock .status-detail::before { content: none; }
.call-dock .btn { min-height: 48px; padding: 0 18px; }

/* ==========================================================================
   Rechtliches
   ========================================================================== */
.legal-hero { padding: calc(var(--header-h) + 136px) 0 48px; }
.legal-title { font-size: clamp(32px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 32px; overflow-wrap: break-word; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tabs a { margin-bottom: -1px; padding: 12px 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; padding-bottom: clamp(80px, 10vw, 128px); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 14px; }
.toc-group + .toc-group { margin-top: 28px; }
.toc-title { display: block; margin: 0 0 10px; color: var(--ink-3); text-decoration: none; }
.toc-title.is-active { color: var(--brand-ink); }
.toc ol { border-left: 1px solid var(--line); }
.toc li a { display: flex; gap: 10px; margin-left: -1px; padding: 5px 0 5px 16px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color 0.2s ease, border-color 0.2s ease; }
.toc li a .n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; padding-top: 1px; min-width: 16px; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.legal-part + .legal-part { margin-top: clamp(72px, 9vw, 120px); }
.part-head { padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.part-head .part-letter { display: none; }
.part-head h2 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.028em; overflow-wrap: break-word; }
.imprint-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.imprint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.imprint-grid > div { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.imprint-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.imprint-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.imprint-grid dt { margin-bottom: 3px; font-size: 14px; color: var(--ink-3); }
.imprint-grid dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
/* E-Mail: Schrift mit eindeutigen Zeichen (I/l/1, O/0), ein Tipp markiert die ganze Adresse; bewusst kein Link */
.email { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.94em; letter-spacing: 0; -webkit-user-select: all; user-select: all; overflow-wrap: anywhere; }
.email-domain { white-space: nowrap; }  /* bricht auf schmalen Bildschirmen vor dem @ um, nicht am Bindestrich der Domain */
.clause { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.clause:last-child { border-bottom: 0; }
.part-head + .clause { padding-top: 0; }
.clause-num { padding-top: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.clause h3 { margin-bottom: 14px; font-size: clamp(21px, 2vw, 24px); line-height: 1.25; }
.clause-body { color: var(--ink-2); max-width: 46em; }
.clause-body p:last-child { margin-bottom: 0; }
.clause-body strong { color: var(--ink); font-weight: 600; }
.clause-body a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.clause-body address { font-style: normal; line-height: 1.75; color: var(--ink); }
.kv { margin: 18px 0 0; }
.clause-body > .kv:first-child { margin-top: 0; }
.kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.clause-body > .kv:first-child > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; }
.callout { display: flex; gap: 14px; margin-bottom: 8px; padding: 18px 22px; border: 1px solid var(--warn-line); border-left: 4px solid var(--warn); border-radius: var(--r-sm); background: var(--warn-tint); }
.callout svg { width: 22px; height: 22px; flex: none; fill: var(--warn-ink); }
.callout-title { margin: 0 0 2px; font-weight: 650; color: var(--warn-ink); }
.callout p:last-child { margin: 0; }
.callout a { color: inherit; }

/* ==========================================================================
   Animationen (nur mit JavaScript und ohne „Bewegung reduzieren“)
   ========================================================================== */
@keyframes sketch { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(0, 122, 0, 0.1); } }

.anim .hero [data-rise] { opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: var(--rd, 0s); }

.anim [data-sketch] path:not(.hand) { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.anim [data-sketch].is-drawn path:not(.hand) {
  animation: sketch var(--dur, 1.5s) cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
  animation-delay: calc(var(--d, 0) * var(--sweep, 1.2s) + var(--sd, 0s));
}
/* Vergrößerte Darstellung (Stellenanzeige): längeres Strichmuster, damit jede Linie vollständig gezeichnet wird */
.anim .job-art path:not(.hand) { stroke-dasharray: 3 3; stroke-dashoffset: 3; }
.anim [data-sketch] :is(.rf, .slate, .apo, .accent, .tint, .pf) { fill-opacity: 0; transition: fill-opacity 0.9s ease; transition-delay: calc(var(--d, 0) * var(--sweep, 1.2s) + var(--sd, 0s) + 1s); }
.anim [data-sketch].is-drawn :is(.rf, .slate, .apo, .accent, .tint, .pf) { fill-opacity: 1; }
.anim [data-sketch] :is(.label, .shop-label, .lead-dot, .hand-dot) { opacity: 0; transition: opacity 0.7s ease; transition-delay: calc(var(--sweep, 1.2s) + var(--sd, 0s) + 0.9s); }
.anim [data-sketch].is-drawn :is(.label, .shop-label, .lead-dot, .hand-dot) { opacity: 1; }
.anim [data-sketch] .hand { opacity: 0; transition: transform 1.8s var(--ease), opacity 0.5s ease 1.2s; }
.anim [data-sketch].is-drawn .hand { opacity: 1; }
.anim [data-sketch] .callout { --d: 1.1; }
.anim [data-sketch] .callout .lead { animation-duration: 0.9s; }

.anim [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.anim [data-reveal].is-visible { opacity: 1; transform: none; }

.anim .ruler-session { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(0.25s + var(--i, 0) * 0.2s); }
.anim .today.is-visible .ruler-session { transform: none; }
.anim .status.is-open .status-dot { animation: breathe 2.8s ease-in-out infinite; }

/* ---------- Gestaffeltes Einblenden (Zeilen, Häkchen, Label-Linien) ---------- */
/* Einblenden kürzer (höchstens 0,6 s), damit nichts auf sich warten lässt */
.anim [data-reveal] { transition-duration: 0.6s; }

/* Reihenfolge-Index für gestaffelte Elemente */
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *) { --i: 0; }
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *):nth-child(2) { --i: 1; }
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *):nth-child(3) { --i: 2; }
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *):nth-child(4) { --i: 3; }
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *):nth-child(5) { --i: 4; }
:is(.week-table tbody tr, .matrix tbody tr, .facts > div, .after-hours > *):nth-child(6) { --i: 5; }

/* Zeilen und Fakten gleiten nacheinander ein */
.anim [data-reveal] :is(.week-table tbody tr > *, .matrix tbody tr > *, .facts > div, .after-hours > *) {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background-color 0.2s ease;
  transition-delay: calc(0.18s + var(--i) * 70ms), calc(0.18s + var(--i) * 70ms), 0s;
}
.anim [data-reveal].is-visible :is(.week-table tbody tr > *, .matrix tbody tr > *, .facts > div, .after-hours > *) { opacity: 1; transform: none; }

/* Häkchen: Kreis erscheint, dann zeichnet sich der Haken (Strichlänge des Hakens ≈ 17 Einheiten) */
.anim .matrix .tick {
  opacity: 0; transform: scale(0.6);
  stroke-dasharray: 17; stroke-dashoffset: 17;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), stroke-dashoffset 0.4s ease;
  transition-delay: calc(0.3s + var(--i) * 70ms), calc(0.3s + var(--i) * 70ms), calc(0.5s + var(--i) * 70ms);
}
.anim [data-reveal].is-visible .matrix .tick { opacity: 1; transform: none; stroke-dashoffset: 0; }
.anim .matrix .dash { transform: scaleX(0); transition: transform 0.35s var(--ease); transition-delay: calc(0.4s + var(--i) * 70ms); }
.anim [data-reveal].is-visible .matrix .dash { transform: none; }

/* Die kurze Linie vor den Abschnitts-Beschriftungen zeichnet sich */
.anim [data-reveal] :is(.section-label, .job-label)::before { transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease) 0.15s; }
.anim [data-reveal].is-visible :is(.section-label, .job-label)::before { transform: none; }

/* ---------- Parallaxe (scroll-gesteuerte CSS-Animationen; ohne Unterstützung steht alles still) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes plx-text { to { transform: translateY(-40px); } }
    @keyframes plx-drawing { to { transform: translateY(32px); } }
    @keyframes plx-rise { from { transform: translateY(40px); } to { transform: none; } }
    /* Überschrift gleitet schneller nach oben, die Zeichnung bleibt etwas zurück */
    .hero > .container { animation: plx-text linear both; animation-timeline: scroll(root block); animation-range: 0px 100vh; }
    .hero > .drawing { animation: plx-drawing linear both; animation-timeline: scroll(root block); animation-range: 0px 100vh; }
    /* Häuser der Stellenanzeige heben sich beim Hineinscrollen.
       Zeitleiste an .job benannt: .job hat overflow: hidden und wäre sonst selbst der Bezugs-Scrollbereich. */
    .job { view-timeline: --job block; }
    .job-art .hauptplatz { animation: plx-rise linear both; animation-timeline: --job; animation-range: entry 0% cover 45%; }
  }
}

/* ---------- Wolken und Vogelschwarm im Linienstil ---------- */
.hauptplatz .bird path { fill: none; stroke: var(--draw); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hauptplatz .birds { opacity: 0; }   /* ohne Animation unsichtbar */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cloud-drift { from { transform: translateX(calc(var(--cloud-dx) * -1)); } to { transform: translateX(var(--cloud-dx)); } }
  .anim .cloud { animation: cloud-drift var(--cloud-dur) ease-in-out var(--cloud-delay, 0s) infinite alternate both; }
  @keyframes birds-fly {
    0%   { opacity: 0; transform: translate(0, 0); }
    8%   { opacity: 1; }
    50%  { transform: translate(690px, -26px); }
    88%  { opacity: 1; }
    100% { opacity: 0; transform: translate(1370px, -8px); }
  }
  .anim .birds { animation: birds-fly 9s cubic-bezier(0.3, 0.1, 0.45, 1) 3.4s both; }
  @keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.3); } }
  .anim .bird { transform-box: fill-box; transform-origin: center; animation: flap 0.42s ease-in-out infinite alternate; }
  .anim .bird:nth-child(2) { animation-delay: -0.12s; }
  .anim .bird:nth-child(3) { animation-delay: -0.27s; }
  .anim .bird:nth-child(4) { animation-delay: -0.05s; }
  .anim .bird:nth-child(5) { animation-delay: -0.33s; }
}
    

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 1240px) {
  .header-meta { display: none; }
  .header-side.left { justify-content: flex-end; }
  .nav { gap: 22px; }
}
@media (max-width: 1100px) {
  .header-phone span { display: none; }
}
/* Laptop-Höhen: Startbereich verdichten, damit das Praxishaus bis zur Tür ohne Scrollen sichtbar ist */
@media (min-width: 1021px) and (max-height: 900px) {
  .logo-badge { width: 132px; height: 132px; margin-left: -66px; }
  .logo-badge img { height: 125px; }
  .site-header.is-scrolled .logo-badge, .site-header.logo-klein .logo-badge { transform: scale(0.45); }
  .hero { padding-top: calc(var(--header-h) + 90px); }
  .kicker { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(38px, 4.4vw, 58px); margin-bottom: 12px; }
  .hero-sub { margin-bottom: 22px; }
  .hero .status { margin-top: 14px; }
  .drawing { margin-top: 24px; }
  /* Breite aus der verfügbaren Höhe: 1600/492 ≈ 3,25 (Seitenverhältnis der Zeichnung), 440 px = Inhalt darüber */
  .drawing .hauptplatz { max-width: min(1400px, max(900px, calc((100vh - 440px) * 3.25))); }
}
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .header-grid { grid-template-columns: 1fr 110px 1fr; gap: 12px; }
  .nav, .header-phone { display: none; }
  .header-side.left { justify-content: flex-start; }
  .header-side.right { justify-content: flex-end; }
  .menu-toggle { display: block; }
  .icon-call { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--brand-ink); }
  .icon-call svg { width: 18px; height: 18px; }
  .logo-badge { top: 6px; width: 104px; height: 104px; margin-left: -52px; }
  .logo-badge img { height: 98px; }
  .site-header.is-scrolled .logo-badge, .site-header.logo-klein .logo-badge { transform: scale(0.5); }
  .hero { padding-top: calc(var(--header-h) + 84px); }
  .legal-hero { padding-top: calc(var(--header-h) + 84px); }
  .job-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .job-copy { padding-bottom: 32px; }
  .job-art .hauptplatz { max-height: 280px; margin-inline: auto; }
  .matrix .c-field { width: 40%; }
  .matrix thead th { padding-inline: 12px; }
  .m-name { font-size: 19px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  /* Zeichnung wird schmaler: Schild größer setzen (Einheiten der Zeichnung), „APOTHEKE“ wäre unlesbar klein */
  .drawing .hauptplatz .label { font-size: 22px; transform: translate(2px, 3.5px); }
  .drawing .shop-label { display: none; }
}
@media (max-width: 880px) {
  .drawing .hauptplatz .label { font-size: 26px; transform: translate(3px, 5px); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .btn { min-height: 48px; }
  .hero-sub .sep { display: none; }
  .hero-sub .line { display: block; }
  .hero-actions .btn { flex: 1 1 200px; }
  .drawing { overflow: hidden; }
  .drawing .hauptplatz { width: 780px; height: 240px; max-width: none; margin-left: calc(50% - 470px); }
  .job-actions .btn { width: 100%; }
  .ruler-hours span:nth-child(even) { display: none; }
  .week-table th, .week-table td { padding: 11px 8px; font-size: 15px; }
  .week-table tbody th { width: auto; }
  .week-table .d-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .week-table .d-short { display: inline; }
  .today-flag { display: none !important; }
  .panel { padding: 22px 18px; }
  .matrix .c-field { width: 42%; }
  .matrix thead th { padding: 22px 4px 18px; }
  .matrix thead .m-corner { padding-left: 16px; }
  .m-doc .monogram { width: 44px; height: 44px; font-size: 14px; }
  .m-doc .monogram::after { inset: -4px; }
  .m-name { margin-top: 12px; font-size: 15px; letter-spacing: -0.01em; }
  .n-long, .m-role { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .n-short { display: block; }
  .matrix tbody th { padding: 15px 8px 15px 16px; font-size: 15px; }
  .matrix tbody td { padding: 14px 4px; }
  .tick { width: 24px; height: 24px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand img { height: 68px; }
  .call-dock { display: flex; }
  .has-dock .site-footer { padding-bottom: 96px; }
  .tabs { gap: 20px; }
  .imprint-grid { grid-template-columns: 1fr; }
  .imprint-grid > div:nth-child(odd) { border-right: 0; }
  .imprint-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .imprint-grid > div { padding: 14px 18px; }
  .clause { grid-template-columns: 1fr; padding: 26px 0; }
  .clause-num { padding: 0 0 6px; }
  .kv > div { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .week-table thead th { letter-spacing: 0.06em; }
  .week-table th, .week-table td { padding-inline: 6px; }
  .week-table td { font-size: 14px; }
  .matrix .c-field { width: 32%; }                 /* Platz für „Dr. Hausberg“; Fachbegriffe trennen per &shy; */
  .m-corner-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* steht schon in der Überschrift; bleibt für Screenreader */
  .matrix tbody th { padding-left: 12px; padding-right: 6px; font-size: 14px; }
  .m-name { font-size: 14px; letter-spacing: -0.02em; }
}

/* ==========================================================================
   Hinweis der Praxis (aus der Verwaltung)
   Startbereich: Aushang im Stil der Zeichnung. Sprechzeiten-Tafel: Kalenderblatt.
   ========================================================================== */
.aushang[hidden], .blatt[hidden], .aushang [hidden], .blatt [hidden] { display: none !important; }

/* Aushang */
.aushang { position: relative; max-width: 540px; margin: 32px auto 0; padding: 32px 34px 26px; background: #fffdf6; border: 1.2px solid #3b453e; border-radius: 3px; box-shadow: 5px 7px 0 -2px rgba(59, 69, 62, 0.12); transform: rotate(-1deg); color: var(--ink); text-align: center; }
.aushang p { margin: 0; text-wrap: balance; }
.aushang-band { position: absolute; top: -12px; width: 88px; height: 24px; background: rgba(214, 234, 211, 0.8); border: 1px solid rgba(59, 69, 62, 0.35); }
.aushang-band.is-l { left: 22px; transform: rotate(-7deg); }
.aushang-band.is-r { right: 22px; transform: rotate(6deg); }
.aushang-titel { font-size: 30px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; }
.aushang-datum { margin-top: 6px !important; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.aushang-zeiten { margin-top: 4px !important; font-size: 17px; font-weight: 650; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.aushang-linie { display: block; width: 170px; height: 10px; margin: 12px auto 14px; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; }
.aushang-text { font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.aushang-vt { margin-top: 14px; }
.aushang-vt-intro { margin-bottom: 4px !important; font-size: 14px; color: var(--ink-3); }
.aushang .nv { padding: 10px 0; border-top: 1px dashed #b4beb5; }
.aushang .nv:first-child { border-top: 0; }
.aushang .nv-k { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.aushang .nv-wort { display: none; }
.aushang .nv-k.ohne-wann { display: none; }
.aushang .nv.is-now .nv-k { color: var(--brand-ink); }
.aushang .nv-name { font-weight: 650; }
.aushang .nv-adr { font-size: 15px; color: var(--ink-2); }
.aushang .nv-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--brand-ink); text-decoration: none; font-variant-numeric: tabular-nums; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.aushang .nv-tel:hover { background-size: 100% 2px; }
.aushang .nv-tel svg { width: 17px; height: 17px; }
/* Eigener Hinweis (Vorankündigung) */
.aushang[data-art="hinweis"] .aushang-titel { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-ink); }
.aushang[data-art="hinweis"] .aushang-linie { margin: 8px auto 12px; stroke: var(--brand); }
.aushang[data-art="hinweis"] .aushang-text { font-size: 19px; line-height: 1.5; color: var(--ink); }

/* Kalenderblatt in der Sprechzeiten-Tafel */
.blatt { display: grid; grid-template-columns: 92px minmax(0, 1fr); margin: 0 0 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.blatt p { margin: 0; }
.blatt-kal { display: flex; flex-direction: column; background: var(--warn-tint); border-right: 1px solid var(--warn-line); text-align: center; }
.blatt-monat { padding: 9px 6px; background: var(--warn-ink); color: #fff;   /* --warn-ink statt --warn: genug Kontrast für weiße 12-px-Schrift */ font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.blatt-tage { flex: 1; display: grid; place-items: center; padding: 12px 6px; font-size: 20px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--warn-ink); font-variant-numeric: tabular-nums; }
.blatt-info { display: none; width: 30px; height: 30px; fill: var(--brand-ink); }
.blatt[data-art="hinweis"] .blatt-kal { justify-content: center; align-items: center; background: var(--brand-tint); border-color: var(--brand-tint-2); }
.blatt[data-art="hinweis"] .blatt-info { display: block; }
.blatt[data-art="zeiten"] .blatt-kal { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.blatt[data-art="zeiten"] .blatt-monat { background: var(--brand-ink); }
.blatt[data-art="zeiten"] .blatt-tage { color: var(--brand-ink); }
.blatt-inhalt { min-width: 0; padding: 16px 18px; }
.blatt-titel { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn-ink); }
.blatt[data-art="hinweis"] .blatt-titel, .blatt[data-art="zeiten"] .blatt-titel { color: var(--brand-ink); }
.blatt-datum { margin-top: 4px !important; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.blatt-zeiten { margin-top: 2px !important; font-size: 16px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.blatt-text { margin-top: 8px !important; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.blatt[data-art="hinweis"] .blatt-text { margin-top: 6px !important; font-size: 17px; line-height: 1.5; color: var(--ink); }
.blatt-vts { margin-top: 12px; border-top: 1px solid var(--line); }
.blatt .nv { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.blatt .nv > p { grid-column: 1; }
.blatt .nv-tel { grid-column: 2; grid-row: 1 / span 3; }
.blatt .nv-k { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.blatt .nv.is-now .nv-k { color: var(--brand-ink); }
.blatt .nv-name { font-weight: 650; }
.blatt .nv-adr { font-size: 14px; color: var(--ink-2); }
.blatt .nv-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: var(--brand-ink); color: #fff; font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blatt .nv-tel:hover { background: var(--brand-deep); }
.blatt .nv:not(.is-now) .nv-tel { background: #fff; color: var(--brand-ink); border: 1px solid var(--line-2); }
.blatt .nv-tel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }

/* Wochentabelle: Schließungen, Feiertage und geänderte Zeiten der laufenden Woche */
.week-table td.is-closed { color: var(--warn-ink); font-weight: 600; }
.week-table td.is-holiday, .week-table td.is-off { color: var(--ink-3); }
.week-table td.is-changed { color: var(--brand-ink); font-weight: 600; }
.week-table tr.is-today td.is-closed { background: var(--warn-tint); color: var(--warn-ink); }

@media (min-width: 1021px) and (max-height: 900px) {
  .hero .aushang { margin-top: 22px; padding: 26px 30px 20px; }
  .hero .aushang-titel { font-size: 26px; }
}
@media (max-width: 720px) {
  .aushang { margin: 28px 2px 0; padding: 28px 20px 20px; }
  .aushang-titel { font-size: 26px; }
  .aushang-band { width: 70px; }
  .blatt { grid-template-columns: 1fr; }
  .blatt-kal { flex-direction: row; align-items: stretch; border-right: 0; border-bottom: 1px solid var(--warn-line); }
  .blatt-monat { display: flex; align-items: center; padding: 8px 12px; }
  .blatt-tage { flex: 1; place-items: center start; padding: 8px 12px; font-size: 18px; }
  .blatt[data-art="hinweis"] .blatt-kal { justify-content: flex-start; padding: 10px 14px; }
  .blatt-info { width: 24px; height: 24px; }
  .blatt .nv { grid-template-columns: 1fr; }
  .blatt .nv-tel { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .aushang { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .mobile-menu, .toc, .tabs, .call-dock, .skip-link { display: none !important; }
  .legal-hero { padding-top: 0; }
  .legal-layout { display: block; }
}
