/* ===== header.css ===== */

/* Header */
.site-header {
  background: var(--header-bg);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 0 100vmax var(--header-bg);
  clip-path: inset(0 -100vmax);
}
.logo-container { display: flex; align-items: center; gap: 16px; }
.logo { height: 60px; width: auto; }
.header-text h1 { margin: 0 0 4px 0; font-size: 1.6rem; }
.header-text p  { margin: 0; opacity: 0.9; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: var(--nav-bg);
  z-index: 1000;
  box-shadow: 0 0 0 100vmax var(--nav-bg);
  clip-path: inset(0 -100vmax);
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 6px;
}
.navbar a:hover { background: rgba(255,255,255,.12); }

/* Burger */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 2001;
  background: #222; color: #fff;
  border: none; width: 44px; height: 44px;
  font-size: 1.4rem; border-radius: 6px;
  cursor: pointer;
}

/* Mobile Off-Canvas passend zu deinem main.js */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  #site-nav.navbar {
    position: fixed; top: 0; left: -260px;
    width: 240px; height: 100vh;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    padding: 60px 20px 20px; gap: 12px;
    background: var(--nav-bg);
    box-shadow: 2px 0 6px rgba(0,0,0,.25);
    transition: left .3s ease; z-index: 2000;
    clip-path: none;
  }
  #site-nav.navbar.open { left: 0; }
  #site-nav.navbar a { display: block; width: 100%; padding: 12px; font-size: 1.05rem; }
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .header-text h1 { font-size: 1.3rem; }
  .header-text p  { font-size: .95rem; }
}
@media (max-width: 768px) {
  .site-header { flex-direction: column; text-align: center; gap: 12px; }
  .logo-container { flex-direction: column; gap: 8px; }
  .logo { height: 50px; }
  .header-text h1 { font-size: 1.2rem; }
  .header-text p  { font-size: .9rem; }
}

/* ===== HERO (Parallax GIF + Overlay) ===== */
.hero {
  position: relative;
  min-height: clamp(60vh, 64vh + 8vw, 82vh);
  background-image: url("../../images/background-video.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  overflow: hidden;
}

/* Sanfterer Übergang unten – deutlich weicher als vorher */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 245, 0) 0%,   /* oben durchsichtig */
    var(--bg) 100%              /* unten = Seiten-Grau */
  );
  z-index: 1;
  pointer-events: none;
}

/* halbtransparenter Schleier */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.55);
  z-index: 0;
}

/* Full-bleed erzwingen (sprengt zentrierte Container) */
.hero{
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Scroll-Offset für Sticky-Nav, falls Anker genutzt */
#hero { scroll-margin-top: calc(var(--nav-height) + 12px); }
