/* Schwebender Header in Nachtblau, wie die Visitenkarte. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-night);
  color: #fff;
  --color-focus: var(--color-focus-light);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.site-header .dot-row {
  opacity: 0.9;
}

/* Wortmarke (Platzhalter, bis es ein Logo gibt) */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: var(--touch-target);
  margin: 0;
  color: var(--color-mint);
  line-height: 1.1;
  text-decoration: none;
}

.brand__mark {
  width: clamp(9rem, 44vw, 13.5rem);
  height: auto;
}

.brand__name {
  font-size: 1rem;
}

.menu-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 7.75rem;   /* bleibt gleich breit, ob „Menü“ oder „Schließen“ */
  min-height: var(--touch-target);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-card);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-night);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-button[hidden] {
  display: none;
}

/* Hamburger-Symbol aus drei Strichen */
.menu-button__icon,
.menu-button__icon::before,
.menu-button__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-button__icon {
  position: relative;
}

.menu-button__icon::before,
.menu-button__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button__icon::before { top: -6px; }
.menu-button__icon::after { top: 6px; }

.menu-button[aria-expanded="true"] .menu-button__icon {
  display: none;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0 0.8rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--color-night-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--color-mint);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Handy und Tablet: Das Menü klappt als Fläche unter dem Header auf, der
   Knopf bleibt dabei an seinem Platz. Ohne JavaScript bleibt es einfach sichtbar. */
@media (max-width: 899px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    padding-bottom: 0.75rem;
  }

  .js .site-header__inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);   /* unter der Punktreihe */
    left: 0;
    right: 0;
    padding: 0 var(--gutter) 0.75rem;
    background: var(--color-night);
    box-shadow: 0 10px 18px rgb(25 34 59 / 0.35);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
  }

  .site-nav a {
    min-height: 3.5rem;
    border-top: 1px solid var(--color-night-soft);
    border-radius: 0;
    font-size: 1.2rem;
  }
}

/* Großer Bildschirm: Menüpunkte stehen direkt im Header. */
@media (min-width: 900px) {
  .menu-button {
    display: none;
  }
}
