
/* rc-stuff functional styles */
@media all {

    /* toggle */
    .rc-link {
        display: block;
        text-decoration: none;
        color: currentColor;
        cursor: pointer;
    }

    /* rc-load */
    .rc-load-hide { display: none; }
    .rc-load-show { display: block; }
    .rc-load-success > .rc-hide-on-success { display: none; }

    /* rc-container */
    .rc-container-enabled,
    .rc-head .rc-html-orig,
    .rc-open .rc-show-closed,
    .rc-show-opened { display:none; }

    .rc-show-closed,
    .rc-open .rc-show-opened { display: block; }

    .rc-container-toggle { display: none; }
    .rc-container-toggle.rc-head { display: block; }

}

/* mobile toggle  */
@media all {

    .page-header .sf-menu { display: none; }

    .nav-toggle {
        line-height: 1;
    }
    .nav-toggle-link { 
        display: flex;
        height: 2.5rem;
        padding: 0 0.625em; 
        color: inherit;
    }

    .nav-toggle-link > span {
        align-self: center;
    }
    /* sr-hint? .nav-toggle-text { width: 1px; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; position: absolute !important; } */
    .nav-toggle-text { color: currentColor; vertical-align: middle; margin-right:0.625rem; }

    .nav-icon-close,
    .nav-icon-menu {
        padding: 0.3125rem 0;
        border-top: 0.3125rem solid currentColor;
        border-bottom: 0.3125rem solid currentColor;
        display: inline-block;
        width: 1.75rem;
        vertical-align: middle;
        position:relative;
    }

    .nav-icon-menu:before {
        content:"";
        background: currentColor;
        display:block;
        height:0.3125rem;
    }

    .nav-icon-close { border: none; top: -0.15em; }
    .nav-icon-close:before,
    .nav-icon-close:after {
        content:"";
        background: currentColor;
        display:block;
        height:0.3125rem;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        position: absolute;
        left: 0;
        right: 0;
    }
    .nav-icon-close:after {
        -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .nav-show-opened,
    .nav-toggle-open .nav-show-closed { display: none; }
    .nav-toggle-open .nav-show-opened { display: block; }

    /* dim page? */
    /*
    .mm-menu.mm-opened ~ .mm-page::before {
        content: "";
        position: absolute;
        z-index: 1000;
        top: 0;
        background: rgba(0,0,0,0.25);
        left: 0;
        width: 100vw;
        height: 100%;
    }
    */

    .mm-menu.mm-opened::before {
        box-shadow: 0 0 1.25rem rgba(0,0,0,0.25);
        content: "";
        position: absolute;
        z-index: 1;
        top: 0;
        right: 100%;
        width: 1.25rem;
        height: 100vh;
    }

}

/* subnav */
@media all {

    .subnav .item {
        line-height: 1.1;
        padding: 0.625rem 1.25rem;
        text-decoration: none;
        color: currentColor;
        border-bottom: 1px solid rgb(204,204,204);
    }

    .subnav .current > .item,
    .subnav .item:hover,
    .subnav .item:focus {
        color: currentColor;
        background-color: rgb(234,235,236);
    }
    
    .subnav .current > .item {
        border-left: 0.625rem solid rgb(175, 208, 202);
        padding-left: 0.625rem;
    }

    .subnav .sub {
        padding-left: 1.25rem;
    }

    .subnav li:not(:last-child) > .sub {
        border-bottom: 1px solid rgb(204,204,204);
    }
    
    .subnav li:not(:last-child) > .sub > li:last-child > .item:last-child,
    .subnav li:not(:last-child) > .sub > li:last-child li:last-child > .item:last-child {
        border-bottom-width: 0;
    }

}

/* footernav and totop */
@media all {
    .footernav {
        margin-left: -0.3125rem;
    }
    .footernav .item { padding: 0.625rem 0.3125rem; }
    .footernav .item { display: inline-block;}

    .werbelink {
        float:right;
        line-height: 1;
        padding: 0.625rem 0.3125rem;
        text-decoration: none;
    }

    .werbelink span {
        font-weight: normal;
        /* background: rgb(184,15,34); */
        background: rgba(0,0,0,0.5);
        color: white;
        padding: 0.25em;
        border-radius: 0.25em;
        font-size: 0.5em;
        vertical-align: top;
        display: inline-block;
    }

    .totoplink {
        position: fixed !important;
        right: 0.625em;
        bottom: 0.625em;
        z-index: 10;
        color: rgb(255,255,255);
        background: rgb(128,128,128);
        opacity: 0.5;
        line-height: 1;
        border-radius: 50%;
        padding: 0.625rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    .totoplink::before {
        content: none !important;
    }    
    .totoplink > .fa {
        margin-right: 0;
        padding-right: 0;
    }
}

/* breadcrumbs */
@media all {
    .bc-nav {
        display: none;
    }
}

@media (min-width: 30em) {

    .rc-offcanvas-enabled .rc-offcanvas-right {
        width: 22rem;
        position: absolute;
        left: 100%;
        top: 0;
        height: 100%;
        overflow: auto;
    }

    .rc-offcanvas-enabled.rc-open {
        -webkit-transform: translate(-22rem, 0); /* android 2 */
        -ms-transform: translate(-22rem, 0); /* ie9 */
        transform: translate(-22rem, 0);
        -webkit-transform: translate3d(-22rem, 0, 0); /* android 3-4 */
        transform: translate3d(-22rem, 0, 0);
    }
}

/* tablet (without print) */
@media (min-width: 47.5em) {

    .topnav .item {
        font-size: 87.5%;
        line-height: 1;
        margin: 0 0.3125rem;
        padding: 0.3125rem;
    }

    /* footer  */
    .footernav { width: auto; }
    .footernav li { float:left; margin-bottom: 0; }
    .footernav .item { display: block;}

    .footernav li + li { margin-left: 0.5em; }

}

/* desktop */
@media (min-width: 62.5em) {

    .nav-toggle { display: none; }
    .page-header .sf-menu { display: inline-block; }

    /* superfish */
    /* .menu does this already:
    .sf-menu, .sf-menu ul { margin: 0; padding: 0; list-style: none; } */
    .sf-menu .sf-has-sub { position: relative; }
    .sf-menu .sf-sub { position: absolute; display: none; z-index:99; }

    /* either... */
    /* .sf-menu {
        display: table;
        width: 100%;
    }
    .sf-menu > li { display: table-cell; }
    */
    /* ...or: */
    .sf-menu > * { float: left; } 

    .sf-menu .sf-has-sub:hover > ul,
    .sf-menu .sf-has-sub.sfHover > ul { display: block; }
    .sf-menu .item { display: block; position: relative; white-space: nowrap; text-overflow: ellipsis; }
    .sf-menu .sf-has-sub .sf-has-sub { top: 0; left: 100%; }

    .sf-menu > .sf-has-sub:last-child > .sf-sub { right:0; }
    .sf-menu > .sf-has-sub:last-child > .sf-sub .sf-sub { right:100%; left: auto;}
    .sf-hidden { display: none!important; }

    /* sf theme */

    .sf-menu .item {
        display: block;
        margin: 0 0.25rem;
        padding: 2rem 0.25rem 0.625rem;
        border-bottom: 0.3125rem solid rgba(0,0,0,0);
        text-align: center;
        text-decoration: none;
        font-size: 112.5%;
        color: currentColor;
    }

    .sf-menu .active > .item,
    .sf-menu .current > .item,
    .sf-menu .item:active,
    .sf-menu .item:hover,
    .sf-menu .item:focus,
    .sf-menu .sf-sub:hover > .item {
        color: currentColor;
        background-color: rgb(215,231,228);
    }

    .sf-menu .current > .item,
    .sf-menu .active > .item {
        font-weight: 600;
    }

    .sf-menu > .active > .item,
    .sf-menu > .current > .item,
    .sf-menu > li > .item:hover,
    .sf-menu > li > .item:focus {
        border-color: rgb(175,208,202);
    }
    
    .sf-sub {
        margin: 0 0.3125rem;
        padding: 0;
        background: rgb(255,255,255);
        box-shadow: 0 0 1.25rem rgba(0,0,0,0.25);
    }
    
    .sf-sub li + li {
        border-top: 1px solid rgba(0,0,0,0.25);
    }
    
    .sf-sub .sf-sub {
        border-left: 1px solid rgba(0,0,0,0.25);
    }
    .sf-menu > .sf-has-sub:last-child > .sf-sub .sf-sub {
        border-left: none;
        border-right: 1px solid rgba(0,0,0,0.25);
    }

    .sf-sub .item {
        color: rgb(51,51,51);
        background: rgb(255,255,255);
        margin: 0;
        padding: 0.625rem 1.25rem;
        border: none;
        text-align: left;
    }

    .sf-menu .sf-has-megasub {
        position: static;
    }

    .sf-megasub {
        left: 0;
        right:0;
    }
    
    .sf-megasub .wrap-inner {
        padding-top: 1.875rem;
    }
    

    .subnav { margin-bottom: 2.5rem; }

}


@media (min-width: 95em) {
    .sf-menu .item {
        font-size: 125%;
        padding: 2.5rem 0.625rem 0.625rem;
        margin: 0 0.3125rem;
    }
    .sf-sub .item {
        padding: 0.625rem 1.25rem;
    }
}