:root {
  --subheader-height: 80px;
  --subheader-background-color: var(--gray_light);
  
  --subheader-nav-toggle-color: var(--gray);
  --subheader-nav-toggle-color-hover: var(--blue_dark);
  
  --subheader-nav-item-color: var(--font-color);
  --subheader-nav-item-color-hover: var(--red); 
}

{# overwrites #}

.header {
  position: absolute;
  box-shadow: none;
}

.header__logo, .header__cta {
  filter: saturate(0%) opacity(70%);
}

.header__cta {
  display: none !important;
}

.megamenu__link--navpoint,
.nav-desktop .hs-menu-depth-1>a {
  color: var(--gray) !important;
}

@media (min-width: 1200px) {
  .quicklink-bar {
    position: absolute;
    bottom: 100%;
    top: initial;
  }
}


{# subheader #}

.subheader {
  --subheader-overlap: 1px;
  --subheader-offset: calc(calc(var(--header-height) + var(--quicklinkbar-height)) - var(--subheader-overlap));
  
  position: absolute;
  top: var(--subheader-offset);
  left: 0;
  width: 100%;
  background-color: var(--subheader-background-color);
  box-shadow: var(--box-shadow_small);
  z-index: 90;
}

.subheader--fixed {
  position: fixed;
  top: 0;
}

.subheader--open {

}

.subheader__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: calc(var(--containerwidth) + 30px);
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

.subheader__logo {
  flex: 1;
}

.subheader__logo-wrap {
  display: inline-block;
  vertical-align: bottom;
  width: 100px;
  height: 50px;
}

.subheader__logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;

}

.subheader__menubutton {

}

.subheader__nav {
  display: none;
  width: 100%;
  flex-flow: column;
  gap: 15px;
}

.subheader__cta {
  margin-bottom: 15px;
}

.subheader--open .subheader__nav {
  display: flex;
}

.subheader__navlist {
  display: flex;
  flex-flow: column;
  margin: 0 -12px;
  padding: 0;
  max-height: calc(80vh - var(--header-height));
  overflow-y: auto;
  list-style-type: none;
}

.subheader__navitem {
  position: relative;
}

.subheader__navlink {
  display: inline-block;
  padding: 12px;
  text-decoration: none;
  color: var(--subheader-nav-item-color);
}

.subheader__navlink:is(:hover, :focus),
.subheader__navlink--active {
  text-decoration: none;
  color: var(--subheader-nav-item-color-hover);
}

.subheader__navlink--level-0 {
  font-size: 1.9rem;
  font-family: var(--font_bold);
}

.subheader__navlink--level-1 {}

.subheader__submenu {
  list-style: none;
  padding-left: 20px;
}

.subheader__navtoggle {
  padding: 10px;
  cursor: pointer;
  border: 2px solid var(--subheader-nav-toggle-color);
  background-color: none;
  border-radius: 0;
  color: var(--subheader-nav-toggle-color);
  touch-action: manipulation;
  text-decoration: none;
}

.subheader__navtoggle:is(:hover, :focus) {
  color: var(--subheader-nav-toggle-color-hover);
  border-color: var(--subheader-nav-toggle-color-hover);
  text-decoration: none;
}

.subheader--open .subheader__navtoggle {
  position: relative;
}

.subheader--open .subheader__navtoggle::before,
.subheader--open .subheader__navtoggle::after {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(30deg);
}

.subheader--open .subheader__navtoggle::after {
  transform: translate(-50%, -50%) rotate(-30deg);
}

.subheader--open .subheader__navtoggle-text {
  opacity: 0;
}

@media (min-width: 1200px) {
  
  :root {
    --subheader-height: 110px;
  }
  
  .subheader__logo-wrap {
    width: 160px;
    height: 80px;
  }
  
  .subheader__container {
    flex-wrap: nowrap;
    gap: 30px;
    padding: 15px;
  }
  
  .subheader__menubutton {
    display: none;
  }
  
  .subheader__nav {
    display: flex;
    flex-flow: row;
    align-items: center;
  }
  
  .subheader__cta {
    margin-bottom: 0;
  }
  
  .subheader__navlist {
    flex: 1;
    flex-flow: row;
    margin: 0;
    max-height: none;
    overflow-y: visible;
  }
  
  .subheader__navitem--with-submenu > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border: 1.5px solid var(--subheader-nav-item-color);
    border-left: none;
    border-top: none;
    transform: translate(40%, -50%) rotate(45deg);
  }
  
  .subheader__navlink {
    
  }
  
  .subheader__navlink--level-0 {
    padding: 20px;
    font-size: var(--base-font-size);
  }
  
  .subheader__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    padding: 15px;
    background-color: var(--subheader-background-color);
    box-shadow: var(--box-shadow_small);
    white-space: nowrap;
  }
  
  .subheader__navitem--level-0:is(:hover, :focus, :focus-within) .subheader__submenu, 
  .subheader__navlink--level-0:is(:hover, :focus) + .subheader__submenu {
    display: block;
  }

}