/* ==========================================================================
   Zahnarztpraxis DentA² – Stylesheet
   Schrift: Montserrat (lokal eingebunden, keine Verbindung zu Google – DSGVO).
   Farben: Anthrazit + warmes Grau (Taupe) wie im Logo der Praxis.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f6f4f0;      /* warmes Off-White */
  --c-bg-taupe: #e9e6e0;
  --c-text: #2b2a28;
  --c-muted: #66625a;       /* Fließtext gedämpft (Kontrast > 5:1 auf Weiß) */
  --c-dark: #2b2a28;        /* Anthrazit wie der Praxis-Header */
  --c-dark-2: #3b3936;
  --c-taupe: #b2aea4;       /* Markenfarbe (Flächen, Linien) */
  --c-taupe-dark: #756f62;  /* Markenfarbe als Text auf Hell (Kontrast > 4.5:1) */
  --c-taupe-light: #d9d4ca; /* Markenfarbe als Text auf Dunkel */
  --c-primary: #2b2a28;
  --c-primary-dark: #141413;
  --c-link: #5f594d;
  --c-border: #e2ded6;
  --c-success-bg: #ecfdf5;
  --c-success: #047857;
  --c-error-bg: #fef2f2;
  --c-error: #b91c1c;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 18px 40px -20px rgba(43, 42, 40, 0.35);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@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.03rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

h1, h2, h3 { line-height: 1.2; color: var(--c-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-dark); }

:focus-visible { outline: 3px solid var(--c-taupe); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.sr-only {
  position: absolute; 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: -100px; z-index: 100;
  background: #fff; color: var(--c-dark); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border: 1.5px solid var(--c-primary); border-radius: 999px;
  background: var(--c-primary); color: #fff; font: inherit; font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-dark); }
.btn-outline:hover { background: var(--c-dark); color: #fff; }
.btn-light { background: #fff; color: var(--c-dark); border-color: #fff; }
.btn-light:hover { background: var(--c-bg-taupe); border-color: var(--c-bg-taupe); color: var(--c-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--c-dark); text-decoration: none; }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(43, 42, 40, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(43, 42, 40, 0.98); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(150px, 18vw, 210px); height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  position: relative; color: #e4e0d8; text-decoration: none; font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--c-taupe);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }

.nav-toggle { display: none; }
.nav-extra { display: none; }

/* ---------- Mobile Navigation: Vollbild-Menü mit Kreis-Reveal ---------- */
@media (max-width: 1020px) {
  .header-inner { min-height: 72px; }
  .brand, .nav-toggle { position: relative; z-index: 2; }

  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%; cursor: pointer; transition: background .3s, border-color .3s;
  }
  .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .4s cubic-bezier(.77, 0, .18, 1), background .2s, width .3s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; width: 14px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { width: 20px; transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    --origin: calc(100% - 43px) 36px;
    position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 1;
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 96px max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background:
      radial-gradient(600px 400px at 100% 0%, rgba(178, 174, 164, 0.22), transparent 65%),
      linear-gradient(170deg, #2b2a28 0%, #1d1c1b 100%);
    clip-path: circle(0 at var(--origin));
    visibility: hidden;
    transition: clip-path .6s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .6s;
  }
  .site-nav.is-open {
    clip-path: circle(150% at var(--origin));
    visibility: visible;
    transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s;
  }

  .site-nav ul { counter-reset: nav; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .site-nav li { opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease; }
  .site-nav.is-open li { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
  .site-nav.is-open li:nth-child(1) { transition-delay: .18s; }
  .site-nav.is-open li:nth-child(2) { transition-delay: .23s; }
  .site-nav.is-open li:nth-child(3) { transition-delay: .28s; }
  .site-nav.is-open li:nth-child(4) { transition-delay: .33s; }
  .site-nav.is-open li:nth-child(5) { transition-delay: .38s; }

  .site-nav li a:not(.btn) {
    counter-increment: nav; display: flex; align-items: baseline; gap: 1rem;
    padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(1.5rem, 6.5vw, 2rem); font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: #fff;
  }
  .site-nav li a:not(.btn)::before {
    content: counter(nav, decimal-leading-zero); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; color: var(--c-taupe);
  }
  .site-nav li a:not(.btn)::after {
    content: "→"; position: static; height: auto; background: none; transform: translateX(-8px);
    margin-left: auto; font-size: 1.1rem; color: var(--c-taupe); opacity: 0; transition: opacity .2s, transform .2s;
  }
  .site-nav li a:not(.btn):hover::after,
  .site-nav li a:not(.btn):focus-visible::after,
  .site-nav li a[aria-current="page"]::after { opacity: 1; transform: none; }
  .site-nav .btn { margin-top: 1.5rem; width: 100%; padding: 1rem 1.5rem; font-size: 1.02rem; }

  .nav-extra {
    display: grid; gap: 0.75rem; margin-top: auto; padding-top: 2rem;
    opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s;
  }
  .site-nav.is-open .nav-extra { opacity: 1; transform: none; transition: opacity .5s ease .45s, transform .5s cubic-bezier(.2, .8, .2, 1) .45s; }
  .nav-extra-title { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-taupe); }
  /* Kontakt-Buttons unten: Desktop-Linkstil (Großbuchstaben, Sperrung, Unterstrich) bewusst überschreiben */
  .site-nav .nav-extra a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.15rem;
    border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff; font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    text-decoration: none; word-break: break-word;
  }
  .site-nav .nav-extra a::after { content: none; }
  .site-nav .nav-extra a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .nav-extra .icon { width: 20px; height: 20px; color: var(--c-taupe); }

  html.nav-open { overflow: hidden; }
  html.nav-open .fab { opacity: 0; pointer-events: none; }
  .fab { transition: opacity .3s; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: hidden; color: #f1eee8; background: var(--c-dark); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 28, 27, 0.88) 0%, rgba(29, 28, 27, 0.66) 45%, rgba(29, 28, 27, 0.2) 100%),
    linear-gradient(0deg, rgba(29, 28, 27, 0.55) 0%, transparent 40%);
}
.hero-inner { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 5.5rem); max-width: var(--container); }
.hero-inner > * { max-width: 640px; }
.hero h1 { color: #fff; font-weight: 500; }
.hero h1 .accent { display: block; color: var(--c-taupe-light); font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1.9vw, 1.25rem); font-weight: 400; max-width: 640px; }
.lead-dark { font-size: 1.2rem; color: var(--c-dark); font-weight: 500; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-taupe-dark);
}
.eyebrow-light { color: var(--c-taupe-light); letter-spacing: 0.12em; text-transform: none; font-size: 1rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.5rem; }
.hero-actions-center { justify-content: center; }
.hero-facts {
  list-style: none; margin: 0; padding: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.92rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts .icon { color: var(--c-taupe-light); }

/* ---------- Wellen-Übergänge (wie auf der bisherigen Seite) ----------
   Die Welle ist eine Maske (img/welle.svg, drei Ebenen) und nimmt die Farbe des Elements an, zu dem sie gehört:
   – Startseiten-Hero: helle Welle am unteren Rand, Übergang ins folgende Weiß.
   – Call-to-Action-Band und Footer: dunkle Welle, die in den vorherigen Abschnitt hineinragt.
   Ohne Masken-Unterstützung entfällt die Welle (kein dunkler Balken). */
:root { --wave-h: clamp(38px, 6vw, 96px); }
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .hero::after,
  .callout::before,
  .site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; height: var(--wave-h); pointer-events: none;
    -webkit-mask: url("../img/welle.svg") center / 100% 100% no-repeat;
    mask: url("../img/welle.svg") center / 100% 100% no-repeat;
  }
  .hero::after { bottom: -1px; background: var(--c-bg); }
  .hero .hero-inner { padding-bottom: calc(clamp(2.75rem, 8vw, 5.5rem) + var(--wave-h) * 0.6); }
  .callout,
  .site-footer { position: relative; }
  .callout::before { bottom: calc(100% - 1px); background: var(--c-dark); }
  .site-footer::before { bottom: calc(100% - 1px); background: var(--c-dark); transform: scaleX(-1); }
  /* Folgt der Footer direkt auf das dunkle Band, braucht er keine eigene Welle. */
  .callout + .site-footer::before,
  main:has(> .callout:last-child) + .site-footer::before { display: none; }
}

/* ---------- Unterseiten-Kopf ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(700px 360px at 95% 0%, rgba(178, 174, 164, 0.35), transparent 65%),
    var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}
.page-hero .narrow { max-width: var(--container); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { color: var(--c-muted); margin-bottom: 0; }
.page-hero .hero-actions { margin: 2rem 0 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--c-muted); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-dark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-dark); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
section[id], [id="formular"] { scroll-margin-top: 90px; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p:last-child { color: var(--c-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-center { align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.tagline { font-size: 1.1rem; font-weight: 600; color: var(--c-dark); }

/* Vorstellung Zahnärztin */
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro-portrait {
  position: relative; margin: 0; padding: 2rem 2rem 0; border-radius: 200px 200px var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--c-bg-taupe) 0%, var(--c-taupe) 100%); max-width: 420px; justify-self: center; width: 100%;
}
.intro-portrait img { width: 100%; height: auto; }
.intro-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 320px; }
}

/* Leistungs-Karten: zweispaltige Liste (10 Leistungen) bzw. 3er-Raster (9 weitere Leistungen) */
.cards { display: grid; gap: 1.25rem; }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards-list { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; padding: 1.75rem; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.section-alt .card { background: #fff; }
.service-card { color: var(--c-text); text-decoration: none; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--c-text); }
.service-icon { width: 72px; height: 72px; margin-bottom: 1.25rem; }
@media (min-width: 561px) {
  .cards-list .service-card { display: grid; grid-template-columns: 80px 1fr; column-gap: 1.5rem; align-content: start; }
  .cards-list .service-icon { grid-row: span 3; width: 80px; height: 80px; margin: 0; }
  .cards-list .read-more { padding-top: 0.9rem; }
}
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--c-muted); font-size: 0.95rem; margin: 0; }
.read-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--c-dark); }
.read-more .icon { transition: transform .2s; }
.service-card:hover .read-more .icon { transform: translateX(4px); }

/* Philosophie A² */
.philosophy-mark { position: relative; display: flex; align-items: flex-start; justify-content: center; line-height: 0.8; user-select: none; }
.philosophy-mark .a-big { font-size: clamp(9rem, 22vw, 15rem); font-weight: 300; color: var(--c-dark); }
.philosophy-mark .a-small { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 300; color: var(--c-taupe); margin-left: 0.15em; }
.pillars { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pillars li { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.pillars h3 { margin-bottom: 0.25em; }
.pillars p { margin: 0; color: var(--c-muted); }
.pillar-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-dark); color: #fff;
}
.pillar-icon .icon { width: 22px; height: 22px; }
@media (max-width: 880px) { .philosophy-mark { display: none; } }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.team-photo, .rounded-photo, .team-wide { margin: 0; }
.team-photo img, .rounded-photo img, .team-wide img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-wide img { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }

/* Teammitglieder (Über uns) */
.team-grid-members {
  list-style: none; margin: 0 0 clamp(2.5rem, 6vw, 4rem); padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem;
}
.member { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
/* 5 Karten: 3 oben, 2 mittig darunter */
.member:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.member-photo { margin: 0; aspect-ratio: 4 / 5; background: var(--c-bg-alt); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.team-ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--c-bg-taupe) 0%, var(--c-taupe) 100%);
}
.team-ph-initials { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 300; letter-spacing: 0.04em; color: #fff; }
.member-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.member-body h3 { margin: 0; font-size: 1.3rem; }
.member-role {
  align-self: flex-start; margin: 0 0 0.35rem; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--c-bg-taupe); font-size: 0.8rem; font-weight: 600; color: var(--c-dark);
}
.member-text { margin: 0; font-size: 0.97rem; color: var(--c-text); }
.member-private {
  display: flex; gap: 0.55rem; margin: auto 0 0; padding-top: 0.9rem; border-top: 1px solid var(--c-border);
  font-size: 0.9rem; color: var(--c-muted);
}
.member-private .icon { margin-top: 0.15rem; color: var(--c-taupe-dark); }
.member-private strong { color: var(--c-dark); }
@media (max-width: 1020px) {
  .team-grid-members { gap: 1rem; }
  .member-body { padding: 1.15rem 1.15rem 1.3rem; }
  .member-body h3 { font-size: 1.15rem; }
  .member-text { font-size: 0.93rem; }
}
@media (max-width: 720px) {
  .team-grid-members { grid-template-columns: 1fr; gap: 1rem; }
  .member, .member:nth-child(4):nth-last-child(2) { grid-column: auto; }
  /* Handy: rundes Foto neben Name/Funktion, Text darunter in voller Breite */
  .member { display: grid; grid-template-columns: 84px 1fr; column-gap: 1rem; row-gap: 0.25rem; padding: 1.15rem 1.15rem 1.2rem; }
  .member-body { display: contents; }
  .member-photo { grid-row: 1 / span 2; align-self: center; width: 84px; height: 84px; aspect-ratio: 1; border-radius: 50%; }
  .member-photo img { transform: scale(1.75); transform-origin: 50% 24%; }
  .member-body h3 { grid-column: 2; align-self: end; font-size: 1.15rem; }
  .member-role { grid-column: 2; align-self: start; justify-self: start; margin: 0; }
  .team-ph-initials { font-size: 1.6rem; }
  .member-text { grid-column: 1 / -1; margin-top: 0.75rem; font-size: 0.95rem; }
  .member-private { grid-column: 1 / -1; margin-top: 0.75rem; font-size: 0.88rem; padding-top: 0.75rem; }
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }

/* Aufruf zur Terminbuchung */
.callout { background: var(--c-dark); color: #e4e0d8; }
.callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 3.75rem) 0; }
.callout h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.callout p { margin: 0; max-width: 620px; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
@media (max-width: 860px) { .callout-inner { flex-direction: column; align-items: flex-start; } }

/* Kontakt */
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: center; gap: 0.85rem; font-weight: 500; color: var(--c-dark); }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--c-dark); color: #fff; }
.contact-list a { color: var(--c-dark); text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--c-taupe-dark); }

.hours-box { margin-top: 2rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.hours-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-weight: 600; color: var(--c-dark); }
.hours { margin: 0; display: grid; gap: 0.15rem; }
.hours > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--c-border); }
.hours > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--c-muted); }
.hours-compact > div { grid-template-columns: 2.25rem 1fr; padding: 0.2rem 0; border-color: rgba(255, 255, 255, 0.1); font-size: 0.9rem; }

.form-wrap h3 { font-size: 1.3rem; }
.form-hint { color: var(--c-muted); font-size: 0.92rem; }

/* ---------- Leistungs-Detailseite ---------- */
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.service-aside { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.service-image, .service-illustration { margin: 0; }
.service-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.service-illustration { display: grid; place-items: center; padding: 2rem; background: var(--c-bg-alt); border-radius: var(--radius); }
.service-illustration img { width: 180px; height: 180px; }
.aside-box { display: grid; gap: 0.75rem; padding: 1.5rem; background: var(--c-dark); color: #e4e0d8; border-radius: var(--radius); }
.aside-box h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.aside-box p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.aside-box .btn { background: #fff; color: var(--c-dark); border-color: #fff; }
.aside-box .btn:hover { background: var(--c-bg-taupe); border-color: var(--c-bg-taupe); }
.aside-box .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.aside-box .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (max-width: 960px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2em; }
.prose > p:first-child { font-size: 1.15rem; color: var(--c-dark); }

.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list .icon {
  width: 26px; height: 26px; padding: 5px; margin-top: 0.1rem; border-radius: 50%;
  background: var(--c-bg-taupe); color: var(--c-dark); stroke-width: 2.4;
}

/* ---------- Karriere ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.25rem; }
.benefits li { padding: 1.5rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.benefits .pillar-icon { margin-bottom: 1rem; }
.benefits p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }

/* Offene Stellen: Highlight-Zeilen direkt unter dem Seitenkopf */
.jobs-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.jobs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.jobs-head h2 { margin: 0; }
.jobs-count {
  padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--c-bg-taupe);
  font-size: 0.85rem; font-weight: 600; color: var(--c-dark);
}
.job-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.job-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 1.75rem 1.6rem 2rem; overflow: hidden;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; box-shadow: 0 10px 30px -22px rgba(43, 42, 40, 0.45);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.job-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c-taupe); transition: background .2s; }
.job-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--c-text); }
.job-row:hover::before { background: var(--c-dark); }
.job-row-main { display: grid; gap: 0.45rem; min-width: 0; }
.job-row-title { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; color: var(--c-dark); line-height: 1.3; }
.job-row-teaser { color: var(--c-muted); font-size: 0.95rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.job-tag {
  padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-bg-alt);
  font-size: 0.78rem; font-weight: 500; color: var(--c-dark);
}
.job-row-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; padding: 0.75rem 1.3rem;
  border-radius: 999px; background: var(--c-dark); color: #fff; font-weight: 600; font-size: 0.92rem;
}
.job-row-cta .icon { transition: transform .2s; }
.job-row:hover .job-row-cta .icon { transform: translateX(4px); }
.jobs-initiative { margin: 1.5rem 0 0; color: var(--c-muted); }
.jobs-initiative a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--c-dark); text-decoration: none; }
.jobs-initiative a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .job-row { flex-direction: column; align-items: stretch; padding: 1.4rem 1.25rem 1.25rem 1.5rem; gap: 1rem; }
  .job-row-cta { justify-content: center; }
}

/* Stellenanzeige als Pop-up (mit JS über .is-open, ohne JS über den Anker :target) */
.job-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
html:not(.js) .job-modal:target,
.job-modal.is-open { display: flex; }
html.modal-open { overflow: hidden; }
html.modal-open .fab { opacity: 0; pointer-events: none; }
.job-modal-backdrop { position: absolute; inset: 0; background: rgba(29, 28, 27, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.job-modal-panel {
  position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem);
  background: #fff; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); overflow: hidden;
  animation: job-modal-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes job-modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.job-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 1.75rem 1.25rem; border-bottom: 1px solid var(--c-border); background: var(--c-bg-alt);
}
.job-modal-head .eyebrow { margin-bottom: 0.4rem; }
.job-modal-head h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: 0; }
.job-modal-close {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border); color: var(--c-dark);
}
.job-modal-close:hover { background: var(--c-dark); color: #fff; }
.job-modal-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem;
  padding: 1.75rem; overflow-y: auto; overscroll-behavior: contain;
}
/* Inhalt der Stellenanzeige: jeder Abschnitt mit eigener Optik */
.job-modal-details { display: grid; gap: 1.25rem; align-content: start; }
.job-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.job-facts li {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.85rem 0.9rem;
  border: 1px solid var(--c-border); border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--c-dark); line-height: 1.35;
}
.job-facts .icon { width: 20px; height: 20px; margin-top: 0.1rem; color: var(--c-taupe-dark); }
.job-facts small { display: block; margin-bottom: 0.15rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }

.job-block h3 { font-size: 1.05rem; margin: 0 0 0.85rem; }

/* Aufgaben: nummerierte Kacheln */
.job-tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.job-tasks li {
  display: grid; gap: 0.35rem; align-content: start; padding: 0.9rem 1rem;
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px; font-size: 0.92rem; line-height: 1.45;
}
.job-task-no { font-size: 1.35rem; font-weight: 300; line-height: 1; color: var(--c-taupe); }

/* Profil: hinterlegter Kasten mit Häkchen */
.job-profile { padding: 1.15rem 1.25rem; background: var(--c-bg-alt); border-radius: 14px; }
.job-profile .check-list { font-size: 0.93rem; margin: 0; gap: 0.55rem; }
.job-profile .check-list .icon { background: #fff; }

/* Angebot: dunkler Block mit Symbol-Kacheln */
.job-offer { padding: 1.15rem 1.25rem 1.25rem; background: var(--c-dark); border-radius: 14px; color: #e4e0d8; }
.job-offer h3 { color: #fff; }
.job-offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.job-offer-list li {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem;
  border-radius: 10px; background: rgba(255, 255, 255, 0.07); font-size: 0.9rem; font-weight: 500;
}
.job-offer-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; }
.job-offer-icon .icon { width: 17px; height: 17px; }

.job-modal-contact { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.93rem; color: var(--c-muted); }
.job-modal-contact .icon { color: var(--c-taupe-dark); }
.job-modal-contact a { font-weight: 600; color: var(--c-dark); }
@media (max-width: 560px) {
  .job-facts { grid-template-columns: 1fr; }
  .job-facts li { align-items: center; }
  .job-tasks, .job-offer-list { grid-template-columns: 1fr; }
}
.job-modal-form h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.job-modal-form .form { box-shadow: none; }
.job-modal-form { scroll-margin-top: 1rem; }
.job-modal-footer { display: none; }
@media (min-width: 881px) {
  .job-modal-form { position: sticky; top: 0; align-self: start; }
}
@media (max-width: 880px) {
  .job-modal { padding: 0; align-items: stretch; }
  .job-modal-panel { max-height: none; height: 100%; border-radius: 0; }
  .job-modal-head { padding: 1.1rem 1.25rem 1rem; }
  .job-modal-body { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.75rem; }
  /* Handy: Sprung-Button zum Formular, solange es noch nicht im Bild ist */
  .js .job-modal-footer {
    display: block; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-border); background: #fff;
  }
  .js .job-modal-footer.is-hidden { display: none; }
}

/* ---------- Häufige Fragen ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.faq summary {
  position: relative; padding: 1.2rem 3.5rem 1.2rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--c-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--c-taupe-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.5rem 1.3rem; color: var(--c-muted); }

/* ---------- Formular ---------- */
.form {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 500; font-size: 0.93rem; color: var(--c-dark); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--c-text);
  background: var(--c-bg-alt); border: 1.5px solid var(--c-border); border-radius: 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: #fff; border-color: var(--c-dark); box-shadow: 0 0 0 4px rgba(178, 174, 164, 0.35); }
.field ::placeholder { color: #9a958b; }
.field [aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-bg); }
.field-error { margin: 0; font-size: 0.88rem; color: var(--c-error); font-weight: 500; }

.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field-check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--c-dark); }
.field-check label { font-weight: 400; font-size: 0.9rem; color: var(--c-muted); }
.field-check .field-error { grid-column: 1 / -1; }

.field-hint { margin: 0; font-size: 0.85rem; color: var(--c-muted); }
.form-note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--c-muted); }
.form .form-note { margin: 0; }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: 10px; font-weight: 500; }
.alert-success { background: var(--c-success-bg); color: var(--c-success); }
.alert-error { background: var(--c-error-bg); color: var(--c-error); }

/* ---------- Rechtliche Seiten ---------- */
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal h4 { font-size: 0.98rem; font-weight: 600; margin: 1.25rem 0 0.4rem; color: var(--c-dark); }
.legal-rules li + li { margin-top: 0.6rem; }
.legal p, .legal li { color: var(--c-text); overflow-wrap: anywhere; }

/* ---------- Social Media: Profilkarten (Startseite, Linkseite) ---------- */
.social-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.social-card-instagram { --ring: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); --accent: #d62976; }
.social-card-facebook { --ring: conic-gradient(#1877f2, #7fb2ff, #1877f2, #0b5fcc, #1877f2); --accent: #1877f2; }
.social-card a {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem;
  border-radius: 20px; background: #fff; border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none;
  box-shadow: 0 12px 30px -24px rgba(43, 42, 40, 0.55); transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
}
.social-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--c-text); }
/* Lichtreflex, der regelmäßig über die Karte läuft */
.social-card a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 35%, rgba(178, 174, 164, 0.22) 50%, transparent 65%);
  animation: social-shine 7s ease-in-out infinite;
}
.social-card-facebook a::after { animation-delay: 3.5s; }
.social-avatar { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 72px; }
.social-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--ring); animation: social-spin 6s linear infinite; }
.social-avatar img { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.social-badge {
  position: absolute; right: -5px; bottom: -3px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px #fff;
  animation: social-pop 4s ease-in-out infinite;
}
.social-card-facebook .social-badge { animation-delay: 2s; }
.social-badge .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1.4; }
.social-body { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
.social-platform {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-taupe-dark);
}
.social-platform .icon { width: 16px; height: 16px; }
.social-handle { font-size: 1.08rem; color: var(--c-dark); overflow-wrap: anywhere; line-height: 1.3; }
.social-text { font-size: 0.88rem; color: var(--c-muted); line-height: 1.45; }
.social-follow {
  flex: none; padding: 0.5rem 1.05rem; border-radius: 999px; background: var(--c-dark); color: #fff;
  font-size: 0.85rem; font-weight: 600; transition: background .3s;
}
.social-card a:hover .social-follow { background: var(--accent); }

.social-cards-dark .social-card a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #e4e0d8; box-shadow: none; }
.social-cards-dark .social-card a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.social-cards-dark .social-card a::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%); }
.social-cards-dark .social-badge { box-shadow: 0 0 0 3px #2b2a28; }
.social-cards-dark .social-platform { color: var(--c-taupe-light); }
.social-cards-dark .social-handle { color: #fff; }
.social-cards-dark .social-text { color: #bdb8ae; }
.social-cards-dark .social-follow { background: #fff; color: var(--c-dark); }
.social-cards-dark .social-card a:hover .social-follow { color: #fff; }

@media (max-width: 420px) {
  .social-card a { gap: 0.85rem; padding: 1rem; }
  .social-avatar { width: 60px; height: 60px; }
  .social-avatar img { width: 53px; height: 53px; }
  .social-follow { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
}

@keyframes social-spin { to { transform: rotate(360deg); } }
@keyframes social-pop {
  0%, 68%, 100% { transform: scale(1); }
  74% { transform: scale(1.35) rotate(-8deg); }
  80% { transform: scale(0.9); }
  86% { transform: scale(1.1); }
}
@keyframes social-shine { 0%, 55% { transform: translateX(-110%); } 80%, 100% { transform: translateX(110%); } }

/* „Bewegung reduzieren“: Der Lichtreflex entfällt, Ring und Badge laufen (klein, ruhig) weiter. */
@media (prefers-reduced-motion: reduce) {
  .social-ring { animation: social-spin 12s linear infinite !important; }
  .social-badge { animation: social-pop 4s ease-in-out infinite !important; }
  .social-card-facebook .social-badge { animation-delay: 2s !important; }
}

/* ---------- Linkseite /links (QR-Code im Wartezimmer): ohne Menü, nur Bewertung, Social Media, Termin ---------- */
.page-bare { background: #1d1c1b; }
.linkhub {
  min-height: calc(100vh - 5rem); min-height: calc(100dvh - 5rem);
  padding: max(1.25rem, env(safe-area-inset-top)) 0 2.5rem;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(178, 174, 164, 0.22), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(178, 174, 164, 0.1), transparent 65%),
    linear-gradient(170deg, #2b2a28 0%, #1d1c1b 100%);
  color: #e4e0d8;
}
.linkhub-inner { display: grid; gap: 1.75rem; width: min(100% - 2.5rem, 520px); margin-inline: auto; }
.linkhub-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.linkhub-brand img { width: 128px; height: auto; }
.linkhub-home {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.88rem; font-weight: 500; text-decoration: none;
  transition: background .25s, border-color .25s;
}
.linkhub-home:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.linkhub-home .icon { width: 16px; height: 16px; }
.linkhub-head { text-align: center; padding-top: 0.5rem; }
.linkhub-head h1 { margin: 0 0 0.5rem; text-wrap: balance; color: #fff; font-size: clamp(1.7rem, 7vw, 2.2rem); }
.linkhub-head p { margin: 0; color: #bdb8ae; text-wrap: balance; }
.linkhub-group { display: grid; gap: 0.85rem; }
.linkhub-title { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-taupe); }

/* Google-Bewertung: helle Karte mit nacheinander aufleuchtenden Sternen */
.review-card {
  display: grid; justify-items: center; gap: 0.45rem; padding: 1.6rem 1.4rem 1.4rem; border-radius: 22px;
  background: #fff; color: var(--c-text); text-align: center; text-decoration: none;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8); transition: transform .3s;
}
.review-card:hover { transform: translateY(-3px); color: var(--c-text); }
.review-stars { display: flex; gap: 0.3rem; margin-bottom: 0.35rem; }
.review-stars .icon {
  width: 30px; height: 30px; fill: #fbbc04; stroke: #f2a600; stroke-width: 1.2;
  animation: review-star 3.2s ease-in-out infinite;
}
.review-stars .icon:nth-child(2) { animation-delay: .12s; }
.review-stars .icon:nth-child(3) { animation-delay: .24s; }
.review-stars .icon:nth-child(4) { animation-delay: .36s; }
.review-stars .icon:nth-child(5) { animation-delay: .48s; }
.review-card strong { font-size: 1.25rem; color: var(--c-dark); }
.review-text { font-size: 0.92rem; color: var(--c-muted); line-height: 1.5; max-width: 34ch; }
.review-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--c-dark); color: #fff; font-weight: 600; font-size: 0.95rem; transition: background .25s;
}
.review-btn .icon { width: 18px; height: 18px; transition: transform .25s; }
.review-card:hover .review-btn { background: var(--c-primary-dark); }
.review-card:hover .review-btn .icon { transform: translateX(3px); }
@keyframes review-star {
  0%, 60%, 100% { transform: none; }
  70% { transform: scale(1.25) rotate(-10deg); }
  80% { transform: scale(0.95); }
}

.linkhub-link {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem 0.85rem 0.85rem; border-radius: 16px;
  background: #fff; border: 1px solid #fff; color: var(--c-dark); text-decoration: none; transition: background .25s, transform .25s;
}
.linkhub-link:hover { background: var(--c-bg-taupe); color: var(--c-dark); transform: translateY(-2px); }
.linkhub-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c-dark); color: #fff; }
.linkhub-label { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.linkhub-label strong { font-weight: 600; }
.linkhub-label small { font-size: 0.85rem; color: var(--c-muted); }
.linkhub-link > .icon:last-child { flex: none; width: 18px; height: 18px; color: var(--c-taupe-dark); transition: transform .25s; }
.linkhub-link:hover > .icon:last-child { transform: translateX(3px); }

.bare-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.25rem; padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  background: #1d1c1b; color: #8f8a80; font-size: 0.82rem; text-align: center;
}
.bare-footer p { margin: 0; }
.bare-footer a { color: #d9d4ca; }
.bare-footer span { margin: 0 0.5rem; }

/* Einblenden nacheinander */
.linkhub-inner > *,
.linkhub .social-card { animation: linkhub-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.linkhub-inner > :nth-child(2) { animation-delay: .08s; }
.linkhub-inner > :nth-child(3) { animation-delay: .16s; }
.linkhub-inner > :nth-child(4) { animation-delay: .24s; }
.linkhub .social-card:nth-child(1) { animation-delay: .3s; }
.linkhub .social-card:nth-child(2) { animation-delay: .38s; }
.linkhub-inner > :nth-child(5) { animation-delay: .46s; }
@keyframes linkhub-in { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
  .review-stars .icon { animation: review-star 3.2s ease-in-out infinite !important; }
  .review-stars .icon:nth-child(2) { animation-delay: .12s !important; }
  .review-stars .icon:nth-child(3) { animation-delay: .24s !important; }
  .review-stars .icon:nth-child(4) { animation-delay: .36s !important; }
  .review-stars .icon:nth-child(5) { animation-delay: .48s !important; }
}

/* Mobiles Menü: Social-Media-Buttons nebeneinander */
@media (max-width: 1020px) {
  .nav-extra-follow { margin-top: 0.5rem; }
  .nav-social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #bdb8ae; padding-top: 3.75rem; font-size: 0.94rem; }
.site-footer a { color: #e4e0d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.25rem; padding-bottom: 2.75rem; }
@media (min-width: 1021px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr 0.8fr; } }
.footer-logo { width: 180px; height: auto; margin-bottom: 0.75rem; }
.footer-claim { color: var(--c-taupe); font-size: 0.95rem; letter-spacing: 0.04em; }
.footer-title { color: #fff; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.9rem; }
.footer-links,
.footer-contact,
.footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; word-break: break-word; }
.footer-contact .icon { margin-top: 0.25rem; color: var(--c-taupe); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); color: #e4e0d8;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.site-footer .hours dd { color: #bdb8ae; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem 0;
}
.footer-bottom p { margin: 0; font-size: 0.84rem; }

/* ---------- Schwebender Termin-/Kontakt-Button (alle Seiten) ---------- */
.fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; }
.fab-toggle {
  display: grid; place-items: center; width: 60px; height: 60px; margin-left: auto;
  border-radius: 50%; background: var(--c-dark); color: #fff; cursor: pointer; list-style: none;
  box-shadow: 0 12px 28px -8px rgba(43, 42, 40, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.9);
  transition: transform .15s, background .15s;
}
.fab-toggle::-webkit-details-marker { display: none; }
.fab-toggle:hover { background: var(--c-primary-dark); transform: scale(1.05); }
.fab-toggle .icon { width: 26px; height: 26px; }
.fab-icon-close { display: none; }
.fab[open] .fab-icon-open { display: none; }
.fab[open] .fab-icon-close { display: block; }

.fab-menu {
  position: absolute; right: 0; bottom: calc(100% + 0.9rem); width: min(300px, calc(100vw - 2.5rem));
  list-style: none; margin: 0; padding: 0.5rem; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 50px -16px rgba(43, 42, 40, 0.5); border: 1px solid var(--c-border);
}
.fab-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem; border-radius: 12px; color: var(--c-dark); text-decoration: none; }
.fab-item:hover { background: var(--c-bg-alt); color: var(--c-dark); }
.fab-item strong { display: block; font-size: 0.98rem; }
.fab-item small { display: block; font-size: 0.8rem; color: var(--c-muted); word-break: break-all; }
.fab-item-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--c-bg-taupe); color: var(--c-dark); }
.fab-primary .fab-item-icon { background: var(--c-dark); color: #fff; }

@media (max-width: 560px) {
  .fab { right: 1rem; bottom: 1rem; }
  .fab-toggle { width: 56px; height: 56px; }
}
@media print { .fab, .site-header .nav-toggle { display: none; } }

/* ==========================================================================
   Scroll-Erlebnis: Einblenden (Klassen setzt main.js – ohne JavaScript bzw. bei
   „Bewegung reduzieren“ bleibt alles statisch sichtbar).
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.card, .reveal.form { transform: translateY(36px) scale(.98); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Punkte unter den Wisch-Karussells (von main.js erzeugt) */
.carousel-dots { display: none; }

/* ==========================================================================
   Handy: kompakter – Karussell statt langer Kachel-Stapel
   ========================================================================== */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 1.6rem; }
  .hero-inner { padding: 3.5rem 0 2.75rem; }
  .hero-media::after { background: linear-gradient(180deg, rgba(29, 28, 27, 0.55) 0%, rgba(29, 28, 27, 0.82) 100%); }
  .intro-portrait { max-width: 280px; padding: 1.5rem 1.5rem 0; }
  .hero-actions { margin: 1.5rem 0 2rem; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: 0.6rem; }
  .callout-actions { width: 100%; }
  .callout-actions .btn { width: 100%; }
  .hours > div { grid-template-columns: 6.5rem 1fr; }

  .cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 0.9rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem; padding: 0.25rem 1.25rem 0.75rem;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards > * { scroll-snap-align: start; }
  .card { padding: 1.4rem; }
  .service-card:hover { transform: none; }

  .carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.5rem; }
  .carousel-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--c-border); transition: width .3s, background .3s;
  }
  .carousel-dots button[aria-current="true"] { width: 22px; background: var(--c-dark); }
}

/* ==========================================================================
   Implantologie: Scroll-Animation „So entsteht Ihr neuer Zahn“
   Ohne JavaScript: Endergebnis + alle Schritte als Liste.
   Mit JavaScript (.is-scrolly): Grafik bleibt stehen, main.js bewegt die Teile beim Scrollen.
   ========================================================================== */
.implant-section { padding-bottom: 0; }
.implant-section .section-head { margin-bottom: 1.5rem; }
.implant-layout {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem);
  align-items: center; padding-bottom: clamp(3rem, 7vw, 5rem);
}
.implant-stage {
  border-radius: var(--radius); overflow: hidden; background: #fbfaf7; border: 1px solid var(--c-border);
}
.implant-svg { display: block; width: 100%; height: auto; }

.implant-text {
  padding: clamp(1.5rem, 3.5vw, 2.5rem); background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.implant-captions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.implant-cap-no {
  display: block; margin-bottom: 0.5rem; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 300;
  line-height: 1; letter-spacing: -0.02em; color: var(--c-taupe);
}
.implant-captions h3 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin-bottom: 0.45em; }
.implant-captions p { margin: 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65; color: var(--c-text); }
.implant-progress, .implant-steplist { display: none; }
.implant-steplist { list-style: none; margin: 0; padding: 0; }
.implant-note { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--c-muted); }

/* Scroll-Modus */
.implant-scrolly.is-scrolly { height: 340vh; }
.is-scrolly .implant-sticky {
  position: sticky; top: 84px; height: calc(100vh - 84px); height: calc(100dvh - 84px);
  display: flex; align-items: center;
}
.is-scrolly .implant-layout { width: min(100% - 2.5rem, var(--container)); padding-bottom: 0; }
.is-scrolly .implant-captions { gap: 0; }
.is-scrolly .implant-captions li {
  grid-area: 1 / 1; opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.is-scrolly .implant-captions li.is-active { opacity: 1; transform: none; pointer-events: auto; }
.is-scrolly .implant-progress {
  display: block; height: 3px; margin-top: 1.75rem; border-radius: 3px; background: var(--c-border); overflow: hidden;
}
.implant-progress span { display: block; height: 100%; background: var(--c-dark); transform: scaleX(0); transform-origin: left center; }

/* Übersicht aller Schritte (Desktop) */
.is-scrolly .implant-steplist {
  display: grid; gap: 0.15rem; list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--c-border); font-size: 0.9rem; color: var(--c-muted);
}
.implant-steplist li { display: flex; align-items: center; gap: 0.7rem; padding: 0.3rem 0; transition: color .3s; }
.implant-steplist span {
  display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--c-border); font-size: 0.75rem; font-weight: 600; transition: background .3s, color .3s, border-color .3s;
}
.implant-steplist li.is-done span { background: var(--c-bg-taupe); border-color: var(--c-bg-taupe); color: var(--c-dark); }
.implant-steplist li.is-active { color: var(--c-dark); font-weight: 600; }
.implant-steplist li.is-active span { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

@media (max-width: 1020px) {
  .is-scrolly .implant-sticky { top: 72px; height: calc(100vh - 72px); height: calc(100dvh - 72px); }
}
@media (max-width: 760px) {
  .implant-layout { grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; }
  .implant-stage { width: 100%; max-width: 360px; }
  .implant-text { width: 100%; }
  .is-scrolly .implant-layout { align-content: center; }
  .is-scrolly .implant-stage { width: auto; max-width: 100%; height: min(48vh, 400px); aspect-ratio: 300 / 330; }
  .is-scrolly .implant-stage .implant-svg { height: 100%; width: auto; margin-inline: auto; }
  .implant-scrolly.is-scrolly { height: 300vh; }
  .implant-text { padding: 1.25rem 1.35rem; }
  .implant-cap-no { font-size: 2rem; margin-bottom: 0.25rem; }
  .implant-captions h3 { font-size: 1.3rem; }
  .is-scrolly .implant-steplist, .is-scrolly .implant-note { display: none; }
  .is-scrolly .implant-progress { margin-top: 1rem; }
  .is-scrolly .implant-stage { height: min(42vh, 360px); }
}
