/* ==========================================================================
   Praxis Abdel Qader – Redesign-Prototyp
   Designsystem auf Basis der bestehenden Marke (Logo-Blau #306493).
   Keine externen Requests (DSGVO): keine Google Fonts, keine Tracker.
   Auch keine Webschrift: Der Schriftzug "Praxis Abdel Qader" steckt als Kontur
   im Logo (logo.svg), alle Texte laufen in der Systemschrift.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marke – unverändert aus dem Logo abgeleitet */
  --brand:        #306493;   /* Logo-Blau, 1:1 aus logo.svg */
  --brand-deep:   #1e4a73;   /* Hover / Links auf hellem Grund */
  --brand-darker: #12314e;   /* Navy-Flächen (Header-Bänder, Footer) */
  --brand-soft:   #5b8fbd;
  --brand-tint:   #eaf1f8;   /* helle Markenfläche */
  --brand-tint-2: #f4f8fc;
  --brand-line:   #d6e3f0;

  /* Neutrale Wärme – gegen den sterilen Klinik-Look */
  --paper:      #fcfbf9;
  --sand:       #f6f2ea;
  --sand-line:  #e8e0d2;
  --ink:        #14212e;
  --ink-2:      #3d4c5c;
  --ink-soft:   #61707f;
  --line:       #e3e8ee;
  --white:      #fff;

  /* Status – aus dem Bestand übernommen */
  --amber-bg:#fdf6e9; --amber-line:#ecd8ac; --amber-ink:#7a4c08;
  --red-bg:#fdf1f0;   --red-line:#f0c9c6;   --red-ink:#a3271e;
  --green-bg:#eef6f0; --green-line:#cfe3d5; --green-ink:#1d6338;

  /* Typografie */
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(.86rem, .84rem + .1vw, .92rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.09rem + .3vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.28rem + .6vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.15vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.65rem + 2.1vw, 3.6rem);

  /* Form */
  --r:   16px;
  --r-lg:24px;
  --r-sm:10px;
  --shadow-sm: 0 1px 2px rgba(18,49,78,.05), 0 4px 14px rgba(18,49,78,.05);
  --shadow:    0 2px 6px rgba(18,49,78,.05), 0 18px 44px rgba(18,49,78,.09);
  /* Bewegung. Die eingebauten CSS-Easings sind zu schwach – eigene Kurven.
     ease-out fuer alles, was erscheint; ease-in-out fuer alles, was sich
     auf dem Bildschirm verformt. ease-in wird bewusst nirgends verwendet. */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dauer-druck: 110ms;
  --dauer-hover: 160ms;

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 88px;
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -.021em;
  font-weight: 650;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -.028em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: var(--step-0); line-height: 1.4; letter-spacing: -.005em; }
p  { text-wrap: pretty; }
/* Lange deutsche Komposita duerfen umbrechen statt das Layout zu sprengen. */
p, li, h1, h2, h3, h4, td, th, summary { overflow-wrap: break-word; }
a  { color: var(--brand-deep); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--brand); }
strong, b { font-weight: 650; }
ul, ol { padding-left: 1.15em; }
li + li { margin-top: .38em; }
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe0f0; }

/* Reduzierte Bewegung heisst weniger Bewegung, nicht gar keine Rueckmeldung:
   Deckkraft- und Farbwechsel bleiben, Verschiebungen und Skalierungen fallen weg. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, fill, stroke !important;
    transition-duration: 180ms !important;
    transition-delay: 0ms !important;
  }
  .btn:hover, .btn:active, a.card:hover, .entry:hover, .dl a:hover,
  .link-arrow:hover::after { transform: none !important; }
}

/* ---------- 3. Layout-Primitive ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 34px); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(52px, 7.5vw, 108px); }
.section--tight { padding-block: clamp(38px, 5vw, 64px); }
.section--sand { background: var(--sand); border-block: 1px solid var(--sand-line); }
.section--tint { background: var(--brand-tint-2); border-block: 1px solid var(--brand-line); }
.section--navy { background: var(--brand-darker); color: #dce8f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.stack > * + * { margin-top: 1em; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* Sektionskopf */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .55; }
.section--navy .eyebrow { color: #8db6d9; }
.sec-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head h2 { margin-top: .5em; }
.sec-head .lead { margin-top: .7em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.section--navy .lead { color: #b9cfe3; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: inherit; font-weight: 650; font-size: var(--step-0);
  padding: .82em 1.5em; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background var(--dauer-hover) var(--ease-out),
              color var(--dauer-hover) var(--ease-out),
              border-color var(--dauer-hover) var(--ease-out),
              transform var(--dauer-hover) var(--ease-out),
              box-shadow var(--dauer-hover) var(--ease-out);
}
/* Ein Button muss auf Druck reagieren – auch auf dem Smartphone, wo es kein Hover gibt. */
.btn:active { transform: scale(.97); transition-duration: var(--dauer-druck); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(.97); }
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(48,100,147,.26); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 10px 26px rgba(48,100,147,.32); }
.btn--ghost { border-color: var(--brand-line); background: rgba(255,255,255,.7); color: var(--brand-deep); }
.btn--ghost:hover { border-color: var(--brand); background: #fff; color: var(--brand-deep); }
.btn--onnavy { background: #fff; color: var(--brand-darker); }
.btn--onnavy:hover { background: var(--brand-tint); color: var(--brand-darker); }
.btn--onnavy-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--onnavy-ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); color: #fff; }
.btn--sm { padding: .62em 1.15em; font-size: var(--step--1); }
/* Auf Touch-Geraeten bleiben auch die kleinen Buttons gross genug zum Treffen. */
@media (max-width: 860px) {
  .btn--sm { padding: .82em 1.35em; font-size: var(--step-0); min-height: 46px; }
  .btn { min-height: 48px; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 650;
  text-decoration: none; color: var(--brand-deep);
  min-height: 44px;   /* bequeme Trefferflaeche am Daumen */
}
.link-arrow::after { content: "→"; transition: transform var(--dauer-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: translateX(3px); }
}

/* ---------- 5. Header ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-darker); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 0; }

.topline {
  background: var(--brand-darker); color: #a8c4dd;
  font-size: var(--step--1); padding: 8px 0;
}
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topline a { color: #fff; font-weight: 650; text-decoration: none; }
.topline a:hover { text-decoration: underline; }
.topline-aktionen { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) { .topline { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(252,251,249,.9); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(18,49,78,.06); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 64px; width: auto; }
@media (max-width: 560px) { .brand img { height: 48px; } :root { --header-h: 74px; } }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  padding: .58em .62em; border-radius: 100px; white-space: nowrap;
  transition: background var(--dauer-hover) var(--ease-out), color var(--dauer-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--brand-tint); color: var(--brand-deep); }
}
.nav a[aria-current] { background: var(--brand-tint); color: var(--brand-deep); }
.nav .btn { margin-left: 8px; }
/* Der Selektor `.nav a` ist spezifischer als `.btn--primary` – die Button-Farben
   muessen hier deshalb ausdruecklich wiederholt werden. */
.nav a.btn--primary { color: #fff; background: var(--brand); }
.nav a.btn--primary:hover { color: #fff; background: var(--brand-deep); }
.nav a.btn--ghost { color: var(--brand-deep); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 100px;
  padding: .5em .9em; cursor: pointer; font: inherit; font-weight: 650; font-size: .92rem;
  color: var(--ink); align-items: center; gap: .5em;
}
.nav-toggle .bars { display: inline-block; width: 17px; }
.nav-toggle .bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars i + i { margin-top: 4px; }

/* Sieben Menüpunkte plus Terminbutton brauchen mehr als 1200px Breite –
   darunter greift das Menü, sonst ragt der Button aus dem Bild. */
@media (max-width: 1220px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px clamp(18px, 4vw, 34px) 22px; box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85em .9em; border-radius: var(--r-sm); font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; }
  .nav .nav-sub { padding-left: 1.5em; font-size: .95rem; color: var(--ink-soft); }
}

/* Ankündigungsband */
.announce {
  background: var(--amber-bg); border-bottom: 1px solid var(--amber-line);
  color: var(--amber-ink); font-size: var(--step--1); padding: 9px 0;
}
.announce .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; text-align: center; }
.announce a { color: inherit; font-weight: 700; }
.announce button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 1.15rem; line-height: 1; padding: 4px; flex-shrink: 0; }
.announce.is-hidden { display: none; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(44px, 6vw, 88px) clamp(40px, 5vw, 76px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90ch 46ch at 78% 8%, #eef4fa 0%, rgba(238,244,250,0) 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
/* Blasses Logo-Wasserzeichen wie auf den Unterseiten – hier links unten,
   weil die rechte Seite von den beiden Porträts belegt ist. */
.hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  /* Rechts wie auf den Unterseiten – die Porträts verdecken die Mitte,
     oben und unten schaut es dahinter hervor. */
  right: clamp(-70px, -4vw, -20px); top: 50%;
  height: 88%; width: auto; aspect-ratio: 46 / 50;
  transform: translateY(-50%) rotate(-8deg);
  background: url(../favicon.svg) no-repeat center / contain;
  opacity: .06;
}
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero::after { display: none; } }

/* Kopfzeile über die volle Breite, darunter Text links und die Ärzte rechts. */
.hero-kopf { max-width: 30ch; }
@media (min-width: 940px) { .hero-kopf { max-width: none; } }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-top: .42em; }
.hero-ort {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700;
  letter-spacing: -.02em; color: var(--ink-2); line-height: 1.15; margin-bottom: .4em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: .8em; max-width: 54ch; }
/* Alle Handlungswege in einer Reihe unter beiden Spalten – in der linken
   Spalte allein waere dafuer kein Platz. */
.hero-aktionen {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px; margin-top: clamp(24px, 3vw, 40px);
}
/* Etwas schmalere Schaltflaechen, damit alle vier Wege in eine Zeile passen. */
.hero-aktionen .btn { padding-inline: 1.25em; }
.hero-aktionen .hero-tel { margin-top: 0; gap: .45em; }
.hero-aktionen .hero-tel a { font-size: var(--step-0); }
@media (min-width: 1120px) { .hero-aktionen .hero-tel { margin-left: auto; } }
.hero-tel { margin-top: 1.5em; display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); }
.hero-tel a { font-size: var(--step-1); font-weight: 700; color: var(--brand-deep); text-decoration: none; letter-spacing: -.01em; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/5; object-position: 50% 22%; }
@media (max-width: 939px) { .hero-media img { aspect-ratio: 16/10; object-position: 50% 26%; } }
.hero-badge {
  position: absolute; left: -14px; bottom: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); max-width: 15rem;
}
.hero-badge strong { display: block; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.hero-badge span { font-size: .94rem; color: var(--ink-2); line-height: 1.45; display: block; margin-top: .25em; }
@media (max-width: 520px) { .hero-badge { position: static; margin-top: 14px; max-width: none; } }

/* Zwei Ärzte nebeneinander im Hero, gegenüber dem Text etwas abgesetzt */
@media (min-width: 940px) { .hero-media { margin-top: clamp(10px, 2.4vw, 40px); } }
/* Der Abstand muss groesser sein als der Linksversatz der Kachel (-18px),
   sonst ragt die rechte Kachel ins linke Bild. */
.hero-aerzte { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 2.4vw, 32px); }
.hero-aerzte figure { position: relative; margin: 0 0 clamp(26px, 3vw, 34px); }
.hero-aerzte img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--r); box-shadow: var(--shadow);
}
/* Namenskachel wie im ersten Entwurf: weisses Kaertchen links unten IM Bild,
   ueber die linke Kante hinausgesetzt, mit blauer Versalzeile darueber. */
.hero-aerzte .hero-badge {
  position: absolute; left: -18px; bottom: -18px;
  width: calc(100% - 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; box-shadow: var(--shadow-sm);
}
.hero-aerzte .hero-badge strong {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand); line-height: 1.25;
}
.hero-aerzte .hero-badge span {
  display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.3; margin-top: .15em;
}
/* Auf schmalen Schirmen wuerde die Kachel das halbe Bild verdecken –
   dort steht der Name schlicht darunter. */
@media (max-width: 700px) {
  .hero-aerzte figure { margin-bottom: 0; }
  .hero-aerzte .hero-badge {
    position: static; width: auto; background: none; border: 0; box-shadow: none;
    padding: .55em 0 0;
  }
}

/* Vertrauensleiste */
.trust { border-top: 1px solid var(--sand-line); background: var(--sand); }
.trust-grid { display: grid; gap: clamp(18px, 3vw, 34px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: clamp(26px, 3.4vw, 40px); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .n { font-size: var(--step-2); font-weight: 680; color: var(--brand); line-height: 1; letter-spacing: -.03em; flex-shrink: 0; }
.trust-item strong { display: block; font-size: .99rem; }
.trust-item span { display: block; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 7. Karten ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: .7em;
  transition: border-color var(--dauer-hover) var(--ease-out),
              transform var(--dauer-hover) var(--ease-out),
              box-shadow var(--dauer-hover) var(--ease-out);
}
.card h3 { margin: 0; }
.card p { color: var(--ink-2); font-size: .985rem; }
.card .link-arrow { margin-top: auto; padding-top: .5em; }
a.card { text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { border-color: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
}
a.card:active { transform: scale(.995); transition-duration: var(--dauer-druck); }

/* Einstiegskarten „Was führt Sie zu uns?“ */
.entry {
  position: relative; display: flex; flex-direction: column; gap: .55em;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 30px); text-decoration: none; color: inherit;
  transition: border-color var(--dauer-hover) var(--ease-out),
              transform var(--dauer-hover) var(--ease-out),
              box-shadow var(--dauer-hover) var(--ease-out);
  overflow: hidden;
}
.entry::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .entry:hover { border-color: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .entry:hover::after { transform: scaleY(1); }
}
.entry:active { transform: scale(.995); transition-duration: var(--dauer-druck); }
.entry .ico { color: var(--brand); }
/* Die Icons bringen Fuellung und Kontur selbst mit – hier nur Groesse und Farbe. */
.entry .ico svg { width: 30px; height: 30px; }
.entry h3 { font-size: var(--step-1); }
.entry p { font-size: .96rem; color: var(--ink-2); }
.entry .go { margin-top: auto; padding-top: .6em; font-weight: 650; color: var(--brand-deep); font-size: .95rem; }
.entry .go::after { content: " →"; }

/* Leistungskarte, kompakt */
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; }
.mini h4 { margin-bottom: .3em; }
.mini p { font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- 8. Ablauf / Schritte ---------- */
.steps { display: grid; gap: clamp(18px, 2.4vw, 26px); counter-reset: s; }
@media (min-width: 800px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.step::after { content: ""; position: absolute; top: 17px; left: 44px; right: -14px; height: 1.5px; background: var(--brand-line); }
.step:last-child::after { display: none; }
@media (max-width: 799px) { .step::after { display: none; } }
.step h3 { font-size: var(--step-0); margin-bottom: .3em; }
.step p { font-size: .95rem; color: var(--ink-2); }
.section--navy .step::before { background: #fff; color: var(--brand-darker); }
.section--navy .step::after { background: rgba(255,255,255,.22); }
.section--navy .step p { color: #b9cfe3; }

/* Vertikale Timeline (Praxisgeschichte) */
.timeline { display: grid; gap: 0; position: relative; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); } }
.tl-item { position: relative; padding: 30px 0 30px 30px; border-left: 2px solid var(--brand-line); }
@media (min-width: 860px) { .tl-item { padding: 34px 0 0; border-left: 0; border-top: 2px solid var(--brand-line); } }
.tl-item::before {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--paper);
  left: -7.5px; top: 34px;
}
@media (min-width: 860px) { .tl-item::before { left: 0; top: -7.5px; } }
.tl-year { font-size: var(--step-2); font-weight: 680; color: var(--brand); letter-spacing: -.03em; line-height: 1; }
.tl-item h3 { margin: .45em 0 .3em; font-size: var(--step-1); }
.tl-item p { color: var(--ink-2); font-size: .97rem; }
.section--sand .tl-item::before { border-color: var(--sand); }

/* ---------- 9. Hinweisboxen ---------- */
.note {
  border-radius: var(--r); padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--brand-line); background: var(--brand-tint-2);
}
.note h3, .note h4 { margin-bottom: .35em; }
.note p { color: var(--ink-2); }
.note--amber { background: var(--amber-bg); border-color: var(--amber-line); }
.note--amber h3, .note--amber h4 { color: var(--amber-ink); }
.note--red { background: var(--red-bg); border-color: var(--red-line); }
.note--red h3, .note--red h4 { color: var(--red-ink); }
.note--green { background: var(--green-bg); border-color: var(--green-line); }
.note--green h3, .note--green h4 { color: var(--green-ink); }
.note--gap { background: #fff7ed; border: 1px dashed #d9a441; color: #7a4c08; }
.note--gap code { font-size: .88em; background: rgba(122,76,8,.09); padding: .1em .4em; border-radius: 4px; }

/* ---------- 10. Öffnungszeiten ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: .99rem; }
.hours th, .hours td { text-align: left; padding: .72em .2em; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--ink-2); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand-deep); font-weight: 700; }
.hours tr.is-today th::after { content: " · heute"; font-weight: 600; font-size: .82em; color: var(--brand); letter-spacing: .02em; }

/* ---------- 11. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none; padding: 1.05em 2.4em 1.05em 0; position: relative;
  font-weight: 650; font-size: var(--step-0); color: var(--ink); line-height: 1.45;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: .35em; top: 1.45em;
  width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform 200ms var(--ease-in-out);
}
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc summary:hover { color: var(--brand-deep); }
.acc .acc-body { padding: 0 2.4em 1.35em 0; color: var(--ink-2); font-size: .985rem; }
.acc .acc-body > * + * { margin-top: .7em; }

/* ---------- 12. Personen ---------- */
.doctor { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
@media (min-width: 820px) { .doctor { grid-template-columns: minmax(0, 340px) 1fr; } }
.doctor img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; box-shadow: var(--shadow-sm); }
.role { display: inline-block; font-size: var(--step--1); font-weight: 650; color: var(--brand-deep); background: var(--brand-tint); padding: .34em .85em; border-radius: 100px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .84rem; font-weight: 650; color: var(--ink-2); border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: .32em .8em; }

.people { display: grid; gap: clamp(16px, 2.2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.person { text-align: left; }
.person img { border-radius: var(--r); aspect-ratio: 1/1; object-fit: cover; object-position: 50% 22%; margin-bottom: .7em; }
.person strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.person span { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 13. Split-Blöcke ---------- */
.split { display: grid; gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--media-right > :first-child { order: -1; } }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; }

/* Checkliste */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.75em; margin-top: .55em; }
.check li::before {
  content: ""; position: absolute; left: .1em; top: .48em;
  width: 9px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.check--red li::before { border-color: var(--red-ink); }

/* Download-Liste */
.dl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dl a {
  display: flex; gap: 13px; align-items: flex-start; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 15px 17px;
  transition: border-color var(--dauer-hover) var(--ease-out), transform var(--dauer-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .dl a:hover { border-color: var(--brand-soft); transform: translateY(-1px); }
}
.dl a:active { transform: scale(.99); transition-duration: var(--dauer-druck); }
.dl .pdf { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--red-ink); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: 5px; padding: .3em .45em; flex-shrink: 0; margin-top: .15em; }
.dl strong { display: block; font-size: .97rem; }
.dl span { display: block; font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }

/* Breadcrumb + Seitenkopf */
.crumb { font-size: var(--step--1); color: var(--ink-soft); padding-top: clamp(18px, 2.5vw, 30px); }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--brand-deep); text-decoration: underline; }
.page-head {
  position: relative; overflow: hidden;
  padding-block: clamp(22px, 3vw, 40px) clamp(34px, 4.6vw, 62px);
  background: linear-gradient(180deg, var(--paper), var(--sand));
  border-bottom: 1px solid var(--sand-line);
}
.page-head h1 { margin-top: .3em; max-width: 20ch; }
.page-head .lead { margin-top: .75em; max-width: 62ch; }

/* Blasses Logo-Wasserzeichen rechts – wie auf der bisherigen Website,
   dort weiss auf Marineblau, hier Logo-Blau auf Sand. */
.page-head::after {
  content: ""; position: absolute; pointer-events: none;
  right: clamp(-70px, -4vw, -20px); top: 50%;
  height: 130%; width: auto; aspect-ratio: 46 / 50;
  transform: translateY(-50%) rotate(-8deg);
  background: url(../favicon.svg) no-repeat center / contain;
  opacity: .07;
}
.page-head .wrap { position: relative; z-index: 1; }
/* Auf schmalen Schirmen laege es hinter dem Text – dort bleibt es weg. */
@media (max-width: 900px) { .page-head::after { display: none; } }

/* CTA-Band */
.cta-band { background: var(--brand-darker); color: #dce8f3; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #b9cfe3; max-width: 56ch; margin-top: .7em; }
.cta-inner { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1.25fr .75fr; } }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 859px) { .cta-band .btn-row { margin-top: 1.4em; } }

/* Zitat */
.quote { max-width: 60ch; }
.quote blockquote { font-size: var(--step-2); line-height: 1.42; letter-spacing: -.017em; font-weight: 500; color: var(--ink); }
.quote cite { display: block; margin-top: 1em; font-style: normal; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--brand-darker); color: #a8c4dd; padding-block: clamp(44px, 5.5vw, 72px) 0; font-size: .96rem; }
.site-footer h4 { color: #fff; font-size: .93rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer a { color: #dce8f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: clamp(26px, 3.4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: .55em; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 1.1em; }
.footer-logo img { height: 46px; }
.footer-bottom {
  margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .89rem; color: #8fb0cd;
}

/* ---------- 15. Mobile Aktionsleiste ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: none; background: rgba(252,251,249,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 18px rgba(18,49,78,.08);
}
.mobile-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 10px; text-decoration: none; color: var(--ink-2);
  font-size: .74rem; font-weight: 650; letter-spacing: .01em;
  transition: transform var(--dauer-druck) var(--ease-out), color var(--dauer-hover) var(--ease-out);
}
.mobile-bar a:active { transform: scale(.93); color: var(--brand); }
.mobile-bar a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mobile-bar a.is-primary { color: var(--brand); }
@media (max-width: 860px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 66px; }
}

/* ---------- 16. Reveal ---------- */
/* Ohne JavaScript bleibt alles sichtbar – die Animation haengt an der .js-Klasse,
   die das Inline-Skript im <head> setzt. */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Erscheinen mehrere Karten gleichzeitig, treten sie kurz nacheinander ein.
   Nur die ersten sechs – danach wuerde das Warten spuerbar. */
.js .grid > .reveal:nth-child(2),  .js .people > .reveal:nth-child(2),  .js .steps > .reveal:nth-child(2)  { transition-delay: 45ms; }
.js .grid > .reveal:nth-child(3),  .js .people > .reveal:nth-child(3),  .js .steps > .reveal:nth-child(3)  { transition-delay: 90ms; }
.js .grid > .reveal:nth-child(4),  .js .people > .reveal:nth-child(4),  .js .steps > .reveal:nth-child(4)  { transition-delay: 135ms; }
.js .grid > .reveal:nth-child(5),  .js .people > .reveal:nth-child(5)   { transition-delay: 180ms; }
.js .grid > .reveal:nth-child(6),  .js .people > .reveal:nth-child(6)   { transition-delay: 225ms; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- 17. Prototyp-Kennzeichnung ---------- */
.proto-flag {
  background: #1d1a15; color: #f5e6c8; font-size: .8rem; padding: 7px 0; text-align: center;
  letter-spacing: .02em;
}
.proto-flag strong { color: #ffd88a; }

/* ==========================================================================
   18. Schema zur Polypenabtragung (Seite Darmkrebsvorsorge)
   Drei Zeichnungen, die zusammen den Kerngedanken der Vorsorge zeigen.
   Jede ist für sich lesbar – die Bewegung erklärt zusätzlich, sie trägt nichts allein.
   ========================================================================== */
.seq {
  --ill-lumen:       #fbfcfe;
  --ill-gewebe:      #e4eef7;
  --ill-linie:       #9dbcd8;
  --ill-polyp:       #f3e3c1;
  --ill-polyp-linie: #c39c48;
  --ill-werkzeug:    #24405c;
  --ill-licht:       rgba(248, 232, 186, .5);
  --ill-licht-hell:  #f6e3b0;
  --ill-geheilt:     #4e9a6e;

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
}
@media (min-width: 820px) { .seq { grid-template-columns: repeat(3, 1fr); } }

.seq-schritt { display: flex; flex-direction: column; gap: 16px; }
.seq-bild {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ill-lumen);
}
.seq-bild .ill { display: block; width: 100%; height: auto; }

.seq-text { display: flex; flex-direction: column; gap: .35em; }
.seq-nr {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .2em;
}
.seq-text h3 { font-size: var(--step-0); }
.seq-text p { font-size: .95rem; color: var(--ink-2); }

/* ==========================================================================
   19. Werdegang (Arztseite)
   ========================================================================== */
.vita { list-style: none; margin: .8em 0 0; padding: 0; }
.vita li {
  display: grid;
  gap: 2px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.vita li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 560px) {
  .vita li { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: baseline; }
}
.vita-zeit {
  font-weight: 650;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vita-was { color: var(--ink-2); }

/* Karte mit Aufmacherbild (endoskopische Untersuchungen) */
.card--bild { padding: 0; overflow: hidden; }
.card--bild > *:not(.card-bild) { margin-inline: clamp(20px, 2.4vw, 28px); }
.card--bild > *:last-child { margin-bottom: clamp(20px, 2.4vw, 28px); }
.card-bild {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: clamp(16px, 2vw, 22px);
  background: var(--brand-darker);
}
.card--bild h3 { margin-top: clamp(18px, 2.2vw, 24px); }

/* Breites Praxisfoto als eigenständiges Element */
.bild-breit { margin: 0; }
.bild-breit img { border-radius: var(--r); box-shadow: var(--shadow-sm); }
.bild-breit figcaption {
  margin-top: .8em;
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.5;
}
.section--navy .bild-breit figcaption { color: #9db8d1; }
