/* Henning Schauenburg – ruhige, schnelle Patienten-Website
   Keine Cookies, keine externen Dienste, Schriften liegen lokal im Ordner /fonts */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --ink: #22303a;
  --muted: #55636d;
  --brand: #1f5a66;
  --brand-dark: #164650;
  --tint: #e9f0ee;
  --sand: #f2ece3;
  --line: #ddd7cc;
  --alert: #8a3b2e;
  --alert-bg: #fbeee9;
  --radius: 14px;
  --wrap: 1080px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #e3a33b; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 10px; top: 10px; }

/* Kopfzeile */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 16px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.25; }
.brand strong { display: block; font: 600 1.3rem/1.2 var(--serif); }
.brand span { font-size: .85rem; color: var(--muted); }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }

/* Bereiche */
section { padding-block: clamp(40px, 6vw, 76px); }
.tint { background: var(--tint); }
.sand { background: var(--sand); }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section-head { max-width: 40em; margin-bottom: 34px; }

/* Startseite */
.hero { padding-block: clamp(36px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.2em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 18px 40px -20px rgba(31, 90, 102, .45); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 24px; background: var(--tint); z-index: -1; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--brand); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--tint); color: var(--brand-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .96rem; }
.tint .chips li { border-color: transparent; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 1em; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
.group-title { font: 600 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 38px 0 16px; }
.group-title:first-of-type { margin-top: 0; }

.band { height: clamp(150px, 22vw, 280px); background: var(--sand); }
.band img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.fact { border-top: 3px solid var(--brand); padding-top: 12px; }
.fact b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--brand); }
.fact span { color: var(--muted); font-size: .96rem; }

.contact-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 60px; align-items: center; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.contact-box p:last-child { margin-bottom: 0; }

/* Unterseiten */
.page-head { background: var(--tint); padding-block: clamp(36px, 5vw, 64px); }
.page-head.has-img {
  background-image: linear-gradient(90deg, rgba(233, 240, 238, .97) 0%, rgba(233, 240, 238, .92) 45%, rgba(233, 240, 238, .35) 100%), var(--img);
  background-size: cover;
  background-position: center;
}
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.prose { max-width: 46em; }
.wrap.prose { margin-left: max(20px, calc((100% - var(--wrap)) / 2)); margin-right: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul.bullets { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.prose ul.bullets li { margin-bottom: .45em; }
.prose ul.bullets li::marker { color: var(--brand); }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); margin-bottom: 22px; scroll-margin-top: 20px; }
.block h2 { font-size: 1.55rem; }
.block > :last-child { margin-bottom: 0; }
.block .chips { margin-top: 16px; }
.note { background: var(--sand); border-radius: var(--radius); padding: 20px 24px; margin-top: 26px; }
.note > :last-child { margin-bottom: 0; }
.alert { background: var(--alert-bg); border: 1px solid #e6c4ba; border-radius: var(--radius); padding: 22px 26px; margin-top: 30px; }
.alert h2 { font-size: 1.25rem; color: var(--alert); }
.alert ul { list-style: disc; padding-left: 1.2em; margin-bottom: 0; }
.alert a { color: var(--alert); font-weight: 600; }

/* Kontaktformular */
.form { display: grid; gap: 18px; margin-top: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9b2a5; border-radius: 10px; padding: 12px 14px;
}
.form textarea { resize: vertical; min-height: 9em; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid #e3a33b; outline-offset: 1px; border-color: var(--brand); }
.form .hint { font-size: .93rem; color: var(--muted); margin: 0; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.form .check input { margin-top: .35em; width: 1.15em; height: 1.15em; flex: none; accent-color: var(--brand); }
.form button.btn { justify-self: start; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Publikationen */
.pub-nav-section { padding-block: 28px 8px; }
.pub-nav li a { text-decoration: none; font-variant-numeric: tabular-nums; }
.pub-nav li:hover { background: var(--tint); }
.pubs-wrap { max-width: 52em; }
.pub-year { padding-block: 0 8px; scroll-margin-top: 16px; }
.pub-year h3 { margin-top: 1.4em; padding-bottom: .3em; border-bottom: 2px solid var(--brand); }
.pub-year h4 { font: 600 .85rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.6em 0 .6em; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { position: relative; padding: 10px 0 10px 3.2em; border-bottom: 1px dashed var(--line); font-size: .97rem; line-height: 1.6; overflow-wrap: anywhere; }
.pubs li::before { content: attr(data-nr); position: absolute; left: 0; top: 10px; width: 2.6em; text-align: right; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .85rem; }

/* Lebenslauf */
.timeline h2 { font-size: 1.4rem; margin: 2.2em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.timeline h2:first-child { margin-top: 0; }
.timeline li { display: grid; grid-template-columns: 11em 1fr; gap: 6px 22px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }

/* Fußzeile */
.site-footer { background: #1b2a31; color: #cfd8dc; font-size: .95rem; padding-block: 36px; margin-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.site-footer a { color: #fff; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .hero .wrap, .contact-strip { grid-template-columns: 1fr; }
  .hero-photo { max-width: 300px; order: -1; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .site-header .wrap { padding-block: 12px; }
  .nav a { padding: 7px 12px; font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header .nav, .btns, .band { display: none; }
  body { background: #fff; }
  section { padding-block: 16px; }
}

.page-jump { margin-top: 22px; }
.page-jump li { background: var(--surface); }
.page-jump a { text-decoration: none; }
.pub-year h3 { font-size: 1.6rem; }

.hint-ext { margin: 14px 0 0; font-size: .93rem; color: var(--muted); }

/* Hinweisfenster vor externen Links */
.nav a[data-extern]::after { content: " \2197"; font-size: .85em; }
.extern-dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(460px, calc(100% - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
.extern-dialog::backdrop { background: rgba(27, 42, 49, .55); }
.extern-box { padding: 26px 26px 22px; }
.extern-box h2 { font-size: 1.35rem; }
.extern-box p { color: var(--muted); }
.extern-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.extern-btns button.btn { cursor: pointer; font-family: inherit; background: transparent; }
