header .current-menu-item > a > span,
header .current-menu-parent > a > span,
header .current_page_item > a > span,
header .current_page_parent > a > span {
  color: var(--brand-secondary-color) !important;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: var(--brand-primary-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
}
.header * {
  color:var(--brand-primary-color-text)
}
.header-desktop.hide {
  transform: translateY(-150%);
}

.header-desktop .burgerbutton{
  display:none;
  width:50px;
  height:auto;
  position:absolute;
  top: 25px;
  right:50px;
}
.header-desktop .burgerbutton span{
  display:block;
  background:var(--brand-primary-color-text);
  width:100%;
  height:5px;
  border-radius:5px;
  cursor:pointer;
}
.header-desktop .burgerbutton span:nth-child(2){
  margin:10px 0;
}
.header-desktop .burgerbutton.active span:nth-child(1){
  transform:rotate(45deg);
  margin-top:15px;
}
.header-desktop .burgerbutton.active span:nth-child(2){
  opacity:0;
}
.header-desktop .burgerbutton.active span:nth-child(3){
  transform:rotate(-45deg);
  margin-top:-30px;
}

.mobile-menu li {
  font-size: 1rem;
  font-weight: 500;
  line-height: 3.5rem;
  margin: 0;
}

.logo {
  height: 100%;
}

.menu-item a span:hover {
  color: var(--brand-primary-color-hover);
}
.logo img {
  object-fit: contain;
  height: inherit;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar {
  gap: 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
}

.nav-list {
  max-width: 1200px;
  width: 100%;
}

.nav-list ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  position: relative;
  white-space: nowrap;
}

.nav-list a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.54px;
  position: relative;
}

.nav-list li:not(:last-child) a::after {
  content: '';
  display: block;
  width: 2px;
  height: 1rem;
  background: var(--brand-primary-color-text);
  position: absolute;
  top: 2px;
  right: -1.5rem;
}
.nav-list li:has(.children) a {
  padding-right: 10px;
}
.nav-list li:has(.children)::before {
  content: '▶';
  font-size: 0.6rem;
  position: absolute;
  right: 0;
  color: var(--brand-primary-color-text);
  transform: translateX(5px) translateY(5px);
  transition: transform 0.2s ease;
}
.nav-list li:has(.children):hover::before {
  transform: rotate(90deg) translateX(5px) translateY(-5px);
}

.menu-item-has-children {
  position: relative;
}

.nav-list li .children {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  padding: 2rem;
  background: var(--brand-primary-color);
  border-radius: 10px;
  z-index: 999;
  transform: translateX(-2rem) translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}
.nav-list li:hover .children {
  transform: translateX(-2rem) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.nav-list li .children li {
  margin: 0;
  padding: 0.5rem 0;
}
.nav-list li .children li a {
  padding: 1rem 0;
  transition: all 0.15s ease;
}

.nav-list li .children li a::after {
  display: none;
}

.mobile-menu .children {
  padding-left: 1.5rem;
}


.mobile-menu .children li {
  opacity: 0;
  line-height: 0;
}
.mobile-menu .children.open li {
  opacity: 1;
  line-height: 3.5rem;
}

.mobile-menu span.submenu-arrow {
  content: '▶';
  font-size: 1rem;
  top: 0;
  right: 0;
  padding: 0 50px;
  position: absolute;
  display: block;
  color: var(--brand-primary-color-text);
  transition: transform 0.2s ease;
}
.mobile-menu span.submenu-arrow.open {
  transform: rotate(90deg);
}



header .current-menu-item > a > span,
header .current-menu-parent > a > span,
header .current_page_item > a > span,
header .current_page_parent > a > span {
  color: var(--brand-secondary-color) !important;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: var(--brand-primary-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
}
.header * {
  color:var(--brand-primary-color-text)
}
.header-desktop.hide {
  transform: translateY(-150%);
}

.header-mobile {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.logo-mobile {
  display: block;
  padding: 1.5rem;
  max-width: 100px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.header-mobile .logo-mobile.hide {
  pointer-events: none;
  opacity: 0;
}
.header-mobile .burger {
  z-index: 1001;
  width: fit-content;
  padding: 1.5rem;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}
.header-mobile .burger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background:  var(--brand-primary-color);
  transition: all 0.3s ease;
}

.header-mobile .burger span:first-child {
  transform: translateY(-8px);
}
.header-mobile .burger span:last-child {
  transform: translateY(8px);
}

.header-mobile .burger.open span:first-child {
  transform: rotate(-45deg) translateY(4px);
}
.header-mobile .burger.open span:nth-child(2) {
  opacity: 0;
}
.header-mobile .burger.open span:last-child {
  transform: rotate(45deg) translateY(-4px);
}
.header-mobile .burger.open span {
  box-shadow: none;
}

.burger-menu {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  padding: 50px 24px 24px 50px;
  border-radius: 0 0 0 7px;
  background: #1d2f2ec0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}
.burger-menu.active {
  transform: translateX(0);
  height: 100vh;
  z-index: 1000;
  overflow: auto;
}

.burger-menu a {
  font-size: 0.9rem;
}
.mobile-menu li {
  font-size: 1rem;
  font-weight: 500;
  line-height: 3.5rem;
  margin: 0;
}

.logo {
  height: 100%;
}

.menu-item a span:hover {
  color: var(--brand-primary-color-hover);
}
.logo img {
  object-fit: contain;
  height: inherit;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar {
  gap: 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
}

.nav-list {
  max-width: 1200px;
  width: 100%;
}

.nav-list ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  position: relative;
  white-space: nowrap;
}

.nav-list a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.54px;
  position: relative;
}

.nav-list li:not(:last-child) a::after {
  content: '';
  display: block;
  width: 2px;
  height: 1rem;
  background: var(--brand-primary-color-text);
  position: absolute;
  top: 2px;
  right: -1.5rem;
}
.nav-list li:has(.children) a {
  padding-right: 10px;
}
.nav-list li:has(.children)::before {
  content: '▶';
  font-size: 0.6rem;
  position: absolute;
  right: 0;
  color: var(--brand-primary-color-text);
  transform: translateX(5px) translateY(5px);
  transition: transform 0.2s ease;
}
.nav-list li:has(.children):hover::before {
  transform: rotate(90deg) translateX(5px) translateY(-5px);
}

.menu-item-has-children {
  position: relative;
}

.nav-list li .children {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  padding: 2rem;
  background: var(--brand-primary-color);
  border-radius: 10px;
  z-index: 999;
  transform: translateX(-2rem) translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}
.nav-list li:hover .children {
  transform: translateX(-2rem) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.nav-list li .children li {
  margin: 0;
  padding: 0.5rem 0;
}
.nav-list li .children li a {
  padding: 1rem 0;
  transition: all 0.15s ease;
}

.nav-list li .children li a::after {
  display: none;
}

.mobile-menu .children {
  padding-left: 1.5rem;
}

.mobile-menu .children li {
  opacity: 0;
  line-height: 0;
}
.mobile-menu .children.open li {
  opacity: 1;
  line-height: 3.5rem;
}

.mobile-menu span.submenu-arrow {
  content: '▶';
  font-size: 1rem;
  top: 0;
  right: 0;
  padding: 0 50px;
  position: absolute;
  display: block;
  color: var(--brand-primary-color-text);
  transition: transform 0.2s ease;
}
.mobile-menu span.submenu-arrow.open {
  transform: rotate(90deg);
}




/*-----------------------------*/

.navbar{height:150px;justify-content:space-between;position:relative;}

.menuwrapper{width:75%;height:50%;align-content:center;}
.menuwrapper .topmenu{position:absolute;top:0;left:0;right:0;}
.menuwrapper .topmenu .wpml-umschalter{padding-top:10px;position: absolute;right: 0;top: 0;}
.menuwrapper .topmenu .bereichsswitch{position: absolute;top: 0;left: 50%;transform: translateX(-50%) translateY(calc(-100% + 43px));z-index:999;width:75%;transition:all 1.5s ease;}
.menuwrapper .topmenu .bereichsswitch.open{transform: translateX(-50%) translateY(0);transition:all 1.5s ease;}
.menuwrapper .topmenu .bereichsswitch .button{background:var(--brand-primary-color);position:relative;display:block;margin:0 auto;cursor:pointer;padding:10px 65px 10px 35px;border:solid 1px var(--white);border-bottom-left-radius:15px;border-bottom-right-radius:15px;border-top:none;width: 400px;text-align: center;}
.menuwrapper .topmenu .bereichsswitch .button:after{content:'';display:block;width:20px;height:20px;background:url('../media/arrow_down.svg');background-size:100%;background-position:center;background-repeat:no-repeat;position:absolute;top:10px;right:20px;}
.menuwrapper .topmenu .bereichsswitch .button span{font-weight:600;}
.menuwrapper .topmenu .bereichsswitch .bereiche{background:var(--brand-primary-color);display: flex;padding: 50px 50px;border: solid 1px var(--white);border-bottom-left-radius:15px;border-bottom-right-radius:15px;border-top:none;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich{margin:0 20px;padding:25px;height:210px;width:25%;position:relative;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich.hauptseite .background{background:linear-gradient(238deg,rgba(0, 0, 0, 1) 50%, rgba(183, 204, 52, 1) 100%);border:solid 1px #D8D8D8;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.3;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich.bro-energy .background{background:linear-gradient(238deg,rgba(0, 0, 0, 1) 50%, rgba(183, 204, 52, 1) 100%);border:solid 1px #D8D8D8;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.3;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich.bro-engineering .background{background:linear-gradient(238deg,rgba(0, 0, 0, 1) 50%, rgba(251, 193, 1, 1) 100%);border:solid 1px #D8D8D8;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.3;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich.bro-fire .background{background:linear-gradient(238deg,rgba(0, 0, 0, 1) 50%, rgba(231, 48, 41, 1) 100%);border:solid 1px #D8D8D8;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.3;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich.bro-automation .background{background:linear-gradient(238deg,rgba(0, 0, 0, 1) 50%, rgba(67, 145, 147, 1) 100%);border:solid 1px #D8D8D8;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.3;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich img{width:100%;height:100%;object-fit:cover;opacity:1;transition:all .5s ease;position:relative;z-index:5;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich:hover img{opacity:0.25;;transition:all .5s ease;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich .title{opacity:0;transition:all .5s ease;position: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%);width:100%;text-align:center;font-weight:600;font-size:115%;z-index:9;}
.menuwrapper .topmenu .bereichsswitch .bereiche .bereich:hover .title{opacity:1;transition:all .5s ease;}
.menuwrapper .nav-list{width:100%;justify-content:space-between;}
.menuwrapper .nav-list li{list-style:none;margin-bottom:0;}
.menuwrapper .nav-list li:not(:last-child) a::after{display:none;}
.menuwrapper .nav-list .menu-item a span{font-weight:600;transition:all .3s ease;}
.menuwrapper .nav-list .menu-item a span:hover{color:var(--brand-accent-color-hover);transition:all .3s ease;}
.menuwrapper .nav-list .menu-item.btn a span{font-weight:600;}
.menuwrapper .nav-list .menu-item.btn:hover a span{color:var(--brand-accent-color-text)}

.logo{width:20%;}
.logo img{height:100%;}

/* .page-id-2 .menuwrapper .topmenu .bereichsswitch .button:after{background:url('../media/arrow_down_red.svg');background-size:100%;background-position:center;background-repeat:no-repeat;} */



@media (max-width: 992px) {

  .navbar{
    height:100px;
  }

  .header-desktop {
    display: block;
  }
  .header-desktop .burgerbutton{
    display:block;
  }
  .header-desktop .menu{
    display:none;
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:50%;
    height:100vh;
  }
  .header-desktop .menu .nav-list{
    justify-content: center;
    flex-direction: column;
    height: 100%;
    background: var(--brand-primary-color);
  }
  .header-desktop .menu .nav-list li{
    margin:10px 0;
  }
  .header-desktop .menu.active{
    display:block;

  }
}
@media(max-width:767px){
    .menuwrapper .topmenu .bereichsswitch .bereiche{padding:20px;}
    .menuwrapper .topmenu .bereichsswitch .bereiche .bereich{margin:0 5px;padding:5px;height:80px;}
    .menuwrapper .topmenu .bereichsswitch .bereiche .bereich .title{font-size:60%;}
    .menuwrapper .topmenu .bereichsswitch .button{padding:10px;width:325px;}
    .menuwrapper .topmenu .bereichsswitch .button::after{right:12.5px;}
    .menuwrapper .topmenu .bereichsswitch .button span{font-size:85%;}
}
@media(max-width:600px){
  .navbar{align-items:end;}
  .logo{width:50%;height:100%;}
  .menuwrapper{width:50%;}

  .menuwrapper .topmenu .bereichsswitch{width:100%;}
  .menuwrapper .topmenu .bereichsswitch .button{width:100%;}

  .header-desktop .burgerbutton{width:40px;top:35px;right:15px;}
  .header-desktop .burgerbutton span{height:2.5px;}
  .header-desktop .burgerbutton span:nth-child(2){margin:7.5px 0;}
  .header-desktop .burgerbutton.active span:nth-child(3){margin-top:-20px;}

  .header-desktop .menu{left:0;}
}
