
/* 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: rgb(255,255,255) !important;
        background-color: transparent !important;
    }

    .nav-toggle-link > span {
        align-self: center;
    }
    .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-theme-dark .mm-panels {
        background-color: rgb(85, 85, 85);
    }
    
    .mm-listview>li>a,
    .mm-listview>li>span {
        line-height: 1.45;
        white-space: normal; 
    }
    .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;
    }

    .page-mobile-searchbox {
        padding: 20px;
        height: 80px;
    }

    .page-mobile-searchbox {
        display: flex;
        align-items: center;
    }
    .page-mobile-searchbox > div { flex-grow: 1; }
}

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

    .werbelink {
        float: right;
        line-height: 1;
        padding: 0.625rem 0;
        text-decoration: none;
        font-size: 0.6875rem;
        font-weight: 300;
        letter-spacing: 0.03125rem;
        color: #fff;
        opacity: .5;
    }

    .werbelink:hover {
        opacity: 1;
    }

    .werbelink span {
        font-weight: 500;
    }

    .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 {
        padding-bottom: 1.5625rem;
    }
    .bc-label {
        margin:0 0.625rem 0 0;
        line-height:1;
        float: left;
    }
    .bc-path { display: flex; flex-wrap: wrap;}
    .bc-path .item {
        display: inline-block;
        font-weight: normal;
        text-decoration: none;
    }
    .bc-path li {
        display: flex;
        align-items: center;
        background-image: none !important;
        padding-left: 0 !important;
    }

    .bc-path li + li:before {
        content: ">";
        padding-left: 0.25em;
        padding-right: 0.25em;
    }

}

@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 xlarge */
@media (min-width: 72.5em) {

    .nav-toggle { display: none; }
    .page-mobile-searchbox { display:none; }
    .page-header .sf-menu { 
        display: block; 
        float: right;
    }

    /* superfish */
    .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; }

    .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;
        font-size: 112.5%;
        padding: 2.5625rem 1rem;
        color: rgb(255,255,255);
    }

    .sf-menu .active > .item,
    .sf-menu .current > .item,
    .sf-menu .sfHover > .item,
    .sf-menu .item:focus,
    .sf-menu .item:hover {
        color: rgb(90,37,114);
        background: rgb(255,255,255);
        box-shadow: none;
    }
    
    .sf-menu .item:focus,
    .sf-menu .item:hover {
        text-decoration: underline;
    }

    .sf-menu .current > .item {
        text-decoration: none !important;
    }

    .sf-sub {
        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;
    }

    .ce-frame-megamenu {
        position: relative;
        margin: 0;
        padding: 1.25rem 0 1.25rem 1.875rem;
        background-color: rgb(240,232,241);
    }

    .ce-frame-megamenu .h3-like {
        color: rgb(46,38,114);
        margin-bottom: 2.5rem;
    }
     
    /* sf-menu-vertical */
    
    .sf-menu-vertical {
        float: none !important;
    }
    
    .sf-menu-vertical > * {
        float: none;
    }
    
    .sf-menu-vertical .sf-mega-sub {
        position: absolute;
        top:0;
        left:100%;
        width:200%; /* parent is 33.3333% */
        width: calc(200% + 5rem);
        padding: 1.875rem 2.5rem;
        box-shadow: none;
        border: none;
        background-color: rgb(255,255,255);
    }
    
    .sf-mega-sub .menu {
        column-count: 2;
    }
    
    .sf-menu-vertical li + li,
    .sf-menu-vertical .item {
        border: 0;
        break-inside: avoid; /* Chrome splits within an element with column-count :-( */
    }
    
    .sf-menu-vertical .item {
        font-size: 125%;
        white-space: normal;
        color: rgb(46,38,114);
        background-color: transparent;
        padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
    }

    .sf-menu-vertical .item .fa {
        float:right;
        text-decoration: none; 
    }
    
    .sf-menu-vertical .sfHover > .item,
    .sf-menu-vertical .item:focus,
    .sf-menu-vertical .item:hover {
        color: rgb(255,255,255);
        background-color: rgb(90,37,114);
        padding-left: 1.25rem;
    }
    
       
    .sf-menu-vertical > .current:not(.sfHover) > .item,
    .sf-menu-vertical > .active:not(.sfHover) > .item {
        color: rgb(46,38,114);
        background: none;
    }
        
    .sf-menu-vertical .sf-sub .item {
        color: rgb(110,34,114);
        font-size: 125%;
        font-weight: normal;
        background-color: transparent !important;
        padding: 0.3125rem 0 !important;
        margin-bottom: 0.9375rem;
    }
    
    .meganav-open .page-mega-shadow {
        position: absolute;
        z-index:1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.7);
    }

    /* subnav */
    .subnav { margin-bottom: 2.5rem; }

    .subnav .item {
        font-size: 112.5%;
        font-weight: 400;
        line-height: 1.1;
        padding: 0.9375rem;
        text-decoration: none;
        color: rgb(46,38,114);
        background-color: rgb(215, 213, 228);
        border-bottom: 1px solid rgb(181, 178, 205);
    }

    .subnav .current > .item,
    .subnav .active > .item,
    .subnav .item:focus,
    .subnav .item:hover {
        color: rgb(255,255,255);
        background-color: rgb(46,38,114);
        box-shadow: none;
    }
    
    .subnav .active > .item,
    .subnav .current > .item,
    .subnav .item:focus {
        font-weight: 600;
    }

    .subnav .active > .item,
    .subnav .current > .item {
        position: relative;
    }

    .subnav .current > .parent::before,
    .subnav .active > .parent::before {
        content: "";
        display: block;
        position: absolute;
        left: 0.9375rem;
        top: 100%;
        z-index: 1;
        width: 0;
        height: 0;
        border-top: 0.625rem solid rgb(46,38,114);
        border-right: 0.625rem solid transparent;
        border-left: 0.625rem solid transparent;
    }

    .subnav .sub .item {
        background-color: rgb(234, 233, 241);
        border-right: 0.625rem solid rgb(234, 233, 241);
        padding: 0.625rem 0.9375rem 0.625rem 1.875em;
    }

    .subnav .sub .current > .item,
    .subnav .sub .active > .item,
    .subnav .sub .item:focus,
    .subnav .sub .item:hover {
        color: rgb(46,38,114);
        background-color: rgb(196, 194, 216);
        border-right-color: rgb(46,38,114);
    }
    
    .subnav .sub .current > .parent::before,
    .subnav .sub .active > .parent::before {
        border-top-color: rgb(196,194,216);
    }
    
    .subnav .sub .sub .item {
        font-size: 100%;
        background-color: rgb(245, 244, 248);
        padding-left: 2.8125rem;
        border-right-color: rgb(245, 244, 248);
    }
    
    .subnav .sub .sub .current > .item,
    .subnav .sub .sub .active > .item,
    .subnav .sub .sub .item:focus,
    .subnav .sub .sub .item:hover {
        background-color: rgb(196, 194, 216);
        border-right-color: rgb(46,38,114);
    }

    .subnav .item-back {
        position: relative;
        font-size: 100%;
        color: rgb(255,255,255);
        padding-left: 2.8175rem;
        background: url("../Img/link-return-white.svg") 0.625rem center no-repeat rgb(128, 87, 147);
        background-size: 1.5625rem 1.5625rem;
    }
    
/*     falsche Darstellung in IE, Edge, Chrome, ... 
    .subnav .item-back::before {
        content:"" !important;
        display: block !important;
        position:absolute;
        top: 50%;
        left:0.625rem;
        transform: translateY(-50%);
        width: 1.5625rem;
        height: 1.5625rem;
        background: url("../Img/link-return-white.svg") center center no-repeat transparent;
        background-size: contain;
    }*/
    
}

@media (min-width:92.5em) {
    .sf-menu > li > .item {
        font-size: 125%;
        padding: 2.5rem 1.25rem;
    }
    
    .ce-frame-megamenu {
        padding: 1.875rem 0 1.875rem 2.5rem;
    }
    .sf-megasub {
       left: calc(50% - 46.25rem);
        right: calc(50% - 46.25rem);
    }
    
    .sf-menu-vertical > li > .item {
        font-size: 150%;
        padding: 1.5rem 1.25rem 1.5rem 0;
    }
    
}