/* ============================================================
   Zahnarztpraxis Fabian Beck — Design System
   Warm · ruhig · vertrauensvoll · menschlich (nicht klinisch)
   Zero external requests · DSGVO-konform · self-hosted fonts
   ============================================================ */

/* ---------- Self-hosted Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Palette — warm, calm, human */
  --ink:        #1E2420;   /* near-black warm */
  --ink-soft:   #4C544D;
  --ink-mute:   #7C837C;
  --bg:         #F7F4EF;   /* warm cream */
  --bg-alt:     #EEE8DE;   /* sand */
  --surface:    #FFFFFF;
  --primary:    #285049;   /* deep calm green */
  --primary-dk: #1B372F;
  --primary-lt: #E4EDE9;
  --accent:     #B9835B;   /* warm copper */
  --accent-dk:  #9A6A45;
  --line:       rgba(30,36,32,.12);
  --line-soft:  rgba(30,36,32,.07);
  --shadow-sm:  0 1px 2px rgba(27,55,47,.04), 0 4px 14px rgba(27,55,47,.06);
  --shadow-md:  0 6px 24px rgba(27,55,47,.09), 0 2px 6px rgba(27,55,47,.05);
  --shadow-lg:  0 24px 60px rgba(27,55,47,.14);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid scale */
  --step--1: clamp(.83rem, .8rem + .15vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.8vw, 3rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.8vw, 4.2rem);
  --step-5:  clamp(2.9rem, 2.1rem + 4vw, 5.6rem);

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --pad-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { max-width: 68ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); font-weight: 300; }
strong { font-weight: 600; }
.serif { font-family: var(--font-display); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dk);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--primary-dk); color: #EAF0EC; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); letter-spacing: .005em;
  border: 1px solid transparent; transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dk); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-dk); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--light { background: #fff; color: var(--primary-dk); }
.btn--light:hover { background: var(--primary-lt); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.05rem;
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: .98rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: .3rem; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .9rem; }
.nav__phone { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); padding: 1rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 90;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: .95rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__cta .btn { display: none; }
  .nav__cta .nav__phone { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) var(--pad-section); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { margin-top: 1.4rem; }
.hero .lead { margin-top: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); line-height: 1; }
.hero__meta span { font-size: var(--step--1); color: var(--ink-mute); margin-top: .35rem; }
.hero__visual { position: relative; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* Decorative "photo frame" placeholder — replaced by real image later */
.framed {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--bg-alt);
}
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed--wide { aspect-ratio: 3/2; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    linear-gradient(150deg, var(--primary-lt), var(--bg-alt));
  color: var(--primary-dk); padding: 2rem;
}
.ph__inner { max-width: 26ch; }
.ph .ph__icon { width: 44px; height: 44px; margin: 0 auto .9rem; opacity: .7; }
.ph small { display:block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dk); font-weight:600; margin-top:.7rem; }

/* floating badge on hero visual */
.floaty {
  position: absolute; background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  font-size: .9rem; font-weight: 500;
}
.floaty svg { width: 34px; height: 34px; color: var(--primary); flex: 0 0 auto; }
.floaty--tl { top: 8%; left: -6%; }
.floaty--br { bottom: 7%; right: -5%; }
@media (max-width: 560px){ .floaty--tl{left:4%} .floaty--br{right:4%} }

/* ---------- Section heading block ---------- */
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }
.section-head.center p { margin-inline: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-lt); color: var(--primary); margin-bottom: 1.3rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); }
.card p { margin-top: .7rem; color: var(--ink-soft); font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 600; color: var(--primary); font-size: .95rem; }
.card__link svg { width: 1em; height: 1em; transition: transform .3s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Value / trust row ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem 2.5rem; }
.value { display: flex; gap: 1rem; }
.value__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); line-height: 1; flex: 0 0 auto; }
.value h3 { font-size: var(--step-1); }
.value p { margin-top: .5rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem+4vw,5rem); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.checklist { display: grid; gap: .9rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; color: var(--primary); flex: 0 0 auto; margin-top: .15rem; }

/* ---------- Quote / testimonial ---------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.28; letter-spacing: -.01em; }
.quote figcaption { margin-top: 1.6rem; color: var(--ink-mute); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; }
.testimonial { background: var(--surface); border-radius: var(--radius); padding: 1.9rem; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.stars { display: flex; gap: .18rem; color: var(--accent); margin-bottom: 1rem; }
.stars svg { width: 18px; height: 18px; }
.testimonial p { font-size: 1.02rem; color: var(--ink); }
.testimonial cite { display: block; margin-top: 1.1rem; font-style: normal; font-weight: 600; font-size: .92rem; color: var(--ink-mute); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink);
}
.faq__q .plus { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .35s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content:""; position:absolute; inset:0; margin:auto; background: var(--primary); }
.faq__q .plus::before { width: 100%; height: 2px; }
.faq__q .plus::after { width: 2px; height: 100%; transition: transform .35s var(--ease); }
.faq__item.open .plus::after { transform: scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq__a-inner { padding-bottom: 1.5rem; color: var(--ink-soft); }
.faq__a-inner p + p { margin-top: .8rem; }

/* ---------- Info / contact ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem+3vw,4rem); }
@media (max-width: 820px){ .info-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--primary); }
.contact-line { display: flex; align-items: center; gap: .9rem; padding: .5rem 0; }
.contact-line svg { width: 22px; height: 22px; color: var(--primary); flex: 0 0 auto; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width:560px){ .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-lt);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-mute); }
.form__consent input { margin-top: .25rem; }
.form__note { font-size: .82rem; color: var(--ink-mute); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dk); color: #C9D6CF; padding-block: clamp(3.5rem,2rem+4vw,5.5rem) 2rem; }
.site-footer a { color: #C9D6CF; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.footer-brand + p { margin-top: 1rem; font-size: .95rem; color: #A9BBB2; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col li { margin-bottom: .7rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #91A399; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3rem,2rem+4vw,6rem) clamp(2rem,1rem+3vw,4rem); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { margin-top: 1.2rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose p, .prose ul { margin-top: 1rem; color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose li { margin-top: .4rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-top: 1.5rem; font-size: .95rem; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="2"] { transition-delay: .09s; }
[data-reveal][data-reveal="3"] { transition-delay: .18s; }
[data-reveal][data-reveal="4"] { transition-delay: .27s; }

/* ---------- Skip link / a11y ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color:#fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
