/* =========================================================
   Zahnarztpraxis Dr. Beck — v2 modern design
   ========================================================= */

:root {
  --navy: #262a5e;
  --navy-deep: #1d2050;
  --navy-soft: #3a3f7d;
  --accent: #f6d9d3;      /* soft blush */
  --accent-2: #eab4a8;    /* warm rose */
  --cream: #faf7f4;
  --ink: #1c1e33;
  --muted: #6b6e86;
  --white: #ffffff;
  --line: rgba(38, 42, 94, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(38, 42, 94, 0.45);
  --shadow-soft: 0 12px 40px -20px rgba(38, 42, 94, 0.35);
  --maxw: 1200px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-accent { background: var(--accent-2); color: var(--navy); }
.btn-accent:hover { background: #e39f90; color: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb857; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
}
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .pre { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brand-text .suf { font-size: 1.15rem; font-weight: 600; color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-weight: 500; color: var(--navy); font-size: 0.98rem; }
.nav-links a:hover { color: var(--accent-2); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0.6rem 0; }
.mobile-menu a { display: block; padding: 0.85rem clamp(1.2rem, 4vw, 3rem); font-weight: 500; }
.mobile-menu a:hover { background: rgba(38,42,94,0.05); }

/* ---------- Hero (split screen) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 76px);
}
.hero-left {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 6rem);
}
.hero-left .eyebrow { color: var(--accent-2); }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-whatsapp { display: none; }

.hero-right {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
}
.hero-card {
  width: 100%;
  max-width: 460px;
}
.hero-card figure { margin: 0; }
.hero-card .photo-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-card .photo.is-active { opacity: 1; }
.hero-card .caption {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 3px solid var(--navy);
}
.hero-card .caption .name { font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.hero-card .caption .role { color: var(--navy-soft); font-weight: 500; font-size: 0.95rem; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.section-alt { background: #fff; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid .lede { font-size: 1.05rem; color: var(--ink); }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.stats { display: flex; gap: 2.4rem; margin-top: 2rem; flex-wrap: wrap; }
.stat .num { font-size: 2rem; font-weight: 600; color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .body { padding: 1.5rem 1.5rem 1.7rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Appointment */
.appointment {
  background: var(--navy);
  color: #fff;
}
.appointment .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.appointment h2 { color: #fff; }
.appointment .intro { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.appointment .contact-quick { margin-top: 1.5rem; }
.appointment .contact-quick a { color: var(--accent); font-weight: 600; font-size: 1.15rem; }

.form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}
.form-field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border .2s ease, background .2s ease;
}
.form-field input::placeholder { color: rgba(255,255,255,0.45); }
.form-field input:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.14);
}
.form-field input.missing { border-color: #ff8f8f; background: rgba(255,120,120,0.12); }
.form-note { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }
.form-note a { color: var(--accent); }
.alert { padding: 0.9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: 0.95rem; }
.alert-error { background: rgba(255,120,120,0.15); border: 1px solid rgba(255,120,120,0.4); color: #ffd9d9; }
.alert-success { background: rgba(120,220,160,0.15); border: 1px solid rgba(120,220,160,0.4); color: #d6ffe6; }
.alert a { color: #fff; font-weight: 600; text-decoration: underline; }
.alert a:hover { color: var(--accent); }
.form-card .btn-accent { width: 100%; justify-content: center; }

/* Contact + hours */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.info-list .k { font-weight: 600; color: var(--navy); display: block; }
.info-list .v { color: var(--muted); }
.info-list .v a { color: var(--muted); }
.info-list .v a:hover { color: var(--accent-2); }

.hours-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.hours-card h3 { margin-bottom: 1.2rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .day { font-weight: 600; color: var(--navy); width: 40%; }
.hours-table .slot { color: var(--muted); text-align: right; }
.hours-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.hours-note:first-of-type { margin-top: 1.3rem; font-weight: 600; color: var(--navy); }

#kontakt { padding-bottom: 0; }
.map-wrap { margin-top: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.map-link {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.map-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3406 / 1016;
}
.map-cta {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.map-link:hover .map-cta,
.map-link:focus-visible .map-cta {
  opacity: 1;
  transform: translateY(0);
}
.map-link:hover .map-cta { background: var(--navy-deep); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--accent); }
.impressum { line-height: 1.8; }
.impressum-details { margin-top: 1rem; }
.impressum-details summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.impressum-details .imp-body { margin-top: 1rem; color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-bottom { padding-top: 1.8rem; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; }
  .hero-more { display: none; }
  .hero-whatsapp { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .appointment .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline,
  .nav-cta .btn-whatsapp { display: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
