/* =================================================================
   cb-header-divi-base.css
   Minimum DIVI-Header-Rules damit der _shared-header.html Snapshot
   auf Astro-Pages (BaseLayout) identisch zur Startseite rendert.
   Kombiniert mit cb-snapshot-patches.css gibt das den 1:1-Look.
================================================================= */

/* ---------- Reset für Header-Bereich ---------- */
header.et-l.et-l--header,
header.et-l.et-l--header * {
  box-sizing: border-box;
}
header.et-l.et-l--header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #ffffff;
}
header.et-l--header .et_builder_inner_content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------- DIVI Section + Row (Header) ---------- */
header.et-l--header .et_pb_section {
  position: relative;
  background-color: #ffffff;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0;
}
header.et-l--header .et_pb_row {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
header.et-l--header .et_pb_column {
  display: block;
  margin-right: 0;
  width: 100%;
  position: relative;
}

/* ---------- Menu-Module ---------- */
header.et-l--header .et_pb_menu {
  position: relative;
  width: 100%;
}
header.et-l--header .et_pb_menu_inner_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}
header.et-l--header .et_pb_menu__logo-wrap {
  display: flex;
  align-items: center;
}
header.et-l--header .et_pb_menu__logo {
  display: inline-block;
}
header.et-l--header .et_pb_menu__logo a {
  display: inline-block;
}
header.et-l--header .et_pb_menu__logo img {
  display: block !important;
  height: 15px !important;
  max-height: 15px !important;
  width: auto !important;
  max-width: 260px !important;
  margin: 0 !important;
  padding: 0 !important;
}
header.et-l--header .et_pb_menu__wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
header.et-l--header .et_pb_menu__menu {
  display: block;
}

/* ---------- Navigation List ---------- */
header.et-l--header nav.et-menu-nav,
header.et-l--header .et-menu-nav {
  display: block;
}
header.et-l--header ul.et-menu,
header.et-l--header .et-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
header.et-l--header .et-menu li {
  margin: 0;
  padding: 0 14px;
  list-style: none;
  position: relative;
  float: none;
}
/* Force Skills Nav-Items 1:1 wie Home (gemessen via Playwright):
   text-transform: none, color: #000, height: auto (16px nach Content).
   Override gegen cb-snapshot-patches.css das height:50px+display:flex erzwingt. */
html body header.et-l--header .et-menu li a,
html body header.et-l--header ul.et-menu > li > a {
  text-transform: none !important;
  color: #000 !important;
  text-decoration: none;
  display: inline-block !important;
  height: auto !important;
  padding-bottom: 10px !important;
  padding-top: 0 !important;
  position: relative;
  transition: color 0.15s ease;
  line-height: 1.2 !important;
}
/* Wrapper-li darf wieder normal Höhe haben damit Items vertikal in 50px-Bar zentrieren */
html body header.et-l--header .et-menu li,
html body header.et-l--header ul.et-menu > li {
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
}
header.et-l--header .et-menu li a:hover {
  color: #1f1e1d;
}

/* ---------- Category-Menu (Dot + Yellow Underline) — aus divi-child/style.css ---------- */
.category-menu .et-menu > li > a {
  position: relative !important;
  display: inline-block !important;
  text-decoration: none !important;
  padding-bottom: 10px !important;
}
.category-menu .et-menu > li > a::after {
  content: "" !important;
  position: absolute !important;
  width: 5px !important;
  height: 5px !important;
  left: 50% !important;
  bottom: 0 !important;
  background-color: #ffd600 !important;
  border-radius: 50% !important;
  transform: translateX(-50%) scale(0) !important;
  transition: transform 0.2s ease !important;
  opacity: 0;
}
.category-menu .et-menu > li:hover > a::after,
.category-menu .et-menu > li.current-menu-item > a::after,
.category-menu .et-menu > li.current_page_item > a::after {
  transform: translateX(-50%) scale(1) !important;
  opacity: 1;
}

/* ---------- Mobile: alle Desktop-Nav-Items hide, Topbar via cb-snapshot-patches.css ---------- */
@media (max-width: 980px) {
  header.et-l--header {
    display: none !important;
  }
}

/* ---------- Floating burger button + Mobile-Menu Overlay (aus shared-header.html inline-CSS) ---------- */
.cb-burger,
#cb-mobile-menu {
  display: none;
}
@media (max-width: 980px) {
  .cb-burger { display: flex; }
}

/* ---------- Padding für Page-Content unter sticky-Header (Desktop) ---------- */
@media (min-width: 981px) {
  body > main {
    padding-top: 0;
  }
}
