/* Shared stylesheet of the doctor pages (hinterberger / gerhold) and the
   joint page frauengesundheit.pro (body.central).
   All three pages are generated by tools/build-doctors.mjs. */
:root {
  /* Corporate-design colours from the approved letterhead. */
  --green: #898f84;
  --green-2: #837d79;
  --green-3: #94706f;
  --olive-deep: #596057;
  --olive-soft: #e6e8e2;
  --accent-green: #52675c;
  --accent-green-hover: #43584e;
  --mauve-deep: #755554;
  --ink: #43413f;
  --paper: #ffffff;
  --surface: #faf9f8;
  --cream: #f5f4f2;
  --peach: #d9cdca;
  --peach-2: #e8ddda;
  --rose-text: #94706f;
  --line: #d9cdca;
  --muted: #625e5b;
  --on-green: #43413f;
  --on-green-muted: #625e5b;
  --on-mauve: #ffffff;
  --shadow: 0 18px 45px -28px rgba(67, 65, 63, .38);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
}

/* Dr. Gerhold: a warmer, rosé-led variation of the shared design system. */
body.doctor-gerhold {
  --green: #c78f86;
  --green-2: #ae766f;
  --green-3: #94706f;
  --olive-deep: #704947;
  --olive-soft: #f4e9e6;
  --mauve-deep: #754947;
  --accent-green: #52675c;
  --accent-green-hover: #43584e;
  --peach: #e7c9c3;
  --peach-2: #f0dcd7;
  --rose-text: #8a5752;
  --line: #dfc9c4;
  --muted: #705d58;
  --on-green-muted: #604b47;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: linear-gradient(135deg, var(--surface), var(--paper) 42%, var(--surface)); color: var(--ink); font: 400 17px/1.6 var(--text); }
::selection { background: var(--peach); color: var(--green); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--rose-text); outline-offset: 3px; border-radius: 6px; }
.on-green :focus-visible { outline-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px; font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 5px 14px -12px rgba(67, 65, 63, .8); transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(67, 65, 63, .8); }
.btn:active { transform: translateY(1px); }
.btn-book { background: var(--mauve-deep); color: var(--on-mauve); }
.btn-book:hover { background: var(--rose-text); }
.btn-dark { background: var(--olive-deep); color: var(--on-mauve); }
.btn-dark:hover { background: var(--green-2); color: var(--ink); }
body.doctor-gerhold .btn-dark { background: var(--accent-green); color: var(--on-mauve); }
body.doctor-gerhold .btn-dark:hover { background: var(--accent-green-hover); color: var(--on-mauve); }
body.doctor-gerhold .way-book .btn-book { background: var(--accent-green); color: var(--on-mauve); }
body.doctor-gerhold .way-book .btn-book:hover { background: var(--accent-green-hover); }
.btn-ghost { color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.note { font-size: 15px; color: var(--muted); }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 28%); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand b { display: block; font: 600 18px/1.15 var(--display); letter-spacing: -0.01em; }
.brand small { display: block; font-size: 14px; color: var(--muted); }
.site-nav { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.site-nav a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; font-size: 15px; }
.site-nav a:hover { background: var(--olive-soft); color: var(--mauve-deep); }
/* "Teilen" in the header: <details> popover with plain share links
   (summary = button, .share-menu = panel; .si = filled brand icons). */
.site-head .site-nav { margin-left: auto; }
.share { position: relative; flex: none; }
.share > summary { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 15px; cursor: pointer; list-style: none; user-select: none; }
.share > summary::-webkit-details-marker { display: none; }
.share > summary:hover, .share[open] > summary { background: var(--olive-soft); color: var(--mauve-deep); }
.share > summary .i { width: 19px; height: 19px; }
.share-menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); box-shadow: var(--shadow); }
.share-title { margin: 0 0 10px 6px; font: 600 15px/1.2 var(--display); color: var(--muted); }
.share-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 0; list-style: none; }
.share-menu li[hidden] { display: none; }
.share-menu a, .share-menu button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: var(--radius-s); background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--cream); color: var(--mauve-deep); }
.share-menu .i { width: 20px; height: 20px; }
.si { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Intro */
.intro { padding: clamp(32px, 6vw, 72px) 0 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.intro h1 { font-size: clamp(36px, 4.4vw, 62px); color: var(--green); }
.intro p { font-size: 19px; color: var(--muted); margin: 0; max-width: 34em; padding: 18px 0 18px 22px; border-left: 3px solid var(--peach); }

/* Current notices from the admin */
.live-status { margin: 0 0 18px; }
.live-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.status-card { background: var(--cream); border-radius: var(--radius-m); padding: 18px 22px; }
.status-card small { display: block; font-size: 14px; font-weight: 600; color: var(--rose-text); margin-bottom: 4px; }
.status-card h2 { font-size: 22px; margin-bottom: 6px; }
.status-card p { margin: 0; white-space: pre-line; }

/* The three ways */
.ways { display: grid; grid-template-columns: 1.1fr 1.15fr .95fr; gap: 20px; padding-bottom: 88px; }
.way { border-radius: var(--radius-l); min-height: 540px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); }
.way h2 { font-size: 30px; margin-bottom: 12px; }
.way-book { background: linear-gradient(145deg, var(--green), var(--olive-soft)); color: var(--on-green); padding: 32px; }
.way-book .lead { color: var(--on-green-muted); margin-bottom: 24px; }
.way-book .actions { display: grid; gap: 12px; }
.way-book .note { color: var(--on-green-muted); margin: 14px 0 0; }
.way-book .phone { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(67, 65, 63, .2); color: var(--on-green-muted); }
.way-book .phone a { display: block; color: var(--on-green); font: 600 32px/1.1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.way-map { background: var(--cream); overflow: hidden; }
.way-map .map { display: block; height: 250px; overflow: hidden; }
.way-map .map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.way-map .body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.way-map .routes { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding-top: 16px; font-weight: 600; }
.way-map .routes a { color: var(--rose-text); min-height: 44px; display: inline-flex; align-items: center; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.facts b { display: block; font-weight: 600; }
.facts .sub { display: block; color: var(--muted); font-size: 15px; }

/* Portrait tile with reveal */
.way-person { overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.wp-photo { position: absolute; inset: 0 0 auto 0; height: 100%; margin: 0; overflow: hidden; background: var(--cream); transition: height .7s var(--ease); }
.wp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 18%); transform-origin: 60% 20%; transition: transform .7s var(--ease), opacity 1.8s ease; }
.wp-photo .hero-slide { opacity: 0; }
.wp-photo .hero-slide.is-active { opacity: 1; }
.wp-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 88px; color: #fff; background: linear-gradient(to top, rgba(26, 40, 37, .85), rgba(26, 40, 37, 0)); transition: opacity .3s ease; }
.wp-photo figcaption b { display: block; font: 600 22px/1.15 var(--display); }
.wp-photo figcaption span { font-size: 15px; color: #e3e9e6; }
.hero-pause { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(251, 250, 247, .88); color: var(--green); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(20, 34, 31, .45); transition: background-color .2s ease; }
.hero-pause:hover { background: var(--paper); }
.hero-pause svg { width: 20px; height: 20px; fill: currentColor; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.wp-toggle { position: absolute; left: 24px; right: 24px; bottom: 22px; min-height: 48px; border: 0; border-radius: 999px; background: var(--paper); color: var(--green); font: 600 16px/1 var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity .25s ease; }
.wp-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.wp-menu { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; padding: 22px 28px 24px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .45s ease .15s, transform .6s var(--ease) .1s, visibility 0s linear .6s; }
.wp-menu h2 { font-size: 26px; margin-bottom: 10px; }
.wp-menu ul { list-style: none; margin: 0 0 14px; padding: 0; }
.wp-menu li { border-top: 1px solid var(--line); }
.wp-menu li a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 6px 0; text-decoration: none; font-weight: 500; }
.wp-menu li a:hover { color: var(--rose-text); }
.wp-menu .more { margin-top: auto; font-weight: 600; color: var(--rose-text); }
.wp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wp-fees-open, .wp-fees-close { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--rose-text); font: 600 16px/1 var(--text); cursor: pointer; }
.wp-fees-open:hover, .wp-fees-close:hover { color: var(--mauve-deep); }
.wp-fees-close .i { transform: rotate(180deg); }
.wp-fees { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; z-index: 2; padding: 22px 28px 24px; display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
.wp-fees[hidden] { display: none; }
.wp-fees h2 { font-size: 26px; margin-bottom: 10px; }
.wp-fees-list { overflow-y: auto; margin: 0 0 14px; }
.wp-fees-list h3 { margin: 12px 0 2px; font: 600 15px/1.2 var(--display); color: var(--rose-text); }
.wp-fees-list h3:first-child { margin-top: 0; }
.wp-fees-list .price-row { padding: 6px 0; font-size: 15px; border-color: var(--line); }
.wp-fees-note { margin: auto 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.way-person.fees-open .wp-fees { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.way-person.is-open .wp-photo { height: 30%; }
.way-person.is-open .wp-photo img { transform: scale(1.06); }
.way-person.is-open figcaption, .way-person.is-open .wp-toggle { opacity: 0; pointer-events: none; }
.way-person.is-open .wp-menu { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .1s, 0s; }
/* Keyboard users (also without JavaScript) reveal the menu by focusing the toggle */
.way-person:has(.wp-toggle:focus-visible) .wp-photo, .way-person:has(.wp-menu :focus) .wp-photo { height: 30%; }
.way-person:has(.wp-toggle:focus-visible) figcaption, .way-person:has(.wp-menu :focus) figcaption, .way-person:has(.wp-toggle:focus-visible) .wp-toggle, .way-person:has(.wp-menu :focus) .wp-toggle { opacity: 0; }
.way-person:has(.wp-toggle:focus-visible) .wp-menu, .way-person:has(.wp-menu :focus) .wp-menu { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .1s, 0s; }
@media (hover: hover) {
  .way-person:hover .wp-photo { height: 30%; }
  .way-person:hover figcaption, .way-person:hover .wp-toggle { opacity: 0; pointer-events: none; }
  .way-person:hover .wp-menu { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .1s, 0s; }
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding: 88px 0; border-top: 1px solid var(--line); }
.about h2, .section-title { font-size: clamp(32px, 4vw, 48px); color: var(--green); }
.about p { font-size: 18px; }
.roles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.roles li { padding: 12px 16px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); font-weight: 500; }

/* Topics */
.topics-section { padding: 0 0 72px; }
.section-title { margin-bottom: 24px; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; align-items: start; }
.topic { border-top: 1px solid var(--line); }
.topic summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; font: 600 22px/1.2 var(--display); letter-spacing: -0.015em; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 6px; }
.topic[open] summary::after { transform: rotate(225deg); }
.topic summary:hover { color: var(--rose-text); }
.topic p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }
.topic:target summary { color: var(--rose-text); }

/* Fee rows (admin: Honorare, portrait tile) */
.price-row { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-row span:last-child { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Practice */
.practice { background: var(--olive-soft); padding: 80px 0; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.practice-grid > div { border-top: 2px solid var(--green); padding-top: 16px; }
.practice-grid b { display: block; font: 600 22px/1.2 var(--display); margin-bottom: 6px; }
.practice-grid p { margin: 0; }
.practice .lead { font-size: 18px; max-width: 40em; }

/* Footer */
.site-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 56px; font-size: 16px; }
.site-foot small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.site-foot a { display: flex; align-items: center; width: fit-content; min-height: 44px; }
.site-foot .brand img { width: 132px; }

/* Mobile action bar */
.mobile-bar { display: none; }

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

@media (max-width: 1080px) {
  .ways { grid-template-columns: 1fr 1fr; }
  .way-person { grid-column: 1 / -1; min-height: 520px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .site-nav { display: none; }
  .site-head { gap: 12px; }
  .site-head .brand { gap: 10px; }
  .site-head .brand img { width: 76px; }
  .share > summary { width: 42px; min-height: 42px; justify-content: center; padding: 0; }
  .share > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .share-menu { width: calc(100vw - 40px); }
  .brand img { width: 92px; }
  .intro { grid-template-columns: 1fr; gap: 14px; padding-top: 8px; }
  .intro p { font-size: 17px; }
  .ways { grid-template-columns: 1fr; padding-bottom: 48px; }
  .way { min-height: 0; }
  .way-person { min-height: 500px; }
  .way-map .map { height: 240px; }
  .way-book .phone a { font-size: 28px; }
  .about { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
  .topics { grid-template-columns: 1fr; }
  .practice { padding: 48px 0; }
  .practice-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-foot { grid-template-columns: 1fr; }
  .mobile-bar { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: rgba(251, 250, 247, .96); box-shadow: 0 16px 40px -14px rgba(20, 34, 31, .5); }
  .mobile-bar a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 8px 6px; border-radius: 16px; font: 600 15px/1.1 var(--text); text-decoration: none; color: var(--green); white-space: nowrap; }
.mobile-bar button { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 8px 6px; border: 0; border-radius: 16px; font: 600 15px/1.1 var(--text); color: var(--green); white-space: nowrap; cursor: pointer; }
  .mobile-bar a.primary, .mobile-bar button.primary { background: var(--mauve-deep); color: var(--on-mauve); }
  body.doctor-gerhold .mobile-bar a.primary { background: var(--accent-green); color: var(--on-mauve); }
  .mobile-bar .i { width: 18px; height: 18px; }
}

/* Map app links */
.way-map h2 a { text-decoration: none; }
.way-map h2 a:hover { text-decoration: underline; }
.way-map .open-maps { margin-top: auto; align-self: start; }
.way-map .open-maps + .routes { margin-top: 0; padding-top: 10px; font-size: 15px; }
.way-map .facts { margin-bottom: 20px; }

/* Map attribution */
.way-map .osm { display: block; padding: 6px 28px 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.way-map .osm:hover { text-decoration: underline; }

/* Without a phone number in the master data, e-mail becomes the main action */
.if-no-phone { display: none; }
.no-phone .if-phone { display: none; }
.no-phone .if-no-phone { display: inline; }
.no-phone #termin .btn-mail { background: var(--peach); color: var(--green); box-shadow: none; }
.no-phone .mobile-bar a.mail { background: var(--mauve-deep); color: var(--on-mauve); }

/* Main domain: doctor tiles */
.way-doctor { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.doc-photo { position: relative; height: 320px; margin: 0; overflow: hidden; background: var(--cream); flex: none; }
.doc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 18%); transition: opacity 1.8s ease; }
.doc-photo .hero-slide { opacity: 0; }
.doc-photo .hero-slide.is-active { opacity: 1; }
.doc-body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.doc-body h2 { font-size: 28px; margin-bottom: 6px; }
.doc-body h2 a { text-decoration: none; }
.doc-body h2 a:hover { text-decoration: underline; }
.doc-role { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-actions .btn { flex: 1 1 auto; min-height: 48px; padding: 12px 18px; }
.doc-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--rose-text); text-decoration: none; }
.doc-more:hover { text-decoration: underline; }
.central .ways { grid-template-columns: 1fr 1fr 1.1fr; }
.central .intro { padding-bottom: 44px; }
.central .way-doctor { border: 1px solid var(--line); box-shadow: var(--shadow); }
.central .doc-body { padding: 26px 28px 28px; }
.central #hinterberger .doc-body { background: linear-gradient(145deg, var(--paper), var(--olive-soft)); }
.central #gerhold .doc-body { background: linear-gradient(145deg, #ffffff, #f4e9e6); }
.central .doc-body h2 a { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.central .doc-actions { gap: 8px; }
.central #gerhold .btn-book { background: var(--mauve-deep); color: var(--on-mauve); }
.central #gerhold .btn-dark { background: var(--accent-green); color: var(--on-mauve); }
.central #gerhold .btn-dark:hover { background: var(--accent-green-hover); }
.central .doc-more { color: var(--rose-text); }
@media (max-width: 1080px) {
  .central .ways { grid-template-columns: 1fr 1fr; }
  .central .way-map { grid-column: 1 / -1; }
  .central .way-person { grid-column: auto; }
}
@media (max-width: 760px) {
  .central .ways { grid-template-columns: 1fr; }
  .doc-photo { height: 300px; }
}

/* About: qualifications and "Mehr über mich" */
.quals { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quals li { padding: 7px 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 500; }
.about .roles + .about-more { margin-top: 24px; }

/* Slide-in panel */
.about-panel { position: fixed; inset: 0 0 0 auto; width: min(620px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: -30px 0 60px -30px rgba(20, 34, 31, .45); overflow-y: auto; overscroll-behavior: contain; transform: translateX(0); transition: transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; }
.about-panel:not([open]) { transform: translateX(100%); }
@starting-style { .about-panel[open] { transform: translateX(100%); } }
.about-panel::backdrop { background: rgba(26, 40, 37, 0); transition: background-color .45s ease, overlay .45s allow-discrete, display .45s allow-discrete; }
.about-panel[open]::backdrop { background: rgba(26, 40, 37, .45); }
@starting-style { .about-panel[open]::backdrop { background: rgba(26, 40, 37, 0); } }
html:has(.about-panel[open]) { overflow: hidden; }
.ap-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 72px 1fr 44px; gap: 16px; align-items: center; padding: 20px 24px; background: var(--green); color: var(--on-green); }
.ap-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: var(--focus, 60% 18%); }
.about .ap-head h2 { font-size: 28px; color: var(--on-green); }
.ap-head p { margin: 4px 0 0; font-size: 15px; color: var(--on-green-muted); }
.ap-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(67, 65, 63, .1); color: var(--on-green); cursor: pointer; display: grid; place-items: center; }
.ap-close:hover { background: rgba(67, 65, 63, .18); }
.ap-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ap-body { padding: 28px 32px 48px; font-size: 17px; line-height: 1.7; }
.about .ap-body p { max-width: 38em; font-size: inherit; }
.ap-body h3 { margin: 32px 0 12px; font-size: 22px; color: var(--green); }
.ap-body .quals { margin-top: 0; }
@media (max-width: 760px) {
  .about-panel { width: 100%; }
  .ap-head { padding: 16px 18px; grid-template-columns: 56px 1fr 44px; }
  .ap-head img { width: 56px; height: 56px; }
  .ap-body { padding: 22px 20px 40px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-panel, .about-panel::backdrop { transition: none !important; }
}

/* Online booking dialog */
.booking-panel { width: min(980px, calc(100% - 32px)); height: min(860px, calc(100% - 32px)); margin: auto; padding: 0; border: 0; border-radius: var(--radius-m); background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px -28px rgba(20, 34, 31, .65); overflow: hidden; }
.booking-panel::backdrop { background: rgba(26, 40, 37, .55); }
.booking-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--green); color: var(--on-green); }
.booking-head h2 { font-size: 25px; }
.booking-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(67, 65, 63, .1); color: var(--on-green); cursor: pointer; display: grid; place-items: center; }
.booking-close:hover { background: rgba(67, 65, 63, .18); }
.booking-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.booking-body { height: calc(100% - 76px); display: grid; grid-template-rows: 1fr auto; }
.booking-body iframe { width: 100%; height: 100%; border: 0; background: var(--cream); }
.booking-body p { margin: 0; padding: 10px 20px 14px; font-size: 14px; color: var(--muted); }
.booking-body a { color: var(--rose-text); font-weight: 600; }
html:has(.booking-panel[open]) { overflow: hidden; }
@media (max-width: 760px) {
  .booking-panel { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }
  .booking-head { padding: 14px 18px; }
  .booking-body { height: calc(100% - 72px); }
}
@media (prefers-reduced-motion: reduce) { .booking-panel::backdrop { transition: none !important; } }

/* Publications in the "Über mich" panel */
.pubs { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: 15px; line-height: 1.55; }
.pubs a { color: var(--rose-text); font-weight: 600; white-space: nowrap; }

/* "Über mich" on the doctor pages: heading and short text left, facts right */
.about-doctor { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "title side" "intro side"; column-gap: 64px; row-gap: 22px; align-items: start; }
.about-doctor > h2 { grid-area: title; }
.about-doctor > .about-intro { grid-area: intro; }
.about-doctor > .about-side { grid-area: side; }
.about-doctor .quals { margin-top: 0; }
.about-side { padding: 28px; border-radius: var(--radius-l); background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-side .quals li { background: var(--paper); }
.about-side .roles li { background: var(--paper); }
.press { list-style: none; padding-left: 0; }
@media (max-width: 760px) {
  .about-doctor { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "intro" "side"; row-gap: 16px; }
  .about-side { padding: 20px; }
}
