/* ═══════════════════════════════════════════════════════════
   Zahnärzte Neustadt Passage — style.css
   Design-Inspiration: gantenbein.qsdesigns.de
   CI: #5fa0d6 (Hellblau)
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --blue:         #5fa0d6;
  --blue-dark:    #3a7ab0;
  --blue-light:   #a3c9e8;
  --blue-bg:      #eef5fb;
  --dunkel:       #2c3e50;
  --grau:         #5a5a5a;
  --grau-hell:    #8a8a8a;
  --weiss:        #ffffff;
  --border:       #e5edf3;

  --color-primary:       #5fa0d6;
  --color-primary-dark:  #3a7ab0;
  --color-primary-light: #a3c9e8;
  --color-primary-bg:    #eef5fb;
  --color-dark:          #2c3e50;
  --color-muted:         #5a5a5a;

  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:    2px;
  --max-w:     1240px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.6;
  width: 100%;
  position: relative;
}

/* ── TYPO ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--dunkel);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }
p, li { font-size: clamp(0.95rem, 1.4vw, 1.02rem); line-height: 1.75; color: var(--grau); }

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img, video { display: block; max-width: 100%; height: auto; }

/* ── SECTION-TAG (Gantenbein-Style) ───────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--blue);
}

/* ── BTN ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  transition: all .3s ease;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--outline {
  background: transparent;
  color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }

.btn--light {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ── FADE-UP ────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.nav.scrolled {
  padding: 14px 40px;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  height: 56px;
  transition: height .3s ease;
}
.nav.scrolled .nav-logo { height: 48px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dunkel);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-menu a:hover { color: var(--blue); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' ›';
  font-size: 0.75rem;
  margin-left: 4px;
  color: var(--blue);
  transform: rotate(90deg);
  display: inline-block;
  transition: transform .3s ease;
}
.nav-dropdown:hover > a::after { transform: rotate(90deg) translateX(2px); }

.nav-dropdown::before {
  /* Bridge — verhindert dass Dropdown zu früh schließt */
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  list-style: none;
}
.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 10px 24px;
  font-size: 0.88rem;
  color: var(--dunkel);
  letter-spacing: 0.01em;
}
.dropdown-panel a:hover {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Sprachumschalter + CTA-Btn */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.lang-switch a { color: var(--grau-hell); }
.lang-switch a.active { color: var(--dunkel); font-weight: 500; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch span { color: var(--border); }

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .3s ease;
}
.nav-cta:hover { background: var(--blue-dark); color: #fff; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dunkel);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Mobile-Overlay standardmäßig versteckt (auf allen Bildschirmgrößen) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  padding: 80px 32px 40px;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }

@media (max-width: 1024px) {
  .nav { padding: 16px 20px; }
  .nav-menu, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
  }
  .nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-mobile > ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    color: var(--dunkel);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile .dropdown-panel-mobile {
    padding: 8px 0 16px 20px;
    list-style: none;
  }
  .nav-mobile .dropdown-panel-mobile a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--grau);
  }
  .nav-mobile .lang-switch {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .nav-mobile .nav-cta {
    margin-top: 20px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.30)),
    url('../images/gallery/hero.webp') center 30%/cover no-repeat;
  color: #fff;
  padding: 120px 40px 80px;
}
.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: #fff;
}
.hero h1 {
  color: #fff;
  font-weight: 300;
  max-width: 820px;
  margin-bottom: 1.8rem;
}
.hero h1 strong { font-weight: 500; }
.hero-sub {
  color: #f0f4f8;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 2.4rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .3s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: #fff;
  margin: 12px auto 0;
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 120px 40px;
}
.section .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Intro */
.section-intro { padding: 140px 40px 100px; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-text h2 { margin-bottom: 1.5rem; }
.intro-text p { margin-bottom: 1.2rem; }
.intro-text .btn { margin-top: 1.5rem; }
.intro-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.intro-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Behandlungen-Section */
.section-behandlungen {
  background: var(--blue-bg);
}
.behandlungen-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.behandlungen-header h2 { margin-bottom: 1rem; }
.behandlungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.behandlung-card {
  background: #fff;
  padding: 40px 28px;
  transition: all .35s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
}
.behandlung-card:hover {
  background: var(--blue);
  color: #fff;
}
.behandlung-card:hover h3,
.behandlung-card:hover .behandlung-num { color: #fff; }
.behandlung-card:hover .behandlung-arrow { color: #fff; transform: translateX(4px); }
.behandlung-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 16px;
  transition: color .3s ease;
}
.behandlung-card h3 {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: auto;
  padding-bottom: 24px;
  transition: color .3s ease;
}
.behandlung-arrow {
  font-size: 1.4rem;
  color: var(--blue);
  transition: all .3s ease;
}

/* Team-Section */
.team-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}
.team-header h2 { margin-bottom: 1rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--blue-bg);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-bg);
}
.team-photo.placeholder svg { width: 60px; height: 60px; color: var(--blue-light); }

.team-name {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--dunkel);
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 0.05em;
}

/* Galerie-Section */
.section-galerie {
  background: var(--blue-bg);
  padding: 120px 40px;
}
.galerie-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.galerie-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}
.galerie-item.wide { grid-column: span 2; aspect-ratio: 2; }
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.galerie-item:hover img { transform: scale(1.06); }

/* Kontakt-Section */
.section-kontakt {
  background: var(--dunkel);
  color: #fff;
  padding: 100px 40px;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.kontakt-header h2 { color: #fff; margin-bottom: 1.5rem; }
.kontakt-header p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.kontakt-info {
  display: grid;
  gap: 24px;
}
.kontakt-block h4 {
  color: var(--blue-light);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kontakt-block p, .kontakt-block a {
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
}
.kontakt-block a:hover { color: var(--blue-light); }

.notfall-box {
  background: var(--blue);
  padding: 40px 32px;
  color: #fff;
}
.notfall-box h3 { color: #fff; margin-bottom: 1rem; }
.notfall-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.notfall-box .btn { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: #1a252f;
  color: rgba(255,255,255,0.6);
  padding: 60px 40px 30px;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--blue-light); }
.footer-logo {
  height: 56px;
  background: #fff;
  padding: 8px 14px;
  margin-bottom: 20px;
  display: inline-block;
  width: auto;
  border-radius: 0;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════
   STICKY CTA (Floating rechts)
   ═══════════════════════════════════════════════════════════ */
.floating-cta {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.floating-cta.visible { display: flex; }
.floating-cta-btn {
  width: 52px; height: 52px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(95,160,214,0.4), 0 2px 6px rgba(0,0,0,0.12);
  transition: all .25s ease;
}
.floating-cta-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.08);
  color: #fff;
}
.floating-cta-btn svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .floating-cta {
    right: 16px;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section, .section-intro { padding: 80px 24px; }
  .hero { padding: 100px 24px 60px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-img { aspect-ratio: 4/3; max-width: 600px; margin: 0 auto; }
  .behandlungen-grid, .galerie-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section, .section-intro { padding: 70px 20px; }
  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .behandlungen-grid { grid-template-columns: 1fr 1fr; }
  .galerie-grid { grid-template-columns: 1fr 1fr; }
  .galerie-item.wide { grid-column: span 2; aspect-ratio: 2; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
