/* ==========================================================================
   Augenarztpraxis Lengede – Website-Relaunch (Entwurf v0.1)
   Grundlage: Markenhandbuch v0.1 (SCHEREFFEKT, 24.11.2026)
   Mobile first · Mobil < 768 px · Tablet 768–1199 px · Desktop ≥ 1200 px
   ========================================================================== */

/* ---------- Schrift (lokal, WOFF2, variable Achse 400–600) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --c-soft: #9ad5aa;        /* Sanftes Grün – ruhige Markenflächen */
  --c-fresh: #61ce70;       /* Frisches Grün – sparsame Akzente */
  --c-ink: #183d35;         /* Tannengrün – Text, Überschriften, Hauptbuttons */
  --c-ink-hover: #102d27;
  --c-bg: #f7f7f2;          /* Offwhite – Seitenhintergrund */
  --c-surface: #ffffff;
  --c-border: #d5dfd5;      /* nur dekorative Trennung */
  --c-control: #426057;     /* Kontur Bedienelemente */
  --c-muted: #3c5a52;       /* gedämpfter Text, ≥ 7:1 auf Weiß */
  --c-soft-tint: #eaf5ed;
  --c-warn-ink: #75480c;
  --c-warn-bg: #fff4d6;

  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-body: 1.25rem;       /* 20 px */
  --fs-small: 1.125rem;     /* 18 px */
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --fs-h2: 1.875rem;        /* 30 / 36 / 42 */
  --fs-h3: 1.5rem;          /* 24 / 26 / 28 */
  --fs-h4: 1.375rem;

  --r-control: 0.5rem;
  --r-panel: 1rem;

  --pad-x: 1.25rem;         /* 20 / 32 / 48 */
  --section-y: 3.5rem;      /* 56 / 96 */
  --max: 75rem;
  --text: 60ch;

  --header-h: 4.5rem;
  --t: 180ms;
}

@media (min-width: 768px) {
  :root {
    --fs-h2: 2.25rem;
    --fs-h3: 1.625rem;
    --fs-h4: 1.4375rem;
    --pad-x: 2rem;
    --section-y: 4.5rem;
    --header-h: 5rem;
  }
}
@media (min-width: 1200px) {
  :root {
    --fs-h2: 2.625rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --pad-x: 3rem;
    --section-y: 6rem;
  }
}

/* ---------- 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) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-wrap: break-word;
  hyphens: manual;
  padding-bottom: 5rem; /* Platz für mobile Aktionsleiste */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.35; }

p { margin: 0 0 1em; max-width: var(--text); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: #fff; }

.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: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-control);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline-color: var(--c-fresh); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--white { background: var(--c-surface); }
.section--soft { background: var(--c-soft); }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-muted);
}
.section--soft .eyebrow { color: var(--c-ink); }

.lead { font-size: 1.25rem; }
@media (min-width: 1200px) { .lead { font-size: 1.375rem; } }

.small { font-size: var(--fs-small); line-height: 1.5; }

/* ---------- Icons ---------- */
.icon {
  width: 1.5rem; height: 1.5rem;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 2rem; height: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.btn--primary { background: var(--c-ink); color: #fff; }
.btn--primary:hover { background: var(--c-ink-hover); }
.btn--secondary { background: var(--c-fresh); color: var(--c-ink); border-color: var(--c-ink); }
.btn--secondary:hover { background: var(--c-soft); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-control); }
.btn--ghost:hover { background: var(--c-soft-tint); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-soft-tint); }

.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.btn__stack small { font-size: 1rem; font-weight: 500; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row .btn { flex: 1 1 14rem; }
@media (min-width: 768px) { .btn-row .btn { flex: 0 0 auto; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--c-border);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: 0 1 auto; padding-block: 0.5rem; }
.brand img {
  width: min(260px, calc(100vw - 2 * var(--pad-x) - 5.75rem));
  height: auto;
}
@media (min-width: 768px) { .brand img { width: 300px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--c-control);
  border-radius: var(--r-control);
  background: #fff;
  color: var(--c-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 12px 24px rgba(24, 61, 53, 0.12);
  padding: 0.5rem var(--pad-x) 1.25rem;
}
.js .site-nav[hidden] { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--c-border); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  font-weight: 500;
  font-size: var(--fs-small);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .btn { width: 100%; margin-top: 1rem; }

/* ohne JS: Navigation immer sichtbar */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; box-shadow: none; border: 0; padding: 0 0 0.75rem; }
.no-js .site-header__inner { flex-wrap: wrap; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav[hidden] {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; }
  .site-nav li + li { border: 0; }
  .site-nav a { padding-inline: 0.75rem; min-height: 3rem; }
  .site-nav .btn { width: auto; margin: 0; }
}

/* ==========================================================================
   01 · Hero
   ========================================================================== */
.hero { padding-block: 2rem var(--section-y); }
.hero__grid { display: grid; gap: 2rem; }
.hero__kicker { font-size: var(--fs-small); font-weight: 500; color: var(--c-muted); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 1.75rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 30%;
  border-radius: var(--r-panel);
  background: var(--c-soft-tint);
}
.hero__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(24, 61, 53, 0.12);
}
.hero__badge strong { display: block; font-size: var(--fs-small); }

@media (min-width: 768px) {
  .hero { padding-top: 3.5rem; }
  .hero__media img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3.5rem; }
  .hero__media img { aspect-ratio: 4 / 5; object-position: 65% 30%; }
}

/* Schnellinfo – Orientierung vor dem Scrollen */
.quickinfo {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.quickinfo__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0.75rem;
  font-size: var(--fs-small);
  line-height: 1.45;
}
.quickinfo__item .icon { margin-top: 0.1rem; color: var(--c-ink); }
.quickinfo__label { display: block; font-weight: 600; }
.quickinfo__item a { font-weight: 600; }
.quickinfo__item--notfall { background: var(--c-soft-tint); border-color: var(--c-soft); }
@media (min-width: 768px) {
  .quickinfo { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .quickinfo { margin-top: 3rem; }
}

/* ==========================================================================
   02 · Ärztin
   ========================================================================== */
.doctor__grid { display: grid; gap: 2.25rem; }
.doctor__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 70% 40%;
  border-radius: var(--r-panel);
}
.doctor__name { margin-bottom: 0.35rem; }
.doctor__role { font-size: var(--fs-h4); font-weight: 500; margin-bottom: 0.5rem; }
.doctor__title { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 1.5rem; }

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-left: 3px solid var(--c-soft);
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.6rem; top: 0.45rem;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-ink);
}
.timeline li.is-highlight::before { background: var(--c-fresh); }
.timeline__year { display: block; font-weight: 600; font-size: var(--fs-small); line-height: 1.4; }
.timeline__text { display: block; font-size: var(--fs-small); line-height: 1.5; }

@media (min-width: 1024px) {
  .doctor__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
  .doctor__photo { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ==========================================================================
   03 · Verstehen – Sehprobentafel
   ========================================================================== */
.clarity__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .clarity__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.chart {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid var(--c-border);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000;
  user-select: none;
}
.chart__row {
  display: grid;
  grid-template-columns: 1fr 3.25rem;
  align-items: center;
  column-gap: 0.5rem;
}
.chart__letters {
  text-align: center;
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* gleicht letter-spacing aus */
  line-height: 1.25;
  white-space: nowrap;
}
.chart__val {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.625rem;
  color: #333;
  text-align: right;
}
.chart__row--red .chart__letters { border-bottom: 2px solid #c0392b; padding-bottom: 0.2rem; margin-bottom: 0.35rem; }
.chart__row--green .chart__letters { border-bottom: 2px solid #2e8b57; padding-bottom: 0.2rem; margin-bottom: 0.35rem; }

/* Größen – klein beginnende Skala relativ zur Tafelbreite */
.chart__row:nth-child(1)  .chart__letters { font-size: 4.75rem; line-height: 1.05; margin-bottom: 0.5rem; }
.chart__row:nth-child(2)  .chart__letters { font-size: 2.6rem; }
.chart__row:nth-child(3)  .chart__letters { font-size: 1.95rem; }
.chart__row:nth-child(4)  .chart__letters { font-size: 1.55rem; }
.chart__row:nth-child(5)  .chart__letters { font-size: 1.3rem; }
.chart__row:nth-child(6)  .chart__letters { font-size: 1.08rem; }
.chart__row:nth-child(7)  .chart__letters { font-size: 0.95rem; }
.chart__row:nth-child(8)  .chart__letters { font-size: 0.82rem; }
.chart__row:nth-child(9)  .chart__letters { font-size: 0.7rem; }
.chart__row:nth-child(10) .chart__letters { font-size: 0.6rem; }
.chart__row:nth-child(11) .chart__letters { font-size: 0.52rem; }

@media (max-width: 380px) {
  .chart { padding-inline: 0.75rem; }
  .chart__letters { letter-spacing: 0.22em; padding-left: 0.22em; }
  .chart__row:nth-child(1) .chart__letters { font-size: 4rem; }
}

/* Unschärfe → Schärfe: nur mit JS und ohne reduzierte Bewegung */
/* Unschärfe folgt der Scroll-Position (main.js setzt --chart-blur) */
.js .chart.is-blurred .chart__body { filter: blur(var(--chart-blur, 6px)); }
.chart__body { transition: filter 240ms linear; will-change: filter; }
@media (prefers-reduced-motion: reduce) {
  .js .chart.is-blurred .chart__body { filter: none; }
}


/* Dreiklang */
.triad {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.triad__item {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--r-panel);
}
.triad__item h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.triad__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.triad__item p { font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 768px) {
  .triad { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .triad__item { padding: 1.75rem; }
}

/* ==========================================================================
   04 · Leistungen
   ========================================================================== */
.services__intro { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.services__intro img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--r-panel);
}
@media (min-width: 900px) {
  .services__intro { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3.5rem; }
}

.service-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.service-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}
@media (min-width: 768px) { .service-card { padding: 2rem; } }
.service-card__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  flex: none;
  border-radius: 0.75rem;
  background: var(--c-soft);
  color: var(--c-ink);
}
.service-card h3 { margin: 0; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding-block: 0.9rem; border-top: 1px solid var(--c-border); }
.service-list li:first-child { border-top: 0; padding-top: 0; }
.service-list li:last-child { padding-bottom: 0; }
.service-list strong { display: block; font-size: var(--fs-small); line-height: 1.4; margin-bottom: 0.25rem; }
.service-list span { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--c-muted); }

/* ==========================================================================
   05 · Besuch vorbereiten
   ========================================================================== */
.steps { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--c-bg);
  border-radius: var(--r-panel);
}
.step .icon { color: var(--c-ink); margin-bottom: 0.25rem; }
.step h3 { font-size: var(--fs-h4); margin: 0; }
.step p { font-size: var(--fs-small); line-height: 1.5; }
.step a { font-weight: 600; }

/* ==========================================================================
   06 · Sprechzeiten, Notfall & Kontakt
   ========================================================================== */
.hours-grid { display: grid; gap: 1.25rem; }
.hours-grid > *, .service-grid > *, .doctor__grid > *, .hero__grid > * { min-width: 0; }
@media (min-width: 900px) { .hours-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.panel {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}
@media (min-width: 768px) { .panel { padding: 2rem; } }
.panel__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.panel__head h3 { margin: 0; }
.panel--emergency { border: 2px solid var(--c-ink); }

.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.hours caption { text-align: left; }
.hours th, .hours td { padding: 0.75rem 0.5rem; text-align: left; vertical-align: top; border-top: 1px solid var(--c-border); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { font-weight: 600; width: 40%; }
.hours td span { display: block; }
.hours tr.is-today { background: var(--c-soft-tint); }
.hours tr.is-today th::after {
  content: "Heute";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.45rem;
  border-radius: 0.35rem;
  background: var(--c-ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 0.1em;
}
@media (max-width: 420px) {
  .hours tr.is-today th::after { display: table; margin: 0.25rem 0 0; }
  .actionbar .btn { padding-inline: 0.25rem; }
}
.hours__note { margin-top: 1rem; font-size: var(--fs-small); line-height: 1.5; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--c-soft);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.tag .icon { width: 1.25rem; height: 1.25rem; }

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--c-warn-bg);
  color: var(--c-warn-ink);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.notice strong { display: block; }
.notice .icon { margin-top: 0.15rem; }

/* Kontaktfläche – dunkles Tannengrün */
.contact {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
}
.contact-list a { color: #fff; }
.contact__main { padding: 1.75rem 1.5rem; }
@media (min-width: 768px) { .contact__main { padding: 2.5rem; } }
.contact h3 { color: #fff; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon { margin-top: 0.2rem; color: var(--c-soft); }
.contact-list__label { display: block; font-size: 1rem; color: #cfe6d6; line-height: 1.4; }
.contact-list__value { display: block; font-weight: 600; line-height: 1.45; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--c-soft); }
.contact-list a:hover { border-bottom-color: #fff; }
.contact .btn-row { margin-top: 2rem; }

.contact__map {
  position: relative;
  min-height: 16rem;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: #eef3ec;
  color: var(--c-ink);
  text-align: center;
  isolation: isolate;
}
.contact__map::before {
  /* stilisierte Kartenfläche – keine Drittanbieter-Einbindung */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(20deg, transparent 60%, #fff 60%, #fff 64%, transparent 64%),
    linear-gradient(170deg, transparent 30%, #fff 30%, #fff 33%, transparent 33%),
    linear-gradient(0deg, #e3ecdf, #eef3ec);
  opacity: 0.9;
}
.contact__pin {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(154, 213, 170, 0.6);
}
.contact__map address { font-style: normal; font-weight: 600; margin-bottom: 1.25rem; line-height: 1.45; }
.contact__map .small { margin: 1rem auto 0; color: var(--c-muted); max-width: 26ch; }

@media (min-width: 900px) {
  .contact { grid-template-columns: 1.15fr 0.85fr; }
}

/* ==========================================================================
   Rechtliches
   ========================================================================== */
.legal { padding-block: var(--section-y); background: var(--c-surface); border-top: 1px solid var(--c-border); }
.legal + .legal { padding-top: 0; border-top: 0; }
.legal h2 { font-size: var(--fs-h3); }
.legal h3 { font-size: var(--fs-h4); margin-top: 1.75rem; }
.legal h4 { font-size: 1.25rem; margin: 1.5rem 0 0.4rem; }
.legal p,
.legal li { font-size: var(--fs-small); line-height: 1.55; max-width: 68ch; }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; font-size: var(--fs-small); line-height: 1.55; margin-bottom: 1em; }
.legal__body { max-width: 52rem; }
.legal__source { margin-top: 2rem; color: var(--c-muted); }

.accordion { border-top: 1px solid var(--c-border); margin-top: 1.5rem; }
.accordion details { border-bottom: 1px solid var(--c-border); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 0.75rem; height: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-25%, -25%);
  transition: transform var(--t);
}
.accordion details[open] > summary::after { transform: rotate(-135deg) translate(-25%, -25%); }
.accordion__content { padding-bottom: 1.5rem; }
.accordion__content h4:first-child { margin-top: 0.25rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-ink); color: #fff; padding-block: 3rem; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 2rem; font-size: var(--fs-small); line-height: 1.55; }
.footer__name { font-weight: 600; font-size: 1.25rem; margin-bottom: 0.25rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer__meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 1rem; color: #cfe6d6; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Mobile Aktionsleiste
   ========================================================================== */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.6rem var(--pad-x) calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 18px rgba(24, 61, 53, 0.08);
}
.actionbar .btn { min-height: 3rem; padding-inline: 0.5rem; font-size: 1rem; gap: 0.4rem; }
.actionbar .icon { width: 1.25rem; height: 1.25rem; }
@media (min-width: 768px) { .actionbar { display: none; } }

/* Druck */
@media print {
  .site-header, .actionbar, .skip-link, .nav-toggle { display: none !important; }
  body { padding: 0; background: #fff; }
  .section, .legal { padding-block: 1.5rem; }
  .accordion details { display: block; }
}

/* Sehr kleine Displays (≤ 360 px): kein horizontales Scrollen bei 320 CSS-px */
@media (max-width: 360px) {
  .panel { padding: 1rem; }
  .hours th, .hours td { padding: 0.65rem 0.3rem; }
  .hours { font-size: 1.0625rem; }
  .actionbar { gap: 0.35rem; }
  .actionbar .icon { display: none; }
  .panel__head h3 { font-size: 1.3rem; }
  .panel__head .icon--lg { width: 1.5rem; height: 1.5rem; }
}

/* Ärztin: vollständige Bezeichnung */
.doctor__prefix { display: block; font-size: 0.6em; font-weight: 500; line-height: 1.3; color: var(--c-muted); margin-bottom: 0.2em; }

/* Unterseiten Impressum / Datenschutz */
.page-legal { padding-bottom: 0; }
.legal--page { border-top: 0; background: var(--c-bg); min-height: 60vh; }
.legal--page h1 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.btn--back { min-height: 2.75rem; padding-inline: 1rem; font-size: 1rem; }
.btn--back { white-space: nowrap; flex: none; }
.page-legal .brand img { width: min(260px, calc(100vw - 2 * var(--pad-x) - 9.5rem)); }
@media (min-width: 768px) { .page-legal .brand img { width: 300px; } }

/* Credit Agentur */
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer__meta p { margin: 0; }
.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: #cfe6d6 !important;
  text-decoration: none;
  transition: color var(--t);
}
.credit img { width: 1.2rem; height: 1.2rem; opacity: 0.9; }
.credit:hover { color: #fff !important; text-decoration: underline; }

/* ==========================================================================
   Praxis-Hinweis (Urlaub): Leiste, Hinweis bei den Sprechzeiten, Pop-up
   ========================================================================== */
.hinweis-bar { background: var(--c-warn-bg); color: var(--c-warn-ink); border-bottom: 1px solid #f0dfae; }
.hinweis-bar[hidden], [data-hinweis-inline][hidden] { display: none; }
.hinweis-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 0.75rem;
  padding-block: 0.6rem;
  font-size: 1rem; line-height: 1.4;
}
.hinweis-bar__text { margin: 0; font-weight: 600; flex: 1 1 12rem; max-width: none; }
.hinweis-bar__btn,
.hinweis-inline__btn {
  min-height: 2.75rem;
  padding: 0 0.25rem;
  background: none; border: 0;
  color: inherit;
  font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer;
}
.notice--urlaub { margin: 0 0 1.5rem; }
.notice--urlaub strong { margin-bottom: 0.15rem; }
.notice--urlaub span { display: block; }
.hinweis-inline__btn { padding: 0; margin-top: 0.25rem; }

/* Pop-up */
.hinweis-dialog {
  width: min(100% - 1.5rem, 38rem);
  max-height: min(92dvh, 52rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 24px 60px rgba(16, 45, 39, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}
.hinweis-dialog::backdrop { background: rgba(16, 45, 39, 0.6); }
.hinweis-dialog[open] { animation: hinweis-in 200ms ease-out; }
@keyframes hinweis-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hinweis-dialog[open] { animation: none; } }

.hinweis-dialog__head {
  position: relative;
  padding: 1.75rem 4.5rem 1.5rem 1.5rem;
  background: var(--c-soft);
}
.hinweis-dialog__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 0.4rem;
  background: var(--c-ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.hinweis-dialog__title { font-size: var(--fs-h2); margin: 0 0 0.5rem; }
.hinweis-dialog__dates { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.45; }
.hinweis-dialog__x { position: absolute; top: 0.75rem; right: 0.75rem; margin: 0; }
.hinweis-dialog__x button {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-control);
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
}
.hinweis-dialog__x button:hover { background: var(--c-soft-tint); }

.hinweis-dialog__body { padding: 1.5rem; }
.hinweis-dialog__text { font-weight: 600; font-size: var(--fs-small); line-height: 1.5; margin-bottom: 1.25rem; }
.hinweis-dialog__ok { width: 100%; margin-top: 1.5rem; }

.vertretungen { list-style: none; margin: 0; padding: 0; }
.vertretung {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: 0.75rem;
  background: var(--c-bg);
}
.vertretung p { margin: 0; font-size: var(--fs-small); line-height: 1.45; }
.vertretung__name { font-weight: 600; }
.vertretung__adresse { margin-top: 0.35rem !important; color: var(--c-muted); }
.vertretung__hinweis { margin-top: 0.35rem !important; font-style: italic; }
.vertretung__tel { margin-top: 0.85rem; width: 100%; }
.vertretungen__oder {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.6rem 0;
  font-size: 1rem; font-weight: 600; color: var(--c-muted);
}
.vertretungen__oder::before, .vertretungen__oder::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

@media (min-width: 768px) {
  .hinweis-dialog__head { padding: 2.25rem 5rem 1.75rem 2.25rem; }
  .hinweis-dialog__body { padding: 1.75rem 2.25rem 2.25rem; }
  .vertretung__tel { width: auto; }
}

/* ============================== Cookie-Banner (Google Analytics) ============================== */
.consent {
  position: fixed;
  z-index: 150;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-panel);
  box-shadow: 0 0.75rem 2.5rem rgba(16, 45, 39, 0.28);
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
/* Auf dem Handy über der Aktionsleiste */
body:has(.actionbar) .consent { bottom: calc(4.9rem + env(safe-area-inset-bottom)); max-height: calc(100dvh - 6rem); }
.consent__title { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.3; }
.consent__text { margin: 0; font-size: 1rem; line-height: 1.5; }
.consent__text a { font-weight: 600; white-space: nowrap; }
.consent__status { margin: 0.75rem 0 0; font-size: 1rem; font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.consent__actions .btn { width: 100%; padding-inline: 0.75rem; font-size: 1.0625rem; }
@media (max-width: 360px) {
  .consent { padding: 1rem; }
  .consent__title { font-size: 1.125rem; }
  .consent__text { font-size: 0.9375rem; }
  .consent__actions { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .consent, body:has(.actionbar) .consent { left: auto; right: 1.5rem; bottom: 1.5rem; width: 30rem; padding: 1.5rem; }
}

/* „Cookie-Einstellungen“ im Footer: sieht aus wie ein Link */
.footer__btn {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0; border: 0; background: none;
  color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer;
}
