/* ============================================================
   Zahnarztpraxis Perla — Haupt-Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --dental-dark: #444444;
  --dental-dark-alt: #3a3a3a;
  --dental-gold: #f2e076;
  --dental-gold-alt: #eddb5f;
  --dental-white: #f7fbfc;
  --dental-grey: #a39c85;
  --dental-grey-light: #cddce2;
  --radius: 0.9rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dental-dark);
  color: var(--dental-white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
p { margin: 0 0 1em; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--dental-dark-alt); }
.text-center { text-align: center; }
.gold { color: var(--dental-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dental-gold), var(--dental-gold-alt));
  color: #262421;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, filter .25s ease;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(242,224,118,.45), 0 0 55px rgba(242,224,118,.25);
  filter: brightness(1.05);
}
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-outline {
  background: var(--dental-dark);
  color: var(--dental-gold);
  border: 1px solid rgba(242,224,118,.35);
}
.btn-outline:hover { background: rgba(242,224,118,.1); }
.btn-block { width: 100%; justify-content: center; padding: 1.1rem; border-radius: 999px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dental-dark);
  border-bottom: 1px solid rgba(163,156,133,.2);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.5rem;
  gap: 1rem;
}

/* Logo lockup with pulsing heart behind it */
.logo-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}
.logo-heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
  animation: heartPulse 1.8s ease-in-out infinite;
  transform-origin: center;
}
.logo-heart .heart-shape { fill: var(--dental-gold); opacity: .35; }
.logo-heart .heart-line {
  fill: none;
  stroke: var(--dental-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: heartLineDraw 3s linear infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.14); opacity: .65; }
}
@keyframes heartLineDraw {
  0% { stroke-dashoffset: 340; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.logo-img {
  position: relative;
  z-index: 2;
  height: 68px;
  width: auto;
  max-height: 68px;
  animation: logoSpin 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(242,224,118,.25));
  transition: filter .3s ease;
}
.logo-lockup:hover .logo-img {
  filter: drop-shadow(0 0 22px rgba(242,224,118,.55));
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-img, .logo-heart, .logo-heart .heart-line { animation: none !important; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .brand-name { font-family: 'Outfit',sans-serif; font-weight: 900; font-size: 1.35rem; color: var(--dental-gold); letter-spacing: .02em; }
.brand-text .brand-sub { font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .2em; color: rgba(247,251,252,.8); }

nav.main-nav { display: flex; align-items: center; gap: 2rem; }
nav.main-nav a {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(247,251,252,.9);
  padding-bottom: 6px;
  transition: color .3s ease;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--dental-gold);
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--dental-gold); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  background: none; border: none; color: var(--dental-white);
  cursor: pointer; padding: .5rem;
}
.mobile-toggle:hover { color: var(--dental-gold); }
.mobile-nav { display: none; padding: 1rem 0; border-top: 1px solid rgba(247,251,252,.1); }
.mobile-nav a { display: block; padding: .75rem 0; font-weight: 500; color: rgba(247,251,252,.9); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--dental-gold); }
.mobile-nav.open { display: block; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dental-dark);
}
.hero-glow-a, .hero-glow-b {
  position: absolute;
  width: 24rem; height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  background: rgba(242,224,118,.1);
  animation: floatGlow 6s ease-in-out infinite;
}
.hero-glow-a { top: 15%; right: 12%; }
.hero-glow-b { bottom: 10%; left: 10%; background: rgba(242,224,118,.08); animation-delay: 1s; }
@keyframes floatGlow { 0%,100%{ opacity:.6; transform: scale(1);} 50%{ opacity:1; transform: scale(1.15);} }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; padding: 5rem 0; position: relative; z-index: 1; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-bullets { display: flex; flex-direction: column; gap: .6rem; margin: 1.5rem 0 2rem; }
.hero-bullets span { display: flex; align-items: center; gap: .6rem; color: var(--dental-gold); font-weight: 600; font-size: 1.05rem; }
.hero-bullets .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dental-gold); flex-shrink: 0; }

.hero-img-wrap { position: relative; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.4); }
.hero-img-wrap img { transition: transform .6s ease; }
.hero-img-wrap:hover img { transform: scale(1.05); }
.hero-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(68,68,68,.3), transparent);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ---------- Feature / Service cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 992px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.feature-card {
  background: var(--dental-dark);
  border: 1px solid rgba(247,251,252,.1);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all .3s ease;
}
.feature-card:hover { border-color: rgba(242,224,118,.5); transform: translateY(-6px); }
.feature-card .icon { color: var(--dental-gold); margin-bottom: 1rem; }
.feature-card .icon svg { width: 32px; height: 32px; }

.service-card {
  position: relative;
  background: var(--dental-dark-alt);
  border: 1px solid rgba(163,156,133,.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--dental-gold), var(--dental-gold-alt));
  opacity: 0; transition: opacity .3s ease;
}
.service-card:hover { border-color: rgba(242,224,118,.5); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.service-card:hover::before { opacity: 1; }
.service-card h3 { transition: color .3s ease; }
.service-card:hover h3 { color: var(--dental-gold); }

/* team card */
.team-card { background: var(--dental-dark-alt); border: 1px solid rgba(163,156,133,.2); border-radius: 1.25rem; overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column; }
.team-card:hover { border-color: rgba(242,224,118,.5); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.team-card .img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--dental-dark); }
.team-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.team-card:hover .img-wrap img { transform: scale(1.1); }
.team-card .body { padding: 1.5rem; flex: 1; }
.team-card .role { color: var(--dental-gold); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.team-card h3 { font-size: 1.05rem; transition: color .3s ease; }
.team-card:hover h3 { color: var(--dental-gold); }

.service-img { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: .85rem; overflow: hidden; margin-bottom: 1rem; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }

/* FAQ accordion */
.faq-item { border: 1px solid rgba(247,251,252,.1); border-radius: .6rem; overflow: hidden; margin-bottom: 4px; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; background: var(--dental-dark); border: none; cursor: pointer;
  color: rgba(247,251,252,.9); font-size: .88rem; text-align: left; font-family: inherit;
  transition: background .2s ease;
}
.faq-q:hover { background: #3d3d3d; }
.faq-q svg { flex-shrink: 0; color: var(--dental-gold); transition: transform .3s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: var(--dental-dark); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 1rem 1rem; font-size: .85rem; color: rgba(247,251,252,.7); border-top: 1px solid rgba(247,251,252,.05); padding-top: .75rem; }

/* ---------- Contact section ---------- */
.info-card, .form-card { background: var(--dental-dark-alt); border: 1px solid rgba(247,251,252,.1); border-radius: 1.25rem; padding: 2rem; }
.info-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row .icon-box { padding: .75rem; background: var(--dental-dark); border-radius: .85rem; flex-shrink: 0; color: var(--dental-gold); transition: all .3s ease; }
.info-row:hover .icon-box { background: rgba(242,224,118,.12); transform: scale(1.08) rotate(-4deg); }
.map-wrap { height: 320px; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.3); border: 1px solid rgba(247,251,252,.1); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

form .field { margin-bottom: 1.3rem; }
form label { display: block; font-size: .88rem; font-weight: 500; color: rgba(247,251,252,.9); margin-bottom: .5rem; }
form .hint { font-size: .75rem; color: rgba(247,251,252,.5); margin: -.25rem 0 .5rem; }
form input[type=text], form input[type=email], form input[type=tel], form select, form textarea {
  width: 100%; padding: .65rem .85rem; border-radius: .55rem;
  background: var(--dental-dark); border: 1px solid rgba(247,251,252,.2);
  color: var(--dental-white); font-family: inherit; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
form input::placeholder, form textarea::placeholder { color: rgba(247,251,252,.4); }
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--dental-gold); box-shadow: 0 0 0 3px rgba(242,224,118,.25);
}
.grid-name { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width:560px){ .grid-name{ grid-template-columns: 1fr 1fr; } }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 6rem; border-radius: .85rem; border: 2px dashed rgba(247,251,252,.3);
  background: var(--dental-dark); cursor: pointer; transition: all .3s ease;
}
.file-drop:hover { border-color: rgba(242,224,118,.5); background: rgba(242,224,118,.05); }
.file-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.file-list .file-chip { display:flex; align-items:center; justify-content:space-between; padding:.5rem .75rem; border-radius:.5rem; background:var(--dental-dark); border:1px solid rgba(247,251,252,.1); font-size:.85rem; }
.file-list button { background:none; border:none; color: rgba(247,251,252,.6); cursor:pointer; }
.required { color: var(--dental-gold); }

.form-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: .6rem; font-size: .9rem; display:none; }
.form-msg.success { display:block; background: rgba(120,200,140,.15); color:#9fe3b0; border:1px solid rgba(120,200,140,.35); }
.form-msg.error { display:block; background: rgba(220,90,90,.15); color:#f3a9a9; border:1px solid rgba(220,90,90,.35); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--dental-dark); border-top: 1px solid rgba(247,251,252,.1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-grid h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dental-gold); margin-bottom: 1rem; }
.footer-contact-row { display:flex; align-items:flex-start; gap:.65rem; margin-bottom:.7rem; font-size:.9rem; color: rgba(247,251,252,.9); }
.footer-contact-row svg { color: var(--dental-gold); flex-shrink:0; margin-top:2px; }
.footer-bottom { border-top: 1px solid rgba(247,251,252,.1); padding: 1.75rem 0; display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; }
.footer-bottom p { margin:0; font-size:.85rem; color: rgba(247,251,252,.6); }
.footer-links { display:flex; gap:1.5rem; }
.footer-links a { font-size:.85rem; color: rgba(247,251,252,.8); transition: color .2s ease; }
.footer-links a:hover { color: var(--dental-gold); }

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.25rem; }
.legal-content p { color: rgba(247,251,252,.85); }
.legal-content .note { font-size: .85rem; color: rgba(247,251,252,.55); font-style: italic; border-top: 1px solid rgba(247,251,252,.1); padding-top: 1.25rem; margin-top: 2rem; }

/* Utility hover-glow used across cards / buttons */
.golden-glow-hover { transition: box-shadow .3s ease; }
.golden-glow-hover:hover { box-shadow: 0 0 25px rgba(242,224,118,.4), 0 0 55px rgba(242,224,118,.2); }

/* Toast */
#toast-wrap { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 999; display: flex; flex-direction: column; gap: .6rem; }
.toast { min-width: 260px; max-width: 340px; padding: .9rem 1.1rem; border-radius: .7rem; font-size: .88rem;
  background: var(--dental-dark-alt); border: 1px solid rgba(247,251,252,.15); color: var(--dental-white);
  box-shadow: 0 15px 35px rgba(0,0,0,.35); animation: toastIn .3s ease; }
.toast.success { border-color: rgba(120,200,140,.5); }
.toast.error { border-color: rgba(220,90,90,.5); }
@keyframes toastIn { from { opacity:0; transform: translateY(-10px);} to { opacity:1; transform: translateY(0);} }
