/* ==========================================================
   Implantate – Landing Page, Zahnarztpraxis Blumberg
   Design tokens taken from the live site (Squarespace):
   Nunito Sans (headings), PT Serif (body), Nunito (buttons),
   sage accent hsl(86,15%,59%) = #98a686, light green #e4f1d6,
   off-white #f2f2f0.
   ========================================================== */

/* Self-hosted fonts – no requests to Google */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/nunito-sans-var.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/pt-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/pt-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/pt-serif-700.woff2') format('woff2'); }

:root {
  --bg: #f2f2f0;            /* live site lightAccent */
  --surface: #ffffff;
  --tint: #e4f1d6;          /* live site accent */
  --sage: #98a686;          /* live site darkAccent – decorative, buttons on the live site */
  --sage-strong: #66764f;   /* darker sage for text & buttons (WCAG AA with white) */
  --sage-deep: #4d5a3b;
  --ink: #1d211a;
  --ink-soft: #4a4f45;
  --line: #dcdfd6;

  --font-head: 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'PT Serif', Georgia, serif;
  --font-btn: 'Nunito', 'Nunito Sans', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(29, 33, 26, .05), 0 8px 24px rgba(29, 33, 26, .06);
  --container: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--sage-strong); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.005em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sage-strong); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-strong);
  margin-bottom: .8rem;
}

/* ---------- Buttons (pill shape, like the live site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-btn); font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  line-height: 1.2; text-decoration: none; text-align: center;
  padding: 1.05em 1.9em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-strong); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-light { background: #fff; color: var(--sage-deep); }
.btn-light:hover { background: var(--tint); color: var(--sage-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .75em 1.4em; font-size: .92rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 242, 240, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.header-logo img { width: 190px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-btn); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-grid--solo { grid-template-columns: 1fr; max-width: 860px; text-align: center; }
.hero-grid--solo .lead { margin-left: auto; margin-right: auto; }
.hero-grid--solo .hero-actions, .hero-grid--solo .trust-row { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.trust-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-family: var(--font-head); font-size: .9rem; color: var(--ink-soft);
}
.trust-row li {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem;
}
.trust-row strong { color: var(--ink); }
.stars { color: #d8a93b; letter-spacing: .08em; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- Image carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--line);
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.carousel-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(29, 33, 26, .72), rgba(29, 33, 26, 0));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-align: left;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .9rem; }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line); transition: width .25s, background-color .25s;
}
.carousel-dots button[aria-current="true"] { width: 26px; background: var(--sage-strong); }
.carousel-pause {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--sage); background: transparent; color: var(--sage-strong); padding: 0;
}
.carousel-pause[hidden] { display: none; }
.carousel-pause svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; }
.carousel-pause .icon-play { fill: currentColor; stroke: none; display: none; }
.carousel-pause[aria-pressed="true"] .icon-play { display: block; }
.carousel-pause[aria-pressed="true"] .icon-pause { display: none; }

/* ---------- Testimonial video ---------- */
.video-frame { position: relative; }
.video-frame video {
  display: block; margin: 0 auto; height: auto; aspect-ratio: var(--video-ratio, 16 / 9);
  width: min(100%, calc(72vh * var(--video-ratio-num, 1.7778))); border-radius: var(--radius-lg);
  background: var(--ink); box-shadow: var(--shadow); object-fit: contain;
}
.video-frame figcaption {
  font-family: var(--font-head); font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: .8rem;
}
.video-placeholder { display: none; }
.video-frame.is-missing video { display: none; }
.video-frame.is-missing .video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sage-strong), var(--sage-deep));
  color: #fff; box-shadow: var(--shadow);
}
.video-play {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}
.video-play svg { width: 30px; height: 30px; fill: var(--sage-deep); margin-left: 4px; }
.video-placeholder-text { font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; }

/* ---------- Short version blocks ---------- */
.pain-list { list-style: none; margin: 0 auto 1.8rem; padding: 0; max-width: 560px; }
.pain-list li {
  position: relative; padding: .9rem 0 .9rem 2.2rem; border-bottom: 1px solid var(--line);
  font-size: 1.1rem; color: var(--ink);
}
.pain-list li::before {
  content: "–"; position: absolute; left: .5rem; color: var(--sage-strong); font-weight: 700;
}
.solution {
  max-width: 620px; margin: 0 auto; text-align: center; font-size: 1.15rem;
  background: var(--tint); border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.point { border-top: 3px solid var(--sage); padding-top: 1.1rem; }
.point p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.steps--compact .step { padding: 1.4rem 1.3rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-white { background: var(--surface); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }
.section-cta { text-align: center; margin-top: 2.5rem; }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--sage);
}
.card p { color: var(--ink-soft); margin: 0; }

.problem-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-image { order: 2; }
.split-image img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.split-image--drawing img { aspect-ratio: 1; max-width: 460px; margin: 0 auto; box-shadow: none; mix-blend-mode: multiply; }
.split-text p { color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366764f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list strong { color: var(--ink); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); }
.feature p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sage-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* doctor */
.promise {
  margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--sage-strong);
  background: rgba(255, 255, 255, .6); border-radius: 0 var(--radius) var(--radius) 0;
}
.promise p { font-style: italic; color: var(--ink); margin: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); }
.step p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-strong); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* reviews */
.reviews { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 960px; }
.rating-badge {
  text-align: center; background: var(--bg); border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  font-family: var(--font-head);
}
.rating-badge p { margin: 0; }
.rating-score { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--ink); }
.rating-badge .stars { font-size: 1.5rem; margin: .4rem 0; }
.rating-count { color: var(--ink-soft); font-size: .95rem; }
.reviews-text p { color: var(--ink-soft); }
.review { margin: 0 0 1.2rem; }
.review cite { font-family: var(--font-head); font-style: normal; font-size: .9rem; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* faq */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.2rem 3.5rem 1.2rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--sage-strong); border-bottom: 2.5px solid var(--sage-strong);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: #fafaf8; }
.faq-body { padding: 0 1.5rem 1.2rem; color: var(--ink-soft); }
.faq-body p:last-child { margin-bottom: 0; }

/* final cta */
.final-cta { background: var(--sage-deep); color: #fff; }
.final-cta h2, .final-cta h3 { color: #fff; }
.final-cta a:not(.btn) { color: #fff; }
.final-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.final-text p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.final-info { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; background: rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: 1.8rem; }
.final-info h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.final-info p { color: rgba(255, 255, 255, .88); }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; color: rgba(255, 255, 255, .88); }
.hours dt { font-family: var(--font-head); font-weight: 700; color: #fff; }
.hours dd { margin: 0; }
.hours small { font-size: .85em; opacity: .85; }

/* footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 2.5rem 0 3rem; font-size: .92rem; }
.footer-inner { display: grid; gap: 1.2rem; }
.disclaimer { max-width: 60em; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a, .link-button { color: #fff; font-family: var(--font-head); font-weight: 600; }
.link-button { background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin: 0; }

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

/* consent */
.consent { position: fixed; inset: auto 0 0 0; z-index: 80; padding: 1rem; }
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(29, 33, 26, .25); padding: 1.5rem 1.6rem; font-size: .95rem;
}
.consent-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: .4rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .problem-grid, .feature-grid, .steps, .points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .split, .final-grid { grid-template-columns: 1fr; }
  .split--reverse .split-image { order: 0; }
  .split-image--drawing img { max-width: 320px; }
  .reviews { grid-template-columns: 1fr; text-align: center; }
  .rating-badge { justify-self: center; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; padding-bottom: 84px; }
  .header-logo img { width: 150px; }
  .header-phone, .header-actions .btn { display: none; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .problem-grid, .feature-grid, .steps, .points { grid-template-columns: 1fr; }
  .steps--compact { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .steps--compact .step { padding: 1.1rem 1rem; }
  .steps--compact h3 { font-size: 1.05rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
  .final-info { grid-template-columns: 1fr; }
  .consent { padding: .75rem; }
  .consent-inner { font-size: .9rem; padding: 1.2rem; }
  .consent-actions { grid-template-columns: 1fr; }

  .mobile-bar {
    display: flex; gap: .6rem; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(29, 33, 26, .08);
    transform: translateY(0); transition: transform .25s ease;
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar-book { flex: 1; padding: .95em 1em; }
  .mobile-bar-call {
    flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--sage); color: var(--sage-strong);
  }
  .mobile-bar-call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
