/* Kinderarztpraxis Christian Deklerk: Gestaltung.
   Bilderbuch: jede Doppelseite hat ihren eigenen Papiergrund, harte Kante, ein
   leiser Schatten wie eine aufliegende Seite. Der Motor (cool-website.css) bleibt
   unverändert, hier stehen nur Marken-Tokens und eigene Klassen. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-soft-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-italic-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Marke */
  --papier: #fbfaf6;
  --papier-salbei: #eef3ec;
  --papier-himmel: #eaf1f4;
  --zettel: #fffdf7;
  --tinte: #22302f;
  --tinte-weich: #4b5a58;
  --petrol: #1c6f6a;
  --petrol-tief: #155753;
  --petrol-hauch: #dcebe7;
  --tomate: #b83b28;
  --nacht: #1c3142;
  --nacht-flaeche: #243b4e;
  --nacht-tinte: #f2f0e8;
  --nacht-weich: #bccad3;
  --lampe: #f2c35b;
  --bedienrand: #7d8b88;

  --cw-canvas: var(--papier);
  --cw-surface: var(--papier-salbei);
  --cw-ink: var(--tinte);
  --cw-ink-soft: var(--tinte-weich);
  --cw-accent: var(--petrol);
  --cw-accent-ink: #ffffff;
  --cw-font-display: "Fraunces", Georgia, serif;
  --cw-font-text: "Figtree", system-ui, sans-serif;
  --cw-shadow-color: 170 25% 18%;
  --cw-e1: 0 1px 2px hsl(var(--cw-shadow-color) / 0.10), 0 2px 6px hsl(var(--cw-shadow-color) / 0.06);
  --cw-e2: 0 2px 4px hsl(var(--cw-shadow-color) / 0.08), 0 10px 24px -6px hsl(var(--cw-shadow-color) / 0.16);
  --cw-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Maße */
  --maxb: 1240px;
  --rand: clamp(1rem, 4.2vw, 2.75rem);
  --kopf-h: 76px;
  --r: 14px;
  --abstand-seite: clamp(4.25rem, 8.5vw, 8rem);
}
@media (max-width: 860px) { :root { --kopf-h: 64px; } }

/* --------------------------------------------------------------- Grund -- */
html { scroll-padding-top: calc(var(--kopf-h) + 12px); }
html.menue-offen { overflow: hidden; }
body { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem); line-height: 1.6; letter-spacing: 0; font-weight: 450; }
:where(p, ul, ol, dl, figure, table, h1, h2, h3, h4) { margin: 0; }
:where(a) { color: var(--petrol); text-decoration-thickness: 1.5px; }
:where(a):hover { color: var(--petrol-tief); }
strong { font-weight: 700; }
.nur-lesbar {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--petrol); color: #fff; padding: .7rem 1rem; border-radius: var(--r);
}
.sprung:focus { top: 1rem; }

.rahmen { padding-inline: max(var(--rand), (100% - var(--maxb)) / 2); }

.titel {
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--tinte);
  hyphens: auto;
  hyphenate-limit-chars: 14 6 6;  /* nur Ungetüme wie „Datenschutzerklärung“, nie „willkom-men“ */
  overflow-wrap: break-word;
}
.titel--seite { font-size: clamp(2.15rem, 1.55rem + 2.5vw, 3.6rem); }
.titel--klein { font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem); }
.vorsatz {
  display: block;
  font-family: var(--cw-font-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 0.9rem;
}
.lede { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.5; max-width: 40ch; text-wrap: pretty; }
.text { max-width: 62ch; text-wrap: pretty; }
.text > * + * { margin-top: 1em; }

.symbol { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------- Knöpfe -- */
.knopf {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.2rem;
  border-radius: var(--r);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  background: var(--petrol); color: #fff;
  box-shadow: var(--cw-e1);
  transition: background-color 160ms var(--cw-ease-out), transform 120ms var(--cw-ease-out);
}
.knopf:hover { background: var(--petrol-tief); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf--hell { background: var(--zettel); color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--bedienrand); }
.knopf--hell:hover { background: #fff; color: var(--tinte); }
.knopf--anruf { background: var(--lampe); color: var(--nacht); }
.knopf--anruf:hover { background: #f6d17e; color: var(--nacht); }
.knopf--leise { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.knopf--leise:hover { background: rgba(255, 255, 255, 0.08); color: inherit; }
.knopf--notruf { background: var(--tomate); color: #fff; }
.knopf--notruf:hover { background: #9e301f; color: #fff; }

/* -------------------------------------------------------------- Kopf -- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: var(--kopf-h);
  transition: background-color 200ms var(--cw-ease-out), box-shadow 200ms var(--cw-ease-out);
}
.kopf.ist-gerollt, .kopf--fest { background: var(--papier); box-shadow: 0 1px 0 rgba(34, 48, 47, 0.10), 0 6px 18px -12px rgba(34, 48, 47, 0.25); }
.kopf__innen { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.marke { display: flex; align-items: center; gap: 0.7rem; color: var(--tinte); text-decoration: none; min-width: 0; }
.marke:hover { color: var(--tinte); }
.marke__bild { width: 46px; height: 46px; border-radius: 50%; background: var(--papier-salbei); box-shadow: inset 0 0 0 1px rgba(34,48,47,.08); flex: none; }
.marke__text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.marke__klein { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--petrol); }
.marke__name { font-family: var(--cw-font-display); font-weight: 600; font-size: 1.22rem; white-space: nowrap; }

.leiste-nav { margin-left: auto; }
.leiste-nav ul { list-style: none; padding: 0; display: flex; gap: 0.25rem; }
.leiste-nav a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 10px;
  color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.leiste-nav a:hover { background: rgba(28, 111, 106, 0.08); color: var(--tinte); }
.leiste-nav a[aria-current="page"] { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.kopf__telefon { flex: none; }
.kopf__menueknopf {
  display: none; margin-left: auto;
  min-width: 48px; min-height: 48px; padding: 0 0.9rem;
  border: 0; border-radius: var(--r);
  background: var(--papier-salbei); color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--bedienrand);
  font-weight: 700; cursor: pointer;
  align-items: center; gap: 0.5rem;
}
.kopf__menueknopf .symbol { width: 1.3em; height: 1.3em; }

@media (max-width: 1179px) {
  .leiste-nav { display: none; }
  .kopf__menueknopf { display: inline-flex; }
  .kopf__telefon { margin-left: auto; }
  .kopf__telefon + .kopf__menueknopf { margin-left: 0; }
}
@media (max-width: 640px) {
  .kopf__telefon .kopf__nummer { display: none; }
  .kopf__telefon { padding-inline: 0.85rem; }
  .marke__bild { width: 40px; height: 40px; }
  .marke__name { font-size: 1.05rem; }
  .marke__klein { font-size: 0.72rem; }
}
@media (max-width: 440px) {
  .kopf__innen { gap: 0.6rem; }
  .kopf__menueknopf { padding: 0; width: 48px; justify-content: center; }
  .kopf__menuetext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 350px) {
  .kopf__innen { gap: 0.4rem; }
  .marke { gap: 0.45rem; }
  .marke__klein { display: none; }
  .marke__bild { width: 34px; height: 34px; }
  .marke__name { font-size: 0.95rem; }
  .kopf__telefon { min-height: 44px; width: 44px; padding: 0; justify-content: center; }
  .kopf__menueknopf { min-height: 44px; min-width: 44px; width: 44px; }
}

/* Vollbild-Menü */
.menue {
  position: fixed; inset: 0; z-index: 65;
  background: var(--papier);
  padding: calc(var(--kopf-h) + 0.5rem) var(--rand) 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--cw-ease-out), visibility 0s linear 200ms;
}
.menue.ist-offen { opacity: 1; visibility: visible; transition: opacity 200ms var(--cw-ease-out); }
.menue ul { list-style: none; padding: 0; border-top: 1px solid rgba(34, 48, 47, 0.12); }
.menue li { border-bottom: 1px solid rgba(34, 48, 47, 0.12); }
.menue li a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; color: var(--tinte); text-decoration: none;
  font-family: var(--cw-font-display); font-weight: 600; font-size: 1.55rem;
}
.menue li a::after { content: "›"; font-family: var(--cw-font-text); color: var(--petrol); font-size: 1.6rem; }
.menue__kontakt { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.menue__kontakt .knopf { justify-content: center; }
.menue__notfall { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--papier-salbei); font-size: 1rem; }
.menue__notfall a { font-weight: 700; }
.menue__recht { margin-top: 1.5rem; display: flex; gap: 1.25rem; font-size: 0.95rem; }

/* ----------------------------------------------------- Buchdeckel (Start) -- */
.deckel { background: var(--papier-himmel); }
.deckel__buehne { background: #e6eff2; }
.deckel__ebene { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.deckel__himmel {
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
  transform: translate3d(0, calc(var(--cw-p, 0) * 2.4vh), 0) scale(1.03);
  transform-origin: 50% 70%;
}
.deckel__dorf {
  width: clamp(250px, 27vw, 600px); height: auto;
  left: 46%; bottom: 25.5svh;
  transform: translate3d(0, calc(var(--cw-p, 0) * 1.2vh), 0);
}
.deckel__teddy {
  height: min(64svh, 46vw); width: auto;
  right: 6vw; bottom: -3svh;
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--cw-p, 0) * 72%), 0) rotate(calc(var(--cw-p, 0) * 5deg));
}
.deckel__vorne {
  left: 0; bottom: 0; width: 100%; height: auto; min-height: 30svh;
  object-fit: cover; object-position: 50% 100%;
  transform-origin: 50% 100%;
  transform: scale(calc(1 + var(--cw-p, 0) * 0.24));
}
.deckel__text {
  position: absolute; z-index: 5; left: 0; right: 0;
  top: calc(var(--kopf-h) + clamp(1.5rem, 7svh, 5.5rem));
  transform: translate3d(0, calc(var(--cw-p, 0) * -5svh), 0);
}
.deckel__inhalt { max-width: 37rem; position: relative; }
/* Lichthof nur hinter dem Text: hält ihn über Gras und Hügeln lesbar, ohne das Bild abzudunkeln */
.deckel__inhalt::before {
  content: ""; position: absolute; z-index: -1; inset: -3rem -4rem -2.5rem -4rem;
  background: radial-gradient(ellipse 60% 58% at 42% 48%, rgba(237, 243, 245, 0.88) 0%, rgba(237, 243, 245, 0.62) 48%, rgba(237, 243, 245, 0) 100%);
  pointer-events: none;
}
.deckel__titel {
  font-family: var(--cw-font-display); font-weight: 600; color: var(--tinte);
  line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance;
}
.deckel__titel-klein {
  display: block; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.9rem);
  font-weight: 500; letter-spacing: -0.005em; color: var(--petrol-tief); margin-bottom: 0.35rem;
}
.deckel__titel-gross { display: block; font-size: min(clamp(2.9rem, 1.9rem + 4.4vw, 5.6rem), 11.5svh); }
.deckel__satz { margin-top: 1.1rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 30ch; color: var(--tinte); }
.deckel__knoepfe { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.heute {
  display: inline-flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 1.2rem; padding: 0.6rem 0.9rem;
  border-radius: var(--r); background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--cw-e1); font-size: 0.98rem; line-height: 1.4; max-width: 34rem;
}
.heute__punkt { width: 0.7rem; height: 0.7rem; margin-top: 0.35rem; border-radius: 50%; background: #9aa6a4; flex: none; }
.heute__punkt.ist-offen { background: #2f8f52; box-shadow: 0 0 0 3px rgba(47, 143, 82, 0.2); }

@media (max-width: 860px) {
  .deckel__himmel { object-position: 64% 72%; }
  .deckel__dorf { width: 54vw; left: 4vw; bottom: 24svh; }
  .deckel__teddy { height: min(40svh, 74vw); right: 3vw; bottom: -2svh; }
  .deckel__vorne { min-height: 24svh; }
  .deckel__text { top: calc(var(--kopf-h) + 1.25rem); transform: none; }
  .deckel__titel-gross { font-size: min(clamp(2.4rem, 1.6rem + 6vw, 3.6rem), 9svh); }
  .deckel__satz { margin-top: 0.7rem; }
  .deckel__knoepfe { margin-top: 1.1rem; }
  .heute { margin-top: 0.9rem; font-size: 0.92rem; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .deckel__satz { display: none; }
}

/* --------------------------------------------------------- Buchseiten -- */
.blatt {
  position: relative;
  padding-block: var(--abstand-seite);
  background: var(--grund, var(--papier));
  box-shadow: 0 -1px 0 rgba(34, 48, 47, 0.08), 0 -22px 30px -28px rgba(34, 48, 47, 0.45);
}
.blatt--salbei { --grund: var(--papier-salbei); }
.blatt--himmel { --grund: var(--papier-himmel); }
.blatt--papier { --grund: var(--papier); }

/* Willkommen und Zettel */
.willkommen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.willkommen__brief .titel { margin-bottom: 1.4rem; }
.willkommen__gruss { margin-top: 1.5rem; font-family: var(--cw-font-display); font-style: italic; font-weight: 400; font-size: 1.2rem; }
.adresshinweis { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--papier-salbei); max-width: 30rem; }
.adresshinweis strong { display: block; }

.zettel {
  position: relative; background: var(--zettel);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.3rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 4px; box-shadow: var(--cw-e2);
  rotate: -1.1deg; margin-top: 0.5rem;
}
.zettel::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px;
  translate: -50% 0; rotate: 3deg;
  background: rgba(184, 59, 40, 0.28); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.zettel__titel { font-family: var(--cw-font-display); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
.zettel__datum { color: var(--tomate); white-space: nowrap; }
.zettel p + p, .zettel p + .vertretung, .zettel .vertretung + p, .zettel__titel + p { margin-top: 1rem; }
.zettel__ende { margin-top: 1.25rem; }
.zettel__ende strong { display: block; }
.zettel__mehr { margin-top: 1.1rem; font-weight: 700; }
.hinweis-leer { padding: 1.5rem; border-radius: var(--r); background: var(--papier-salbei); }

.vertretung { width: 100%; border-collapse: collapse; font-size: 1rem; }
.vertretung th { text-align: left; font-weight: 700; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1.5px solid var(--tinte); }
.vertretung td { padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid rgba(34, 48, 47, 0.15); vertical-align: top; }
.vertretung td:first-child { white-space: nowrap; }
.vertretung a { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .vertretung thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vertretung tr { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(34, 48, 47, 0.15); }
  .vertretung td { display: block; padding: 0; border: 0; }
  .vertretung td:first-child { grid-column: 1 / -1; font-size: 0.9rem; color: var(--tinte-weich); }
}

@media (max-width: 960px) {
  .willkommen { grid-template-columns: minmax(0, 1fr); }
  .willkommen__zettel { order: -1; }
}

/* Sprechzeiten */
.sprechzeiten { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sprechzeiten .titel { margin-bottom: 1.4rem; }
.tafel { width: 100%; border-collapse: collapse; }
.tafel caption { text-align: left; }
.tafel th, .tafel td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid rgba(34, 48, 47, 0.14); }
.tafel thead th { font-size: 0.95rem; color: var(--tinte-weich); font-weight: 700; padding-top: 0; border-bottom: 1.5px solid var(--tinte); }
.tafel tbody th { font-weight: 700; white-space: nowrap; }
.tafel td span { display: block; white-space: nowrap; }
.tafel tr.ist-heute th, .tafel tr.ist-heute td { background: var(--petrol-hauch); }
.tafel tr.ist-heute th { padding-left: 0.75rem; border-radius: 10px 0 0 10px; }
.tafel tr.ist-heute td:last-child { border-radius: 0 10px 10px 0; }
.tafel__heute {
  display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.5rem; border-radius: 8px;
  background: var(--petrol); color: #fff; font-size: 0.78rem; font-weight: 700; vertical-align: 0.1em;
}
.kontaktblock { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r); background: var(--zettel); box-shadow: var(--cw-e1); }
.kontaktblock__nummer { font-family: var(--cw-font-display); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; color: var(--tinte); text-decoration: none; }
.kontaktblock__nummer:hover { color: var(--petrol); }
.kontaktblock__zeile { display: flex; gap: 0.6rem; align-items: center; }
.kontaktblock__klein { font-size: 0.98rem; color: var(--tinte-weich); }
.kontaktblock__links { display: grid; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid rgba(34, 48, 47, 0.12); }
.kontaktblock__links a { font-weight: 700; }

@media (max-width: 960px) {
  .sprechzeiten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tafel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tafel, .tafel tbody { display: block; width: 100%; }
  .tafel tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1rem; padding: 0.75rem 0.6rem; border-bottom: 1px solid rgba(34, 48, 47, 0.14); }
  .tafel th, .tafel td { padding: 0; border: 0; }
  .tafel tbody th { grid-column: 1 / -1; margin-bottom: 0.25rem; }
  .tafel td::before { content: attr(data-spalte); display: block; font-size: 0.85rem; font-weight: 700; color: var(--tinte-weich); }
  .tafel tr.ist-heute { background: var(--petrol-hauch); border-radius: 10px; }
  .tafel tr.ist-heute th, .tafel tr.ist-heute td { background: none; padding-left: 0; }
}

/* E-Mail: bewusst leer und leise */
.post { max-width: 44rem; }
.post .titel { margin-bottom: 1.2rem; }
.post__adresse { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); overflow-wrap: anywhere; }

/* ---------------------------------------------------- Nacht (Höhepunkt) -- */
.blatt--nacht {
  --grund: var(--nacht);
  color: var(--nacht-tinte);
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem) clamp(4.5rem, 9vw, 8rem);
}
.blatt--nacht .titel { color: var(--nacht-tinte); }
.blatt--nacht :where(a:not(.knopf)) { color: #9fe0d5; }
.blatt--nacht :where(a:not(.knopf)):hover { color: #c3eee6; }
.blatt--nacht ::selection { background: var(--lampe); color: var(--nacht); }
.blatt--nacht :focus-visible { outline-color: var(--lampe); }
.nacht__himmel { position: absolute; inset: 0; pointer-events: none; }
.nacht__sterne {
  position: absolute; inset: 0; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 73% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 48%, #fff 50%, transparent 51%);
}
.nacht__mond { position: absolute; right: clamp(1.5rem, 9vw, 9rem); top: clamp(2.5rem, 6vw, 5rem); width: clamp(64px, 7vw, 104px); height: auto; }
.nacht__inhalt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 64rem; }
.nacht__inhalt .lede { color: var(--nacht-tinte); max-width: 44ch; }
.nacht__kopf .titel { margin-bottom: 1rem; font-size: clamp(2.4rem, 1.7rem + 3vw, 4.2rem); }

.jetzt {
  border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.9rem);
  background: var(--nacht-flaeche); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.jetzt__kopf { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.98rem; color: var(--nacht-weich); }
.jetzt__marke { padding: 0.15rem 0.6rem; border-radius: 8px; background: var(--lampe); color: var(--nacht); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.jetzt__titel { margin-top: 0.7rem; font-family: var(--cw-font-display); font-weight: 600; font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); line-height: 1.12; text-wrap: balance; }
.jetzt__zeile { margin-top: 0.5rem; color: var(--nacht-tinte); max-width: 60ch; }
.jetzt__aktionen { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.jetzt__aktionen .knopf { white-space: normal; }

/* Tagesleiste */
.wegweiser { display: grid; gap: 1.1rem; }
.wegweiser__ohne-js { color: var(--nacht-weich); }
.wahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.wahl__titel { font-weight: 700; margin-bottom: 0.55rem; padding: 0; }
.wahl__reihe { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.wahl__tag { position: relative; flex: 1 0 auto; }
.wahl__tag input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl__tag span { display: block; pointer-events: none; }
.wahl__tag { display: grid; min-width: 4.6rem; min-height: 48px; padding: 0.45rem 0.7rem; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); text-align: center; cursor: pointer; }
.wahl__name { font-weight: 700; font-size: 0.98rem; }
.wahl__datum { font-size: 0.78rem; color: var(--nacht-weich); }
.wahl__tag:has(input:checked) { background: var(--nacht-tinte); color: var(--nacht); box-shadow: none; }
.wahl__tag:has(input:checked) .wahl__datum { color: #43566a; }
.wahl__tag:has(input:focus-visible) { outline: 2px solid var(--lampe); outline-offset: 3px; }

.leiste { position: relative; padding-top: 1.6rem; padding-bottom: 1.7rem; }
.leiste__telefon { position: relative; height: 6px; margin-bottom: 6px; }
.leiste__tel { position: absolute; top: 0; height: 6px; border-radius: 3px; background: #9fe0d5; }
.leiste__band { position: relative; height: 54px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.leiste__teil { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--nacht); font-weight: 700; font-size: 0.88rem; border-right: 2px solid var(--nacht); }
.leiste__name { padding-inline: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste__teil--praxis { background: #9fe0d5; }
.leiste__teil--vertretung { background: #cdbcec; }
.leiste__teil--notfalldienst { background: var(--lampe); }
.leiste__teil--kv { background: #f2ac85; }
.leiste__teil--kinderklinik { background: #a9c1e6; }
.leiste__teil--pause { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 6px, transparent 6px 12px); }
.leiste__skala { position: absolute; left: 0; right: 0; bottom: 0; height: 1.4rem; font-size: 0.8rem; color: var(--nacht-weich); }
.leiste__skala span { position: absolute; translate: -50% 0; white-space: nowrap; }
.leiste__skala span:first-child { translate: 0 0; }
.leiste__skala span:last-child { translate: -100% 0; }
.leiste__jetzt { position: absolute; top: 0.2rem; bottom: 1.5rem; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px var(--nacht); }
.leiste__jetzt-text { position: absolute; top: -0.2rem; left: 50%; translate: -50% -100%; padding: 0.05rem 0.45rem; border-radius: 8px; background: #fff; color: var(--nacht); font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.leiste__liste { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.leiste__kopf { font-weight: 700; color: var(--nacht-weich); font-size: 0.95rem; margin-bottom: 0.4rem; }
.leiste__eintrag { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.65rem 0.75rem 0.65rem 1.9rem; border-radius: 10px; position: relative; }
.leiste__eintrag::before { content: ""; position: absolute; left: 0.75rem; top: 1.05rem; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: currentColor; }
.leiste__eintrag--praxis::before { background: #9fe0d5; }
.leiste__eintrag--vertretung::before { background: #cdbcec; }
.leiste__eintrag--notfalldienst::before { background: var(--lampe); }
.leiste__eintrag--kv::before { background: #f2ac85; }
.leiste__eintrag--kinderklinik::before { background: #a9c1e6; }
.leiste__eintrag.ist-jetzt { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.leiste__zeit { font-variant-numeric: tabular-nums; color: var(--nacht-weich); white-space: nowrap; }
.leiste__eintrag.ist-jetzt .leiste__zeit { color: var(--nacht-tinte); font-weight: 700; }
@media (max-width: 600px) {
  .leiste__eintrag { grid-template-columns: minmax(0, 1fr); }
  .leiste__name { display: none; }
}

.notruf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: rgba(184, 59, 40, 0.16); box-shadow: inset 0 0 0 1.5px rgba(242, 140, 120, 0.55);
}
.notruf__text { font-size: 1.08rem; }
.notruf__text strong { display: block; font-family: var(--cw-font-display); font-weight: 600; font-size: 1.5rem; }
.nacht__mehr { font-weight: 700; }

/* ------------------------------------------------------- Praxisregeln -- */
.regeln__kopf { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.regeln__kopf .titel { margin-bottom: 1rem; }
.regeln { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); max-width: 68rem; }
.regel { display: grid; grid-template-columns: clamp(84px, 9vw, 128px) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.5rem 0; border-top: 1px solid rgba(34, 48, 47, 0.14); }
.regel img { width: 100%; height: auto; }
.regel__titel { font-family: var(--cw-font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.3rem; }
@media (max-width: 860px) {
  .regeln { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------ Rückseite / Anfahrt -- */
.anfahrt { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.anfahrt .titel { margin-bottom: 1.3rem; }
.anschrift { font-style: normal; font-size: 1.2rem; line-height: 1.5; }
.anschrift strong { font-family: var(--cw-font-display); font-weight: 600; font-size: 1.35rem; }
.kontaktliste { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.kontaktliste li { display: flex; gap: 0.7rem; align-items: center; }
.kontaktliste .symbol { color: var(--petrol); }
.anfahrt__knoepfe { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.karte { margin: 0; }
.karte__bild { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--cw-e2); background: #eceee6; }
.karte__bild img { width: 100%; height: auto; aspect-ratio: 760 / 440; object-fit: cover; }
.karte figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--tinte-weich); line-height: 1.5; }
@media (max-width: 960px) {
  .anfahrt { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- Fuß -- */
.fuss { background: var(--tinte); color: #dfe6e3; padding-block: 2.4rem 3rem; font-size: 0.95rem; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-right: clamp(0px, 10vw, 150px); }
.fuss a { color: #ffffff; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; }
@media (max-width: 860px) { .fuss__innen { padding-right: 96px; } }

/* --------------------------------------------------------- Unterseiten -- */
.seitenkopf { padding-top: calc(var(--kopf-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--papier-salbei); }
.seitenkopf .titel { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }
.seitenkopf .lede { margin-top: 1rem; max-width: 46ch; }
.pfad { font-size: 0.92rem; margin-bottom: 1.2rem; color: var(--tinte-weich); }
.pfad a { color: var(--tinte-weich); }
.inhalt { padding-block: clamp(2.5rem, 6vw, 5rem); }
.inhalt--schmal { max-width: 46rem; }
.rechtstext { max-width: 46rem; }
.rechtstext h2 { hyphens: auto; hyphenate-limit-chars: 14 6 6; overflow-wrap: break-word; font-family: var(--cw-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.2; margin-top: 2.6rem; margin-bottom: 0.8rem; }
.rechtstext h3 { font-size: 1.12rem; font-weight: 700; margin-top: 1.8rem; margin-bottom: 0.4rem; }
.rechtstext p + p, .rechtstext ul + p, .rechtstext p + ul { margin-top: 0.8rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext address { font-style: normal; }
.offen {
  margin-top: 0.8rem; padding: 0.8rem 1rem; border-radius: 10px;
  background: #fff4d6; box-shadow: inset 0 0 0 1.5px #d9a531; font-size: 0.98rem;
}
.offen strong { color: #6b4b00; }

/* ------------------------------------------------------ Teddy-Begleiter -- */
.begleiter {
  --weg: 1;
  position: fixed; right: clamp(6px, 1.8vw, 28px); bottom: 0; z-index: 50;
  width: clamp(88px, 9vw, 132px);
  pointer-events: none;
}
.begleiter__teddy {
  display: block; position: relative; width: 100%; aspect-ratio: 532 / 640;
  padding: 0; border: 0; background: none; cursor: pointer;
  pointer-events: auto;
  transform: translate3d(0, calc(26% + var(--weg) * 82%), 0) rotate(calc(var(--weg) * 7deg));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 10px rgba(34, 48, 47, 0.22));
}
.begleiter:not(.ist-da) .begleiter__teddy { visibility: hidden; }
.begleiter__teddy img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  opacity: 0; transition: opacity 140ms linear;
}
.begleiter__teddy img.ist-aktiv { opacity: 1; }
.begleiter__teddy:focus-visible { outline-offset: -6px; }
.begleiter__blase {
  position: absolute; right: 78%; bottom: 52%;
  width: max-content; max-width: min(19rem, calc(100vw - 7.5rem));
  display: grid; gap: 0.2rem;
  padding: 0.75rem 0.95rem 0.8rem; border-radius: var(--r);
  background: var(--zettel); color: var(--tinte);
  box-shadow: 0 1px 0 rgba(34,48,47,0.06), 0 10px 26px -8px rgba(34, 48, 47, 0.32), inset 0 0 0 1px rgba(34, 48, 47, 0.08);
  font-size: 0.98rem; line-height: 1.35;
  opacity: 0; translate: 0 8px; visibility: hidden;
  transition: opacity 180ms var(--cw-ease-out), translate 180ms var(--cw-ease-out), visibility 0s linear 180ms;
}
.begleiter__blase::after {
  content: ""; position: absolute; right: -9px; bottom: 18px;
  width: 18px; height: 18px; rotate: 45deg; border-radius: 3px;
  background: var(--zettel); box-shadow: 1px -1px 0 rgba(34, 48, 47, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.begleiter.blase-an .begleiter__blase { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition: opacity 180ms var(--cw-ease-out), translate 180ms var(--cw-ease-out); }
.begleiter__marke { justify-self: start; padding: 0.05rem 0.5rem; border-radius: 8px; background: var(--lampe); color: var(--nacht); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.begleiter__link { font-weight: 800; font-size: 1.05rem; }
.begleiter__klein { font-size: 0.86rem; color: var(--tinte-weich); }
@media (max-width: 860px) {
  .begleiter { width: 84px; right: 4px; }
  .begleiter__blase { right: 74%; bottom: 46%; font-size: 0.92rem; padding: 0.6rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .begleiter__teddy { transform: translate3d(0, 26%, 0); opacity: calc(1 - var(--weg)); }
  .deckel__himmel, .deckel__dorf, .deckel__teddy, .deckel__vorne, .deckel__text { transform: none !important; }
}
html.menue-offen .begleiter { visibility: hidden; }

/* Seiten ohne JavaScript: Begleiter und rechnende Stellen bleiben aus */
html:not(.js) .begleiter, html:not(.js) [data-heute] { display: none; }

/* Drucken: nur Inhalt */
@media print {
  .kopf, .menue, .begleiter, .deckel__ebene, .nacht__himmel { display: none !important; }
  .deckel { height: auto !important; }
  .deckel__buehne { position: static !important; height: auto !important; }
  .deckel__text { position: static; padding-top: 1rem; }
  .blatt--nacht { background: #fff; color: #000; }
}

/* Symbolsammlung und Fallback ohne JavaScript */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html:not(.js) [data-cw-in], html:not(.js) [data-cw-stagger] > * { opacity: 1; transform: none; }
.wegweiser__ohne-js { display: grid; gap: 0.6rem; padding-left: 1.2rem; color: var(--nacht-tinte); }

/* Unterseiten: Aktuelles, Notfalldienst, Regeln */
.aktuelles { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.aktuelles__seite { padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: var(--r); background: var(--papier-salbei); display: grid; gap: 0.8rem; }
@media (max-width: 960px) { .aktuelles { grid-template-columns: minmax(0, 1fr); } }
.seitenkopf--nacht { position: relative; overflow: hidden; background: var(--nacht); color: var(--nacht-tinte); padding-top: calc(var(--kopf-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.seitenkopf--nacht .pfad, .seitenkopf--nacht .pfad a { color: var(--nacht-weich); }
.seitenkopf--nacht .lede { color: var(--nacht-tinte); margin-bottom: 0.4rem; }
.regeln__fuss { margin-top: 2rem; }
.notfalltext strong a { font-weight: 800; }
.klinik { margin-top: 1rem; font-style: normal; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--papier-salbei); max-width: 24rem; }
.notfalltext .knopf { margin-top: 0.4rem; }
.notfalltext h2:first-child { margin-top: 0; }
/* Ohne JavaScript setzt der Motor keine Bühne: Deckel als ruhiges Bild in Fensterhöhe */
html:not(.js) .deckel__buehne { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }

/* Suchbegriff als kleiner Vorsatz in der H1 (Muster aus dem Neubau „Ruf an“) */
.titel__vorsatz {
  display: block; margin-bottom: 0.55rem;
  font-family: var(--cw-font-text); font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; color: var(--petrol);
}
.blatt--nacht .titel__vorsatz { color: #9fe0d5; }
.anfahrt__lage { margin-top: 0.9rem; color: var(--tinte-weich); }

/* Nur in der Demo: Hinweis, dass es ein Entwurf ist */
.demo-hinweis {
  position: fixed; left: clamp(6px, 1.8vw, 28px); bottom: 10px; z-index: 55;
  max-width: min(23rem, calc(100vw - 120px));
  margin: 0; padding: 0.45rem 0.75rem; border-radius: 10px;
  background: rgba(34, 48, 47, 0.92); color: #f2f0e8;
  font-size: 0.8rem; line-height: 1.35;
}
.demo-hinweis a { color: #9fe0d5; font-weight: 700; }
html.menue-offen .demo-hinweis { visibility: hidden; }
@media (max-width: 860px) {
  /* Am Handy als schmale Leiste unter dem Kopf, damit sie nicht an die Teddy-Blase stößt */
  .demo-hinweis { top: var(--kopf-h); bottom: auto; left: 0; right: 0; max-width: none; border-radius: 0;
    padding: 0.3rem 1rem; text-align: center; font-size: 0.76rem; }
  .demo-hinweis__lang { display: none; }
  .deckel__text { top: calc(var(--kopf-h) + 2.6rem); }
  .seitenkopf { padding-top: calc(var(--kopf-h) + 3.4rem); }
}
