/* Plus Jakarta Sans — lokal eingebunden (Variable Font, 400-800).
   Vorher von fonts.googleapis.com geladen; lokale Einbindung vermeidet die
   Uebertragung von Besucher-IPs an Google (DSGVO, vgl. LG Muenchen I 3 O 17493/20). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Zahnarzt Praxis Nikravi Algermissen — Praxis-Website =====
   Einziges Theme: Blau (#1f49ae). Kein Lila/Rosa (CI-Vorgabe). */
:root {
  --brand:       #1f49ae;
  --brand-600:   #1a3f97;
  --brand-700:   #16357e;
  --brand-soft:  #ebf1fc;
  --brand-line:  #d4e0f7;
  --navy:        #16253f;
  --navy-deep:   #101b2e;
  --accent:      #5b81d6;
  --ink:         #2e2830;
  --ink-soft:    #54505a;
  --muted:       #837e89;
  --bg:          #ffffff;
  --bg-soft:     #f7f9fd;
  --bg-tint:     #eef3fc;
  --line:        #e6ecf5;
  --shadow-sm:   0 2px 10px rgba(16,27,46,.05);
  --shadow-md:   0 14px 38px rgba(16,27,46,.10);
  --shadow-lg:   0 26px 60px rgba(16,27,46,.15);
  --radius:      16px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  letter-spacing: -.01em;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}
section { scroll-margin-top: 96px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31,73,174,.28);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(31,73,174,.34); }
.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand-line);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Top bar ===== */
.topbar {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--brand-line);
  font-size: 13.5px;
  color: var(--brand-700);
}
.topbar .wrap { display: flex; gap: 28px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-logo { height: 66px; width: auto; display: block; margin: -3px 0; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--brand), #4a76d8);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(31,73,174,.3);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; color: #fff; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--brand-700); letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.brand > span { display: inline-block; }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.nav { display: flex; gap: 26px; margin-left: 6px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.header-cta { display: flex; gap: 10px; margin-left: auto; }
.header-cta .btn { padding: 12px 18px; }
.burger { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% 0%, #e3ecfb 0%, rgba(227,236,251,0) 55%),
    linear-gradient(180deg, #eff5fd 0%, #fafcff 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 .hl { color: var(--brand); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; margin-top: 40px; max-width: 440px; }
.hero-trust .ht { display: flex; align-items: center; gap: 11px; max-width: 160px; }
.hero-trust .ht-ic { width: 34px; height: 34px; color: var(--brand); flex: none; }
.hero-trust .ht-ic svg { width: 100%; height: 100%; }
.hero-trust .ht span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.hero-media { position: relative; }
.hero-media .media {
  width: 100%;
  height: 540px;
  display: block;
  border-radius: 26px;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  pointer-events: none;
}

/* ===== Value bar ===== */
.valuebar { background: var(--bg); margin-top: -42px; position: relative; z-index: 5; }
.valuebar-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.value {
  display: flex;
  gap: 15px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: none; }
.value-ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
}
.value-ic svg { width: 22px; height: 22px; }
.value h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.value p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ===== Services ===== */
.services { padding: 92px 0 96px; }
.services-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.service-ic {
  width: 58px; height: 58px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-ic svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.service-link {
  margin-top: 18px;
  font-size: 14.5px; font-weight: 700; color: var(--brand);
  display: inline-flex; align-items: center; gap: 7px;
}
.service-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ===== Split sections (about / dentist) ===== */
.split { padding: 36px 0; }
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media .media { width: 100%; height: 430px; display: block; border-radius: 20px; box-shadow: var(--shadow-md); }
.split-media.portrait .media { height: 360px; max-width: 320px; }
.split-body .eyebrow { text-align: left; }
.split-body h2 { font-size: clamp(25px, 2.8vw, 33px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; line-height: 1.2; }
.split-body > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.checklist { display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.check {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: 1px;
}
.check svg { width: 13px; height: 13px; }
.dentist-block { background: var(--bg-soft); }

/* ===== Team ===== */
.team { padding: 90px 0; }
.team-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card .media { width: 100%; height: 220px; display: block; }
.team-card .media-img { object-position: 50% 18%; }
.team-meta { padding: 18px 16px 22px; text-align: center; }
.team-meta h4 { font-size: 16.5px; font-weight: 700; }
.team-meta p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.team-meta .team-focus { font-size: 12.5px; color: var(--brand-700); font-weight: 600; margin-top: 8px; line-height: 1.45; }

/* ===== Reviews ===== */
.reviews { padding: 90px 0; background: var(--bg-soft); }
.reviews-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; color: #f4b740; margin-bottom: 18px; }
.stars svg { width: 19px; height: 19px; }
.review-card blockquote { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; font-style: italic; }
.review-card cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--ink); }

/* ===== FAQ ===== */
.faq { padding: 90px 0; }
.faq-grid { margin-top: 50px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acc-item[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-plus {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 19px; line-height: 1;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.acc-item[open] .acc-plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.acc-body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-aside .media { width: 100%; height: 180px; display: block; }
.faq-aside-body { padding: 26px 26px 28px; }
.faq-aside-body h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 18px; }

/* ===== Location ===== */
.location { padding: 70px 0; background: var(--bg-tint); }
.location .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.location .eyebrow { text-align: left; }
.location h2 { font-size: clamp(25px, 2.8vw, 33px); font-weight: 700; margin-bottom: 18px; letter-spacing: -.01em; }
.location p { color: var(--ink-soft); font-size: 16px; }
.location .media { width: 100%; height: 300px; display: block; border-radius: 18px; box-shadow: var(--shadow-md); }

/* ===== Contact ===== */
.contact { padding: 90px 0; }
.contact-grid { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 36px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.contact-ic svg { width: 21px; height: 21px; }
.contact-row .ct-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-row .ct-val { font-size: 16px; font-weight: 600; color: var(--ink); }
.hours-card h3, .contact-list-col h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.hours-table { display: flex; flex-direction: column; gap: 12px; }
.hours-row { display: flex; justify-content: space-between; font-size: 15px; gap: 16px; }
.hours-row .day { color: var(--ink-soft); font-weight: 600; }
.hours-row .time { color: var(--muted); text-align: right; }
.contact-map { display: flex; flex-direction: column; gap: 18px; }
.contact-map .gmap {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.map-actions { display: flex; flex-direction: column; gap: 12px; }
.map-actions .btn svg { width: 19px; height: 19px; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #dbe4f5; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #b6c6e6; }
.footer .brand-mark { background: rgba(255,255,255,.1); box-shadow: none; }
.footer-logo-box { display: inline-flex; background: #fff; padding: 14px 20px; border-radius: 14px; }
.footer-logo-box .brand-logo { height: 52px; }
.footer-about { font-size: 14.5px; color: #b6c6e6; margin-top: 20px; line-height: 1.6; max-width: 250px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 14.5px; color: #b6c6e6; display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-col svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #8fa9dd; }
.footer-hours-row { display: flex; gap: 14px; font-size: 14.5px; color: #b6c6e6; margin-bottom: 10px; }
.footer-hours-row .fd { color: #fff; font-weight: 600; min-width: 56px; }
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 13.5px; color: #9db2d9;
}
.footer-bottom .fb-links { display: flex; gap: 28px; }
.footer-bottom a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .topbar .wrap { flex-wrap: wrap; }
  .topbar-spacer { display: none; }
  .topbar-note { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .media { height: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split .wrap, .location .wrap { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .topbar { display: none; }
  .header-cta .btn span { display: none; }
  .valuebar-inner { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: none; }
  .services-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===================================================================
   NEU: Local-SEO / Conversion / Trust Komponenten
   =================================================================== */

/* ----- Öffnungsstatus-Pille ----- */
.topbar-spacer { flex: 1; }
.topbar-note { color: var(--brand-700); font-weight: 600; opacity: .85; white-space: nowrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: #eef7f0; color: #1f7a44; border: 1px solid #cfe9d7;
}
.status-pill .status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(31,122,68,.15); }
.status-pill.is-closed { background: #fdeeee; color: #b3322c; border-color: #f3d2d0; }
.status-pill.is-closed .status-dot { box-shadow: 0 0 0 3px rgba(179,50,44,.12); }

/* ----- Hero Meta-Zeile + Notfall-Hinweis ----- */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.hero-meta-sep { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.emergency {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding: 13px 16px; max-width: 480px;
  background: #fff6e9; border: 1px solid #f3dcb8; border-radius: 12px;
  font-size: 14px; color: #6b4a13; line-height: 1.45;
}
.emergency svg { width: 22px; height: 22px; flex: none; color: #d98a17; }
.emergency a { color: var(--brand-700); font-weight: 700; white-space: nowrap; }

/* ----- Google-Bewertungs-Kopf ----- */
.greviews-head {
  margin: 40px auto 8px; max-width: 760px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px 30px;
}
.greviews-logo { flex: none; }
.greviews-score { text-align: center; }
.greviews-num { font-size: 38px; font-weight: 800; line-height: 1; color: var(--ink); }
.greviews-stars { color: #f4b740; font-size: 20px; letter-spacing: 2px; margin: 4px 0 2px; }
.greviews-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.greviews-count .placeholder-val { color: var(--brand); }
.greviews-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.greviews-actions .btn { padding: 11px 18px; font-size: 14px; }
#google-reviews-widget:empty { display: none; }

/* ----- Bewertungskarten-Kopf ----- */
.rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rc-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--a, var(--brand)); color: #fff; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.rc-id { display: flex; flex-direction: column; line-height: 1.2; }
.rc-id cite { font-style: normal; font-weight: 700; font-size: 15px; color: var(--ink); }
.rc-date { font-size: 12.5px; color: var(--muted); }
.rc-g { margin-left: auto; flex: none; }
.review-card blockquote { font-style: normal; }

/* ----- Karten-Einbettung (Map) ----- */
.map-embed {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); height: 240px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.95); }

/* ----- Booking Band ----- */
.bookband {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 60%, #4a76d8 100%);
  color: #fff; padding: 70px 0;
}
.bookband-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.bookband-intro .eyebrow { text-align: left; color: #cfdefa; }
.bookband-intro h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.bookband-intro > p { color: #dbe6fa; font-size: 16.5px; margin-top: 16px; max-width: 480px; line-height: 1.6; }
.bookband-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-light:hover { background: #eef3fc; transform: translateY(-2px); }
.callback-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.callback-card h3 { font-size: 21px; font-weight: 800; color: var(--brand-700); }
.callback-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.callback-card input, .callback-card textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--bg-soft); transition: border-color .18s ease, background .18s ease;
}
.callback-card input:focus, .callback-card textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.callback-card textarea { resize: vertical; }
.callback-note { font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.callback-note a { color: var(--brand); text-decoration: underline; }

/* ----- Sticky Mobile Bottom-Tab-Bar (Inhalt via bottom-nav.js) ----- */
.mobilebar { display: none; }
@media (max-width: 640px) {
  .mobilebar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16,27,46,.10);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .mbn-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: var(--muted);
    padding: 6px 2px 4px; border: none; background: none; font-family: var(--font);
    cursor: pointer; border-radius: 12px; line-height: 1.1;
  }
  .mbn-tab svg { width: 22px; height: 22px; }
  .mbn-tab.is-active { color: var(--brand); }
  .mbn-tab:not(.mbn-call):active { background: var(--brand-soft); transform: scale(.94); }
  .mbn-call { position: relative; }
  .mbn-call-ic {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-top: -26px;
    box-shadow: 0 8px 20px rgba(31,73,174,.4), 0 0 0 4px #fff;
    transition: transform .15s ease;
  }
  .mbn-call-ic svg { width: 21px; height: 21px; }
  .mbn-call span:last-child { color: var(--brand-700); margin-top: 2px; }
  .mbn-call:active .mbn-call-ic { transform: scale(.9); }
  body { padding-bottom: 80px; }
}

/* ----- Responsive: neue Blöcke ----- */
@media (max-width: 1024px) {
  .bookband-grid { grid-template-columns: 1fr; gap: 32px; }
  .greviews-head { flex-direction: column; gap: 18px; }
}

/* ===================================================================
   LANDINGPAGES (Einzel-Leistungen)
   =================================================================== */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb .wrap { display: flex; gap: 9px; align-items: center; padding-top: 13px; padding-bottom: 13px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .current { color: var(--ink-soft); font-weight: 600; }

/* hero auf Landingpages: etwas kompakter */
.lp-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.lp-hero .hero-media .media { height: 460px; }

/* Intro nutzt .split – kein extra CSS nötig */

/* Vorteile */
.lp-benefits { padding: 80px 0; background: var(--bg-soft); }
.benefits-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.benefit .service-ic { width: 50px; height: 50px; margin-bottom: 16px; }
.benefit .service-ic svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.benefit p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Ablauf / Schritte */
.lp-steps { padding: 90px 0; }
.steps-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; }
.step-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), #4a76d8); color: #fff;
  font-weight: 800; font-size: 21px; display: grid; place-items: center;
  margin-bottom: 18px; box-shadow: 0 8px 18px rgba(31,73,174,.28);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Kosten-Hinweis */
.lp-kosten { padding: 0 0 90px; }
.kosten-card {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg); padding: 34px 38px;
  display: flex; gap: 24px; align-items: flex-start;
}
.kosten-card .kosten-ic {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.kosten-card .kosten-ic svg { width: 28px; height: 28px; }
.kosten-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--brand-700); }
.kosten-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

/* Verwandte Leistungen */
.related { padding: 88px 0; background: var(--bg-soft); }
.related-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.related-card .service-ic { width: 46px; height: 46px; margin: 0; flex: none; }
.related-card .service-ic svg { width: 23px; height: 23px; }
.related-card .r-name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.related-card .r-arrow { margin-left: auto; color: var(--brand); width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.related-card:hover .r-arrow { transform: translateX(4px); }

/* CTA-Band zentriert (Landing) */
.bookband.center .bookband-grid { grid-template-columns: 1fr; text-align: center; max-width: 720px; margin: 0 auto; }
.bookband.center .bookband-intro .eyebrow { text-align: center; }
.bookband.center .bookband-intro > p { margin-left: auto; margin-right: auto; }
.bookband.center .bookband-cta { justify-content: center; }

@media (max-width: 1024px) {
  .benefits-grid, .steps-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-hero .hero-media .media { height: 360px; }
}
@media (max-width: 640px) {
  .benefits-grid, .steps-grid, .related-grid { grid-template-columns: 1fr; }
  .kosten-card { flex-direction: column; gap: 16px; padding: 26px 24px; }
}

/* ===================================================================
   MOBILE UX — Navigation, Drawer & responsive Feinabstimmung
   =================================================================== */
html { overflow-x: clip; }

/* ----- Hamburger ----- */
.burger {
  display: none;
  width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--brand-line); border-radius: 12px;
  background: #fff; color: var(--brand-700); cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.burger:hover { background: var(--brand-soft); }
.burger svg { width: 24px; height: 24px; }

/* ----- Slide-in Drawer ----- */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(16,27,46,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(86vw, 360px);
  background: #fff; box-shadow: -14px 0 44px rgba(16,27,46,.20);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.mm-title { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.mm-close {
  width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--brand-line); border-radius: 11px;
  background: #fff; color: var(--brand-700); display: grid; place-items: center; cursor: pointer;
}
.mm-close svg { width: 20px; height: 20px; }
.mm-nav { display: flex; flex-direction: column; padding: 8px 0; }
.mm-nav a {
  padding: 15px 22px; font-size: 17px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--bg-tint);
}
.mm-nav a:active { background: var(--brand-soft); color: var(--brand-700); }
.mm-cta { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.mm-info {
  margin-top: auto; padding: 20px 22px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.mm-info strong { color: var(--ink); }

/* ----- Tablet / schmaler Desktop (≤1024) ----- */
@media (max-width: 1024px) {
  .burger { display: inline-flex; }
  .header-cta .btn-outline { display: none; }
  .header .wrap { gap: 14px; }
}

/* ----- Phone (≤640) ----- */
@media (max-width: 640px) {
  .header .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-cta { display: none; }
  .burger { margin-left: auto; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-logo { height: 46px; }
  .brand-name { font-size: 16.5px; }
  .brand-sub { font-size: 11px; }

  /* Hero */
  .hero .wrap { padding-top: 38px; padding-bottom: 42px; gap: 26px; }
  .hero p.lead { font-size: 16.5px; margin-top: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 11px; margin-top: 26px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 30px; max-width: none; }
  .hero-trust .ht { max-width: none; }
  .hero-meta { margin-top: 20px; }
  .emergency { max-width: none; }
  .hero-media .media, .lp-hero .hero-media .media { height: 300px; }

  /* Sektions-Abstände verdichten */
  .services { padding: 54px 0 56px; }
  .services-grid { margin-top: 34px; gap: 16px; }
  .split { padding-top: 50px !important; padding-bottom: 26px !important; }
  .split .wrap { gap: 28px; }
  .dentist-block { padding-top: 36px !important; padding-bottom: 44px !important; }
  .team { padding: 54px 0; }
  .team-grid { margin-top: 32px; gap: 16px; }
  .team-card .media { height: 200px; }
  .reviews { padding: 54px 0; }
  .reviews-grid { margin-top: 30px; }
  .greviews-head { margin-top: 30px; padding: 22px 18px; }
  .greviews-actions { flex-direction: column; width: 100%; }
  .greviews-actions .btn { width: 100%; justify-content: center; }
  .faq { padding: 54px 0; }
  .faq-grid { margin-top: 32px; gap: 22px; }
  .acc-item summary { padding: 17px 18px; font-size: 15.5px; }
  .acc-body { padding: 0 18px 20px; }
  .location { padding: 48px 0; }
  .contact { padding: 54px 0; }
  .contact-grid { margin-top: 32px; gap: 30px; }
  .bookband { padding: 50px 0; }
  .callback-card { padding: 24px 20px; }
  .footer { padding-top: 50px; }
  .footer-grid { gap: 32px; }

  /* Landingpages */
  .lp-hero .wrap { padding-top: 36px; padding-bottom: 40px; }
  .lp-benefits, .lp-steps, .related { padding: 54px 0; }
  .benefits-grid, .steps-grid { margin-top: 34px; }
  .related-grid { margin-top: 32px; }
  .breadcrumb .wrap { font-size: 13px; }

  /* CTA / Buttons komfortabel */
  .btn-lg { padding: 15px 24px; }
}

/* ----- kleine Phones (≤480) ----- */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-sub { font-size: 15px; }
  .greviews-num { font-size: 34px; }
  .hero-trust { grid-template-columns: 1fr; }
}


/* Hero-Foto Algermissen: nur am Desktop nach rechts schieben (Text liegt links darueber).
   Die Maske blendet die linke Bildkante weich in den weissen Hintergrund ein —
   ohne sie stuende die Kante als harte Linie neben einer weissen Flaeche. */
@media (min-width: 1151px) {
  .alg-hero-img {
    transform: translateX(12%) scale(1.04);
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 8%, #000 34%);
  }
}

/* ===== Standort-Umschalter im Header ===== */
.locsw { position: relative; flex: none; }
.locsw-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font);
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-line);
  border-radius: 12px;
  padding: 7px 12px;
  color: var(--brand-700);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.locsw-btn:hover { border-color: var(--brand); }
.locsw-btn-pin { width: 16px; height: 16px; flex: none; opacity: .85; }
.locsw-btn-pin svg { width: 100%; height: 100%; }
.locsw-btn-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.locsw-btn-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.locsw-btn-city { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.locsw-chev { width: 15px; height: 15px; flex: none; transition: transform .2s ease; }
.locsw.open .locsw-chev { transform: rotate(180deg); }
.locsw-panel {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 240;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.locsw.open .locsw-panel { opacity: 1; visibility: visible; transform: none; }
.locsw-head { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 10px; }
.locsw-row {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px; border-radius: 13px;
  transition: background .16s ease;
}
.locsw-row:hover { background: var(--bg-soft); }
.locsw-row.is-current { background: var(--brand-soft); }
.locsw-pin { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 2px; }
.locsw-pin svg { width: 100%; height: 100%; }
.locsw-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.locsw-city { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.locsw-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 999px; padding: 2px 7px;
}
.locsw-name { font-size: 13.5px; font-weight: 600; color: var(--brand-700); }
.locsw-adr { font-size: 13px; color: var(--muted); }
.locsw-tel { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.locsw-foot { font-size: 12px; color: var(--muted); line-height: 1.45; padding: 10px 10px 2px; }
@media (max-width: 640px) {
  .locsw-btn { padding: 6px 10px; gap: 7px; }
  .locsw-btn-label { display: none; }
  .locsw-btn-city { font-size: 13.5px; }
  /* Panel am vollbreiten (sticky, daher positionierten) Header verankern statt
     am schmalen Button: sonst ragt es auch unsichtbar ueber den rechten
     Viewport-Rand und macht die Seite horizontal verschiebbar. */
  .locsw { position: static; }
  .locsw-panel { left: 12px; right: 12px; width: auto; top: calc(100% + 4px); }
}
@media (max-width: 420px) {
  .locsw-btn-pin { display: none; }
  .locsw-btn { padding: 6px 9px; gap: 5px; }
  .brand-logo { height: 38px; }
}

/* ===== Standorte-Band (beide Praxen) ===== */
.stband { padding: 84px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.stband-grid { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.stcard.is-current { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.stcard-logo { height: 52px; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 6px; }
.stcard h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ink); }
.stcard-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 3px 9px;
}
.stcard-name { font-size: 15px; font-weight: 700; color: var(--brand-700); }
.stcard-adr, .stcard-hours { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.stcard-hours { color: var(--muted); font-size: 14px; }
.stcard-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.team-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-left: auto; margin-right: auto; }
.team-grid-2 .team-card .media { height: 380px; }
@media (max-width: 860px) {
  .stband-grid { grid-template-columns: 1fr; gap: 18px; }
  .stband { padding: 64px 0; }
}
@media (max-width: 640px) {
  .team-grid-2 { grid-template-columns: 1fr; }
}
.team-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid-4 .team-card .media { height: 300px; }
@media (max-width: 1150px) {
  .team-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid-4 .team-card .media { height: 360px; }
}
@media (max-width: 640px) {
  .team-grid-4 { grid-template-columns: 1fr; }
}

/* ===== Einblicke-Galerie (Algermissen) ===== */
.alg-gallery { padding: 0 0 30px; }
.alg-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.alg-gallery-grid .media { width: 100%; height: 300px; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 1000px) {
  .alg-gallery-grid .media { height: 240px; }
}
@media (max-width: 760px) {
  .alg-gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .alg-gallery-grid .media { height: 220px; }
}

/* ===== Terminabsage: Hinweis-Leiste (nur mobil) + Bottom-Sheet ===== */
.cancel-bar { display: none; }

@media (max-width: 1024px) {
  .cancel-bar {
    display: block;
    background: var(--brand-soft);
    border-bottom: 1px solid var(--brand-line);
  }
  .cancel-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
  }
  .cancel-bar-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-700);
    min-width: 0;
  }
  .cancel-bar-text svg { width: 17px; height: 17px; flex: none; opacity: .85; }
  .cancel-bar-btn {
    flex: none;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    background: #fff;
    border: 1.5px solid var(--brand-line);
    border-radius: 999px;
    padding: 8px 16px;
    min-height: 38px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease;
  }
  .cancel-bar-btn:active { background: var(--brand); border-color: var(--brand); color: #fff; }
}
@media (max-width: 400px) {
  .cancel-bar-text { font-size: 12.5px; gap: 6px; }
}

/* Overlay */
.cancel-overlay {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(16,27,46,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.cancel-overlay.open { opacity: 1; pointer-events: auto; }

/* Sheet / Dialog */
.cancel-sheet {
  position: fixed; z-index: 211;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.32,.72,.28,1);
  max-height: 88vh;
  overflow-y: auto;
}
.cancel-sheet.open { transform: translateY(0); }
.cs-grip {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--line);
  margin: 4px auto 14px;
}
.cs-head { display: flex; align-items: flex-start; gap: 13px; }
.cs-icon {
  flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.cs-icon svg { width: 22px; height: 22px; }
.cs-head-text { min-width: 0; }
.cs-head-text h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.cs-head-text p { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.cs-close {
  flex: none; margin-left: auto;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); border: none; cursor: pointer;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.cs-close svg { width: 18px; height: 18px; }
.cs-close:active { background: var(--brand-soft); color: var(--brand); }

.cs-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cs-field span {
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em;
}
.cs-field input {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 50px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.cs-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.cs-note {
  font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5;
  margin-top: 2px;
}
.cs-note a { color: var(--brand); font-weight: 700; }
.cs-note a:hover { text-decoration: underline; }

/* Erfolgsansicht */
.cs-success { padding: 26px 4px 8px; text-align: center; }
.cs-success-ic {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cs-success-ic svg { width: 28px; height: 28px; }
.cs-success h4 { font-size: 19px; font-weight: 700; color: var(--ink); }
.cs-success p { font-size: 14px; color: var(--muted); margin: 8px 0 20px; line-height: 1.55; }

/* Ab Tablet: zentrierter Dialog statt Bottom-Sheet */
@media (min-width: 641px) {
  .cancel-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(440px, calc(100vw - 40px));
    border-radius: 22px;
    padding: 22px 26px 26px;
    transform: translate(-50%, -46%);
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .cancel-sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .cs-grip { display: none; }
}

/* ===== Foto-Hero (Team-Foto als Vollbild-Hintergrund) ===== */
.hero-photo { position: relative; overflow: hidden; }
.hero-photo .hero-bg { position: absolute; inset: 0; }
.hero-photo .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* 0% = oberste Bildkante sichtbar; sonst wird auf breiten Viewports
     der Kopf oben abgeschnitten (Ueberhang waechst mit der Breite) */
  object-position: 100% 0%;
  display: block;
}
.hero-photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0px,
    rgba(255,255,255,.93) 470px,
    rgba(255,255,255,.55) 610px,
    rgba(255,255,255,.15) 730px,
    rgba(255,255,255,0) 840px);
}
.hero-photo .wrap {
  display: block;
  position: relative; z-index: 1;
  padding-top: 84px; padding-bottom: 84px;
  min-height: 560px;
}
.hero-photo .hero-body { max-width: 560px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; color: var(--brand);
  letter-spacing: .01em; margin-bottom: 14px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-sm);
}
.hero-photo .hero-trust { background: rgba(255,255,255,.6); border-radius: 14px; backdrop-filter: blur(2px); }

@media (max-width: 1150px) {
  /* Auf schmalen Viewports: Foto als Banner oben, Text darunter */
  .hero-photo .hero-bg { position: static; height: 280px; }
  .hero-photo .hero-bg img { object-position: 70% 25%; }
  .hero-photo .hero-bg::after { display: none; }
  .hero-photo .wrap { padding-top: 34px; padding-bottom: 46px; min-height: 0; }
  .hero-photo .hero-body { max-width: none; }
  .hero-photo .hero-trust { background: none; backdrop-filter: none; }
}

.media-img { object-fit: cover; }

/* ===================================================================
   MOBILE APP-POLISH (Touch-Feedback, Tab-Bar-Verhalten, FAB)
   =================================================================== */

/* Keine horizontale Verschiebbarkeit: clip statt hidden, damit der
   sticky Header funktionsfaehig bleibt (hidden erzeugt einen Scroll-Container). */
html, body { overflow-x: clip; }

/* ----- Touch-Feedback, Tap-Targets, Reduced-Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
a, button, .btn, .service-card, .related-card, .benefit, .locsw-btn, .acc-item summary { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.service-card:active, .related-card:active, .benefit:active { transform: scale(.98); }
.cs-close { width: 44px; height: 44px; }
.mobilebar { transition: transform .25s ease; }
.mobilebar.mb-hide { transform: translateY(100%); }
@media (max-width: 640px) {
  .footer-col a { display: inline-block; padding: 4px 0; }
  .mm-nav a { min-height: 44px; }
}

/* ----- Dr.-Flex-Buchungsbutton im Stil der bisherigen Praxis-Website
   (Shortcode-Vorgabe: #334B96, weiss, 6px Radius, 12px/24px Padding).
   Gilt fuer die primaeren Buchungs-CTAs; btn-light/btn-ghost im dunklen
   Terminband bleiben wegen des Kontrasts unveraendert. ----- */
.btn.btn-primary[href*="dr-flex.de"] {
  background: #334b96;
  color: #ffffff;
  border-radius: 6px;
  padding: 12px 24px;
}
.btn.btn-primary[href*="dr-flex.de"]:hover { background: #283c7a; }

/* ----- Floating Action Button "Termin vereinbaren" (fab-book.js) ----- */
.fab-book { display: none; }
@media (max-width: 640px) {
  .fab-book {
    display: flex; align-items: center; gap: 8px;
    position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 79;
    background: var(--brand); color: #fff;
    padding: 15px 20px; border-radius: 999px;
    font-family: var(--font); font-weight: 700; font-size: 14.5px; white-space: nowrap;
    box-shadow: 0 10px 26px rgba(31,73,174,.4), 0 2px 8px rgba(16,27,46,.15);
    transition: bottom .25s ease, transform .15s ease, box-shadow .2s ease;
  }
  .fab-book svg { width: 19px; height: 19px; flex: none; }
  .fab-book:active { transform: scale(.95); }
  .mobilebar.mb-hide ~ .fab-book { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
