/* =========================================================
   HEADER – Navigation
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--accent);
  height: var(--header-height);
  transition: height var(--transition);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand picture {
  display: flex;
  align-items: center;
  height: 58px;
}

.brand img {
  height: 58px;
  max-height: calc(var(--header-height) - 6px);
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.brand:hover img { transform: scale(1.04); }

.brand-text {
  display: none;
}

/* --- Hauptmenü ----------------------------------------- */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  min-width: 0;
}

.nav-list a {
  font-family: var(--font-body);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.5rem 0;
  text-transform: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width var(--transition);
}

.nav-list a:hover {
  color: rgba(255, 255, 255, 0.75);
}

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

.nav-list a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

.nav-list a.active::after { display: none; }

/* --- Burger -------------------------------------------- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
  flex: 0 0 44px;
}

.menu-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px; transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px; transform: rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 26, 0.38);
}
