/* ============================================================
   Zahnarztpraxis Dr. Kinner — Stylesheet
   Designprinzipien: modern, klar, ruhig — mit Wärme.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Praxisfarben: Dunkelblau + Türkis auf hellem Grund */
  --bg:           #FFFFFF;   /* Reinweiß */
  --bg-alt:       #EAF5F7;   /* sehr helles Türkis für Akzent-Sektionen */
  --navy:         #003ea4;   /* Dunkelblau aus Logo (Headlines, Buttons, CTA, Footer) */
  --navy-dark:    #00307e;   /* dunklere Variante (Hover) */
  --teal:         #388e8b;   /* Türkis aus Logo (Akzentfarbe) */
  --teal-dark:    #2d7370;   /* dunkleres Türkis (Text-Akzente, bessere Lesbarkeit) */
  /* Alias auf die alten Variablennamen, damit alle Regeln umgefärbt werden */
  --sage:         #388e8b;   /* = Türkis (Logo, exakt — für Flächen/Borders) */
  --sage-dark:    #2d7370;   /* = dunkleres Türkis (Text-Akzente, WCAG AA: 5.5:1) */
  --teal-tint:    rgba(22, 154, 166, 0.16);   /* Türkis 16 % für Hover-Flächen */
  --ink:          #1F2D3A;   /* dunkles Blaugrau für Text */
  --ink-soft:     #4A5562;
  --line:         #DCE6EA;   /* kühle Border */
  --white:        #FFFFFF;

  /* Typografie — Corporate-Schrift Trebuchet MS */
  --font-serif:   "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans:    "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw:         1200px;
  --maxw-narrow:  860px;
  --pad-x:        clamp(1.25rem, 4vw, 2.5rem);
  --pad-y:        clamp(3rem, 8vw, 6rem);
  --radius:       8px;
  --radius-lg:    16px;

  /* Schatten */
  --shadow-sm:    0 1px 2px rgba(43, 43, 43, 0.06);
  --shadow-md:    0 4px 16px rgba(43, 43, 43, 0.08);
  --shadow-lg:    0 12px 40px rgba(43, 43, 43, 0.10);

  /* Transitions */
  --tr:           180ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
/* picture ist nur die Huelle fuer das WebP-Format und soll das Layout nicht
   beeinflussen. display:contents nimmt es aus dem Layout heraus, damit alle
   Regeln wie ".hero__image img { height: 100% }" weiter greifen. */
picture { display: contents; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* ---------- Barrierefreiheit ---------- */
/* Sichtbarer Fokus-Indikator (WCAG 2.4.7) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-phone:focus-visible, .mobile-call:focus-visible {
  outline-color: var(--white);
  outline-offset: 2px;
}

/* Skip-Link zum Hauptinhalt (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Bewegungsreduktion respektieren (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden (für Screenreader-only Texte) */
.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}

/* ---------- Layout Helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--bg); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--bg); }
.divider { border: none; height: 1px; background: var(--line); margin: 2rem 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  line-height: 1.1;
  font-family: var(--font-serif);
  color: var(--ink);
}
.brand__logo { height: 52px; width: auto; display: block; }
.brand__name { font-size: 1.25rem; font-weight: 500; }
.brand__sub { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; font-family: var(--font-sans); }
.brand:hover { text-decoration: none; }
@media (max-width: 880px) { .brand__logo { height: 42px; } }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color var(--tr), background var(--tr);
}
.nav a:hover { color: var(--sage-dark); text-decoration: none; background: var(--teal-tint); }
.nav a.active { color: var(--ink); }
.nav-phone {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem !important;
  background: var(--navy);
  color: var(--bg) !important;
  border-radius: 999px !important;
  font-weight: 500;
}
.nav a.nav-phone:hover { background: var(--sage-dark); color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; gap: 0; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.875rem var(--pad-x); border-radius: 0; }
  .nav-phone { margin: 0.5rem var(--pad-x) !important; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--navy); color: var(--bg); }
.btn-ghost { color: var(--ink-soft); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-large { padding: 1.125rem 2rem; font-size: 1.0625rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__content .eyebrow { margin-bottom: 1.25rem; }
.hero__content h1 { margin-bottom: 0.875rem; }
.hero__subheadline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--teal-dark);
  margin-bottom: 1.75rem;
  letter-spacing: -0.005em;
}
.hero__content .lead { margin-bottom: 2rem; max-width: 32rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero__meta { margin-top: 2rem; font-size: 0.875rem; color: var(--ink-soft); }
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Gründer-Karten (Über-Sektion Startseite) ---------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.founder-card { margin: 0; text-align: center; }
.founder-card__img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
}
.founder-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder-card figcaption { line-height: 1.35; }
.founder-card figcaption strong { display: block; color: var(--navy); font-size: 1rem; }
.founder-card figcaption span { font-size: 0.875rem; color: var(--teal-dark); }
@media (max-width: 480px) { .founders { gap: 0.75rem; } }

/* ---------- USP / Stat Cards ---------- */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.usp__item {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.usp__item h3 { font-family: var(--font-serif); margin-bottom: 0.75rem; font-size: 1.25rem; }
.usp__item p { color: var(--ink-soft); margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.usp__num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 1rem;
}
@media (max-width: 600px) { .usp { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Hours / Info Card ---------- */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.6rem 0; text-align: left; font-size: 0.9375rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--ink-soft); width: 32%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--ink-soft); font-style: italic; }

/* ---------- Telefonzeiten-Hinweis ---------- */
.call-hint { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); }
.cta .call-hint { color: inherit; opacity: 0.85; }
.footer__phone-hours { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); line-height: 1.6; }

/* ---------- Service Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none !important;
  color: inherit;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card__image { aspect-ratio: 4 / 3; background: var(--bg-alt); }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card__body p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 1.25rem; flex: 1; }
.service-card__more {
  font-size: 0.875rem;
  color: var(--sage-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Two-Column Block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__image { order: 2; }
.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}
.split__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__image { order: 0; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.pillar { padding: 1.75rem 1.5rem; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.125rem; margin-bottom: 0.75rem; color: var(--sage-dark); }
.pillar p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pillars { grid-template-columns: 1fr; } }

/* ---------- Team Grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.team-grid--three { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .team-grid--three { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: left; }
.team-card__image {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.team-card__image img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Profile Block (Dr. Detail) ---------- */
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.profile:last-of-type { border-bottom: 0; }
.profile__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.profile__image img { width: 100%; height: 100%; object-fit: cover; }
.profile__body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.profile__role { color: var(--sage-dark); font-size: 0.9375rem; margin-bottom: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.profile__cv { list-style: none; padding: 0; }
.profile__cv li { padding-left: 1.25rem; position: relative; margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--ink-soft); }
.profile__cv li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } .profile__image { max-width: 220px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq details[open] { border-color: var(--sage); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 1.5rem;
  font-weight: 500;
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sage-dark);
  transition: transform var(--tr);
}
.faq details[open] summary::after { content: "−"; }
.faq__body { padding: 0 1.5rem 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.65; }
.faq__body p { margin-bottom: 0.5rem; }

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--navy);
  color: var(--bg);
  text-align: center;
  overflow: hidden;
}
.cta__inner { position: relative; z-index: 2; }
.cta h2 { color: var(--bg); margin-bottom: 1rem; }
.cta .lead { color: rgba(255, 255, 255, 0.78); max-width: 36rem; margin: 0 auto 2rem; }
.cta .btn-primary { background: var(--bg); color: var(--ink); }
.cta .btn-primary:hover { background: var(--sage); color: var(--ink); }
.cta .btn-ghost { color: rgba(255, 255, 255, 0.7); }
.cta .btn-ghost:hover { color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.site-footer h3, .site-footer h4 { color: var(--bg); font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--bg); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand .brand__name { color: var(--bg); }
.footer__brand .brand__sub { color: rgba(255, 255, 255, 0.75); }
.footer__brand p { margin-top: 1rem; font-size: 0.9375rem; }
.footer__list { list-style: none; padding: 0; }
.footer__list li { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky Mobile Phone CTA ---------- */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: var(--navy);
  color: var(--bg) !important;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-weight: 500;
  text-decoration: none !important;
}
.mobile-call:hover { background: var(--sage-dark); }
@media (max-width: 880px) { .mobile-call { display: block; } body { padding-bottom: 4.5rem; } }

/* ---------- Page Hero / Section Hero ---------- */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.page-hero h1 { margin-bottom: 1rem; max-width: 36rem; }
.page-hero .lead { max-width: 38rem; }
.breadcrumb { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 1.25rem; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--sage-dark); }

/* ---------- Detail Page Layout ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.detail-hero__image { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); max-width: 480px; }
.detail-hero__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .detail-hero { grid-template-columns: 1fr; } }

.prose { max-width: var(--maxw-narrow); }
.prose h2 { margin-top: 2.5rem; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; line-height: 1.6; }
.prose ul li::before { content: "•"; color: var(--sage-dark); position: absolute; left: 0.25rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr); }
.gallery figure:hover img { transform: scale(1.03); }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Address / Anfahrt Card ---------- */
.address-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.address-card__map {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.address-card__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 880px) { .address-card { grid-template-columns: 1fr; } }

/* ---------- Karten-Consent (Two-Click / DSGVO) ---------- */
.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.875rem;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map-consent__icon { width: 40px; height: 40px; color: var(--teal); }
.map-consent h3 { font-size: 1.125rem; margin: 0; }
.map-consent p { font-size: 0.875rem; color: var(--ink-soft); max-width: 28rem; margin: 0; }
.map-consent a { color: var(--teal-dark); }
.map-consent__note { font-size: 0.75rem; color: var(--ink-soft); }
.route-link { margin-top: 0.5rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* ---------- Patientenstimmen ---------- */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.rating-summary__stars { color: #F5B400; font-size: 1.125rem; letter-spacing: 0.06em; }
.rating-summary strong { color: var(--navy); font-weight: 700; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.375rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.testimonial__stars { color: #F5B400; font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 0.625rem; }
.testimonial blockquote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 0.75rem;
  flex: 1;
  quotes: "„" "\"" "‚" "'";
  /* 2-Zeilen-Clamp standardmäßig */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.testimonial.is-expanded blockquote {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.testimonial__toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 0.875rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.testimonial__toggle:hover { color: var(--navy); }
.testimonial__toggle[hidden] { display: none; }
.testimonial figcaption { font-size: 0.875rem; color: var(--navy); font-weight: 600; }
.testimonial figcaption span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 1000px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-call, .cta { display: none; }
  body { background: white; color: black; }
}

/* Nummerierte Ablauf-Schritte auf Leistungsseiten */
.prose ol { list-style: none; padding: 0; counter-reset: schritte; }
.prose ol li { padding-left: 2.4rem; position: relative; margin-bottom: 0.9rem; line-height: 1.6; counter-increment: schritte; }
.prose ol li::before { content: counter(schritte); position: absolute; left: 0; top: 0.15em; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sage-dark); color: #fff; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Funktions-Schritte (Schema-Grafiken mit HTML-Text) ---------- */
.func-steps { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }
.func-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.func-step__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.func-step__num {
  flex: none;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.func-step__text p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.func-step__text p + p { margin-top: 0.5rem; }
.func-step__image { margin: 0; }
.func-step__image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* Variante A: breite Bildstreifen, Text links / Bild rechts */
.func-steps--rows .func-step { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 640px) {
  .func-steps--rows .func-step { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Variante B: Karten-Raster, Text oben / Bild unten */
.func-steps--grid { grid-template-columns: repeat(4, 1fr); }
.func-steps--grid .func-step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: end; }
@media (max-width: 1000px) { .func-steps--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .func-steps--grid { grid-template-columns: 1fr; } }

/* Vorteils-Karten unter den Funktions-Schritten */
.func-benefits { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.func-benefits--4 { grid-template-columns: repeat(4, 1fr); }
.func-benefits--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) {
  .func-benefits--4 { grid-template-columns: repeat(2, 1fr); }
  .func-benefits--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .func-benefits--4, .func-benefits--5 { grid-template-columns: 1fr; }
}
.func-benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
}
.func-benefit svg {
  width: 28px; height: 28px;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}
.func-benefit strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.func-benefit p { color: var(--ink-soft); font-size: 0.8437rem; line-height: 1.55; margin: 0; }

/* Variante C: 3er-Raster mit Titel oben, Bild, Liste darunter (Parodontologie) */
.func-steps--grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .func-steps--grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .func-steps--grid-3 { grid-template-columns: 1fr; } }
.func-steps--grid-3 .func-step { display: block; }
.func-steps--grid-3 .func-step__image { margin: 0 0 0.9rem; }
.prose .func-step__text ul { font-size: 0.9375rem; color: var(--ink-soft); }
.prose .func-step__text ul li { margin-bottom: 0.4rem; padding-left: 1.1rem; }
.prose .func-step__text ul li::before { left: 0; }

/* Variante D: 4er-Raster mit Titel oben, Bild, Text darunter (Wurzelbehandlung) */
.func-steps--grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .func-steps--grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .func-steps--grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .func-steps--grid-4 { grid-template-columns: 1fr; } }
.func-steps--grid-4 .func-step { display: block; }
.func-steps--grid-4 .func-step__image { margin: 0 0 0.9rem; }

/* Bildgröße der Raster-Varianten begrenzen: verhindert übergroße Panels,
   sobald das Raster auf 1–2 Spalten umbricht (Handy/Tablet) */
.func-steps--grid .func-step__image img,
.func-steps--grid-3 .func-step__image img,
.func-steps--grid-4 .func-step__image img {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
