/* =========================================================
   RausPlan
   Datei: /public/css/header.css
   Zweck:
   - Premium Dark Header
   - Logo mittig als Overlay (ragt nach unten in den Content)
   - Header-Höhe bleibt klein (Logo beeinflusst Höhe NICHT)
========================================================= */

/* Base */
:root{
  --bg-0: #07080c;
  --bg-1: #0b0d14;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.60);

  --soft: rgba(255,255,255,0.12);

  --accent: #57f0c5;
  --accent-2: #7ad3ff;

  --container: 1160px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

.rausplan-body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  background: radial-gradient(1200px 600px at 10% 0%, rgba(87,240,197,0.09), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(122,211,255,0.08), transparent 55%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));

  color: var(--text);
}

/* Layout so Footer immer unten bleibt */
.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main{
  flex: 1;
  padding: 26px 0 40px;
}

/* Container */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;

  /* Header bleibt schlank */
  padding: 14px 0;

  background: rgba(7, 8, 12, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Inner */
.header__inner{
  position: relative; /* Wichtig für Logo Overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Slots (links leer, rechts nav) */
.header__slot{
  min-width: 160px;
  display: flex;
  align-items: center;
}

.header__slot--left{
  justify-content: flex-start;
}

.header__slot--right{
  justify-content: flex-end;
}

/* Center Logo Overlay */
.header-logo{
  position: absolute;
  left: 50%;
  top: 50%;

  /* ✅ tiefer gesetzt */
  transform: translate(-50%, -25%);

  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  user-select: none;
  pointer-events: auto;
}

.header-logo__img{
  width: 300px;
  height: auto;
  display: block;

  /* Premium: leichtes Schatten-Lift ohne "Kasten" */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55));
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;

  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.nav__link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.nav__link--cta{
  color: rgba(0,0,0,0.88);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(87,240,197,0.18);
}

.nav__link--cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* Responsive */
@media (max-width: 980px){
  .header__slot{
    min-width: 120px;
  }
}

@media (max-width: 720px){
  .header__slot--left{
    min-width: 70px;
  }

  .nav{
    gap: 8px;
  }

  .nav__link{
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-logo__img{
    width: 150px;
  }

  /* ✅ Mobile ebenfalls etwas tiefer */
  .header-logo{
    transform: translate(-50%, -18%);
  }
}

@media (max-width: 520px){
  .header__slot{
    min-width: auto;
  }

  .nav__link{
    padding: 0 9px;
  }
}
