/* =============================================
   SHARED NAVIGATION — alle Seiten
============================================= */


#nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(10,35,66,.12);
  padding: 12px 0;
  transition: box-shadow .3s ease, padding .3s ease;
}

/* index.html: fixed, da Hero darunter liegt */
#nav.nav-fixed {
  position: fixed;
}
#nav.nav-fixed.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(10,35,66,.18);
}

#nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .3s ease;
}
#nav.scrolled .nav-logo img { height: 52px; }

/* Menü */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu > li > a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px; font-weight: 500;
  color: #0f2035;
  padding: 8px 14px;
  border-radius: 6px;
  display: block;
  white-space: nowrap;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}
.nav-menu > li > a:hover  { background: #e8f0fb; color: #1a4480; }
.nav-menu > li > a.active { color: #1a4480; font-weight: 600; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(10,35,66,.18);
  min-width: 200px;
  padding: 8px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #0f2035;
  border-radius: 6px;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}
.dropdown li a:hover { background: #e8f0fb; color: #1a4480; }

/* CTA */
.nav-cta { display: flex; align-items: center; flex-shrink: 0; }
.btn-nav {
  background: #1a4480;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600; font-size: 13px;
  border: 2px solid #1a4480;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease;
}
.btn-nav:hover { background: #0a2342; border-color: #0a2342; color: #ffffff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #0a2342; border-radius: 2px;
  transition: .3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: #ffffff;
  z-index: 999;
  padding: 80px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 24px; color: #0f2035;
  background: none; border: none; cursor: pointer;
}

/* Accordion items */
.mob-item {
  border-bottom: 1px solid #e2e8f0;
}
.mob-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  font-size: 17px; font-weight: 500;
  color: #0f2035;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  text-align: left;
}
.mob-toggle i {
  font-size: 13px; color: #64748b;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.mob-item.open .mob-toggle { color: #1a4480; }
.mob-item.open .mob-toggle i { transform: rotate(180deg); }

.mob-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mob-item.open .mob-sub { max-height: 400px; }
.mob-sub a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 15px; font-weight: 400;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid #f4f6f9;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: color .2s;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { color: #1a4480; }

/* Direct link (no sub) */
.mob-direct {
  display: block;
  padding: 16px 0;
  font-size: 17px; font-weight: 500;
  color: #0f2035;
  text-decoration: none;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: color .2s;
}
.mob-direct:hover { color: #1a4480; }

/* Phone link */
.mob-phone {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px;
  padding: 14px 20px;
  background: #e8f0fb;
  border-radius: 8px;
  font-size: 16px; font-weight: 600;
  color: #1a4480 !important;
  text-decoration: none;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Responsive — Tablet: Hamburger greift, CTA bleibt sichtbar */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { height: 52px; }
  #nav.scrolled .nav-logo img { height: 52px; }
}

/* Mobile: CTA zusätzlich ausblenden */
@media (max-width: 768px) {
  .nav-cta { display: none; }
}

/* =============================================
   SCROLL PROGRESS BAR
============================================= */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 0%;
  height: 3px;
  background: #c9971c;
  z-index: 2000;
  pointer-events: none;
  transition: width .08s linear;
}

/* =============================================
   SCROLL FADE-IN
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}
