/* ============================================================
   header.css – BAERLIM-USER-FRONTEND
   Fixer Header + Hamburger Dropdown
   ============================================================ */

/* ── Base Body Padding ── */
body { padding-top: 70px; }

/* ── Header Bar ── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 70px;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ── Logo ── */
.logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-family: "NeverMindBauhaus-Heavy", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-dot {
  font-family: "NeverMindBauhaus-Heavy", Arial, sans-serif;
  color: #1EC11E;
}

/* ── Header Nav (eingeloggte User) ── */
.header-nav-logged {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin: 0 24px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.hn-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
  flex-shrink: 0;
}
.hn-link:hover {
  background: rgba(255,255,255,0.09);
  color: #ffffff;
}
.hn-link.hn-active {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-weight: 700;
}
.hn-link.hn-highlight {
  color: #1EC11E;
  border: 1px solid rgba(30,193,30,0.30);
  background: rgba(30,193,30,0.07);
}
.hn-link.hn-highlight:hover {
  background: rgba(30,193,30,0.14);
}
/* Mobile: Nav-Links ausblenden unter 600px */
@media (max-width: 600px) {
  .header-nav-logged { display: none !important; }
}

/* ── Header Auth Button (Login / Logout) ── */
.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-auth-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
}
/* Logout-Zustand: roter Akzent */
.header-auth-btn.auth-logout {
  border-color: rgba(248,113,113,0.38);
  background: rgba(248,113,113,0.08);
  color: #fca5a5;
}
.header-auth-btn.auth-logout:hover {
  background: rgba(248,113,113,0.16);
  border-color: rgba(248,113,113,0.55);
}
.header-auth-btn svg { flex-shrink: 0; }

/* ── Hamburger Button ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.12); }

.hamburger-btn span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav Dropdown – identisch mit Header-Glass-Effekt ── */
.nav-menu {
  position: fixed;
  top: 70px; left: 0;
  width: 100%;
  /* Gleicher Hintergrund wie Header */
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 9998;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.32s ease, opacity 0.24s ease;
}
.nav-menu.is-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: all;
}

.nav-menu-inner {
  display: flex;
  gap: 0;
  padding: 28px 40px 32px;
  max-width: 1060px;
  margin: 0 auto;
}

/* ── Nav Columns ── */
.nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.nav-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.nav-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color 0.14s;
  padding: 2px 0;
}
.nav-col a:hover { color: #fff; }
.nav-col a.nav-highlight { color: #1EC11E; font-weight: 700; }
.nav-col a.nav-highlight:hover { color: #16a916; }

.nav-col-sep {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 28px;
  flex-shrink: 0;
}

/* ── Mobile Header ── */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  header { height: 60px; padding: 0 16px; }
  .nav-menu { top: 60px; }
  .nav-menu-inner {
    flex-direction: column;
    gap: 24px;
    padding: 20px 20px 28px;
  }
  .nav-col-sep { width: 100%; height: 1px; margin: 0; }
}

/* ── Header Right (Glocke + Hamburger) ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Benachrichtigungs-Glocke ── */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.notif-bell:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Unread-Badge */
.notif-badge {
  position: absolute;
  top: 5px; right: 5px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid rgba(0,0,0,0.30);
  pointer-events: none;
}
