/* ==========================================================================
   ortho buck – Nina M. Buck · Fachärztin für Orthopädie und Unfallchirurgie
   Statisches Stylesheet (Vanilla CSS, System-Fonts, Light/Dark)
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben (aus Logo übernommen) */
  --brand: #008b9c;
  --brand-strong: #006f7c;
  --brand-soft: #e3f3f5;
  --brand-light: #4eabba;

  /* Neutrals (Zinc) */
  --bg: #ffffff;
  --bg-muted: #f6f7f7;
  --surface: #ffffff;
  --border: #e4e4e7;
  --text: #27272a;
  --text-muted: #5b5b60;
  --heading: #18181b;

  --on-brand: #ffffff;
  --focus: #006f7c;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06);
  --shadow: 0 4px 16px rgb(0 0 0 / .08), 0 1px 3px rgb(0 0 0 / .06);
  --shadow-lg: 0 18px 40px rgb(0 0 0 / .14), 0 2px 6px rgb(0 0 0 / .06);
  --transition: all 0.3s ease;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fb3c2;
    --brand-strong: #6cc6d2;
    --brand-soft: #12302f;
    --bg: #0f1112;
    --bg-muted: #16191a;
    --surface: #1b1f20;
    --border: #2c3133;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --heading: #fafafa;
    --on-brand: #0b1415;
    --focus: #6cc6d2;
    --shadow: 0 4px 16px rgb(0 0 0 / .4);
    --shadow-lg: 0 18px 40px rgb(0 0 0 / .55);
  }
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: .18em; }
@media (prefers-color-scheme: dark) { a { color: var(--brand); } }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ---------- Hinweisleiste (Umzug) ---------- */
.notice-bar {
  background: var(--brand-strong);
  color: #fff;
  font-size: .95rem;
}
.notice-bar .container { display: flex; align-items: center; gap: 1rem; padding-block: .55rem; }
.notice-bar p { margin: 0; flex: 1; }
.notice-bar a { color: #fff; font-weight: 600; }
.notice-bar__close {
  flex: none; background: transparent; border: 0; color: #fff; cursor: pointer;
  width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  transition: var(--transition);
}
.notice-bar__close:hover { background: rgb(255 255 255 / .15); }
.notice-bar[hidden] { display: none; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--heading); }
.brand__mark { display: inline-flex; border-radius: 4px; overflow: hidden; font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: .01em; }
.brand__mark span { padding: .45rem .5rem; color: #fff; }
.brand__mark span:first-child { background: #008b9c; }
.brand__mark span:last-child { background: #7c7b7c; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 650; font-size: 1rem; }
.brand__sub { font-size: .78rem; color: var(--text-muted); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border); color: var(--heading);
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); cursor: pointer;
  place-items: center; transition: var(--transition);
}
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: var(--transition);
}
.main-nav a:hover { background: var(--bg-muted); color: var(--heading); }
.main-nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
@media (prefers-color-scheme: dark) { .main-nav a[aria-current="page"] { color: var(--brand); } }
.main-nav .nav-cta {
  background: var(--brand); color: var(--on-brand); margin-left: .5rem; font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .main-nav.is-open { max-height: 80vh; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .15rem; }
  .main-nav a { padding: .8rem .9rem; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
  .brand__sub { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: var(--transition);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn--light { background: #fff; color: #0b3b41; }
.btn--light:hover { background: #eaf6f7; transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(4 46 52 / .86) 0%, rgb(4 46 52 / .62) 45%, rgb(4 46 52 / .15) 100%);
}
.hero .container { padding-block: clamp(4rem, 11vw, 8rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; opacity: .9; margin-bottom: .75rem; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38rem; opacity: .95; margin-bottom: 1.75rem; }
.hero--sub .container { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero--sub h1 { max-width: 24ch; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 44rem; margin-bottom: 2.25rem; }
.section__head p { color: var(--text-muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; color: var(--brand-strong); font-weight: 650; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--brand); } }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.signature { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.signature img { width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; }
.signature strong { display: block; color: var(--heading); }
.signature span { color: var(--text-muted); font-size: .95rem; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.service-link {
  display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--heading);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6rem; transition: var(--transition);
}
.service-link img { width: 4.25rem; height: 3.55rem; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.service-link span { font-weight: 600; line-height: 1.3; font-size: .98rem; }
.service-link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Patientenstimmen ---------- */
.quote {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem; position: relative; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote::before {
  content: "“"; position: absolute; top: -.2rem; right: 1.1rem; font-size: 4.5rem; line-height: 1;
  color: var(--brand-light); opacity: .35; font-family: Georgia, serif;
}
.quote blockquote { margin: 0 0 1rem; flex: 1; }
.quote figcaption { color: var(--text-muted); font-size: .92rem; }
.quote figcaption strong { color: var(--heading); }
.reviews-note { color: var(--text-muted); font-size: .92rem; margin-top: 1.25rem; }

/* ---------- Akkordeon (Leistungen) ---------- */
.accordion { display: grid; gap: .75rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.acc-item:has(.acc-trigger[aria-expanded="true"]) { border-color: var(--brand); box-shadow: var(--shadow); }
.acc-item h3 { margin: 0; font-size: 1.08rem; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  background: transparent; border: 0; padding: .7rem 1rem .7rem .7rem; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--heading); transition: var(--transition);
}
.acc-trigger:hover { background: var(--bg-muted); }
.acc-trigger img { width: 4.5rem; height: 3.75rem; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.acc-trigger .acc-title { flex: 1; }
.acc-trigger .acc-icon { width: 1.3rem; height: 1.3rem; flex: none; transition: transform .3s ease; color: var(--brand); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-panel > div { overflow: hidden; }
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel__inner { padding: .25rem 1.4rem 1.4rem; max-width: 52rem; }
.acc-panel ul { margin-top: 0; }
.no-js .acc-panel { grid-template-rows: 1fr; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh;
}
.lightbox::backdrop { background: rgb(0 0 0 / .82); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; font-size: .95rem; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 0; background: rgb(255 255 255 / .92); color: #111; cursor: pointer; display: grid; place-items: center;
}

/* ---------- Lebenslauf / Zertifikate ---------- */
.cv { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.cv li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.cv li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 3px var(--bg); }
.cv .cv-year { display: block; font-weight: 650; color: var(--brand-strong); font-size: .92rem; }
@media (prefers-color-scheme: dark) { .cv .cv-year { color: var(--brand); } }

.certs { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.cert { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; text-align: center; cursor: zoom-in; font: inherit; color: var(--text); transition: var(--transition); }
.cert:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cert img { aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 4px; margin-bottom: .5rem; width: 100%; }
.cert span { font-size: .85rem; line-height: 1.3; display: block; }

.memberships { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); padding: 0; list-style: none; }
.memberships li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.memberships strong { display: block; color: var(--heading); }
.memberships span { color: var(--text-muted); font-size: .92rem; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.icon-badge {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center;
}
@media (prefers-color-scheme: dark) { .icon-badge { color: var(--brand); } }
.icon-badge svg { width: 1.25rem; height: 1.25rem; }
.contact-list strong { display: block; color: var(--heading); }

.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.hours th { font-weight: 600; color: var(--heading); padding-right: 1rem; white-space: nowrap; }
.hours caption { text-align: left; font-weight: 650; color: var(--heading); margin-bottom: .5rem; font-size: 1.1rem; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--heading); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; transition: var(--transition);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand); flex: none; }
.form-note { font-size: .9rem; color: var(--text-muted); }
.hp-field { position: absolute; left: -9999px; }
.form-status { font-weight: 600; }
.form-status[data-state="ok"] { color: #1a7f4b; }
.form-status[data-state="error"] { color: #b42318; }

.callout {
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.25rem 0;
}
.callout p:last-child { margin: 0; }

/* Karte (2-Klick) */
.map-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3; background: var(--bg-muted); width: 100%;
}
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-muted)); }
.map-consent p { font-size: .92rem; color: var(--text-muted); max-width: 26rem; margin: .75rem auto 1rem; }
#map { position: absolute; inset: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, #006f7c, #008b9c); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem); display: grid; gap: 1.25rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; opacity: .95; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2427; color: #cfe1e3; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; letter-spacing: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-bottom: 2.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer .footer-hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: 0; }
.site-footer .footer-hours dt { color: #fff; font-weight: 600; }
.site-footer .footer-hours dd { margin: 0; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; }
.footer-bottom ul { display: flex; gap: 1.25rem; }

/* ---------- Floating-Kontakt ("Jetzt buchen") ---------- */
.fab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; align-items: center; }
.fab__toggle {
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--brand-strong); color: #fff; border: 0; cursor: pointer;
  padding: 1.15rem .7rem; border-radius: 0 var(--radius) var(--radius) 0;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: .04em;
  box-shadow: var(--shadow); transition: var(--transition);
}
.fab__toggle:hover { background: var(--brand); padding-right: .9rem; }
.fab__toggle[aria-expanded="true"] { background: var(--brand); }
.fab__panel {
  position: absolute; right: calc(100% + .75rem); top: 50%;
  width: min(19.5rem, calc(100vw - 4.5rem));
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + .25rem);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translate(12px, -50%) scale(.98);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.fab__panel.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1); }
.fab__panel h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0; padding: 1rem 1.25rem .25rem; font-weight: 600; }
.fab__item {
  display: flex; gap: .95rem; align-items: flex-start; padding: 1rem 1.25rem; text-decoration: none; color: var(--text);
  transition: var(--transition);
}
.fab__item + .fab__item { border-top: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); }
.fab__item:hover { background: var(--bg-muted); }
.fab__item strong { display: block; color: var(--heading); font-size: 1.02rem; line-height: 1.3; }
.fab__item small { display: block; color: var(--text-muted); font-size: .86rem; line-height: 1.5; margin-top: .15rem; }
.fab__item .icon-badge { width: 2.5rem; height: 2.5rem; }
@media (max-width: 600px) {
  .fab { top: auto; bottom: 5.5rem; transform: none; }
  .fab__toggle { padding: .95rem .6rem; font-size: .88rem; }
  .fab__panel { top: auto; bottom: 0; transform: translate(12px, 0) scale(.98); }
  .fab__panel.is-open { transform: translate(0, 0) scale(1); }
}
@media print { .fab, .notice-bar, .nav-toggle { display: none !important; } }

/* ==========================================================================
   v2: Logo-Kachel, Sprachumschalter, Scroll-to-Top, E-Mail-CTA
   ========================================================================== */
.site-header .container { align-items: center; }
.logo-badge {
  align-self: flex-start; flex: none; position: relative; z-index: 2;
  width: 168px; margin-bottom: -104px;
  background: rgb(255 255 255 / .94);
  padding: .7rem .85rem .8rem; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transition: width .3s ease, margin .3s ease, padding .3s ease;
}
.logo-badge img { width: 100%; height: auto; }
.site-header.is-scrolled .logo-badge { width: 78px; margin-bottom: -18px; padding: .35rem .45rem .45rem; }
@media (max-width: 960px) {
  .logo-badge { width: 104px; margin-bottom: -50px; padding: .45rem .55rem .55rem; }
  .site-header.is-scrolled .logo-badge { width: 64px; margin-bottom: -10px; }
}
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 961px) { .header-actions { margin-left: 0; } .main-nav { margin-left: auto; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  padding: .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--heading); font-weight: 600; font-size: .9rem; line-height: 1; background: var(--surface);
  transition: var(--transition);
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand-strong); }
.lang-switch svg { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); flex: none; }

.scroll-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 95;
  width: 3rem; height: 3rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .3s ease;
}
.scroll-top svg { width: 1.35rem; height: 1.35rem; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--brand); color: #fff; }
@media (min-width: 601px) { .scroll-top { right: 1.5rem; bottom: 1.5rem; } }

.mail-cta { display: grid; gap: 1rem; }
.lang-note { font-size: .92rem; color: var(--text-muted); font-style: italic; }

.card > div > picture img, .card > div > img { border-radius: var(--radius) var(--radius) 0 0; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.signature img { border-radius: 0; }
picture { display: contents; }
/* Platz für die überhängende Logo-Kachel */
@media (min-width: 961px) { .hero--sub .container { padding-top: 8.5rem; } }
@media (max-width: 960px) { .hero .container { padding-top: 5rem; } }

/* ==========================================================================
   v4: hellere Heros, größeres Logo, Info-Leiste, rotierendes Emblem
   ========================================================================== */
.hero::after {
  background: linear-gradient(100deg, rgb(4 46 52 / .64) 0%, rgb(4 46 52 / .38) 48%, rgb(4 46 52 / .04) 100%);
}
.hero h1, .hero__lead, .hero__eyebrow { text-shadow: 0 1px 12px rgb(0 0 0 / .35); }

/* Logo-Kachel: Startseite groß, Unterseiten mittel, beim Scrollen klein */
.logo-badge { width: 200px; margin-bottom: -150px; }
.site-header.is-home .logo-badge { width: 250px; margin-bottom: -196px; }
.site-header.is-scrolled .logo-badge,
.site-header.is-home.is-scrolled .logo-badge { width: 78px; margin-bottom: -18px; }
.hero--sub .container { padding-top: 11rem; }
.hero:not(.hero--sub) .container { padding-top: 14rem; }
@media (max-width: 960px) {
  .logo-badge { width: 120px; margin-bottom: -68px; }
  .site-header.is-home .logo-badge { width: 150px; margin-bottom: -98px; }
  .site-header.is-scrolled .logo-badge,
  .site-header.is-home.is-scrolled .logo-badge { width: 64px; margin-bottom: -10px; }
  .hero--sub .container { padding-top: 6.5rem; }
  .hero:not(.hero--sub) .container { padding-top: 8.5rem; }
}

/* Info-Leiste (Sprechzeiten) unter dem Startseiten-Hero */
.info-strip { position: relative; z-index: 3; margin-top: -3rem; }
.info-strip .container { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.35rem 1.4rem;
}
.info-card h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.1rem; margin-bottom: .9rem; }
.info-card .icon-badge { width: 2.3rem; height: 2.3rem; }
.info-card p { margin-bottom: .4rem; }
.info-muted { color: var(--text-muted); font-size: .93rem; }
.info-big { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--heading); }
.info-hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: .97rem; }
.info-hours dt { font-weight: 600; color: var(--heading); }
.info-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Rotierendes Emblem (wie auf der Altseite) */
.praxis-intro { display: grid; gap: 2rem; align-items: center; max-width: 60rem; }
@media (min-width: 760px) { .praxis-intro { grid-template-columns: 200px 1fr; gap: 3rem; } }
.emblem-spin { width: 200px; max-width: 50vw; justify-self: center; }
.emblem-spin img { width: 100%; height: auto; animation: emblem-rotate 18s linear infinite; }
.emblem-spin:hover img { animation-play-state: paused; }
@keyframes emblem-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .emblem-spin img { animation: none; } }

/* Aktuelles: Bild vollständig zeigen */
.card > div > picture img, .card > div > img { aspect-ratio: auto; object-fit: contain; height: auto; }

/* ==========================================================================
   v5: einheitliches Logo, Emblem-Hover, Sprechzeiten-Varianten
   ========================================================================== */
.logo-badge, .site-header.is-home .logo-badge { width: 220px; margin-bottom: -168px; background: #fff; }
.site-header.is-scrolled .logo-badge, .site-header.is-home.is-scrolled .logo-badge { width: 84px; margin-bottom: -22px; }
.hero--sub .container, .hero:not(.hero--sub) .container { padding-top: 12.5rem; }
@media (max-width: 960px) {
  .logo-badge, .site-header.is-home .logo-badge { width: 130px; margin-bottom: -78px; }
  .site-header.is-scrolled .logo-badge, .site-header.is-home.is-scrolled .logo-badge { width: 64px; margin-bottom: -10px; }
  .hero--sub .container, .hero:not(.hero--sub) .container { padding-top: 7rem; }
}
.emblem-spin img { animation: none; transition: transform .7s cubic-bezier(.34, 1.3, .64, 1); }
.emblem-spin:hover img, .emblem-spin.is-turned img { transform: rotate(90deg); }

.hours-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-weight: 650; color: var(--heading); white-space: nowrap; }
.hours-status .dot { width: .6rem; height: .6rem; border-radius: 999px; background: #a1a1aa; box-shadow: 0 0 0 4px rgb(161 161 170 / .2); }
.hours-status.is-open .dot { background: #22a06b; box-shadow: 0 0 0 4px rgb(34 160 107 / .2); }

/* Variante A: schmale Leiste unter dem Titelbild */
.hours-bar { border-bottom: 1px solid var(--border); background: var(--surface); }
.hours-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.75rem; padding-block: 1rem; }
.hours-bar .hours-status { padding-right: 1.75rem; border-right: 1px solid var(--border); }
.hours-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; color: var(--text); font-size: .97rem; font-variant-numeric: tabular-nums; }
.hours-inline span { font-weight: 650; color: var(--brand-strong); margin-right: .25rem; }
@media (max-width: 700px) { .hours-bar .hours-status { border-right: 0; padding-right: 0; width: 100%; } }

/* Variante B: Glas-Karte im Titelbild */
.hero:has(.hours-glass) .container { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .hero:has(.hours-glass) .container { grid-template-columns: 1fr 19rem; align-items: end; }
  .hero:has(.hours-glass) .container > :not(.hours-glass) { grid-column: 1; }
  .hours-glass { grid-column: 2; grid-row: 1 / span 5; align-self: end; }
}
.hours-glass {
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  padding: 1.2rem 1.35rem; color: #fff;
}
.hours-glass h2 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.hours-glass .hours-status { color: #fff; margin-bottom: .75rem; }
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-variant-numeric: tabular-nums; }
.hours-list span { display: inline-block; width: 2.6rem; font-weight: 650; }

/* v5b: Glas-Karte final (ersetzt Grid-Ansatz) */
.hero:has(.hours-glass) .container { display: block; position: relative; }
.hours-glass {
  margin-top: 2rem; width: min(100%, 20rem);
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .38);
  box-shadow: 0 10px 30px rgb(0 0 0 / .18);
  padding: 1.15rem 1.3rem 1.2rem;
}
@media (min-width: 1000px) {
  .hours-glass { position: absolute; right: 0; bottom: clamp(4rem, 11vw, 8rem); margin: 0; }
}
.hours-glass h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .9; margin-bottom: .35rem; }
.hours-glass .hours-status { font-size: 1.02rem; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid rgb(255 255 255 / .25); width: 100%; white-space: normal; }
.hours-list { gap: .35rem; font-size: .97rem; }
.hours-list li { display: grid; grid-template-columns: 2.4rem 1fr; }
.hours-list span { width: auto; }
.hours-list em { font-style: normal; white-space: nowrap; }
@media (max-width: 999px) {
  .hours-glass { width: 100%; padding: 1rem 1.1rem; }
  .hours-list { grid-template-columns: 1fr 1fr; gap: .45rem 1rem; font-size: .93rem; }
  .hours-list li { grid-template-columns: 2.1rem 1fr; }
}

/* v6: Floating-Button immer rechts mittig (Desktop + Mobil) */
@media (max-width: 600px) {
  .fab { top: 50%; bottom: auto; transform: translateY(-50%); }
  .fab__panel { top: 50%; bottom: auto; transform: translate(12px, -50%) scale(.98); }
  .fab__panel.is-open { transform: translate(0, -50%) scale(1); }
}
/* Praxis-Titelbild vollständig zeigen */
.hero--full .hero__img { position: relative; inset: auto; z-index: 0; }
.hero--full .hero__img img { height: auto; aspect-ratio: 1653 / 690; }
.hero--full::after { display: none; }
@media (min-width: 1100px) {
  .hero--full .hero__img { position: absolute; inset: 0; z-index: -2; }
  .hero--full .hero__img img { height: 100%; }
  .hero--full { aspect-ratio: 1653 / 690; }
  .hero--full::after { display: block; }
  .hero--full .container { padding-bottom: 2rem; }
}
@media (max-width: 1099px) {
  .hero--full { background: #0f3f45; padding-top: 0; }
  .hero--full .container { padding-top: 2rem; padding-bottom: 2.5rem; }
  .site-header:not(.is-scrolled) ~ main .hero--full .hero__img { margin-top: 0; }
}

/* ==========================================================================
   v7: systematische Regeln
   ========================================================================== */
/* Abschnitte wechseln automatisch weiß/grau (nach dem Titelbild) */
.section--muted { background: transparent; }
main > .hero ~ section.section:nth-of-type(odd) { background: var(--bg-muted); }

/* Mobil: geöffnetes Menü liegt über der Logo-Kachel, Logo schrumpft */
.main-nav { z-index: 5; }
@media (max-width: 960px) {
  .site-header.nav-open .logo-badge { width: 64px; margin-bottom: -10px; padding: .35rem .45rem .45rem; }
  .main-nav ul { align-items: stretch; }
}

/* v8: Titelbild „Über mich“ wie im Original – Foto komplett, Titel zentriert im Wasserstreifen oben */
.hero--ueber { position: relative; color: #fff; background: #7cc9d6; overflow: hidden; }
.hero--ueber::after { display: none; }
.hero--ueber picture, .hero--ueber img { display: block; width: 100%; height: auto; }
.hero--ueber .hero__text {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  padding: clamp(1rem, 2.2vw, 2.25rem) var(--gutter) 0;
}
.hero--ueber h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.9rem); margin: 0 auto .15em; max-width: none;
  text-shadow: 0 1px 2px rgb(0 60 70 / .45), 0 2px 18px rgb(0 60 70 / .35); }
.hero--ueber .hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.6rem); margin: 0;
  text-shadow: 0 1px 2px rgb(0 60 70 / .45), 0 2px 14px rgb(0 60 70 / .35); }
@media (min-width: 700px) and (max-width: 999px) {
  .hero--ueber img { height: 70vw; object-fit: cover; object-position: center bottom; }
  .hero--ueber .hero__text { padding-top: 5.75rem; }
}
@media (max-width: 699px) {
  .hero--ueber .hero__text { padding-top: 5.5rem; }
}

/* ==========================================================================
   v9: einheitliche Titelhöhe (Maß = Startseite) + geteilte Titelzeile „luftig“
   ========================================================================== */
:root { --hero-h: 777px; }                       /* gemessene Höhe der Startseite ≥ 1000 px */
@media (max-width: 999px) { :root { --hero-h: 803px; } }
@media (max-width: 699px) { :root { --hero-h: auto; } }
.hero, .hero-split { min-height: var(--hero-h); }
.hero { display: flex; align-items: flex-end; }
.hero > .container { width: min(100% - 2 * var(--gutter), var(--container)); }

.hero-split {
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: 11rem 0 4rem; color: var(--text);
  background:
    radial-gradient(900px 480px at 92% 8%, rgb(78 171 186 / .16) 0%, transparent 65%),
    radial-gradient(700px 420px at 5% 100%, rgb(0 139 156 / .07) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7f9f9 100%);
  border-bottom: 1px solid var(--border);
}
.hero-split .container { position: relative; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-split .container { grid-template-columns: 1fr minmax(0, 560px); gap: 3.5rem; } }
.hero-split__wm { position: absolute; right: -6vw; top: 50%; width: min(60vw, 900px); transform: translateY(-50%) rotate(-12deg);
  opacity: .06; filter: grayscale(1); pointer-events: none; }
.hero-split__text { position: relative; padding-left: 1.4rem; }
.hero-split__text::before { content: ""; position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 4px; border-radius: 4px;
  background: linear-gradient(#008b9c, #4eabba); }
.hero-split__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; color: #008b9c; margin-bottom: .75rem; }
.hero-split h1 { color: var(--heading); font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .5rem; }
.hero-split__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34rem; margin: 0; color: var(--text-muted); }
.hero-split__media { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
.hero-split__media img { width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 30px 60px -20px rgb(0 40 46 / .38); }
@media (max-width: 999px) { .hero-split { padding: 9rem 0 3rem; } .hero-split__media { justify-self: start; } }
@media (max-width: 699px) { .hero-split { padding: 7rem 0 2.5rem; } }
@media (prefers-color-scheme: dark) {
  .hero-split { background: radial-gradient(900px 480px at 92% 8%, rgb(78 171 186 / .14) 0%, transparent 65%), linear-gradient(180deg, #121516 0%, #16191a 100%); }
}
/* Abschnittsfarben: nach dem Titel (egal welcher Typ) automatisch weiß/grau */
main > .hero-split ~ section.section:nth-of-type(odd) { background: var(--bg-muted); }
/* v9b: Tablet-Foto begrenzen, Handy-Titel einheitlich ~600 px */
@media (max-width: 999px) { .hero-split__media { max-width: 460px; } }
@media (max-width: 699px) { :root { --hero-h: 600px; } .hero-split__media { max-width: none; } }
/* v9c: lange Wörter im Titel auf dem Handy umbrechen */
.hero-split h1, .hero h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 699px) { .hero-split h1 { font-size: 1.85rem; } .hero-split__text { padding-right: 2.5rem; } }

/* v10: Trennung nur an vorgegebener Stelle, Lightbox-Pfeile */
.nohyph { hyphens: manual; -webkit-hyphens: manual; }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 3rem; height: 3rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .92); color: #111; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / .3); transition: var(--transition);
}
.lightbox__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox__nav svg { width: 1.5rem; height: 1.5rem; }
.lightbox__nav[hidden] { display: none; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 600px) {
  .lightbox__nav { top: auto; bottom: 1.25rem; transform: none; width: 3.25rem; height: 3.25rem; }
  .lightbox__nav:hover { transform: none; }
  .lightbox__prev { left: calc(50% - 4rem); }
  .lightbox__next { right: calc(50% - 4rem); }
  .lightbox img { max-height: 70vh; }
}

/* v11: Leistungen in vier Gruppen */
.group-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.group-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--brand);
  transition: var(--transition); display: flex; flex-direction: column;
}
.group-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.group-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.group-card h3 a { color: var(--heading); text-decoration: none; }
.group-card h3 a:hover { color: var(--brand-strong); }
.group-card > p { color: var(--text-muted); font-size: .95rem; margin-bottom: .9rem; }
.group-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.group-card li a {
  display: flex; align-items: center; gap: .55rem; padding: .35rem 0; color: var(--text);
  text-decoration: none; font-size: .97rem; line-height: 1.35; border-bottom: 1px solid var(--border);
}
.group-card li:last-child a { border-bottom: 0; }
.group-card li a::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 999px; background: var(--brand-light); }
.group-card li a:hover { color: var(--brand-strong); }
.group-jump ul { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.group-jump a {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: var(--transition);
}
.group-jump a:hover { border-color: var(--brand); color: var(--brand-strong); }
.service-group { scroll-margin-top: 6rem; }
.service-group + .service-group { margin-top: 3rem; }
.service-group h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .3rem; }
.service-group__lead { color: var(--text-muted); margin-bottom: 1.1rem; }

/* ==========================================================================
   v12: Leistungen als Kacheln + Fenster, Startseiten-Karten mit Foto, Rechtstexte-Kopf
   ========================================================================== */
/* Kacheln */
.svc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.svc { display: flex; }
.svc__tile {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgb(0 0 0 / .05); transition: var(--transition);
}
.svc__tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand), 0 18px 36px -18px rgb(0 60 70 / .4); }
.svc__tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.svc__img { display: block; overflow: hidden; }
.svc__img img { width: 100%; aspect-ratio: 533 / 445; object-fit: cover; display: block; transition: transform .6s ease; }
.svc__tile:hover .svc__img img { transform: scale(1.05); }
.svc__title { font-weight: 650; color: var(--heading); padding: .95rem 1.05rem .25rem; line-height: 1.3; flex: 1; }
.svc__more { color: var(--brand-strong); font-weight: 600; font-size: .9rem; padding: .2rem 1.05rem 1.05rem; }
/* Ohne JS: Text direkt sichtbar unter der Kachel; mit JS ausgeblendet (liegt im Fenster) */
.svc { flex-direction: column; }
.svc__body { padding: 1rem 0 0; }
.svc-js .svc__body { display: none; }

/* Fenster */
.svc-dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(860px, calc(100vw - 2rem)); max-height: min(88vh, 760px);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / .4); overflow: hidden;
}
.svc-dialog[open] { display: grid; grid-template-columns: 300px 1fr; }
.svc-dialog::backdrop { background: rgb(10 30 33 / .6); backdrop-filter: blur(2px); }
.svc-dialog__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-dialog__txt { display: flex; flex-direction: column; overflow: auto; max-height: min(88vh, 760px); }
.svc-dialog__content { padding: 1.9rem 1.9rem .5rem; font-size: .98rem; }
.svc-dialog__content h3 { font-size: 1.4rem; margin: 0 2.5rem .8rem 0; }
.svc-dialog__nav {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; margin-top: auto;
  padding: .9rem 1.9rem 1.1rem; background: linear-gradient(180deg, transparent, var(--surface) 35%);
}
.svc-dialog__nav button {
  font: inherit; font-weight: 600; color: var(--brand-strong); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; transition: var(--transition);
}
.svc-dialog__nav button:hover { border-color: var(--brand); }
.svc-dialog__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 0; background: rgb(255 255 255 / .95); color: #111; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / .15);
}
.svc-dialog__close svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 700px) {
  .svc-dialog { width: calc(100vw - 1.25rem); max-height: 90vh; }
  .svc-dialog[open] { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .svc-dialog__img { max-height: 190px; overflow: hidden; }
  .svc-dialog__txt { max-height: calc(90vh - 190px); }
  .svc-dialog__content { padding: 1.3rem 1.25rem .5rem; }
  .svc-dialog__content h3 { font-size: 1.2rem; margin-right: 0; }
  .svc-dialog__nav { padding: .8rem 1.25rem 1rem; }
}

/* Startseite: Gruppenkarten mit Foto (ohne Anzahl-Hinweis) */
.group-card { padding: 0; border: 0; border-top: 0; overflow: hidden; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--border), 0 2px 4px rgb(0 0 0 / .04); }
.group-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--brand), 0 24px 48px -20px rgb(0 60 70 / .45); }
.gc-head { position: relative; height: 150px; overflow: hidden; }
.gc-head img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.group-card:hover .gc-head img { transform: scale(1.06); }
.gc-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 60 70 / 0) 30%, rgb(0 60 70 / .82) 100%); }
.gc-head h3 { position: absolute; left: 1.2rem; right: 1.2rem; bottom: .9rem; z-index: 1; margin: 0; font-size: 1.15rem; line-height: 1.25; }
.gc-head h3 a { color: #fff; text-decoration: none; }
.gc-head h3 a:hover { color: #fff; text-decoration: underline; }
.group-card > p { padding: 1rem 1.2rem 0; margin-bottom: .6rem; }
.group-card ul { padding: 0 1.2rem 1.1rem; }
.group-card li a::before { width: auto; height: auto; background: none; content: "→"; color: var(--brand-light); font-weight: 700; }

/* Impressum & Datenschutz: schmaler Titelbereich */
.legal-head {
  position: relative; padding: 12rem 0 3rem; border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 420px at 92% 0%, rgb(78 171 186 / .16) 0%, transparent 65%), linear-gradient(180deg, #fff, #f7f9f9);
}
.legal-head__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; color: #008b9c; margin: 0 0 .5rem; }
.legal-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
@media (max-width: 960px) { .legal-head { padding: 7.5rem 0 2rem; } }
@media (prefers-color-scheme: dark) { .legal-head { background: linear-gradient(180deg, #121516, #16191a); } }

/* v13: Fenster ohne Foto, Startseiten-Karten ohne Anschnitt */
.svc-dialog { width: min(720px, calc(100vw - 2rem)); }
.svc-dialog[open] { display: block; }
.svc-dialog__img { display: none; }
.svc-dialog__txt { max-height: min(88vh, 760px); }
@media (max-width: 700px) { .svc-dialog__txt { max-height: 90vh; } .svc-dialog__content { padding-top: 1.5rem; } }
.svc-dialog__content h3 { margin-right: 3rem; }

.gc-head { height: auto; aspect-ratio: 533 / 445; }
.gc-head img { object-position: center top; }
.group-card:hover .gc-head img { transform: scale(1.03); }

/* v14: Footer-Hinweis E-Mail */
.footer-mailnote { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; opacity: .85; }
.footer-mailnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-mailnote + .footer-bottom { border-top: 0; padding-top: .6rem; }

/* v15: Leistungsfenster – Scroll-Sperre + dezenter Scrollbalken (Variante A) */
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.svc-dialog, .svc-dialog__txt { overscroll-behavior: contain; }
.svc-dialog__txt {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.4rem);
          mask-image: linear-gradient(to bottom, transparent 0, #000 1.4rem);
}
.svc-dialog__txt::-webkit-scrollbar { width: 10px; }
.svc-dialog__txt::-webkit-scrollbar-track { background: transparent; margin-block: 22px; }
.svc-dialog__txt::-webkit-scrollbar-thumb { background: rgb(0 139 156 / .45); border-radius: 99px; border: 3px solid var(--surface); }
.svc-dialog__txt::-webkit-scrollbar-thumb:hover { background: rgb(0 139 156 / .7); }
@supports not selector(::-webkit-scrollbar) {
  .svc-dialog__txt { scrollbar-width: thin; scrollbar-color: rgb(0 139 156 / .45) transparent; }
}
.svc-dialog__nav::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 3rem; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), var(--surface)); transition: opacity .25s ease;
}
.svc-dialog__txt.is-end .svc-dialog__nav::before { opacity: 0; }
@media (prefers-color-scheme: dark) { .svc-dialog__nav::before { background: linear-gradient(180deg, transparent, var(--surface)); } }

/* v16: Karte – statisches Vorschaubild + Kartendaten-Hinweis */
.map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.map-wrap:has(.map-static) .map-consent { background: rgb(255 255 255 / .18); }
.map-wrap:has(.map-static) .map-consent > div {
  background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .7); border-radius: 18px; padding: 1.4rem 1.5rem; max-width: 24rem;
  box-shadow: 0 18px 40px -18px rgb(0 40 46 / .45);
}
.map-wrap:has(.map-static) .map-consent p { color: #3a4547; margin-bottom: 1rem; }
.map-attrib {
  position: absolute; right: 0; bottom: 0; z-index: 2; margin: 0; padding: .15rem .5rem; border-top-left-radius: 6px;
  font-size: .72rem; line-height: 1.4; color: #333; background: rgb(255 255 255 / .85);
}
.map-attrib a { color: #0a6f7c; }
@media (prefers-color-scheme: dark) { .map-wrap:has(.map-static) .map-consent > div { background: rgb(22 26 27 / .82); border-color: rgb(255 255 255 / .12); } .map-wrap:has(.map-static) .map-consent p { color: var(--text-muted); } }

/* v17: Karte als statisches Bild mit Link zur Routenplanung (wie flugmedizin-buck.de) */
.map-box { width: 100%; }
.map-link {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-muted);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.map-link .map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.map-link:hover, .map-link:focus-visible { border-color: var(--brand); box-shadow: 0 18px 40px -20px rgb(0 60 70 / .45); }
.map-link:hover .map-static { transform: scale(1.03); }
.map-link__hint {
  position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgb(255 255 255 / .92); color: var(--brand-strong); box-shadow: 0 4px 14px rgb(0 0 0 / .15);
}
.map-link__hint svg { width: 1rem; height: 1rem; }
.map-credit { margin: .5rem 0 0; font-size: .72rem; color: var(--text-muted); text-align: right; }
.map-credit a { color: inherit; }

/* v18: Floating-Button mobil ruhig halten – an festen Viewport koppeln (Adressleiste ein/aus verschiebt sonst top:50%) */
.fab { top: 50vh; top: 50svh; will-change: transform; backface-visibility: hidden; }
@media (max-width: 699px) { .fab { top: 50vh; top: 50svh; } }
@media (hover: none) { .fab__toggle:hover { padding-right: .6rem; background: var(--brand-strong); } .fab__toggle[aria-expanded="true"] { background: var(--brand); } }
.fab__toggle { transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease; }

/* v19: Startseiten-Karten – Bild + Titel als ein Link */
a.gc-head { display: block; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.gc-head h3 { color: #fff; }
a.gc-head:hover h3, a.gc-head:focus-visible h3 { text-decoration: underline; text-underline-offset: 3px; }
a.gc-head:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
