/* theme main menu */
#masthead nav.navbar-expand-xl {
    padding:0
}

#masthead .navbar-nav > li > a,
header#masthead .pushy li a {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: all .5s
}
header#masthead .pushy .pushy-content > li > a {
    padding: 0.75rem 1rem .75rem 0;
    display: block;
    width: 100%;
}
header#masthead .pushy .pushy-content > li:not(:last-child) {
    margin-bottom: 1.5rem
}
#masthead .navbar-nav > li > a {
    padding: .5rem;
    position: relative;
}
/* #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,
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,
#masthead .navbar-nav > li.current-menu-ancestor.dropdown > a,
header#masthead .pushy .pushy-content > li.current-menu-ancestor > a {
    color: var(--accent-blue);
}
#masthead .navbar-nav > li > a span {
    display:block;
    position: relative;
}


/* #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 .navbar-nav > li.menu-item-has-children > a > .caret:before, */
.pushy-submenu > .open_submenu:before {
    content: "\e907";
    font-family: 'huepferli' !important;
    display: inline-block;
    position: absolute;
    right: 0;
}
.sub-menu .pushy-submenu > .open_submenu:before {
/*    transform: rotate(180deg) translate(-1px, 1px)*/
}
/* #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);
}

header#masthead .pushy li:hover > a > .caret:before, header#masthead .pushy li.current_page_item > a > .caret:before,
header#masthead .pushy li.pushy-submenu-open > a > .caret:before,
header#masthead .pushy li.current_page_parent > a > .caret:before, header#masthead .pushy li.current-menu-item > a > .caret:before {
    transform: rotate(-180deg) translateX(-1px);
}


/* #masthead.fixed .navbar-nav li.menu-item-has-children > a > .caret {
    filter: invert(0);
} */
/* #masthead .navbar-nav li.menu-item-has-children > a > .caret {
transform-origin: center center;
transform: rotate(180deg);
} */

/* 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 */
.navbar-nav.mainmenu .dropdown-menu {
    font-size: 1.125rem;
    left: 0;
    top: 100%;
    margin: -1rem 0 0;
    border: none;
    padding: .5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all .3s
}
.navbar-nav.mainmenu .dropdown-menu .dropdown-menu {
    left: 80%;
    top: -1.6rem;
	margin-top:0;
}
.menu-toggle,
.main-navigation.toggled ul,
.navbar-nav.mainmenu li:hover > ul {
  /* display: block; */
  visibility: visible;
  opacity: 1;
  margin-top:0
}
.navbar-nav.mainmenu .dropdown-menu  li:hover > ul {
    left: calc(100% + 2px);
}
.navbar-nav.mainmenu .dropdown-menu li {
    padding: 0 0 .25rem;
    position: relative;
}
.navbar-nav.mainmenu .dropdown-menu li.dropdown-submenu:after {
    content:'';
    width: 1.25rem;
    height: 1.25rem;
/*    opacity:0;*/
    position: absolute;
    left: 100%;
    margin-left:-2rem;
    top: -0.125rem;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImFycm93LW5hcnJvdy1yaWdodCI+CjxwYXRoIGlkPSJWZWN0b3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMjkzIDUuNzkzMDNDMTIuNDgwNSA1LjYwNTU2IDEyLjczNDggNS41MDAyNCAxMyA1LjUwMDI0QzEzLjI2NTIgNS41MDAyNCAxMy41MTk1IDUuNjA1NTYgMTMuNzA3IDUuNzkzMDNMMTcuNzA3IDkuNzkzMDNDMTcuODk0NSA5Ljk4MDU2IDE3Ljk5OTggMTAuMjM0OSAxNy45OTk4IDEwLjVDMTcuOTk5OCAxMC43NjUyIDE3Ljg5NDUgMTEuMDE5NSAxNy43MDcgMTEuMjA3TDEzLjcwNyAxNS4yMDdDMTMuNTE4NCAxNS4zODkyIDEzLjI2NTggMTUuNDkgMTMuMDAzNiAxNS40ODc3QzEyLjc0MTQgMTUuNDg1NCAxMi40OTA2IDE1LjM4MDMgMTIuMzA1MiAxNS4xOTQ4QzEyLjExOTggMTUuMDA5NCAxMi4wMTQ2IDE0Ljc1ODYgMTIuMDEyMyAxNC40OTY0QzEyLjAxIDE0LjIzNDIgMTIuMTEwOCAxMy45ODE2IDEyLjI5MyAxMy43OTNMMTQuNTg2IDExLjVIM0MyLjczNDc4IDExLjUgMi40ODA0MyAxMS4zOTQ3IDIuMjkyODkgMTEuMjA3MUMyLjEwNTM2IDExLjAxOTYgMiAxMC43NjUyIDIgMTAuNUMyIDEwLjIzNDggMi4xMDUzNiA5Ljk4MDQ2IDIuMjkyODkgOS43OTI5MkMyLjQ4MDQzIDkuNjA1MzkgMi43MzQ3OCA5LjUwMDAzIDMgOS41MDAwM0gxNC41ODZMMTIuMjkzIDcuMjA3MDNDMTIuMTA1NSA3LjAxOTUgMTIuMDAwMiA2Ljc2NTE5IDEyLjAwMDIgNi41MDAwM0MxMi4wMDAyIDYuMjM0ODcgMTIuMTA1NSA1Ljk4MDU2IDEyLjI5MyA1Ljc5MzAzWiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8L3N2Zz4K);
}
.navbar-nav.mainmenu .dropdown-menu li.nav-item.item-top-line,
.pushy li.menu-item.item-top-line {
    width: 100%;
    position: relative;
    padding-top:.25rem;
}
.pushy li.menu-item.item-top-line {
    padding-top: 1.25rem
}
.navbar-nav.mainmenu .dropdown-menu li.nav-item.item-top-line:before,
.pushy li.menu-item.item-top-line:before {
    content:'';
    position: absolute;
    top:0;
    height: 1px;
    background-color: var(--menu-hover);
}
.navbar-nav.mainmenu .dropdown-menu li.nav-item.item-top-line:before {
    left:0;
    right: 0;
}
.pushy li.menu-item.item-top-line:before {
    left: 0;
    right: 1.25rem;
}
.navbar-nav.mainmenu .dropdown-menu li.nav-item.item-top-line:after,
.navbar-nav.mainmenu .dropdown-menu li:last-child:after {
    top:0
}
.navbar-nav.mainmenu .dropdown-menu > li:last-child {
    padding-bottom: 0
}
.navbar-nav.mainmenu .dropdown-menu li.nav-item.item-top-line:last-child:after {
    top:0.75rem!important
}

.dropdown-item, header#masthead.pushy ul.sub-menu li a {
    line-height: 1.2;
    font-weight: 500;
    padding: 0;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    position: relative;
    display: block;
    color: var(--submenu)!important;
    text-decoration: none;
    transition: color .5s;
}
.dropdown-menu > li:not(:last-child) > .dropdown-item {
    /* border-bottom: 1px solid rgba(0,0,0,0.5); */
}


.nav-item.active > .dropdown-item {
/*    color: var(--blue-dark)!important;*/
    background-color: transparent;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: transparent;
/*    color: var(--dark-gray)!important;*/
}
/* li.dropdown-submenu > a .caret {
    filter: invert(1);
} */
/**/
.dropdown-menu li.nav-item > a,
header#masthead .pushy .sub-menu li > a {
    display: flex;
    align-items: center;
}
.dropdown-menu li.nav-item > a {
    padding: .75rem 1rem;
	border-radius: .5rem;
	transition: background-color .5s
}
.dropdown-menu li.nav-item > a:hover {
    background: var(--submenu-hover);
    color: inherit !important;
}
.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;
}
/* .dropdown-menu li.nav-item.current-menu-item > a > .menu-item-icon,
.dropdown-menu li.nav-item.current-menu-item > a:hover > .menu-item-icon,
header#masthead .pushy .sub-menu li.current_page_item > a > .menu-item-icon,
header#masthead .pushy .sub-menu li.current-menu-parent > a > .menu-item-icon {
	background-color: #355F8F;
	transition: background-color .5s
} */


header#masthead .pushy .sub-menu li > a {
    margin-bottom: 1rem;
    min-height: 2rem;
}
header#masthead .pushy .sub-menu li:last-child > a {
    margin-bottom: 0;
}
.dropdown-menu  li.nav-item > a > .menu-item-icon,
.pushy .sub-menu li > a > .menu-item-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px -1px rgba(0, 0, 0, 0.10);
    margin-right: 1rem;
    flex-basis: 2rem;
    flex-shrink: 0;
    display:flex;
    justify-content: center;
    align-items: center;
}
.menu-item-icon-img {
    -webkit-mask-size: contain;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--brand);
    width: 100%;
    height: 100%;
}


.dropdown-menu li.nav-item .dropdown-item .menu_subtitle,
.sub-menu li.menu-item .menu_subtitle {
    display:block;
    font-size: 0.875rem;
    color: var(--submenu-subtitle);
    font-weight: 400;
}

/**/
@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: relative;
        margin-left: 1rem;
        margin-right: -8px
    }
    .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(--text);
      opacity: 1;
      left: 8px;
      right:8px;
    }

   #nav-icon span:nth-child(1), #pushy-icon span:nth-child(1) {
      top: 11px;
    }

    #nav-icon span:nth-child(2),
    #pushy-icon span:nth-child(2) {
      top: 16px;
    }

    #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(-1px,1px);
    }

    .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(-4px,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;
	}
    .site-header .menu-btn {
        margin-right: 0;
    }
}


@media only screen and (min-width: 768px) and (max-width: 1199px) {

}
@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 .5rem;
        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;
    }

    /* li.dropdown-submenu:after {
        content: '>';
        position: absolute;
        top: 8px;
        right: 20px;
        color: #fff;
    }
    li.dropdown-submenu:hover:after {
        color:#000;
    } */

}

@media only screen and (min-width: 1200px) and (max-width:1439px) {
    /* #masthead .navbar-nav > li > a {
        font-size: 1rem;
        padding: 1.35rem .75rem;
    } */
    /* #masthead .navbar-nav > li.menu-item-has-children > a > .caret {
        width: 1.25rem;
        height: 1.25rem;
    } */
    .navbar-nav.mainmenu .dropdown-menu {
        font-size: .875rem;
    }
}
@media only screen and (min-width: 1440px) {
}
