:root {
  --header-h: 124px;

  --container: 1200px;
  --pad: 20px;

  --text: #fff;
  --shadow: rgba(0, 0, 0, 0.45);

  --menu-accent: #f0b51a;
  --active-green: #2f6f1f;

  --marker-w: 112px;
  --marker-h: 230px;
  --marker-top: -150px;

  --header-bg: #0f1f14;

  --header-gap: 48px;
  --logo-optical-offset: -12px;

  /* ✅ Top drawer */
  --drawer-dur: 260ms;
  --drawer-radius: 22px;
}

/* =========================================
   Layout-Reserve für Header-Include
   Verhindert, dass Content kurz oben erscheint,
   bevor header.html geladen ist.
========================================= */
#header-slot {
  min-height: var(--header-h);
  background: var(--header-bg);
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ===== HEADER ===== */
.hero-header {
  position: relative;
  z-index: 10000; /* ✅ Header bleibt oben drüber */
  height: var(--header-h);
  color: var(--text);
  background: var(--header-bg);
  overflow: hidden;
}

.hero-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.12)
  );
  pointer-events: none;
}

.hero-header__inner {
  position: relative;
  height: 100%;
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  column-gap: var(--header-gap);
}

.hero-header__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: var(--logo-optical-offset);
}

.hero-header__logo {
  height: 104px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

/* Desktop Nav */
.hero-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);

  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0.35px;
  text-shadow: 0 2px 10px var(--shadow);

  flex-wrap: nowrap;
}

.hero-nav__list li {
  flex: 0 0 auto;
}

.hero-nav__list a {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
}

.hero-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--menu-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.hero-nav__list a:hover::after {
  transform: scaleX(1);
}

.hero-nav__list a.is-active::after {
  background: var(--active-green);
  transform: scaleX(1);
}

/* Actions / Burger */
.hero-header__actions {
  display: flex;
  align-items: center;
  justify-content: end;
}

.menu-btn {
  display: none;
  width: 52px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.menu-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
}

.menu-btn__bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    opacity 0.2s ease;
}

.menu-btn__bars::before {
  top: -7px;
}
.menu-btn__bars::after {
  top: 7px;
}

/* ===== MOBILE MENU (Drawer) ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--drawer-dur) ease;
}

.mobile-menu__content {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: 520px;
  margin: 0 auto;

  background: linear-gradient(180deg, #122519, #0e1b13);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--drawer-radius);
  padding: 16px 14px 18px;

  transform: translateY(-14px);
  opacity: 0;

  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--drawer-dur) ease,
    opacity var(--drawer-dur) ease;
}

.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu.is-open .mobile-menu__content {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu__logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.close-btn {
  width: 44px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.close-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
}

.mobile-nav {
  padding-top: 12px;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 10px;
}

.mobile-nav__list a {
  display: block;
  padding: 14px 14px;
  border-radius: 16px;

  font-weight: 850;
  font-size: 18px;
  letter-spacing: 0.25px;

  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.mobile-nav__list a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}

.mobile-nav__list a.is-active {
  background: rgba(47, 111, 31, 0.22);
  border-color: rgba(47, 111, 31, 0.5);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__overlay,
  .mobile-menu__content,
  .menu-btn__bars,
  .menu-btn__bars::before,
  .menu-btn__bars::after {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }

  :root {
    --header-h: 90px;
    --header-gap: 16px;
    --logo-optical-offset: 0px;
  }

  .hero-header__logo {
    height: 62px;
  }
  .hero-header__actions {
    justify-self: end;
  }
  .menu-btn {
    margin-left: auto;
  }
}
