
/* 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 #fff;
        border-bottom: 0.3125rem solid #fff;
        display: inline-block;
        width: 1.75rem;
        vertical-align: middle;
        position:relative;
    }

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

    .nav-icon-close { border: none; top: -0.15em; }
    .nav-icon-close:before,
    .nav-icon-close:after {
        content:"";
        background: #fff;
        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;
    }

    .topnav-mobile a:hover {
        color: inherit;
        background: inherit;
    }
}

/* subnav */
@media all {

    .subnav {
        clear: both;
        border-style:solid;
        border-color: rgb(51,51,51);
        border-width: 2px 0;
        background-color: rgb(255,255,255);
    }


    .subnav .item {
        line-height: 1.1;
        padding: 0.625rem;
        padding-left: 1.25rem;
        text-decoration: none;
        text-transform:uppercase;
        color: rgb(51,51,51);
        border-bottom: 1px solid rgb(204,204,204);
        overflow: visible !important;
    }


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

    .subnav .current > .item::before {
        position: absolute;
        left: 0.625rem;
        top: 49%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 0.325em solid transparent;
        border-bottom: 0.325em solid transparent;
        border-left: 0.325em solid rgba(0,0,0,0.25);
    }

    .subnav { overflow: hidden; }
    .subnav .sub {
        position:relative;
        background-color: rgba(0,0,0,0.05);
        box-shadow: 0 0 1.25em rgba(0,0,0,.125) inset;
        margin: 0 -0.5em;
        padding: 0 0.5em;
    }

    .subnav .sub .item {
        padding-left: 1.875em;
    }

    .subnav .sub .sub .item {
        padding-left: 1.5em;
    }

    .subnav .sub .sub .sub .item { padding-left: 1.75em; }

    .subnav .item:focus,
    .subnav .item:hover {
        color: rgb(255,255,255);
        background: rgb(51,51,51);
    }

}

/* footernav and totop */
@media all {
    .footernav {
        margin-left: -0.3125rem;
        float: left;
    }

    .footernav li {
        display: block;
    }

    .footernav .item { 
        display: block;
        padding: 0.625rem 0.3125rem; 
    }

    .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: 0.9375rem;
        font-size: .875rem;
    }
    .bc-label {
        margin: 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;
        font-weight: 700;
    }
    .bc-path li {
        display: flex;
        align-items: center;
        background-image: none !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    .bc-path li:before {
        padding-left: 0.375rem;
        padding-right: 0.25em;

        font: normal normal normal 14px/1 FontAwesome;
        font-size: 14px;
        font-size: inherit;
        text-rendering: auto;
        -moz-osx-font-smoothing: grayscale;
        content: "\f0da";
        color:rgb(111,194,34);
    }

    .bc-path li .item::before {
        padding-left: 0.375rem;
        padding-right: 0.25em;

        font: normal normal normal 14px/1 FontAwesome;
        font-size: 14px;
        font-size: inherit;
        text-rendering: auto;
        -moz-osx-font-smoothing: grayscale;
        content: "\f0da";
    }

    .bc-path li::before {
        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;
    }

}

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

    .nav-toggle { display: none; }
    .page-header .sf-menu { display: block; }
    .page-header-navigation {
        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-has-sub.current::after { 
        content: "";
        display: block;
        position: absolute;
        bottom: -1.25rem;
        left: 50%;
        transform: translateX(-50%);
        border: .75rem solid transparent;
        border-bottom-color: #fff;
    }
    .sf-menu .sf-sub { 
        position: absolute; 
        display: none; 
        z-index:99; 
        left: 50%;
        transform: translateX(-50%);
        border-radius: .25rem;
        top: calc(100% + 1.25rem);
    }
    .sf-menu .sf-sub::before ,
    .sf-menu .sf-sub::after { 
        content:"";
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background-color: transparent;
    }
    .sf-menu .sf-sub::before { 
        transition: opacity .5s ease;
        width: 0;
        height: 0;
        margin: 0 auto;
        border: 1rem solid transparent;
        border-bottom-color: #fff;
    }
    .sf-menu .sf-sub::after { 
        height: 1.25rem;
    }
    .sf-menu .sf-sub > li:first-child a { 
        border-top-left-radius: .25rem;
        border-top-right-radius: .25rem;
    }
    .sf-menu .sf-sub > li:last-child a { 
        border-bottom-left-radius: .25rem;
        border-bottom-right-radius: .25rem;
    }

    /* 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; text-overflow: ellipsis; }
    .sf-menu .sf-has-sub .sf-has-sub { top: 0; left: 100%; }

    .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;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        border: .125rem solid transparent;
    }

    .sf-menu > li > .item {
        border-radius: 100rem;
        padding: 1rem .75rem;
        color: #fff;
    }

    .sf-menu > li > .item:active ,
    .sf-menu > li > .item:hover,
    .sf-menu > li > .item.hover {
        background-color: #fff;
        color: #333;
    }

    .sf-menu > li > .item-registration {
        border-color: #fff;
    }

    .sf-menu > li + li {
        margin-left: .25rem;
    }

    .sf-menu .sf-sub .active > .item,
    .sf-menu .sf-sub .current > .item,
    .sf-menu .item:active,
    .sf-menu .item:focus,
    .sf-menu .sf-sub:hover > .item {
        background: rgb(255,255,255);
        color: rgb(28,128,20);
    }

    .sf-menu .sf-sub .active:hover > .item .item-inner ,
    .sf-menu .sf-sub .current:hover > .item .item-inner {
        text-shadow: none;
    }

    .sf-menu > .current > .item::after,
    .sf-menu > .active > .item::after {
        content: "";
        display: block;
        position: absolute;
        width: 0;
        height: 0;
        bottom: -1.375rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        border: 1rem solid transparent;
        border-bottom-color: #fff;
    }

    .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;
        white-space: nowrap;
    }

    .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; }

    /* footer  */
    .footernav { 
        width: auto; 
        margin-left: -.75rem;
    }
    .footernav .item { display: block;}

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

    .footernav .item ,
    .werbelink { 
        border-radius: 100rem;
        padding: 1rem .75rem;
        color: #fff;
        display: block;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        border: .125rem solid transparent;
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .footernav .item:hover ,
    .werbelink:not(.btn):hover { 
        background-color: #fff;
        color: #333;
    }
    
    .footernav li { float:left; margin-bottom: 0; }

}

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

    .sf-menu .sf-has-sub.current::after { 
        border-width: 1.25rem;
        bottom: -3.375rem;
        transition: bottom .5s ease;
    }

    .page-scrolled .sf-menu .sf-has-sub.current::after { 
        /*! bottom: -1.25rem; */
    }

    .sf-menu .item {
        font-size: 1.25rem;
    }

    .sf-menu > li > .item {
        padding: .875rem 1.5rem;
    }

    .sf-menu > .current > .item::after,
    .sf-menu > .active > .item::after {
        bottom: -3.5rem;
        border: 1.5rem solid transparent;
        border-bottom-color: #fff;
        transition: all .5s ease;
    }

    .page-scrolled .sf-menu > .current > .item::after,
    .page-scrolled .sf-menu > .active > .item::after {
        /*! bottom: -1.375rem; */
        border: 1rem solid transparent;
        border-bottom-color: #fff;
    }

}