/* ==========================================================================
   Hausärzte am Aegi
   --------------------------------------------------------------------------
   Farbwelt : Praxisgelb & Teamblau, aus den Praxisfotos gemessen
   Schriften: Lexend (Überschriften), Source Sans 3 (Fließtext), lokal
              eingebunden. Lexend ist auf Lesegeschwindigkeit hin entworfen,
              deshalb hier statt einer rein stilistischen Wahl.
   Radien   : Flächen 12px (--r), Bedienelemente 8px (--r-sm). Eine Regel,
              überall gleich angewendet.
   Akzent   : zwei Markenfarben, beide aus den Praxisfotos gemessen.
              Blau (--blau-700) führt und trägt alles Bedienbare.
              Gelb (--gelb) ist die Hausfarbe der Praxis und liegt auf
              genau drei Flächen: Wortmarke, Öffnungsstatus wenn geöffnet,
              Markierung des heutigen Tages. Nicht ausweiten, das Gelb
              lebt von seiner Seltenheit.
              Die Warnfarbe (--alert) ist KEINE dritte Markenfarbe, sondern
              ausschließlich semantisch für Notfallinformationen reserviert.
   ========================================================================== */

/* -------------------------------------------------- 1. Schriften (lokal) */

@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Lexend';
  src: url('../fonts/lexend-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: 'Source Sans 3';
  src: url('../fonts/sourcesans3-latin-ext.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------------------------------------------------------- 2. Farbwerte */

:root {
  color-scheme: light;   /* nur heller Modus, so gewünscht */

  /* Farbwelt „Praxisgelb & Teamblau" (gewählt am 15.08.2026).
     Nicht erfunden, sondern aus den Fotos der Praxis gemessen:
       Gelb  #C4AB2C / #B29B23  Farbton 50°, Sättigung 78-80 %
                                Tresenfront, Wandpfeiler, Laborrückwand
       Blau  #4D6C93            Farbton 213°, Sättigung 48 %
                                Poloshirts des Teams
     Das Blau führt, weil es abgedunkelt weiße Schrift tragen kann.
     Das Gelb ist zu hell für weiße Schrift und liegt deshalb nur auf
     wenigen Akzentflächen, genau wie in der Praxis selbst:
     Wortmarke, Öffnungsstatus, Markierung des heutigen Tages. */
  --bg:          #FDFCF8;
  --surface:     #F1F4F8;
  --surface-2:   #E7ECF3;
  --ink:         #1E2833;
  --ink-muted:   #4E5A66;
  --line:        #E3E8EE;
  --line-strong: #BFCCD9;

  --blau-900: #223549;
  --ink-deep: #17202B;   /* Footerfläche */
  --blau-800: #24425F;   /* Knopf im Überfahren */
  --blau-700: #2E5480;   /* Knopffläche und Verweise */
  --blau-600: #3A648F;
  --blau-400: #8FA9C4;
  --blau-200: #C6D5E4;
  --blau-100: #DDE7F1;
  --blau-50:  #F1F5FA;

  /* Hausfarbe. Bewusst sparsam: drei Stellen, nicht mehr. */
  --gelb:      #E9BE1C;
  --gelb-soft: #FBEFC2;
  --gelb-ink:  #3A3009;

  --auf-blau:  #FFFFFF;

  /* Nur für Notfallinhalte. Nirgendwo sonst verwenden. */
  --alert:    #9E3626;
  --alert-bg: #FAEDEA;
  --on-alert: #FFFFFF;

  --r:     12px;
  --r-sm:  8px;

  --shadow-sm: 0 1px 2px rgba(31, 42, 34, .03);
  --shadow-md: 0 2px 8px rgba(31, 42, 34, .04);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------------------------------------- 3. Basis */

*, *::before, *::after { box-sizing: border-box; }

/* Muss über allen display-Regeln stehen, sonst zeigt ein Element mit
   display:grid oder display:flex trotz hidden-Attribut weiter an. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  /* Hier stand overflow-x: clip als Notlösung gegen einen Überstand aus dem
     Hero. Das ist raus: overflow am body erzeugt in Safari einen eigenen
     Ausschnitt-Kontext und legt damit position:sticky im Kopfbereich lahm.
     Der Überstand ist stattdessen an der Wurzel behoben, der Hero ist jetzt
     ein Abschnitt über die volle Breite mit einer Inhaltsspalte darin. */
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 18px;          /* bewusst größer als üblich: Lesbarkeit vor Trend */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button, [role="tab"], summary { cursor: pointer; }

/* Mindestgröße für alles, was angetippt wird. 44 Pixel sind die Grenze,
   unter der Treffer auf dem Telefon unzuverlässig werden. Gerade die
   Notfallnummern müssen beim ersten Versuch sitzen. */
.brand,
.header__phone,
.emergency__num,
.linkarrow,
.contact-list a,
.back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

:focus-visible {
  outline: 3px solid var(--blau-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -6rem;          /* nach oben statt nach links: erzeugt keine
                          waagerechte Bildlaufleiste */
  z-index: 200;
  background: var(--blau-700);
  color: var(--auf-blau);
  padding: .9rem 1.4rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------- 4. Typografie */

h1, h2, h3, h4 {
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
}

/* Schriftgröße und Bildgröße sind zusammen geplant: die Überschrift muss
   im Hero auf zwei Zeilen passen, sonst schiebt sie die Schaltflächen aus
   dem sichtbaren Bereich. */
h1 { font-size: clamp(2.1rem, 3.5vw, 3.05rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; }

p { margin: 0; }

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 54ch;
}

.section-intro {
  color: var(--ink-muted);
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------- 5. Layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { scroll-margin-top: 90px; }

.section { padding-block: var(--section-y); }

.section--tint { background: var(--surface); }

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

/* --------------------------------------------------------- 6. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;                 /* große Trefferfläche */
  padding: .8rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;              /* CTA bricht nie um */
  cursor: pointer;
  transition: background-color .18s var(--ease),
              border-color .18s var(--ease),
              transform .12s var(--ease),
              color .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blau-700);
  color: var(--auf-blau);
  border-color: var(--blau-700);
}
.btn--primary:hover { background: var(--blau-800); border-color: var(--blau-800); }

.btn--outline {
  background: transparent;
  color: var(--blau-700);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--blau-600); background: var(--blau-50); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-inline: .75rem;
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--alert {
  background: var(--alert);
  color: var(--on-alert);
  border-color: var(--alert);
}
.btn--alert:hover { filter: brightness(.92); }

.btn--full { width: 100%; }

.btn .ico { width: 20px; height: 20px; flex: none; }

/* Textlink mit Pfeil */
.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--blau-700);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.linkarrow:hover { border-color: currentColor; gap: .7rem; }
.linkarrow .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------- 7. Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--bg); }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 76px;                     /* unter der 80px-Grenze */
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}
.brand__text span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: .35rem; }

.nav a {
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--ease);
}
.header__phone:hover { background: var(--surface-2); }
.header__phone .ico { width: 19px; height: 19px; color: var(--blau-600); }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.burger .ico { width: 24px; height: 24px; }
.burger .ico--close { display: none; }
.burger[aria-expanded="true"] .ico--open  { display: none; }
.burger[aria-expanded="true"] .ico--close { display: block; }

/* Der Termin-Knopf im Menü ersetzt auf schmalen Geräten den Knopf im
   Kopfbereich, wo er sonst das Logo aus der Zeile drückt. */
.nav__cta { display: none; }

/* Die Schwelle liegt bei 1200px, nicht niedriger: mit sechs
   Navigationspunkten braucht die Kopfzeile aus Wortmarke, Navigation,
   Telefonnummer und Termin-Knopf rund 1180px, sonst läuft der Knopf
   rechts über den Rand. */
@media (max-width: 1200px) {
  .nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 1rem;
    padding: .8rem 1.5rem;
    border-radius: var(--r-sm);
    background: var(--blau-700);
    color: var(--auf-blau);
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    border-bottom: 0;
  }
  .nav__cta:hover { background: var(--blau-800); }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: .95rem .5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.075rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: inline-flex; }
  .header__phone span { display: none; }
}

/* Unterhalb dieser Breite passen Logo, Telefon, CTA und Menüknopf nicht
   mehr nebeneinander. Der CTA wandert ins Menü, die Telefonnummer bleibt
   als Symbol stehen: sie ist der wichtigste Weg zur Praxis. */
@media (max-width: 780px) {
  .header__actions > .btn--primary { display: none; }
}

@media (max-width: 560px) {
  .brand__text { font-size: 1rem; }
  .brand__mark { width: 30px; height: 30px; }
  .header__inner { gap: .5rem; }
  .header__phone { padding-inline: .6rem; }
}

/* ------------------------------------------------------------- 8. Hero */

.hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  isolation: isolate;
}

/* Der Empfang der Praxis liegt als Hintergrund im Hero, stark zurückgenommen.
   Zwei Schichten, in dieser Reihenfolge:
     ::before  das Foto, mit geringer Deckkraft
     ::after   ein Schleier von links, der zur Textseite hin dichter wird
   Der Schleier ist kein Zierrat, sondern das, was den Kontrast der Schrift
   garantiert. Deshalb keine Kontur an den Buchstaben: eine Umrandung würde
   die Buchstabenform zusetzen, und die Schrift ist im hellen Modus ohnehin
   dunkel, nicht weiß. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;              /* der Hero geht selbst über die volle Breite */
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: url('../img/hero-empfang.jpg');
  /* Nicht über die volle Breite gezerrt, sondern rechts in seinem eigenen
     Seitenverhältnis. Zwei Gründe:
       1. der Tresen ist dadurch vollständig im Bild statt oben und unten
          angeschnitten,
       2. die Vorlage ist nur 501 x 380 Punkte groß. Über die ganze Breite
          gezogen wäre das eine 2,9-fache Vergrößerung und sichtbar matschig;
          so bleibt es bei etwa dem 1,6-fachen.
     Die weiche Kante links kommt von der Maske, damit rechts kein
     aufgeklebtes Rechteck steht. */
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
  opacity: .70;
  /* Der Verlauf muss dort schon bei null sein, wo die linke Bildkante
     liegt (etwa 45 % der Breite), sonst sieht man eine senkrechte Naht. */
  -webkit-mask-image: linear-gradient(96deg, transparent 42%, #000 74%);
          mask-image: linear-gradient(96deg, transparent 42%, #000 74%);
}

/* Der Schleier deckt nur die Textspalte ab und gibt die Fläche rechts
   davon frei. Dort liegt das Bild bei voller Stärke.
   Die Kante läuft über 22 Prozentpunkte aus, damit kein sichtbarer Rand
   entsteht. */
.hero::after {
  z-index: -1;
  background: linear-gradient(
    96deg,
    var(--bg) 0%,
    var(--bg) 38%,
    color-mix(in srgb, var(--bg) 82%, transparent) 52%,
    color-mix(in srgb, var(--bg) 30%, transparent) 66%,
    transparent 78%);
}

/* Auf schmalen Geräten läuft der Text über die volle Breite, ein seitlicher
   Verlauf hilft dort nichts. Das Bild bleibt sichtbar, wird aber flächig
   gedämpft, damit die Schrift trägt. */
/* Auf schmalen Geräten gibt es keine freie Fläche neben dem Text, der Text
   läuft über die volle Breite. Das Bild füllt deshalb den Hintergrund und
   wird flächig gedämpft, damit die Schrift trägt. Maske und seitlicher
   Verlauf ergeben hier keinen Sinn und werden zurückgenommen. */
@media (max-width: 780px) {
  .hero::before {
    opacity: .55;
    background-size: cover;
    background-position: 62% 50%;   /* Tresen und gelbe Front im Ausschnitt */
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero::after { background: color-mix(in srgb, var(--bg) 84%, transparent); }
}

@media print {
  .hero::before, .hero::after { display: none; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Einspaltiger Hero. Bewusst ohne Bild: was der Besucher hier wirklich
   sucht, steht direkt darunter im Notfallstreifen und in den Sprechzeiten.
   Ein Foto an dieser Stelle beantwortet keine Frage. */
.hero__grid--single {
  grid-template-columns: minmax(0, 62ch);
}

.hero__title { max-width: 21ch; }
.hero__grid--single .hero__title { max-width: 26ch; }
.hero__grid--single .hero__lead { max-width: 58ch; }

.hero__lead { margin-top: 1.35rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 100%; }
  /* Auf dem Telefon zuerst der Öffnungsstatus, die Überschrift und die
     Knöpfe. Das Bild kommt danach: es beantwortet keine Frage. */
  .hero__media { order: 2; }
  .ph--hero { aspect-ratio: 16 / 10; }
}

/* Öffnungs-Status */

.status {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.1rem .6rem .9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.status__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
/* Geöffnet: die Hausfarbe. Das ist die eine Stelle, an der ein Blick
   genügen soll. */
.status[data-state="open"] {
  background: var(--gelb-soft);
  border-color: color-mix(in srgb, var(--gelb) 45%, transparent);
  color: var(--gelb-ink);
}
.status[data-state="open"] .status__dot { background: var(--gelb); }
.status[data-state="closed"] .status__dot { background: var(--line-strong); }
.status strong { font-weight: 700; }

/* --------------------------------------------------- 9. Notfall-Streifen */

.emergency {
  background: var(--alert-bg);
  border-block: 1px solid color-mix(in srgb, var(--alert) 22%, transparent);
}

.emergency__inner {
  display: flex;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: .65rem;      /* bricht der Streifen um, soll die zweite Zeile
                           dicht anschließen und nicht wie ein Fehler wirken */
  padding-block: 1.35rem;
  flex-wrap: wrap;
}

.emergency__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--alert);
  flex: none;
}
.emergency__label .ico { width: 22px; height: 22px; }

.emergency__nums {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  margin-right: auto;
}

.emergency__num {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s var(--ease);
}
.emergency__num:hover { border-color: var(--alert); }
.emergency__num b {
  font-family: 'Lexend', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;   /* eine Rufnummer bricht nie mitten in der Zahl */
}
.emergency__num span { font-size: .95rem; color: var(--ink-muted); }

/* Auf schmalen Geräten steht die Beschriftung unter der Nummer, sonst
   drängt sie die Zahl in den Umbruch. */
@media (max-width: 620px) {
  .emergency__num {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding-block: .35rem;
  }
  .emergency__num span { line-height: 1.3; }
  .emergency__nums { gap: .9rem; }
}

/* ------------------------------------------------- 10. Schnellwege */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick__item {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease),
              box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.quick__item:hover {
  border-color: var(--blau-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.quick__item:active { transform: translateY(-1px); }

.quick__ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--blau-100);
  color: var(--blau-700);
  margin-bottom: .35rem;
}
.quick__ico .ico { width: 23px; height: 23px; }

.quick__item h3 { font-size: 1.14rem; }

.quick__item p {
  color: var(--ink-muted);
  font-size: .98rem;
  line-height: 1.5;
  margin-top: -.1rem;
}

.quick__more {
  margin-top: auto;
  padding-top: .8rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--blau-700);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.quick__more .ico { width: 17px; height: 17px; }

@media (max-width: 1000px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .quick { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ 11. Leistungen */

.services {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.services__aside { position: sticky; top: 110px; }

.services__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.svc-group h3 {
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--blau-200);
  margin-bottom: 1rem;
}

.svc-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.svc-group li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--ink);
  line-height: 1.5;
}
.svc-group li .ico {
  width: 19px; height: 19px;
  flex: none;
  margin-top: .28rem;
  color: var(--blau-600);
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services__aside { position: static; }
}
@media (max-width: 620px) {
  .services__groups { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- 12. Team */

.team-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.doc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Rundes Porträt statt großflächigem Bild: die vorhandenen Aufnahmen sind
   168 Pixel groß. In dieser Größe sind sie scharf, auf einer großen
   Kartenfläche wären sie matschig. Layout folgt dem Bildmaterial. */
.doc__portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  flex: none;
}

.doc__body { padding: 0; }
.doc__body h3 { margin-bottom: .3rem; }

.doc__role {
  color: var(--blau-700);
  font-weight: 600;
  font-size: .97rem;
}

.doc__note {
  color: var(--ink-muted);
  font-size: .98rem;
  margin-top: .7rem;
  line-height: 1.5;
}

.team-staff {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.team-staff__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.staff {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.staff__initials {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blau-100);
  color: var(--blau-700);
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
}

.staff__name { font-weight: 600; line-height: 1.25; }
.staff__role { color: var(--ink-muted); font-size: .93rem; line-height: 1.35; }

@media (max-width: 980px)  { .team-docs { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .team-staff__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team-staff__list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- 13. Sprechzeiten */

.hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hours {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.hours table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours caption {
  text-align: left;
  font-family: 'Lexend', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.hours th, .hours td { padding: .72rem 0; text-align: left; vertical-align: top; }
.hours th { font-weight: 600; width: 8.5rem; }
.hours td { color: var(--ink-muted); }

.hours tbody tr + tr { border-top: 1px solid var(--line); }

.hours tr[data-today="true"] th,
.hours tr[data-today="true"] td { color: var(--ink); font-weight: 700; }

.hours tr[data-today="true"] th::after {
  content: 'heute';
  display: inline-block;
  margin-left: .55rem;
  padding: .1rem .45rem;
  border-radius: 5px;
  background: var(--gelb-soft);
  color: var(--gelb-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hours__note {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .98rem;
}

.notes { display: grid; gap: 1rem; }

.note {
  display: flex;
  gap: .95rem;
  padding: 1.15rem 1.25rem;
  background: var(--blau-50);
  border: 1px solid var(--blau-200);
  border-radius: var(--r);
}
.note__ico {
  width: 24px; height: 24px;
  flex: none;
  color: var(--blau-700);
  margin-top: .12rem;
}
.note h3 { margin-bottom: .2rem; font-size: 1.05rem; letter-spacing: 0; }
.note p { color: var(--ink-muted); font-size: .98rem; line-height: 1.5; }

@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ 13b. Praxis-Bildband */
/* Randlos über die volle Breite. Setzt einen Einschnitt zwischen Team und
   Anfahrt, ohne die Tönung der Abschnitte durcheinanderzubringen. */

/* Dreierreihe statt eines breiten Bands. Die Aufnahmen der Praxis sind
   400 bis 500 Pixel breit; nebeneinander in dieser Größe sind sie sauber,
   randlos über die volle Breite gezogen wären sie unscharf. */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.galerie figure { margin: 0; }

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.galerie figcaption {
  margin-top: .7rem;
  font-size: .96rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

@media (max-width: 780px) { .galerie { grid-template-columns: 1fr; } }

/* ------------------------------------ 13c. Aktuelle Patienteninformationen */
/* Aufklappliste. Bewusst ohne Kästen: nur Trennlinien, damit die Seite hier
   nicht noch eine Kartenfläche mehr bekommt. Ohne JavaScript funktioniert
   sie ebenfalls, <details> ist von sich aus aufklappbar. */

.hinweise { border-top: 1px solid var(--line); }

.hinweis { border-bottom: 1px solid var(--line); }

.hinweis > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  min-height: 60px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  letter-spacing: -.01em;
  color: var(--ink);
  list-style: none;
  transition: color .18s var(--ease);
}
.hinweis > summary::-webkit-details-marker { display: none; }
.hinweis > summary::marker { content: ''; }
.hinweis > summary:hover { color: var(--blau-700); }

/* Plus, das sich beim Aufklappen zum Minus dreht */
.hinweis__zeichen {
  margin-left: auto;
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
}
.hinweis__zeichen::before,
.hinweis__zeichen::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--blau-700);
  transform: translateY(-50%);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.hinweis__zeichen::after { transform: translateY(-50%) rotate(90deg); }
.hinweis[open] .hinweis__zeichen::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.hinweis__inhalt {
  padding: 0 0 1.4rem;
  max-width: 68ch;
  color: var(--ink-muted);
  line-height: 1.6;
}
.hinweis__inhalt p + p { margin-top: .8rem; }
.hinweis__inhalt strong { color: var(--ink); }
.hinweis__inhalt ul { margin: .8rem 0 0; padding-left: 1.25rem; }
.hinweis__inhalt li { margin-bottom: .35rem; }

@media (prefers-reduced-motion: no-preference) {
  .hinweis[open] .hinweis__inhalt { animation: hinweisAuf .28s var(--ease); }
  @keyframes hinweisAuf {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* --------------------------------------------- 13d. Anruf-Knopf unten rechts */
/* Erscheint erst, wenn der Hero durchgescrollt ist: solange die beiden
   Knöpfe im Hero sichtbar sind, wäre er doppelt. Am Rechner klappt er beim
   Überfahren auf und zeigt die Nummer, auf dem Telefon bleibt er rund. */

.ruf {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;

  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 60px;
  padding-inline: 18px;
  border-radius: 999px;
  background: var(--blau-700);
  color: var(--auf-blau);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30, 40, 51, .18),
              0 1px 3px rgba(30, 40, 51, .12);

  opacity: 0;
  transform: translateY(14px) scale(.92);
  pointer-events: none;
  transition: opacity .26s var(--ease),
              transform .26s var(--ease),
              background-color .18s var(--ease);
}

.ruf[data-shown="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ruf .ico { width: 25px; height: 25px; flex: none; }

/* Die Nummer steht am Rechner dauerhaft daneben. Hier stand vorher eine
   Animation der Breite beim Überfahren. Das ist raus: Breite, Höhe, Abstände
   zu animieren zwingt den Browser bei jedem Einzelbild zum Neuberechnen des
   Layouts. Die Rückmeldung kommt jetzt über Farbe und Verschiebung, beides
   ohne Layoutkosten. Und die Nummer sofort zu zeigen ist ohnehin nützlicher,
   als sie hinter einer Geste zu verstecken. */
.ruf__nummer { display: inline-block; }

.ruf:hover {
  background: var(--blau-800);
  transform: translateY(-2px);
}
.ruf:active { transform: translateY(0) scale(.97); }

/* Auf Fingergeräten bleibt er rund: dort ist kein Platz für die Nummer,
   und der Tipp wählt ohnehin direkt. */
@media (hover: none) {
  .ruf { padding-inline: 0; width: 60px; justify-content: center; }
  .ruf__nummer { display: none; }
}

@media print { .ruf { display: none !important; } }

/* -------------------------------------------------------- 14. Anfahrt */

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.location__map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  position: relative;
}

.location__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.addr { font-style: normal; line-height: 1.55; }
.addr strong { display: block; font-size: 1.08rem; }

.transit { display: grid; gap: 1.1rem; }

.transit__row { display: flex; gap: .9rem; }
.transit__ico {
  width: 24px; height: 24px;
  flex: none;
  color: var(--blau-700);
  margin-top: .1rem;
}
.transit__row h3 { margin-bottom: .15rem; font-size: 1.05rem; letter-spacing: 0; }
.transit__row p { color: var(--ink-muted); font-size: .97rem; line-height: 1.5; }

.lines {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}
.lines span {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .87rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 280px; }
}

/* -------------------------------------------------------- 15. Formular */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.tabs {
  display: flex;
  gap: .4rem;
  padding: .35rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  margin-bottom: 1.75rem;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .7rem 1.15rem;
  border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.form { display: grid; gap: 1.15rem; }

.field { display: grid; gap: .4rem; }

.field label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.field .hint {
  font-size: .92rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .8rem .95rem;
  min-height: 52px;
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 1; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--blau-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blau-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blau-600) 25%, transparent);
}

.field--error input,
.field--error textarea,
.field--error select { border-color: var(--alert); }

.field .error {
  font-size: .93rem;
  font-weight: 600;
  color: var(--alert);
  display: none;
}
.field--error .error { display: block; }

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.check input {
  width: 24px; height: 24px;
  min-height: 0;
  flex: none;
  margin-top: .12rem;
  accent-color: var(--blau-700);
}
.check a { color: var(--blau-700); font-weight: 600; }

.formnote {
  padding: 1.05rem 1.2rem;
  /* Abgesetzt über die Fläche, nicht über eine farbige Kante links.
     Der seitliche Akzentstreifen ist ein abgenutztes Muster und trägt
     hier nichts bei, was der Hintergrund nicht schon leistet. */
  background: var(--blau-50);
  border: 1px solid var(--blau-200);
  border-radius: var(--r-sm);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.formnote strong { color: var(--ink); }

.formstatus {
  display: none;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  line-height: 1.55;
}
.formstatus[data-type="ok"] {
  display: block;
  background: var(--blau-100);
  border: 1px solid var(--blau-200);
  color: var(--blau-800);
}
.formstatus[data-type="error"] {
  display: block;
  background: var(--alert-bg);
  border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent);
  color: var(--alert);
}

.btn[data-loading="true"] { pointer-events: none; opacity: .72; }

.contact__side { display: grid; gap: 1rem; }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
}
.contact-card h3 { margin-bottom: 1rem; }

.contact-list { display: grid; gap: .85rem; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.contact-list .ico { width: 21px; height: 21px; flex: none; color: var(--blau-600); }
.contact-list a:hover { color: var(--blau-700); }

@media (max-width: 940px) {
  .contact { grid-template-columns: 1fr; }
  .contact__side { order: -1; }
}

/* -------------------------------------------------------- 16. Footer */

.footer {
  background: var(--ink-deep);
  color: color-mix(in srgb, #FFFFFF 78%, var(--ink-deep));
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.footer h4 {
  font-family: 'Lexend', sans-serif;
  color: #FFFFFF;
  font-size: 1rem;
  letter-spacing: .01em;
  margin-bottom: 1rem;
}
.footer p, .footer li, .footer address { font-size: .97rem; line-height: 1.65; }

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}
.footer__brand .brand__mark { width: 32px; height: 32px; }
.footer__brand span {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  align-items: center;
  font-size: .93rem;
}
.footer__bottom p { margin-right: auto; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- 17. Bild-Platzhalter */
/* Werden 1:1 durch echte Fotos ersetzt, Seitenverhältnis bleibt gleich.
   Siehe BILDER.md im Projektordner.                                      */

.ph {
  position: relative;
  display: grid;
  place-items: center;
  gap: .55rem;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      color-mix(in srgb, var(--blau-400) 12%, transparent) 11px 12px
    ),
    var(--blau-50);
  border: 1px solid var(--blau-200);
  border-radius: var(--r);
  color: var(--blau-700);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.ph .ico { width: 34px; height: 34px; opacity: .75; }
.ph b {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.ph small {
  font-size: .87rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.ph--hero   { aspect-ratio: 4 / 3.2; }
.ph--band    { aspect-ratio: 8 / 3; border-radius: 0; border-inline: 0; }
.ph--doc    { aspect-ratio: 4 / 3; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.ph--map    { position: absolute; inset: 0; border-radius: 0; border: 0; }
.ph--wide   { aspect-ratio: 16 / 7; }

/* ------------------------------------------------------- 18. Bewegung */
/* MOTION_INTENSITY 3: nur Hover-/Fokus-Übergänge und ein sehr ruhiges
   Einblenden beim Scrollen. Keine Dauerschleifen, kein Parallax.         */

/* Grundzustand ist SICHTBAR. Der Inhalt darf nie davon abhängen, dass
   JavaScript läuft: ohne Skript, bei einem Fehler im Skript oder in einem
   alten Browser steht trotzdem alles da.
   Versteckt wird erst innerhalb von (scripting: enabled), und auch dann
   holt der Beobachter in main.js alles wieder hervor. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .38s var(--ease), transform .38s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal[data-shown="true"] { opacity: 1; transform: none; }
}

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

/* ------------------------------------------------------- 18b. Druck */
/* Viele Patientinnen und Patienten drucken sich Sprechzeiten und Anfahrt
   aus. Gedruckt wird deshalb genau das: Adresse, Telefon, Sprechzeiten,
   Notfallnummern, Leistungen und Anfahrt. Alles Bedienbare fliegt raus. */

@media print {
  @page { margin: 16mm; }

  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #FFFFFF;
    --ink: #000000;
    --ink-muted: #333333;
    --line: #999999;
    --line-strong: #666666;
    --blau-700: #000000;
    --blau-600: #000000;
    --blau-100: #FFFFFF;
    --blau-50: #FFFFFF;
    --alert: #000000;
    --alert-bg: #FFFFFF;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 11.5pt;
    line-height: 1.45;
  }

  /* Weg damit: nichts davon lässt sich auf Papier bedienen */
  .header,
  .footer,
  .hero__cta,
  .quick,
  .tabs,
  form.form,
  .formnote,
  .skip-link,
  .burger,
  .nav,
  .linkarrow,
  .back,
  .photoband,
  .ph,
  .status,
  .hero::before { display: none !important; }

  /* Der ganze Kontakt-Abschnitt schrumpft auf die reinen Kontaktdaten */
  #kontakt .section-head,
  #kontakt .contact__side + div { display: none !important; }
  .contact { grid-template-columns: 1fr !important; }

  .section, .hero { padding-block: 0 0 !important; margin-block: 0 0 !important; }
  .section + .section { margin-top: 8mm !important; }

  .emergency { border: 1.5pt solid #000000; padding: 3mm; margin-block: 6mm; }

  /* Nichts soll mitten in einer Tabelle oder Karte umbrechen */
  .hours, .location__card, .doc, .note, .emcard, .step { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }

  /* Rahmen und Flächen auf Papier neutralisieren */
  .hours, .note, .doc, .staff, .contact-card, .location__card, .emcard {
    border: .5pt solid #999999 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }

  a { text-decoration: none; color: #000000; }

  /* Die Adresse hinter externen Links ausschreiben, auf Papier ist ein
     Link sonst wertlos */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  .location__map { max-height: 70mm; }
  .services__aside { position: static !important; }
}

/* ------------------------------------------------- 19. Unterseiten */

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head .lead { margin-top: 1rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: 1.25rem;
}
.back:hover { color: var(--blau-700); }
.back .ico { width: 18px; height: 18px; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-muted); }
.prose ul { color: var(--ink-muted); padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--blau-700); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }

/* Notfall-Unterseite: große Nummernkacheln */

.emcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.emcard {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.emcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.emcard--critical {
  background: var(--alert-bg);
  border-color: color-mix(in srgb, var(--alert) 30%, transparent);
}

.emcard__num {
  font-family: 'Lexend', sans-serif;
  /* Kleiner angesetzt, damit auch die lange Mobilnummer auf eine Zeile
     passt. Eine zweizeilig umbrechende Telefonnummer wirkt wie ein Fehler. */
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.emcard--critical .emcard__num { color: var(--alert); }
.emcard__label { font-weight: 600; margin-top: .5rem; }
.emcard__desc { color: var(--ink-muted); font-size: .96rem; line-height: 1.5; }

@media (max-width: 860px) { .emcards { grid-template-columns: 1fr; } }

/* Wenn-dann-Liste auf der Notfallseite */

.steps { display: grid; gap: 1rem; margin-bottom: 2rem; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.step__when { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 1.08rem; }
.step__do { color: var(--ink-muted); line-height: 1.6; }
.step__do strong { color: var(--ink); }

@media (max-width: 720px) { .step { grid-template-columns: 1fr; gap: .5rem; } }
