/* Navigation
-------------------------------------------------- */

#dark {
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 1;
    opacity: .6;
    visibility: hidden;
    transition: background .2s ease-in-out;
}

#dark.open {
    visibility: visible;
    background: #000;
}


#language li {
    display: block;
    font-size: .8rem;
    display: inline-block;
    text-transform: uppercase;
}

#language li:nth-child(1):after {
    content: '|';
    margin-left: 0.2rem;
}

#language li.active {
    font-weight: 700;
}

.container a:after {
    content: '';
    position: absolute;
    background: #e63343;
    height: 2px;
    width: 0%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    left: 50%;
    bottom: 0;
    -webkit-transition: .35s ease;
    transition: .35s ease;
}

.container a:hover:after,
.container a:focus:after,
.container a:active:after {
    width: 100%;

}

.button_container {
    position: fixed;
    top: 1.5rem;
    right: 1rem;
    height: 27px;
    width: 35px;
    cursor: pointer;
    z-index: 100;
    -webkit-transition: opacity .25s ease;
    transition: opacity .25s ease;
    z-index: 1001;
}

.button_container:hover {
    opacity: .7;
}

.button_container.active .top {
    -webkit-transform: translateY(11px) translateX(0) rotate(45deg);
    transform: translateY(11px) translateX(0) rotate(45deg);
}

.button_container.active .middle {
    opacity: 0;
}

.button_container.active .bottom {
    -webkit-transform: translateY(-11px) translateX(0) rotate(-45deg);
    transform: translateY(-11px) translateX(0) rotate(-45deg);
}

.button_container span {
    background: #000;
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transition: all .35s ease;
    transition: all .35s ease;
    cursor: pointer;
}

.button_container span:nth-of-type(2) {
    top: 11px;
}

.button_container span:nth-of-type(3) {
    top: 22px;
}

.overlay {
    position: fixed;
    background: #fff;
    top: 0;
    right: 0;
    width: 33rem;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .35s, visibility .35s, height .35s;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;

}

.overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
    z-index: 1000;
}

.overlay.open li {
    -webkit-animation: fadeInRight .5s ease forwards;
    animation: fadeInRight .5s ease forwards;
    -webkit-animation-delay: .15s;
    animation-delay: .15s;
}

.overlay.open li:nth-of-type(2) {
    -webkit-animation-delay: .2s;
    animation-delay: .2s;
}

.overlay.open li:nth-of-type(3) {
    -webkit-animation-delay: .25s;
    animation-delay: .25s;
}

.overlay.open li:nth-of-type(4) {
    -webkit-animation-delay: .30s;
    animation-delay: .30s;
}

.overlay.open li:nth-of-type(5) {
    -webkit-animation-delay: .35s;
    animation-delay: .35s;
}

.overlay.open li:nth-of-type(6) {
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
}

.overlay.open li:nth-of-type(7) {
    -webkit-animation-delay: .45s;
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(8) {
    -webkit-animation-delay: .5s;
    animation-delay: .5s;
}

.overlay nav {
    position: relative;
    height: auto;
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-left: 2rem;
    font-weight: 300;
    text-align: left;
    line-height: 1.275;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    margin-top: 6rem;
    display: inline-block;
    position: relative;
    height: 100%;
}

.overlay ul li {
    display: block;
    position: relative;
    opacity: 0;
}

.overlay ul li a {
    display: block;
    position: relative;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 1;
    text-decoration: none;
    overflow: hidden;
}

.overlay ul li a.active {
    text-decoration: underline;
}

.overlay ul li a:hover {
    color: #89ba17;
    transition: all 0.2s ease-in-out;
}

#close,
#close_s {
    position: absolute;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
}

#close:hover,
#close_s:hover {
    opacity: .5;
}

/* =====  search  ==================================================== */


#s {
    border: none;
    height: auto;
    width: 2.3rem;
    font-weight: 700;
    position: fixed;
    top: 7.6rem;
    right: 0.9rem;
    cursor: pointer;
    background: none;
}

#s:hover {
    opacity: 0.5;
    transition: opacity .3s ease-in-out;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    box-sizing: border-box;
}

#search {
    max-width: 33rem;
    width: 100%;
    height: 0%;
    position: fixed;
    background: #fff;
    z-index: 1001;
    top: 0;
    right: 0;
    visibility: hidden;
}

#search.open {
    visibility: visible;
    height: 100%;
}

#search form {
    font-size: 1.75rem;
    margin-top: 6rem;
    margin-left: 2rem;
    margin-right: 2rem;
    width: auto;
}

#search input[type=search] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1rem 0;
    height: 4rem;
    /*    font-size: 3.275rem;*/
    margin-bottom: 2rem;
    line-height: 1;
    -webkit-appearance: none;
    border-bottom: 2px solid #000;
    width: 100%;
    float: left;
}

button[type=submit] {
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 2rem;
    width: 100%;
    display: block;
    background: none;
}

button[type=submit]:hover {
    opacity: .4;
    transition: opacity .5s ease-in-out;
}

.search input:focus,
.search button:focus {
    outline: none;
}



/* quickfinder
-------------------------------------------------- */

#quick {
    background: #89ba17;
    border: none;
    height: 2.2rem;
    border-radius: 200px;
    text-align: center;
    width: 2.3rem;
    line-height: 1.15;
    font-weight: 700;
    position: fixed;
    top: 4.3rem;
    color: #fff;
    font-size: 1.7rem;
    right: 0.9rem;
    cursor: pointer;
}

#quick:hover {
    background: #000;
    transition: background .3s ease-in-out;
}

#quickfinder {
    position: fixed;
    background: #fff;
    top: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .35s, visibility .35s, height .35s;
    transition: opacity .15s, height .3s;
}

#quickfinder.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
    z-index: 1001;
    overflow: scroll;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

#quickfinder .logo img {
    margin: 2rem;
    visibility: hidden;
}

#quickfinder.open .logo img {
    margin: 2rem;
    visibility: visible;
}

.quickitem {
    width: 100%;
    position: relative;
    padding: 0rem 2rem 0 2rem;
}

.quickitem .headline {
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 1.07;
    letter-spacing: -.6px;
    text-transform: uppercase;
    width: 100%;
    max-width: none;
    display: inline-block;
    position: relative;
    border-top: 3px solid #000;
    padding: 2.3rem 0 1rem 0;
}

.quickitem svg {
    position: absolute;
    height: 45%;
    width: auto;
    right: 0;
    vertical-align: bottom;
}

.quickitem li {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    border-bottom: 3px solid #000;
}

.quickitem span {
    width: 30%;
    display: inline-block;
    font-size: 2rem;
    line-height: 2.2rem;
    text-transform: uppercase;
    max-width: 39rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.quickitem .wrap {
    width: 60%;
    padding: 0;
    margin-bottom: 3rem;
}

.quickitem .wrap a {
    margin: 0;
    width: 49.5%;
    border-bottom: none;
    margin-bottom: .5rem;
    display: block;
    float: left;
}



/* breadcrumb
-------------------------------------------------- */

.breadcrumb {
    position: absolute;
    top: 1rem;
    left: 30%;
    width: auto;
}

.breadcrumb li {
    display: inline-block;
    padding-right: .5rem;
    color: #9B9B9B;
    font-size: 0.889em;
    font-weight: 700;
}

.breadcrumb li:after {
    content: '';
    height: 15px;
    width: 15px;
    margin-left: .4rem;
    background-image: url(../images/bread_arrow.svg);
    background-size: contain;
    display: inline-block;
    vertical-align: middle;
}

.breadcrumb li:last-child:after {
    content: '';
    background: none;
}



/* submenu
-------------------------------------------------- */

.submenu {
    font-size: 1.667em;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    width: 30%;
    padding-top: 2rem;
    padding-left: 1.5rem;
    float: left;
}

.subsubmenu {
    margin-left: 1.5rem;
    font-weight: 300;
    text-transform: none;
    font-size: 1rem;
}

.subsubmenu .active,
.submenu .active {
    border-bottom: 1px solid #000;
    opacity: 1;
}

/* RSP
-------------------------------------------------- */

/* ----- AB 1024 ----- */
@media screen and (max-width: 70rem) {

    .quickitem .wrap ul li,
    .quickitem span,
    .quickitem .wrap,
    .overlay {
        width: 100%;
    }

    .overlay {
        width: 100%;
    }

    #button_container {
        position: absolute;
    }

    #quick {
        top: 1rem;
        right: 3.9rem;
    }

    #s {

        top: 1rem;
        right: 6.9rem;
    }


    .button_container span {
        background: #000;
    }
}


/* ----- AB IPAD hochformat----- */
@media screen and (max-width: 48rem) {

    .breadcrumb {
        display: none;
    }

    .submenu {
        width: 100%;
        border-bottom: 2px solid #000;
        padding: 1rem 3rem;
        margin-bottom: 1rem;
        margin-top: 0rem;
    }

    .overlay nav {
        font-size: 2.5rem;
    }


    /* ----- AB IPhone 7 plus ----- */

    @media screen and (max-width: 40rem) {

        #button_container,
        #quick,
        #s {
            position: absolute;
        }

        .overlay nav {
            margin-left: 1rem;
            font-size: 1.6rem;
        }

        .overlay ul {
            margin-top: 3rem;
        }

        .submenu {
            font-size: 1.25em;
            padding: 1rem;
            margin-bottom: 1rem;
            margin-top: -2rem;
        }

        .quickitem span {
            font-size: 1.25rem;
            line-height: 1.5rem;
        }

        .quickitem .headline {

            font-size: 1.65rem;
        }

        #quickfinder.open .logo img {
            margin: 1rem;
        }

        #close,
        #close_s {
            right: 1rem;
            top: 1rem;
        }

        .quickitem {
            padding: 0 1rem;
        }

        .quickitem .wrap a {
            width: 100%;
        }

        #quickfinder.open {
            min-height: 100vH;
        }

        .quickitem .headline {
            padding-top: 1.8rem;
        }

        .quickitem .wrap {
            padding-bottom: 0rem;
        }

        .quickitem svg {
            bottom: 1.25rem;
        }

        #close img,
        #close_s img {
            width: 25px;
            margin-top: 0.5rem;
        }

    }