/* ===== NAVBAR RESET ===== */
.navbar-modern * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* ===== NAVBAR ===== */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid #eee;
  z-index: 9999;
}

/* ===== CONTAINER ===== */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.nav-brand img {
  height: 45px;
  flex-shrink: 0;
}

.nav-brand span {
  margin-left: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

/* ===== DESKTOP LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #c40000;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== BUTTON ===== */
.nav-cta {
  background: #c40000;
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
}

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.nav-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #333;
  left: 0;
  border-radius: 3px;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 10px;
}

.nav-toggle span:nth-child(3) {
  top: 20px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* ===== OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;
  z-index: 9980;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;

  background: #ffffff;

  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  border-top: 1px solid #eee;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);

  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;

  z-index: 9985;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.05rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;

  padding: 13px 12px;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background: #f7f7f7;
}

.mobile-menu .nav-cta {
  margin-top: 8px;
  background: #c40000;
  color: white !important;

  text-align: center;
  padding: 14px 16px;
  border-radius: 25px;

  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

}

/* ===== HANDY ===== */
@media (max-width: 600px) {

  .navbar-modern {
    height: 80px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .nav-brand img {
    height: 42px;
  }

  .nav-brand span {
    font-size: 0.95rem;
    margin-left: 10px;
    max-width: 210px;
  }

  .mobile-menu {
    top: 80px;
    padding: 20px;

    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .mobile-menu a {
    font-size: 1rem;
    padding: 13px 10px;
  }

}

/* ===== KLEINE HANDYS ===== */
@media (max-width: 420px) {

  .nav-container {
    padding: 0 16px;
  }

  .nav-brand img {
    height: 38px;
  }

  .nav-brand span {
    font-size: 0.85rem;
    max-width: 165px;
  }

}

/* ===== SEHR SCHMALE HANDYS ===== */
@media (max-width: 340px) {

  .nav-brand span {
    display: none;
  }

}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
}

.dropdown-menu a {
    display: block;
    padding: 11px 16px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #b30000;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}
