nav {
  background-color: #b30000;
  margin-top: 0;
  border-top: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 50px;
  font-family: "Inter", sans-serif;
}

.nav-home svg {
  fill: #fff;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.nav-home svg:hover {
  transform: scale(1.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav-links a,
.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.dropdown-toggle:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #b30000;
  padding: 12px 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  flex-direction: column;
}

.dropdown-menu a {
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  border-radius: 4px;
}

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

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

.submenu > a:hover,
.submenu-items a:hover {
  background-color: #990000;
  transform: scale(1.05);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 0;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.search-form input[type="text"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  width: 380px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
  min-height: 34px;
}

.search-form button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icons svg {
  fill: #fff;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.nav-icons svg:hover {
  transform: scale(1.15);
}

.search-form {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 380px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 2000;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #eee;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background-color: #f7f7f7;
}

.search-dropdown-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-dropdown-item span {
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

.search-dropdown-item small {
  display: block;
  font-size: 12px;
  color: #666;
}

.such-hinweis {
  color: #b30000;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

/* =========================
   BURGER + MOBILE NAV
========================= */

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 1050px) {

  /* Burger sichtbar */
  .burger {
    display: block;
  }

  /* === NAV-LINKS ALS SEITENMENÜ === */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; /* Höhe deiner Nav-Leiste */
    left: 0;
    height: calc(100vh - 70px);
    width: 320px; /* feste Breite, optional 100% */
    background: #b30000;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 6px 0 18px rgba(0,0,0,0.25);
  }

  /* Burger geöffnet */
  .nav-links.active {
    display: flex;
  }

  /* Hauptlinks */
  .nav-links > .dropdown > .dropdown-toggle {
    width: 100%;
    padding: 14px 20px;
    text-align: left;
    font-size: 16px;
  }

  /* === DROPDOWNS IM BURGER IMMER SICHTBAR === */
  .dropdown-menu {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0 0 10px 0;
    margin: 0;
  }

  .dropdown-menu .submenu a {
    padding: 10px 36px;
    font-size: 14px;
    color: #ffeaea;
  }

  .dropdown-menu .submenu a:hover {
    background: rgba(255,255,255,0.18);
  }

  /* Kein Hover-Effekt im Burger */
  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  /* Suche optional schmaler */
  .search-form input {
    width: 220px;
  }
}

@media (max-width: 1050px) {

  /* NAV-LINKS sauber links ausrichten */
  .nav-links {
    align-items: stretch;          /* KEIN Zentrieren */
    padding-left: 0;
  }

  /* === OBERTHEMEN === */
  .nav-links > .dropdown {
    margin-bottom: 22px;           /* Abstand zwischen Themen */
  }

  .nav-links > .dropdown > .dropdown-toggle {
    padding: 14px 22px;
    font-weight: 600;              /* klar als Oberthema */
    text-align: left;
    transform: none;               /* kein Skalieren */
  }

  .nav-links > .dropdown > .dropdown-toggle:hover {
    transform: none;
    background: rgba(255,255,255,0.15);
  }

  /* === UNTERTHEMEN === */
  .dropdown-menu {
    padding: 6px 0 0 0;
  }

  .dropdown-menu .submenu a {
    padding: 8px 22px 8px 42px;     /* EINRÜCKUNG */
    font-size: 14px;
    opacity: 0.95;
  }

  /* Abstand NACH Unterthemen */
  .dropdown-menu::after {
    content: "";
    display: block;
    height: 10px;
  }

}
