/* theme main menu */
#masthead nav.navbar-expand-xl {
    padding: .675rem 0 0
}

#masthead .navbar-nav > li > a,
header#masthead .pushy li a {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: all .5s
}
header#masthead .pushy li a {
    font-size: 1rem;
}
#masthead .navbar-nav > li > a {
    padding: 0.725rem .75rem;
    color: var(--brand);
    position: relative;
}
header#masthead .pushy .pushy-content li a {
    padding: 0.75rem 1rem .75rem 0;
    color: #fff;
    display: block;
    width: 100%;
    font-size: 1rem;
}
/* header#masthead .pushy .pushy-content > li:not(:last-child) {
    margin-bottom: 1rem
} */

/* #masthead .navbar-nav > li.menu-item-has-children > a {
    padding-right: 1.5rem
} */


#masthead .navbar-nav > li.current_page_item > a,
#masthead .navbar-nav > li.current-menu-parent > a,
#masthead .navbar-nav > li:hover > a,
#masthead .navbar-nav > li.current-menu-ancestor.dropdown > a {
    color: var(--brand2);
}
header#masthead .pushy .pushy-content > li.current_page_item > a,
header#masthead .pushy .pushy-content > li:hover > a,
header#masthead .pushy .pushy-content > li.pushy-submenu-open > a,
header#masthead .pushy .pushy-content > li.current-menu-parent > a,
header#masthead .pushy .pushy-content > li.current-menu-ancestor > a {
    color: #fff;
}
#masthead .navbar-nav > li > a > span {
    display:block;
    /* position: relative; */
}
#masthead .navbar-nav > li > a > span > span,
.pushy .menu-item > a > span > span {
    margin-right: .25rem;
}
#masthead .navbar-nav > li > a:after {
    content:'';
    position: absolute;
    top:100%;
    height: 5px;
    left: 0;
    right: 0;
    background-color: transparent;
    transition: background-color .3s
}
#masthead .navbar-nav > li.current_page_item > a:after,
#masthead .navbar-nav > li.current-menu-parent > a:after,
#masthead .navbar-nav > li:hover > a:after {
    background-color: var(--brand2)
}

/* #masthead .navbar-nav > li.menu-item-has-children > a > .caret, */
.pushy-submenu > .open_submenu {
    display:inline-block;
    vertical-align: text-bottom;
    text-decoration: none!important;
}
/* #masthead .navbar-nav > li.menu-item-has-children > a > .caret {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0 0 0 0.5rem!important;
} */
.pushy-submenu {
	position: relative
}
.pushy-submenu > .open_submenu {
	position:absolute;
	right: 0;
	top:0;
    /* height: 3rem; */
    padding: 0 .75rem;
	z-index:2;
    color: #000;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transform: rotate(0) translateX(-0.5rem); */
}
/* .sub-menu .pushy-submenu > .open_submenu {
    height: 2.5rem;
} */
#masthead > .container .navbar-nav > li.menu-item-has-children > a > span {
    /* position: relative; */
    padding-right: .75rem
}
#masthead > .container .navbar-nav > li.menu-item-has-children > a > span:after,
.pushy-submenu > .open_submenu:before {
    content: "\f078";
    font-family: 'Icons' !important;
    display: inline-block;
    position: absolute;
    right: .25rem;
    font-size: .875rem;
    font-weight: normal;
    line-height: 1;
    top: calc(50% - .325rem);
}
.pushy-submenu.pushy-submenu-open > .open_submenu:before {
    transform: rotate(180deg)
}
/* #masthead .navbar-nav > li.current_page_item > a > .caret:before,
#masthead .navbar-nav > li.current-menu-parent > a > .caret:before, */
#masthead .navbar-nav > li:hover > a > .caret:before {
    transform: rotate(-180deg) translate(-1px, -1px);
}


/* don't display menu item, but this menu item is used in page forming */
.menu-item.menu-item-hidden, .pushy ul.pushy-content li.empty_meny_item a {
    display:none
}

.dropdown-toggle::after {
    display:none;
}
/* Dropdown menu for top menu & mainmenu not mega */
.navbar-nav.mainmenu > li > .dropdown-menu {
    font-size: 1rem;
    z-index: 99999;
    right: 0;
    left: auto;
    top: 100%;
    margin: 0;
    border: none;
    padding: 0 .5rem;
    border-radius: 0 0 .25rem .25rem;
    width: 15.5rem;
    border: 1px solid #E9EAEB;
    border-top:5px solid var(--brand2);
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, .08), 0 4px 6px -2px rgba(10, 13, 18, .03), 0 2px 2px -1px rgba(10, 13, 18, .04);
    background-color: #fff;
    min-width: 200px;
    display: block;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .3s
}

.menu-toggle,
.main-navigation.toggled ul,
.navbar-nav.mainmenu > li.active > ul,
.navbar-nav.mainmenu > li.dropdown:hover > ul {
  visibility: visible;
  opacity: 1;
  max-height: 30rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-nav.mainmenu .dropdown-menu li {
    padding: 0 0 .25rem;
    position: relative;
}


.navbar-nav.mainmenu .dropdown-menu > li:last-child {
    padding-bottom: 0
}

.dropdown-item, header#masthead.pushy ul.sub-menu li a {
    line-height: 1.2;
    font-weight: 600;
    padding: 0;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    position: relative;
    display: block;
    text-decoration: none;
    transition: color .5s;
}
.dropdown-item span {
    white-space: normal;
}


.nav-item.active > .dropdown-item {
    background-color: transparent;
}
/**/
.dropdown-menu li.nav-item > a,
header#masthead .pushy .sub-menu li > a {
    display: flex;
    align-items: center;
    width: 100%
}
.dropdown-menu li.nav-item > a {
    padding: .5rem;
    color: var(--brand)
}
.dropdown-menu li.nav-item > a:hover, .dropdown-item:focus, .dropdown-item:hover {
    color: var(--brand2) !important;
    background: transparent;
}
.dropdown-menu li.nav-item.current-menu-parent > a,
.dropdown-menu li.nav-item.current-menu-parent > a:hover,
.dropdown-menu li.nav-item.current-menu-item > a,
.dropdown-menu li.nav-item.current-menu-item > a:hover {
	background: var(--submenu-hover);
    color: inherit !important;
}
header#masthead .pushy .sub-menu li:hover > a {
	color: #396088
}
header#masthead .pushy .sub-menu li.current_page_item > a,
header#masthead .pushy .sub-menu li.current-menu-parent > a {
/*    color: var(--akzent);*/
	color: #5583b7;
}

header#masthead .pushy .sub-menu li > a {
    padding: 0.75rem 1rem .75rem 0;
}
header#masthead .pushy .sub-menu li:last-child > a {
    margin-bottom: 0;
}

/**/
@media only screen and (max-width: 1199px) {
    .site-header .menu-btn, .menu-close {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 32px;
    }
    .site-header .menu-btn {
        position: absolute;
        right: 15px;
        top: .875rem;
    }
    .menu-close {
        position: absolute;
    }
    /* mobile menu icon */
    #nav-icon, #pushy-icon {
      position: relative;
      cursor: pointer;
    }
    #nav-icon, #pushy-icon {
      width: 32px;
      height: 32px;
    }

    #nav-icon span, #pushy-icon span {
      display: block;
      position: absolute;
      height: 2px;
      border-radius: 3px;
      background: var(--brand);
      opacity: 1;
      left: 6px;
      right:0;
    }

   #nav-icon span:nth-child(1), #pushy-icon span:nth-child(1) {
      top: 6px;
    }

    #nav-icon span:nth-child(2),
    #pushy-icon span:nth-child(2) {
      top: 13px;
    }

    #nav-icon span:nth-child(3), #pushy-icon span:nth-child(3) {
        top: 21px;
    }

    .pushy-open-left #nav-icon span:nth-child(2), #pushy-icon span:nth-child(2) {
      transform: rotate(45deg) translate(-2px,0px);
    }

    .pushy-open-left #nav-icon span:nth-child(3), #pushy-icon span:nth-child(3) {
      top: 18px;
      width: 0%;
      left: 50%;
    }

    .pushy-open-left #nav-icon span:nth-child(1), #pushy-icon span:nth-child(1) {
      transform: rotate(-45deg) translate(-5px,3px)
    }
    .navbar.mobile-menu {
        padding:0
    }
    .navbar.mobile-menu .navbar-collapse.show {
        box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
    }
}
@media  screen and (max-width: 767px) {
	header#masthead .pushy li a {
		white-space: normal;
        line-height: 1.2;
	}
}

@media only screen and (min-width: 1200px) {
    .main-menu-wrap .navbar.navbar-expand-lg {
        padding:0
    }
    #masthead .menu-btn {
        display: none;
    }
    .navbar-nav.mainmenu {
        width: 100%;
    }
    #masthead .navbar-nav > li {
        position: relative;
        margin: 0 1px 0 0;
        padding: 0;
        /* padding: 1rem 0 2rem; */
    }
    #masthead .navbar-nav > li.empty-menu-item {
        flex-basis:100%;
    }
    #masthead .navbar-nav > li.empty-menu-item > a {
        display: none;
    }
    .main-menu-wrap {
        position: relative;
    }

    .menu-close {
        position: absolute;
    }

}

@media only screen and (min-width: 1200px) and (max-width:1439px) {
    .navbar-nav.mainmenu .dropdown-menu {
        font-size: .875rem;
    }
}
