﻿/* =========================================================
   SETTINGS
   ========================================================= */
:root{
  --header-h: 86px;            /* bei Bedarf anpassen */
  --row-max: 1280px;           /* damit Logo+Menü nicht 100% breit sind */
}

/* =========================================================
   HEADER (sticky, dunkel, overflow hidden) + Row max-width
   ========================================================= */
.kopfbereich{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;                 /* damit Dropdown über Hero liegt */
  height: var(--header-h);
  display: flex;
  align-items: center;


  /* wirklich dunkel (kein grau-fade) */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.95) 0%,
    rgba(0,0,0,.90) 45%,
    rgba(0,0,0,.85) 100%
  );

  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);

  box-shadow:
    0 14px 40px rgba(0,0,0,.55),
    inset 0 -1px 0 rgba(255,255,255,.06);

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

.kopfbereich::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
  pointer-events:none;
}

/* container-fluid bleibt, wird aber in der Breite begrenzt */
.kopfbereich .container-fluid{
  width: 100%;
  max-width: var(--row-max);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.header-row{
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

/* =========================================================
   TYPO3 wrapper reset (Logo/Spruch)
   ========================================================= */
.header-logo .frame,
.logo-spruch .frame,
.header-logo figure,
.logo-spruch figure{
  margin: 0 !important;
}
.header-logo .frame-group-container,
.logo-spruch .frame-group-container,
.header-logo .frame-container,
.logo-spruch .frame-container,
.header-logo .frame-inner,
.logo-spruch .frame-inner{
  padding: 0 !important;
}

/* Logo */
.header-logo{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}
.header-logo img{
  height: 44px !important;
  width: auto !important;
  display:block !important;
}

/* =========================================================
   Spruch: Strich NICHT zu lang (kurzer Divider via ::before)
   ========================================================= */
.logo-spruch{
  position: relative;
  display:flex;
  align-items:center;
  flex: 0 0 auto;
  padding-left: 18px;
  border-left: 0;
}

.logo-spruch::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform: translateY(-50%);
  width:1px;
  height:46px; /* kurz, nicht mehr so lang */
  background: rgba(255,255,255,.35);
}

.logo-spruch img{
  height: 34px !important;
  width:auto !important;
  display:block !important;
  opacity:.95;
}

/* =========================================================
   MENU – größer + Hover 100% hoch im Balken
   ========================================================= */
.header-menu{
  margin-left: auto;
  height: 100%;
}

/* TYPO3 Menu: ul.navilo (dein Output) */
.header-menu ul.navilo{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items: stretch;   /* wichtig für 100% Höhe */
  gap: 10px;              /* kompakter */
  height: 100%;
}

.header-menu ul.navilo > li{
  position: relative;
  display:flex;
  align-items: stretch;   /* wichtig für 100% Höhe */
  height: 100%;
}

/* Links füllen die komplette Headerhöhe */
.header-menu a{
  color: rgba(255,255,255,.95);
  text-decoration:none;
  font-weight:600;
  font-size: 17px;        /* größer */
  letter-spacing: .01em;

  display:flex;
  align-items:center;
  height: 100%;
  padding: 0 16px;        /* Klickfläche */

  opacity: 1;
  border-radius: 12px;

  transition: background .18s ease, transform .18s ease, color .18s ease;
}

/* Hover als “Chip” über volle Höhe */
.header-menu a:hover{
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-1px);
}

/* Active/Current */
.header-menu .active > a,
.header-menu .current > a,
.header-menu a[aria-current="page"]{
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Underline komplett aus (du wolltest Chip-Hover) */
.header-menu a::after{ content:none !important; }

/* =========================================================
   Dropdown (sub2) – klickbar (z-index)
   ========================================================= */
.header-menu ul.sub2{
  position:absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 240px;
  margin:0;
  padding: 12px;
  list-style:none;
  display:none;
  z-index: 6000; /* wichtig: über Hero */
  background: rgba(0,0,0,.90);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

/* Dropdown Links */
.header-menu ul.sub2 a{
  height: auto;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 15px;
  transform: none; /* keine Bewegung im dropdown */
}

.header-menu ul.navilo > li:hover > ul.sub2{ display:block; }
.header-menu ul.sub2 a:hover{ background: rgba(255,255,255,.10); }

/* Sicherheit: Hero nicht über Menü legen */
.hero,
.headerimage-inner{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO (Bild im HTML, min-height 900px, Overlay schwarz)
   ========================================================= */
.hero{
  position: relative;
  min-height: 900px;
  height: 900px;
  overflow: hidden;
  background: #000;
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* leichter schwarzer Effekt (kein Grau) */
.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.28);
}

/* inner container wieder max-width */
.hero-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--row-max);
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);

  display:flex;
  align-items:center;
}

/* Hero Text */
.hero-content{
  max-width: 820px;
  color:#fff;
}

/* kleiner Kicker */
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero-kicker::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background:#fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}

.hero-title{
  margin: 16px 0 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
  color:#fff;
}

.hero-sub{
  margin: 0;
  max-width: 70ch;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

/* Actions */
.hero-actions{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}

/* Trust line */
.hero-trust{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px 18px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
}
.hero-trust span::before{
  content:"✓";
  margin-right: 8px;
  color: rgba(255,255,255,.95);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px){
  :root{ --header-h: 92px; }

  .header-row{
    flex-wrap: wrap;
    row-gap: 10px;
    height: auto;
  }

  .header-menu{
    width:100%;
    margin-left: 0;
    height: auto;
  }

  .header-menu ul.navilo{
    flex-wrap: wrap;
    gap: 8px 10px;
    height: auto;
    align-items: center;
  }

  .header-menu ul.navilo > li{
    height: auto;
  }

  .header-menu a{
    height: auto;
    padding: 10px 12px;
    font-size: 16px;
  }

  .logo-spruch{
    margin-left: 0;
    padding-left: 0;
  }
  .logo-spruch::before{
    display:none;
  }

  .hero{
    height: 900px; /* bleibt 900 wie gewünscht */
  }
}