:root {
  --brand: #15497e;
  --brand-dark: #0d345c;
  --brand-soft: #eaf2f8;
  --ink: #17212b;
  --muted: #596571;
  --line: #d9e1e7;
  --paper: #ffffff;
  --mist: #f5f8fa;
  --warm: #f1ede4;
  --shadow: 0 18px 50px rgba(20, 50, 77, .12);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--brand-dark); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; }
h1 { margin-bottom: 1.4rem; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.hero-copy h1 { max-width: 15ch; }
h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }

.shell { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; transform: translateY(-150%); border-radius: .45rem; color: white; background: var(--brand-dark); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner { min-height: 7.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: 8rem; padding-block: .7rem; }
.brand img { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.quiet-link { color: var(--ink); text-decoration: underline; }

.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: .8rem 1.35rem; border: 2px solid var(--brand); border-radius: 999px; color: white; background: var(--brand); font-weight: 700; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.button:hover { color: white; background: var(--brand-dark); transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); }
.urgent-section a:focus-visible, .site-footer a:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 3px var(--brand-dark); }
.button-small { min-height: 2.8rem; padding: .55rem 1.1rem; }

.hero { overflow: hidden; background: linear-gradient(120deg, var(--mist) 0 64%, var(--brand-soft) 64% 100%); }
.hero-grid { min-height: 37rem; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow { margin-bottom: .8rem; color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 42rem; color: #344451; font-size: clamp(1.15rem, 2vw, 1.35rem); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 2rem 0 1rem; }
.appointment-note { color: var(--muted); font-size: .95rem; }

.contact-card { position: relative; padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid rgba(21,73,126,.12); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .38rem; border-radius: var(--radius) 0 0 var(--radius); background: var(--brand); }
.card-kicker { margin-bottom: 1.2rem; color: var(--muted); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.doctor-name { margin-bottom: .1rem; color: var(--brand-dark); font-size: 1.65rem; font-weight: 800; line-height: 1.2; }
.degree { color: var(--muted); }
address { margin: 1.25rem 0; font-style: normal; }
.contact-lines { display: grid; gap: .35rem; }
.contact-lines a { font-weight: 700; }

.urgent-section { padding-block: clamp(4rem, 8vw, 6.5rem); color: white; background: var(--brand); }
.urgent-section h2, .urgent-section a { color: white; }
.eyebrow-light { color: #c8ddf1; }
.urgent-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.urgent-grid p { max-width: 45rem; color: #e9f2f9; }
.urgent-call { padding: 1.5rem 2rem; border: 1px solid rgba(255,255,255,.35); border-radius: 1rem; background: rgba(255,255,255,.08); }
.urgent-call span { display: block; color: #c8ddf1; font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.urgent-call a { display: block; margin-top: .4rem; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; white-space: nowrap; }
.urgent-note { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.25); color: #e9f2f9; font-size: .95rem; }
.distance-note { margin: .75rem 0 0; color: #d9e9f5; font-size: .95rem; }

.site-footer { padding-block: 2rem; color: #dfe9f2; background: #0d2d4a; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: white; }

.legal-page { background: var(--mist); }
.legal-header { border-bottom: 1px solid var(--line); background: white; }
.legal-header-inner { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-small { width: 6.25rem; }
.back-link { font-weight: 700; }
.legal-content { max-width: 50rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal-content > h1 { margin-bottom: 3.5rem; font-size: clamp(2.5rem, 6vw, 4.2rem); }
.legal-content section { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.legal-content section:first-of-type { border-top: 0; }
.legal-content h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.legal-content li + li { margin-top: .55rem; }
.legal-list { margin: 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(10rem, .7fr) 1.3fr; gap: 1.5rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.legal-list dt { font-weight: 800; }
.legal-list dd { margin: 0; }
.legal-date { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }

/* Fehlerseite: knapper als die Rechtsseiten, deren Abstand auf lange Dokumente
   ausgelegt ist. Der Inhalt fuellt das Fenster nicht, deshalb schiebt der
   flex-Aufbau den Footer an den unteren Rand, statt einen Streifen freizulassen. */
.error-page { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.error-page .error-content { flex: 1; }
.error-content > h1 { margin-bottom: 1.4rem; }
.error-contact { margin: 0; color: var(--muted); }
.error-contact a { font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .shell { width: min(100% - 1.5rem, 40rem); }
  .header-inner { min-height: 6rem; }
  .brand { width: 6.2rem; }
  .quiet-link { display: none; }
  .hero { background: linear-gradient(155deg, var(--mist) 0 72%, var(--brand-soft) 72% 100%); }
  .hero-grid, .urgent-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; gap: 2.5rem; padding-block: 3.5rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .legal-content > h1 { margin-bottom: 2.5rem; font-size: clamp(1.4rem, 8vw, 2.6rem); }
  .legal-content h2 { font-size: clamp(1.15rem, 5vw, 1.6rem); }
  .urgent-call { padding: 1.25rem; }
  .urgent-call a { white-space: normal; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-list > div { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .legal-header, .site-footer, .button-row { display: none; }
  body { color: black; background: white; }
  .legal-content { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
