
@mixin vendor-prefix($name, $value){
    @each $vendor in ('-webkit-', '-moz-', '-ms-', '-o-', ''){
        #{$vendor}#{$name}: #{$value};
    }
}
@mixin vertical-center{
    position: relative;
    top: 50%;
    @include vendor-prefix('transform', 'translateY(-50%)');
}



#navigationModalMulti {
    background: rgba($color_brand,.9);
    @include vendor-prefix('backdrop-filter', 'blur(10px)');

    .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        overflow: hidden;
         // BUGFIX APPLE DEVICES 100vh
         @media not all and (hover:hover) {
            height: var(--app-height);
            max-height: var(--app-height);
        }
        // CLOSE BUGFIX APPLE DEVICES 100vh
        .modal-content {
            min-width: inherit;
            border: none;
            background: transparent;
            .navbarwrapper .container-fluid {
                padding: 0;
                margin: 0;
                .wrapper .nav {
                    display: block;
                    height: 100vh;
                    // BUGFIX APPLE DEVICES 100vh
                    @media not all and (hover:hover) {
                        height: var(--app-height);
                    }
                    // CLOSE BUGFIX APPLE DEVICES 100vh
                    .closecontainer {
                        top: 0 !important;
                        z-index: 10;
                        height: 80px;
                        max-height: inherit !important;
                        overflow-y: auto !important;
                        @media (max-width: 992.98px) {
                            position: fixed !important;
                        }
                        + .container {
                            @media (max-width: 992.98px) {
                                margin-top: 80px;
                            }
                        }
                        .close {
                            position: fixed;
                            top: 24px;
                            right: 20px;
                            background: transparent;
                            border: none;
                            width: 50px;
                            height: 50px;
                            border-radius: 50px;
                            z-index: 2;
                            color: $color_white;
                            svg {
                                position: absolute;
                                @include center;
                                width: 20px;
                                path {
                                    fill: $color_white;
                                }
                            }
                        }
                    }
                    .container {
                        position: relative;
                        float: left;
                        left: 50%;
                        -webkit-transform: translateX(-50%);
                        -moz-transform: translateX(-50%);
                        -ms-transform: translateX(-50%);
                        -o-transform: translateX(-50%);
                        transform: translateX(-50%);
                        max-height: calc(100vh - 180px);
                      // BUGFIX APPLE DEVICES 100vh
                        @media not all and (hover:hover) {
                            max-height: calc(var(--app-height) - 180px);
                        }
                        // CLOSE BUGFIX APPLE DEVICES 100vh
                        @media (min-width: 2500px) {
                            left: auto;
                            transform: none;
                            float: inherit;
                        }
                        @media (max-width: 540px) {
                            max-height: calc(80vh - 210px);
                        }
                    }
                    > .container {
                        overflow-y: scroll;
                    }
                }
            }
        }
    }
}

#navigationModalMulti {
    .modal-dialog {
        .modal-content {
            .navbarwrapper {
                .container-fluid {
                    .wrapper {
                        .nav {
                            .container {
                                .menu {
                                    position: relative;
                                    float: left;
                                    width: 100%;
                                    @media (max-width: 767.98px) {
                                        margin-top: 30px;
                                        margin-bottom: 30px;
                                    }
                                    .stack-menu {
                                        background: transparent;
                                        box-shadow: none;
                                        overflow: unset;
                                        .naviimagewrapper {
                                            @include vertical-center;
                                            position: fixed;
                                            right: 0;
                                            width: 350px;
                                            height: auto;
                                            opacity: 0;
                                            @media (max-width: 576px) {
                                                right: calc((100vw - 540px)/2);
                                            }
                                            @media (min-width: 768px) {
                                                right: calc((100vw - 720px)/2);
                                            }
                                            @media (min-width: 992px) {
                                                right: calc((100vw - 960px)/2);
                                            }
                                            @media (min-width: 1200px) {
                                                right: calc((100vw - 1140px)/2);
                                            }
                                            @media (min-width: 1400px) {
                                                right: calc((100vw - 1320px)/2);
                                            }
                                        }
                                        .stack-menu__link--parent {
                                            &:hover, &.stack-menu__link--hidden {
                                                .naviimagewrapper {
                                                    opacity: 1;
                                                }
                                            }
                                            &::after {
                                                @include icon;
                                                content: '\F280' !important;
                                                position: relative !important;
                                                left: inherit;
                                                top: 4px !important;
                                                font-size: smaller;
                                                display: inline-block;
                                                width: auto !important;
                                                height: auto !important;
                                                @include vendor-prefix(transition, all 0.3s ease-in-out);
                                                @include vendor-prefix(transform, translateY(1px)!important);
                                            } 
                                        }
                                        .stack-menu__list {
                                            list-style: none;
                                            .stack-menu__item {
                                                .stack-menu__link {
                                                    position: relative;
                                                    float: left;
                                                    width: 100%;
                                                    color: $color_white;
                                                    @include font-size-base;
                                                    @include h2-font-size;
                                                    text-transform: uppercase;
                                                    font-weight: $font-weight-bold;
                                                    padding: 0;
                                                    //opacity: 0.5;
                                                    line-height: 1.3;
                                                    -webkit-transition: all 0.3s ease-in-out;
                                                    -moz-transition: all 0.3s ease-in-out;
                                                    -o-transition: all 0.3s ease-in-out;
                                                    -ms-transition: all 0.3s ease-in-out;
                                                    transition: all 0.3s ease-in-out;
                                                    letter-spacing: $letter-spacing;
                                                    * {
                                                        color: $color_white;
                                                    }
                                                }
                                            }
                                        }

                                    }
                                }
                            }
                            & > .container {
                                overflow: inherit;
                            }
                        }
                    }
                }
            }
        }
    } 
}

@media (max-width: 1199.98px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--hidden {
        display: none;
       }
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link {
        font-size: 2.5rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
   }
}
@media (max-width:576px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link,
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link {
        line-height: 1.2 !important;
    }
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link:before {
    content: '';
    position: absolute;
    top: 50%;
    @include vendor-prefix(transform, translateY(-50%));
    left: 0;
    @include icon;
    content: '\F285';
    font-size: smaller;
    opacity: 0;
    @include vendor-prefix(transition, all 0.3s ease-in-out);
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link:hover {
    padding-left: 45px;
    background: none;
    opacity: 1;
    font-weight: 700;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link:hover:before {
    opacity: 1;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link:hover {
        padding-left: 0;
    }
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link:hover:before {
        opacity: 0;
    }
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent {
    background-image: none;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent:after {
    content: '';
    background-size: 650px 650px;
    background-repeat: no-repeat;
    width:  650px;
    height: 650px;
    @include vertical-center;
    position: fixed;
    right: 0;
    opacity: 0;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent:hover:after,
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent.stack-menu__link--hidden:after {
    opacity: 1;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent[data-attr="Dunstabzuege"]:after {
    background-image: url(../Images/Drawings/berbel-icon-abzugshaube.svg);
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--parent[data-attr="Kochfelder"]:after {
    background-image: url(../Images/Drawings/berbel-icon-kochfeld.svg);
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--back {
    position: relative;
    float: left;
    width: 100%;
    background-image: none;
    opacity: 1;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--back:before {
    content: '';
    position: absolute;
    left: 0;
    width: 30px !important;
    height: 30px !important;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-image: url(../Icons/arrow-g.svg);
    opacity: 1;
    transform: scaleX(-1);
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--back:after {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    float: left;
    font-weight: bold;
    text-transform: uppercase;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link {
    font-size: 1.5rem;
    line-height: 1.5;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link {
        max-width: 87%;
        /*white-space: nowrap;*/
	    overflow: hidden;
	    text-overflow:ellipsis;
    }
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link:hover {
    padding-left: 25px;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link:before {
    width: 15px !important;
    height: 15px !important;
    background-size: 15px 15px;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--back {
    padding-bottom: 30px;
    margin-bottom: 15px;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item .stack-menu__list .stack-menu__item .stack-menu__link.stack-menu__link--back:before {
    width: 30px !important;
    height: 30px !important;
    background-size: 30px 30px;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav {
    position: relative;
    float: left;
    width: 100%;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav:first-of-type .stack-menu__link {
    margin-top: 30px;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link {
    @include font-size;
    font-weight: $font-weight-base;
    line-height: 1.5;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link.parent-level,
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__list--active .stack-menu__item .stack-menu__link{
    font-weight: 700;
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link:hover {
    padding-left: 25px;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link:hover {
        padding-left: 0;
    }
}
#navigationModalMulti .modal-dialog .modal-content .navbarwrapper .container-fluid .wrapper .nav .container .menu .stack-menu .stack-menu__list .stack-menu__item.secondaryNav .stack-menu__link:hover:before {
    width: 15px !important;
    height: 15px !important;
    background-size: 15px 15px;
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper {
    position: fixed !important;
    bottom: 30px;
    display: flex;
    justify-content: center;
    left: 0;
    transform: none;
}
@media (max-width: 991.98px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper {
        width: 100%;
        max-width: 100%;
        bottom: 75px;
        left: 0 !important;
        transform: none !important;
    }
}

@media (min-width: 992.99px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper .wrapper-inner {
        position: relative;
        float: right;
        width: inherit;
        padding: 0 15px;
    }
}

#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    float: right;
}

@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper ul {
        position: fixed;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 100%;
        bottom: 15px;
        display: flex;
        justify-content: center;
    }
}

#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li {
    position: relative;
    float: left;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li {
        margin-bottom: 15px;
   }
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li a {
    position: relative;
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 150px;
    background: rgba(0, 0, 0, .4);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li a svg {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width: 20px;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li a svg {
        width: 20px;
   }
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li a:hover {
    background: white;
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li a:hover svg path {
    fill: #0064a3;
}
#navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li + li {
    margin-left: 15px;
}
@media (max-width: 767.98px) {
    #navigationModalMulti .modal-dialog .modal-content .socialwrapper ul li + li {
        margin-left: 10px;
   }
}
@-moz-document url-prefix() {
    #navigationModalMulti {
        background: rgba(0, 0, 0, .5);
   }
}

#navigationModalMulti .language-wrapper {
    position: relative !important;
    float: right !important;
    bottom: 0px !important;
    width: auto;
    left: auto !important;
    transform: none !important;
    max-height: auto;
    margin-left: 5px;
}

#navigationModalMulti .language-wrapper button {
    height: 50px;
    border-radius: 150px;
    background: rgba(0, 0, 0, .4);
    border: none;
    color: white;
    min-width: 80px;
    text-align: left;
}

#navigationModalMulti .language-wrapper button::after {
    background: url(../Icons/arrow-w.svg);
    background-repeat: no-repeat;
    top: 54%;
    -webkit-transform: translateY(-50%) rotate(90deg);
    -moz-transform: translateY(-50%) rotate(90deg);
    -ms-transform: translateY(-50%) rotate(90deg);
    -o-transform: translateY(-50%) rotate(90deg);
    transform: translateY(-50%) rotate(90deg);
}

#navigationModalMulti .language-wrapper .dropdown-menu {
    background: rgba(0, 0, 0, .4);
    border: none;
    min-width: auto;
    box-shadow: none;
}

#navigationModalMulti .language-wrapper .dropdown-menu a {
    color: white;
}

#navigationModalMulti .language-wrapper .dropdown-menu a:hover {
    background: transparent;
}

#navigationModalMulti .socialwrapper {
    max-height: auto;
    overflow-y: unset !important;
}

@media (max-width: 992.98px) {
    #navigationModalMulti .language-wrapper {
        max-height: inherit !important;
        overflow: auto !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 767.98px) {
    #navigationModalMulti .language-wrapper {
        left: 50% !important;
        -webkit-transform: translateX(-50%) !important;
        -moz-transform: translateX(-50%) !important;
        -ms-transform: translateX(-50%) !important;
        -o-transform: translateX(-50%) !important;
        transform: translateX(-50%) !important;
        float: left !important;
        height: 100px;
    }
}

#navigationModalMulti .language-wrapper .select-wrapper {
    position: relative;
    float: right;
    width: auto;
}

@media (max-width: 992.98px) {
    #navigationModalMulti .language-wrapper .select-wrapper {
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

#navigationModalMulti .language-wrapper .select-wrapper:after {
    content: '';
	background-image: url('../Icons/arrow-w.svg');
	background-repeat: no-repeat;
	position: absolute;
	top: 50%;
    -webkit-transform: translateY(-50%) rotate(90deg);
    -moz-transform: translateY(-50%) rotate(90deg);
    -ms-transform: translateY(-50%) rotate(90deg);
    -o-transform: translateY(-50%) rotate(90deg);
    transform: translateY(-50%) rotate(90deg);
	right: 15px;
	left: auto;
	width: 8px;
	height: 15px;
    pointer-events: none;
}

#navigationModalMulti .language-wrapper .language-select {
    width: auto;
    height: 50px;
    background: rgba(0, 0, 0, .4);
    border-radius: 50px;
    border: none;
    color: white;
    font-weight: 700;
}

#navigationModalMulti .language-wrapper .language-select:focus {
    box-shadow: none;
}

.stack-menu__link--back {
    position: relative !important;
    float: left !important;
    width: 40px !important;
    height: 40px !important;
    padding-bottom: 0px !important;
    line-height: 1 !important;
}
.stack-menu__link--back:before {
    top: 65% !important;
    transform: translateY(-50%) scaleX(-1) !important;
}
.parent-level {
    position: relative !important;
    float: left !important;
    width: auto !important;
    font-size: 3rem !important;
    line-height: 1 !important;
    margin-bottom: 15px !important;
}
@media (max-width: 1024px) {
    .parent-level {
        max-width: 80% !important;
    }
}
@media (max-width: 767.98px) {
    .parent-level {
        font-size: 2.5rem !important;
        margin-top: 5px;
    }
}
.parent-level:hover {
    padding-left: 0 !important;
}
.parent-level:hover:before {
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

#stack-menu > .stack-menu__list > li .stack-menu__list .stack-menu__item[data-id] > .stack-menu__link {
    margin-left: 40px;
    margin-bottom: 5px;
}

.stack-menu__link--back {
    span {
        position: relative;
        float: left;
        font-size: 1rem;
        margin-top: 10px;
        margin-left: 40px;
    }
    &::before {
        width: 15px !important;
        height: 15px !important;
        background-size: 15px 15px !important;
    }
    &:hover {
        padding-left: 0 !important;
    }
}