/* Praxis Dr. med. Heiko Grimme: Stylesheet.
   Eigene Optik, bewusst unabhängig von anderen Auftritten (Wunsch Domenik 14.10. und 12.11.2026):
   warmes Papier, Petrolblau, Serifen-Überschriften, ruhig und klar. Kein JavaScript, keine Animationen.
   Schriften lokal in ./fonts: Source Serif 4 (Überschriften) und Inter (Text), beide SIL Open Font License 1.1. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Flächen */
  --bg: #F5F3EE;          /* warmes Papier */
  --surface: #FFFFFF;
  --surface-2: #ECE8E0;
  --line: rgba(23, 33, 43, .11);
  /* Text */
  --ink: #17212B;
  --ink-2: #36424D;
  --mute: #5D6873;
  /* Petrolblau */
  --pri: #1D4257;
  --pri-2: #153344;
  --pri-3: #2E5F7A;
  --tint: #DDE9EE;
  --tint-2: #EDF3F5;
  /* kleiner warmer Akzent für Linien */
  --warm: #B08D57;
  /* Platzhalter für offene Angaben, bewusst auffällig */
  --offen-bg: #FFF1B8;
  --offen-text: #5C4500;

  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --h1: clamp(40px, 4.6vw, 64px);
  --h2: clamp(30px, 3.2vw, 44px);
  --h3: 20px;
  --lead: 18px;

  --pad: clamp(16px, 4vw, 56px);
  --sec: 104px;
  --head-gap: 44px;
  --card-pad: 28px;
  --r-card: 14px;
  --r-s: 10px;

  color-scheme: light;
}
@media (max-width: 900px) { :root { --sec: 76px; --head-gap: 32px; --card-pad: 22px; } }
@media (max-width: 600px) { :root { --sec: 56px; --head-gap: 26px; --card-pad: 20px; --h3: 19px; --lead: 16.5px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }

em.acc { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pri); }
.dark em.acc { color: #BFD6E1; }

/* Barrierefreiheit */
:focus-visible { outline: 2px solid var(--pri-3); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: #BFD6E1; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: 8px;
  background: var(--pri); color: #fff; text-decoration: none; font-size: 15px;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Hierarchie ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--pri); }
.kicker::before { content: ""; flex: none; width: 22px; height: 1.5px; background: var(--warm); }
.dark .kicker { color: #BFD6E1; }
.sec-head { max-width: 720px; }
.sec-head h2 { margin-top: 14px; font-size: var(--h2); line-height: 1.12; }
.lead, .sec-head .sub { font-size: var(--lead); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.sec-head .sub { margin-top: 14px; }

/* ---------- Rhythmus ---------- */
.sec { padding-block: var(--sec) 0; }
.panel { padding-block: var(--sec); margin-top: var(--sec); }
.panel--white { background: var(--surface); border-block: 1px solid var(--line); }
.panel--tint { background: var(--tint-2); }
.dark { background: var(--pri); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.panel + .panel { margin-top: 0; }

/* ---------- Kopfzeile: weiße Leiste, klebt oben ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(245, 243, 238, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; width: min(1180px, 100%); margin-inline: auto; padding: 14px var(--pad); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.wm-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.wm-sub { margin-top: 3px; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }
.nav-r { display: flex; align-items: center; gap: 8px; }
.nav-l { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; }
.nav-l a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.nav-l a:hover { background: var(--tint-2); color: var(--pri); }
.btn-s { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; background: var(--pri); color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.btn-s:hover { background: var(--pri-2); color: #fff; }
.btn-s svg { width: 15px; height: 15px; }
@media (max-width: 920px) { .nav-l { display: none; } }
@media (max-width: 420px) { .wm-sub { display: none; } .btn-s { padding: 9px 12px; font-size: 14px; } }

/* ---------- Einstieg: Heiko Grimme im Vordergrund ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: var(--h1); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; }
.hero .role { margin-top: 14px; font-size: clamp(19px, 1.7vw, 23px); font-family: var(--serif); font-style: italic; color: var(--pri); }
.hero .lead { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero .addr { font-size: 14.5px; color: var(--mute); line-height: 1.45; }
.hero .addr b { display: block; font-weight: 500; color: var(--ink-2); }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-card); background: var(--surface-2); }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .94); font-size: 13.5px; line-height: 1.35; color: var(--ink-2); box-shadow: 0 6px 24px rgba(23, 33, 43, .08); }
.portrait figcaption b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 420px; }
  .portrait img { aspect-ratio: 1 / 1; object-position: 50% 18%; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.facts li { padding: 20px 24px 0 0; font-size: 14.5px; line-height: 1.45; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.facts span { color: var(--mute); }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 10px;
  font: 500 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-cta { background: var(--pri); color: #fff; }
.btn-cta:hover { background: var(--pri-2); color: #fff; }
@media (max-width: 480px) { .btn { width: 100%; } }

/* ---------- Leistungen ---------- */
.cards { list-style: none; margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: var(--card-pad); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--pri); font-size: 14px; font-weight: 600; }
.card h3 { margin-top: 20px; font-size: var(--h3); line-height: 1.3; }
.card-text { margin-top: 10px; font-size: 15.5px; color: var(--mute); }
.checks { list-style: none; margin-top: 16px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.checks li:last-child { padding-bottom: 0; }
.checks svg { width: 17px; height: 17px; margin-top: 2px; color: var(--pri-3); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Ärzte ---------- */
.doc-main { margin-top: var(--head-gap); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-card); }
.doc-main h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.doc-main .person-role { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--pri); }
.doc-main p.bio { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.doc-list { list-style: none; margin-top: 22px; }
.doc-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.doc-list svg { width: 17px; height: 17px; margin-top: 3px; color: var(--pri-3); }
.doc-more { margin-top: 28px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-card); background: var(--bg); max-width: 34em; }
.doc-more img { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.doc-more b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.doc-more span { font-size: 14.5px; color: var(--mute); }
@media (max-width: 860px) {
  .doc-main { grid-template-columns: 1fr; }
  .doc-main > img { max-width: 360px; }
}

/* ---------- Hinweise ---------- */
.hinweise-grid { margin-top: var(--head-gap); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.box { padding: var(--card-pad); border-radius: var(--r-card); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.box h3 { font-size: var(--h3); }
.box p { margin-top: 12px; color: rgba(255, 255, 255, .86); }
.nots { list-style: none; margin-top: 14px; }
.nots li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); line-height: 1.45; }
.nots li:last-child { padding-bottom: 0; }
.nots svg { width: 16px; height: 16px; margin-top: 3px; color: #BFD6E1; }
.notfall {
  margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: baseline;
  padding: 22px var(--card-pad); border-radius: var(--r-card); background: #fff; color: var(--ink);
}
.notfall h3 { font-size: var(--h3); color: var(--pri) !important; }
.notfall p { color: var(--ink-2); }
.notfall .num { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) {
  .hinweise-grid { grid-template-columns: 1fr; }
  .notfall { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.kontakt-grid { margin-top: var(--head-gap); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 14px; }
.kontakt-card { padding: var(--card-pad); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kontakt-card dl { margin: 0; }
.kontakt-card dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pri); }
.kontakt-card dt:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.kontakt-card dd { margin: 8px 0 0; color: var(--ink-2); }
.kontakt-card .btn { margin-top: 16px; }
.mail { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); color: var(--ink); word-break: break-word; }
.kontakt-note { padding: var(--card-pad); border-radius: var(--r-card); background: var(--tint); color: var(--ink-2); font-size: 15.5px; }
.kontakt-note b { display: block; margin-bottom: 8px; font-weight: 600; color: var(--pri); }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap > * { max-width: 46rem; }
.legal h1 { margin-top: 14px; font-size: var(--h2); line-height: 1.1; }
.legal .intro-text { margin-top: 20px; font-size: var(--lead); line-height: 1.55; color: var(--ink-2); }
.legal h2 { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 23px; line-height: 1.25; }
.legal h1 + h2 { margin-top: 36px; }
.legal h3 { margin-top: 22px; font-family: var(--sans); font-size: 16.5px; font-weight: 600; letter-spacing: 0; color: var(--pri); }
.legal p, .legal address, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.legal li::marker { color: var(--pri); }
.legal a { color: var(--pri); }
.legal strong { font-weight: 600; color: var(--ink); }
.legal .stand { margin-top: 40px; font-size: 14.5px; color: var(--mute); }

/* Offene Angaben */
.offen { background: var(--offen-bg); color: var(--offen-text); padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ---------- Fuß ---------- */
.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); background: var(--bg); }
.ft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; }
.ft-name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.ft-sub { margin-top: 4px; font-size: 14.5px; color: var(--mute); }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; align-content: start; font-size: 15px; }
.ft-links a { color: var(--ink-2); }
.ft-links a:hover { color: var(--pri); }

@media print {
  .site-header { position: static; }
  .nav-l, .btn-s, .skip-link { display: none; }
  .panel, .dark { background: none; color: #000; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Ärzte: Heiko links, Team rechts */
@media (min-width: 861px) { .doc-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.doc-team { padding: var(--card-pad); border-radius: var(--r-card); background: var(--bg); }
.doc-team .doc-more { margin-top: 16px; padding: 0; background: none; }
