/* ============================================================
   RON HEADER — Minimal · Glass · Mono
============================================================ */

/* =========================
   VARIABLES
========================= */
:root {
  --header-height: 64px;
  --header-radius: 999px;

  --header-bg: rgba(18, 18, 18, 0.65);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-blur: blur(16px);

  --nav-color: var(--ink-2);
  --nav-active: var(--ink-1);
}

/* =========================
   HEADER BASE
========================= */
.site-header {
  position: fixed;
  top: 6px;
  /* Reduced further to 6px */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  /* Wider on mobile */
  max-width: var(--container-wide);
  z-index: 1000;
  isolation: isolate;

  /* Layout: Logo left, Nav box right */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  /* Let clicks pass through empty space */
}

/* =========================
   HEADER RIGHT CONTAINER
========================= */
.header-right {
  height: 48px;
  /* Reduced specific height for the right element */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 16px;

  background: rgba(32, 32, 32, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  /* Requested 12px */

  pointer-events: auto;
  /* Re-enable clicks */
  max-width: 50%;
}

/* =========================
   LOGO
========================= */
/* =========================
   LOGO (Standalone)
========================= */
.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: auto;
  /* Re-enable clicks */
}

.header-logo img {
  height: 90px;
  /* Desktop-Größe */
  width: auto;
  display: block;
  opacity: 0.95;
  transition: opacity .25s ease, transform .25s ease;
}

.header-logo:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

/* Optional: leicht kleiner auf Mobile */
@media (max-width: 600px) {
  .header-logo img {
    height: 48px;
    /* Adjusted for mobile header height */
  }
}

/* =========================
   DESKTOP NAV
========================= */
.nav-desktop ul {
  display: flex;
  gap: clamp(1.6rem, 3vw, 3rem);
  list-style: none;
  align-items: center;
}

.nav-desktop a {
  position: relative;
  font-family: var(--font-headline);
  font-size: .75rem;
  /* Slightly smaller */
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bfbfbf;
  text-decoration: none;
  padding: 4px 0;
  transition: color .25s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--nav-active);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: translateX(-50%) scale(1);
}

/* =========================
   CTA (WHATSAPP)
========================= */
.header-cta {
  padding: 0 1.2rem;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background .25s ease, border-color .25s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================
   BURGER (MOBILE)
========================= */
.burger {
  display: none;
  width: 26px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink-1);
  transition: .3s ease;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 8px;
  width: 70%;
}

.burger span:nth-child(3) {
  top: 16px;
  width: 40%;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
  width: 100%;
}

/* =========================
   MOBILE DRAWER
========================= */
.nav-mobile {
  position: fixed;
  top: calc(var(--header-height) + 26px);
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: 90%;
  padding: 26px;

  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.nav-mobile.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-mobile a {
  font-family: var(--font-headline);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-1);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   BREAKPOINTS
========================= */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: block;
  }
}