/* =====================================================
   HEADER LAYOUT – STABLE VERSION
   ===================================================== */

/* Grundstruktur */
.header-top {
  display: flex;
  align-items: center;
}

/* Logo darf nie umbrechen */
.header-brand a {
  white-space: nowrap;
}

/* =====================================================
   DESKTOP (≥ 992px)
   ===================================================== */

@media (min-width: 992px) {

  /* Bootstrap Container NICHT zerstören */
  .header .container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .header-top {
    justify-content: space-between;
  }

  /* 3 Zonen per flex */
  .header-brand {
    flex: 0 0 25%;
  }

  .header-search {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
  }

  .header-search form {
    width: 500px;
    max-width: 100%;
  }

  .header-actions {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
  }

}

/* =====================================================
   MOBILE (< 992px)
   ===================================================== */

@media (max-width: 991px) {

  .header-top {
    justify-content: space-between;
  }

  .header-brand,
  .header-actions {
    flex: 0 0 auto;
  }

  .header-search {
    display: none;
  }

  .navbar-toggler {
    display: block;
    margin-left: 1rem;
  }

}

/* ========================================
   DESKTOP – Hauptmenü horizontal
   ======================================== */

@media (min-width: 992px) {

  #mainMenu {
    display: block !important;
  }

  #mainMenu > nav > ul,
  #mainMenu > ul {
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  #mainMenu li {
    display: block;
  }

}

/* =====================================================
   MENÜ & LISTEN RESET
   ===================================================== */

.header ul,
.header li,
#mainMenu ul,
#mainMenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Header-Actions horizontal */
.header-actions ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions li {
  display: inline-block;
}

/* Desktop Menü horizontal */
@media (min-width: 992px) {

  #mainMenu {
    display: block !important;
  }

  #mainMenu > ul {
    display: flex;
    gap: 2rem;
  }

}

/* =====================================================
   HAMBURGER ICON
   ===================================================== */

.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  display: block;
  background-image: url("data:image/svg+xml;charset=utf8,\
  %3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E\
  %3Cpath stroke='black' stroke-width='2' stroke-linecap='round'\
  stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Kein horizontales Scrollen */
body {
  overflow-x: hidden;
}
