:root {
  --brand: #47F138;
}

/* === NAVBAR WRAP === */
.nav-wrap {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}



/* Aktiv beim Scrollen */
.nav-wrap.scrolled {
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* === NAVBAR INNER === */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* === BRAND === */
.brand img {
  height: 48px;
  width: auto;
  transition: transform 0.25s ease, height 0.3s ease;
}

.nav-wrap.scrolled .brand img {
  height: 42px;
}

.brand img:hover {
  transform: scale(1.05);
}

/* === NAVIGATION === */
.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  color: #e9edf0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a:hover {
  color: var(--brand);
}

/* === AUTH SECTION === */
.auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-icons,
.logout-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn,
.logout-btn {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.login-btn:hover,
.logout-btn:hover {
  background: rgba(71, 241, 56, 0.1);
  border-color: rgba(71, 241, 56, 0.4);
  transform: translateY(-1px);
}

/* ICON-FARBE – KORREKTE BRAND-ANPASSUNG */
.login-btn img,
.logout-btn img {
  height: 18px;
  width: 18px;
  filter: brightness(0) saturate(100%) invert(92%) sepia(6%) saturate(149%) hue-rotate(175deg) brightness(97%) contrast(93%);
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Hover: exakt #47F138 */
.login-btn:hover img,
.logout-btn:hover img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(543%) hue-rotate(69deg) brightness(103%) contrast(98%);
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-wrap {
    top: 10px;
    width: calc(100% - 40px);
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    height: auto;
    padding: 14px 20px;
  }

  .nav {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand img {
    height: 42px;
  }
}
