/* =====================================================================
   Zahnarztpraxis Dr. med. dent. Birgel – Meerbusch-Büderich
   Stylesheet (lokal gehostet, keine externen Ressourcen)
   Farbwelt: warmes Off-White, Creme, Greige, Beige, Taupe, gedämpftes
   Salbei; Text in dunklem Anthrazit. Viel Weißraum, dezente Rundungen,
   keine schweren Schatten.
   ===================================================================== */

/* --- Design-Tokens ------------------------------------------------- */
:root {
  --bg:        #F6F3EE;   /* warmes Off-White (= theme-color)        */
  --bg-alt:    #FBFAF6;   /* etwas hellere Sektionsfläche            */
  --cream:     #EFEAE1;
  --greige:    #E5DFD3;
  --beige:     #DBD0BF;
  --taupe:     #9A9080;   /* gedämpft, für feine Labels/Meta         */
  --line:      #E3DCCF;   /* Haarlinien / Rahmen                     */
  --sage:      #7C8B78;   /* gedämpftes Salbei – Akzent, sehr sparsam*/
  --sage-deep: #55614F;   /* dunkleres Salbei – Buttons/Links        */
  --ink:       #2A2926;   /* dunkles Anthrazit – Fließtext/Headlines */
  --ink-soft:  #57524A;   /* gedämpfter Text                         */

  --radius:    12px;
  --radius-sm: 8px;

  --shadow-soft: 0 1px 2px rgba(42, 41, 38, .04),
                 0 8px 24px rgba(42, 41, 38, .05);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Elegante, warme Serifen-Schrift für Überschriften – rein aus
     System-Fonts, damit keine externe Schrift geladen werden muss.  */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  /* Klare System-Sans für Fließtext und Bedienelemente.             */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* ~17px, gut lesbar */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Sichtbarer, ruhiger Fokusring – gut für Tastaturbedienung */
:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Für Screenreader – z. B. Skip-Link */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Layout-Hilfen ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}
/* Kurze Salbei-Keyline vor dem Eyebrow – dezente Wiedererkennung */
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sage);
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section-intro { max-width: 64ch; color: var(--ink-soft); }

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: .95rem 1.6rem;
  min-height: 48px;             /* großzügige Touch-Fläche */
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.btn-primary {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}
.btn-primary:hover { background: #454f40; border-color: #454f40; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--taupe); color: var(--ink); background: rgba(255,255,255,.4); }

.btn-block { width: 100%; }

/* --- Kopfbereich / Navigation -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(42,41,38,.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand span { display: block; font-size: .72rem; font-family: var(--font-body);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--taupe); margin-top: .1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: .4rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--sage-deep); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.nav-phone:hover { border-color: var(--taupe); color: var(--ink); }
.nav-phone svg { width: 17px; height: 17px; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.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); }

/* Mobile Navigation */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: .95rem .2rem; font-size: 1.05rem; }
  .nav-phone { margin-top: 1.1rem; justify-content: center; padding: .9rem; min-height: 48px; }
}

/* --- Hero ---------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Auf Mobil zuerst das Bild, dann Text? Nein: Text zuerst, damit
     die Kernbotschaft und die Telefon-Buttons oben stehen.          */
  .hero-figure img { aspect-ratio: 3 / 3.4; }
}

/* --- Zwei-Spalten-Textblock (Willkommen / Über die Zahnärztin) ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img,
.split-media .ph-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pull-quote {
  margin-top: 1.6rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--sage);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}
.signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 1.4rem;
}
.signature small { display:block; font-family: var(--font-body); font-size:.85rem;
  letter-spacing:.08em; text-transform:uppercase; color: var(--taupe); margin-top:.2rem; }

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split--reverse .split-media { order: 0; }
}

/* Elegante, klar beschriftete Bild-Platzhalter (wo noch kein echtes
   Foto vorliegt). Später einfach durch <img> ersetzen.              */
.ph-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background:
    repeating-linear-gradient(135deg,
      var(--greige) 0, var(--greige) 14px,
      var(--cream) 14px, var(--cream) 28px);
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}
.ph-img span {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--taupe);
}
.ph-img small { font-size: .8rem; max-width: 26ch; }

/* --- Leistungen ---------------------------------------------------- */
.services-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  height: 100%;
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.service-num {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--sage);
  display: block;
  margin-bottom: .9rem;
}
.services-foot {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}
.services-foot p { margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

/* --- Praxis (drei Bilder) ------------------------------------------ */
.praxis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.praxis-grid img,
.praxis-grid .ph-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 780px) { .praxis-grid { grid-template-columns: 1fr; } }

/* --- Kontakt / Sprechzeiten ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { margin-bottom: 2rem; }
.info-block h3 { font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); margin-bottom: .6rem; }
.info-block address { font-style: normal; line-height: 1.65; }
.info-block a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-block a:hover { color: var(--sage-deep); text-decoration: underline; }

.hours {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.hours .day { color: var(--ink-soft); }
.hours .time { font-weight: 600; }
.hours-note { color: var(--ink-soft); font-size: .95rem; margin-top: 1rem; }

/* --- Kontaktformular ----------------------------------------------- */
.form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .45rem;
}
.form-field .req { color: var(--sage-deep); }

.form-control {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { min-height: 150px; resize: vertical; line-height: 1.6; }
.form-control:hover { border-color: var(--taupe); }
.form-control:focus-visible {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 30%, transparent);
}
.form-control[aria-invalid="true"] { border-color: #b4433a; }

.field-hint { font-size: .88rem; color: var(--ink-soft); margin-top: .45rem; }
.char-count { font-size: .82rem; color: var(--taupe); text-align: right; margin-top: .35rem; }
.field-error { display: none; color: #b4433a; font-size: .88rem; margin-top: .4rem; }
.field-error.is-visible { display: block; }

/* Freundlicher Hinweis am Nachrichtenfeld – keine Gesundheitsdaten */
.notice-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* Datenschutz-Checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  accent-color: var(--sage-deep);
  cursor: pointer;
}
.consent label { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }

/* Honeypot – für echte Nutzer unsichtbar, für viele Bots aber ausfüllbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Statusmeldungen (Erfolg / Fehler) */
.form-status { display: none; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; }
.form-status.is-visible { display: block; }
.form-status h3 { font-family: var(--font-display); margin-bottom: .4rem; }
.form-status p { margin: 0; }
.form-status--success { background: color-mix(in srgb, var(--sage) 16%, #fff); border: 1px solid var(--sage); }
.form-status--error   { background: #fbeeec; border: 1px solid #d9a49d; color: #7a332b; }
.form-status--error h3 { color: #7a332b; }

/* --- Anfahrt ------------------------------------------------------- */
.route-card {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.route-card address { font-style: normal; line-height: 1.6; }

/* --- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #d9d4cc;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #a8a297; }
.footer-contact { margin-top: 1.1rem; line-height: 1.75; font-style: normal; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #a8a297;
  font-size: .88rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* --- Datenschutz-Hinweisbanner (kein Consent-Banner) --------------- */
.privacy-notice {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  transform: translateX(-50%);
  width: min(680px, calc(100% - 2rem));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.25rem;
  z-index: 200;
  display: none;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.privacy-notice.is-visible { display: flex; }
.privacy-notice p { margin: 0; font-size: .92rem; color: var(--ink-soft); flex: 1 1 320px; }
.privacy-notice .pn-actions { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; }
.privacy-notice .pn-actions a { font-weight: 600; text-decoration: none; }
.privacy-notice .pn-actions a:hover { text-decoration: underline; }
.privacy-notice .btn { padding: .6rem 1.3rem; min-height: 42px; }

@media (prefers-reduced-motion: no-preference) {
  .privacy-notice.is-visible { animation: pn-in .3s ease both; }
  @keyframes pn-in { from { opacity: 0; transform: translate(-50%, 12px); }
                     to   { opacity: 1; transform: translate(-50%, 0); } }
}

/* --- Sanfte Scroll-Reveals (nur wenn erlaubt) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* --- Rechtsseiten (Impressum / Datenschutz) ------------------------ */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal .placeholder {
  background: #fbeec8;
  border: 1px dashed #d8b24a;
  border-radius: var(--radius-sm);
  padding: .2rem .5rem;
  color: #7a5a12;
  font-weight: 600;
}
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 3rem; font-weight: 600; text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
