/* elements.css for >Freundeskreis Botanischer Garten< */

.werbelink {
    float:right;
    line-height: 1;
    padding: 0.625rem 0.3125rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    color: rgb(255,255,255);
    opacity: 0.25;
}

.werbelink span {
    font-weight: 600;
}

/* cookieconsent */
.cc-link {
    padding: 0;
    display: inline;
}

/* lightbox - we have fontawesome? awesome! */
@media all {
    .ce-media-image a { position:relative; }

    .ce-media-image a::before {
        content: '\f0c1';
        font-family: FontAwesome;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1;

        width: 1rem;
        height: 1rem;
        position: absolute;
        z-index: 1;
        top: auto;
        bottom: 0.3125rem;
        right: 0.3125rem;

        color: rgb(255,255,255);
        text-shadow: 0 0 1px rgb(0,0,0);
        background: none;
    }
    .ce-media-image a {
        text-decoration: none;
    }

    .ce-media-image a.lightbox::before {
        content: '\f00e';
    }
    .ce-media-image .ce-media-caption a::before {
        content: none;
    }
}

/* news */
@media all {

    .news-list-item + .news-list-item {
        border-top: 1px solid rgb(242,239,236);
        padding-top: 1.25rem;
    }
    .news-list-item + .news-list-item.news-list-item-teaser {
        border: none;
        padding-top: 0;
    }

    .news-list .news-date {
        display: inline-block;
        margin: .625rem 0 .375rem;
        font-size: 1rem;
        line-height: 1;
    }
    .news-list-link .fa {
        padding-left: 0.5em;
    }

    .news-list-item-teaser {
        width: 100%;
    }
    .modernizr-flexbox .news-list-teaser .ce-textpic-inner {
        display: flex;
        flex-direction: column;
    }

    .modernizr-flexbox .news-list-teaser .news-teaser-text {
        flex-grow: 1;
    }

    .news-list-masonry .has-pagination {
        margin-bottom: 5rem; /*FIXME */
    }

    .news-list-masonry .pagination {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
    .ce-gallery[data-ce-columns="3"] .ce-row{
        display:flex;
        flex-direction:column;
    }
    .ce-gallery[data-ce-columns="3"] .ce-row .ce-column{
        max-width:100%;
    }
}

/* pagination news & search */
@media all {

    .pagination {
        margin-bottom: 0.9375rem;
    }

    .pagination .pagination-count {
        margin-bottom: 0;
    }

    .pagination ul {
        display: block;
        margin: 0 -0.3125rem;
        padding:0;
    }

    .pagination li {
        display: block;
        float:left;
        line-height: 1;
        padding: 0.3125rem;
    }

    .pagination span,
    .pagination a {
        display: inline-block;
        font-size: 75%;
        color: rgb(0,107,45);
        text-decoration: none;
        text-align: center;
        line-height: 1;
        width: 1.75rem;
        padding: 0.4375rem 0;
        border: 1px solid currentColor;
        border-radius: 3px;
    }
    .pagination a:not(.fa)::before { content: none; }

    .pagination .fa {
        margin: 0;
        padding: 0;
    }

    .pagination .current {
        background: currentColor;
        background-clip: padding-box;
    }
    .pagination .current b {
        color: rgb(255,255,255);
    }

    .pagination .paginator-ellip {
        border: none;
        padding: 0;
        width: auto;
    }
    .ce-slider .slick-arrow,
    .ce-carousel .slick-arrow{
        position: absolute;
        left:1.25rem;
        z-index:99;
        top:50%;
        transform:translateY(-50%);
        background-color:rgba(0,107,45,0.75);
        border-color:transparent;
        color:rgb(255,255,255);
        font-size: 0;
        line-height:0.675;
        width:2.75rem;
        height:2.75rem;
        border-radius:50%;
    }
    .ce-slider .slick-arrow.slick-next,
    .ce-carousel .slick-arrow.slick-next{
        left:auto;
        right:1.25rem;
    }
    .ce-slider .slick-arrow::before,
    .ce-carousel .slick-arrow::before{
        font-family:"FontAwesome";
        content:"\f104";
        font-size:2rem;
    }
    .ce-slider .slick-arrow.slick-next::before,
    .ce-carousel .slick-arrow.slick-next::before{
        content:"\f105";
    }
    .ce-teaserlink-outer .ce-header{
        /*! margin:0; */
    }
    .ce-layout-box-outer{
        box-shadow: none;
        background-color:rgb(248,247,245);
    }
    .ce-element:not(.news-list-item) .ce-layout-box-outer a:not(.btn) {
        color: rgb(0,107,45);
    }
    .ce-layout-box-outer > div {
        /*! padding: 2.5rem 1.25rem 0.9375rem; */
    }
    .ce-frame-iconteaser .ce-layout-box-outer > div{
        padding: 2.5rem 0 0;
    }
    .news .ce-layout-box-outer > div{
        padding:0;
    }
    .ce-layout-box-outer > .ce-teaserlink-outer .ce-layout-box-inner{
        padding:0.9375rem 0.625rem 0;
    }
    .ce-teaserlink-outer{
        transition:ease all 0.25s;
    }
    div:not(.ce-frame-imageteaser) > .ce-teaserlink-outer:hover{
        background-color:rgb(242,239,236);
    }
    .ce-teaserlink-outer a:hover{
        text-decoration: none;
    }
    .slick-list{
        overflow:hidden;
    }
    .ce-textpic .ce-media a:not(.lightbox)::before{
        content:"\f0c1";
        left:50%;
        top:50%;
        transform:translate(-50%, -50%);
        background-color:rgb(172,5,54);
        padding:1.25rem 1rem 0.75rem;
        width: 4rem;
        height: 4rem;
        border-radius:50%;
        font-size:1.75rem;
        text-align: center;
    }
    .ce-frame-downloadicon .ce-textpic .ce-media a:not(.lightbox)::before{
        content:"\f019";
    }
    .news .ce-textpic .ce-media a:not(.lightbox)::before{
        display:none;
    }
    .ce-team-container{
        display: -ms-grid;
        display:grid;
        -ms-grid-gap:1.25rem;
        grid-gap:1.25rem;
    }
    .ce-team-container > div{
        padding:1.25rem;
        background-color:rgb(248,247,245);
    }
    .ce-team-container .ce-element,
    .ce-team-container p:last-child{
        margin:0;
    }
    .ce-team-container .ce-gallery .ce-media{
        border-radius: 50%;
        overflow:hidden;
    }
    .ce-frame-imageteaser .ce-gallery,
    .ce-frame-imageteaser .ce-gallery .ce-column{
        margin-bottom:0;
        padding-bottom:0;
        padding-top:0;
    }
    .ce-frame-imageteaser .ce-header a{
        position: absolute;
        width:100%;
        top:50%;
        text-align:center;
        transform:translateY(-50%);
        color:rgb(255,255,255);
        padding: 0 2.5rem;
        z-index:3;
    }
    .ce-frame-imageteaser .ce-gallery{
        overflow:hidden;
        position: relative;
    }
    .ce-frame-imageteaser .ce-gallery img{
        overflow:hidden;
        transition:ease all 0.25s;
    }
    .ce-frame-imageteaser:hover .ce-gallery img{
        transform:scale(1.1);
    }
    .ce-frame-imageteaser a:not(.btn):hover,
    .ce-frame-imageteaser a:not(.btn):focus{
        color:rgb(255,255,255);
    }
    .ce-frame-imageteaser{
        margin-bottom:1.25rem;
    }
    .news-list-item-teaser .ce-gallery,
    .news-list-item-teaser .ce-column{
        padding-bottom:0;
        margin-bottom:0;
    }
    .news-list-item-teaser .ce-textpic-inner{
        padding-bottom:.625rem;
    }
    .news-list-date .ce-element{
        margin-bottom:0;
    }
    .ce-grid-25-75-date{
        display:grid;
        grid-template-columns: 1fr 4fr;
        grid-column-gap: 1.25rem;
        justify-content: center;
        align-items: center;
    }
    .news-list-date-item{
        margin-bottom:.625rem;
    }
    .news-list-date-item:last-child{
        margin-bottom:1.25rem;
    }
    .ce-date{
        background-color:rgb(242,239,236);
        text-align:center;
        border:0.125rem solid rgb(202,198,195);
        font-size:1rem;
        line-height: 2;
    }
    .ce-news-date-day{
        font-size:2.5rem;
        font-family: "Roboto Condensed";
        font-weight: 700;
        line-height:0.8;
    }
    .ce-uploads span{
        display:block;
    }
    .file-icon-container i{
        font-size:2.5rem;
        line-height: 1;
    }
    .file-text-container{
        padding-left:1.25rem;
    }
    .file-container{
        display:flex;
        align-items: center;
    }
    .ce-uploads .ce-layout-box-outer > .ce-teaserlink-outer .ce-layout-box-inner{
        padding:0;
    }
    .ce-type-list + .ce-type-textmedia{
        margin-top:-0.625rem;
    }
    .ce-element.news-backlink-container {
        margin: 2.5rem 0;
    }
    .news-related ul {
        list-style: none;
        padding: 0;
    }
    .news-related ul li {
        position: relative;
        padding: 1rem;
        background-color: rgb(248,247,245);
        border-radius: 0.25rem;
        overflow: hidden;
    }
    .news-related ul li:hover {
        background-color: rgb(242,239,236);
    }
    .news-related ul li a::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0; 
        left: 0;
    }

    .ce-carousel .slick-dots {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
}

@media all and (min-width: 30em) {
    .ce-layout-box-outer > .ce-teaserlink-outer .ce-layout-box-inner{
        padding: 2.5rem 2.5rem 1.5625rem;
    }
    .ce-frame-iconteaser .ce-layout-box-outer > .ce-teaserlink-outer .ce-layout-box-inner{
        padding: 2.5rem 2.5rem 0.9375rem;
    }
}

@media all and (min-width: 47.5em), print {

    .ce-div {
        position: relative;
        overflow: hidden; 
        height:0.9375rem;
    }

    .ce-div::before {
        content: "";
        display: block;
        border-radius: 25%;
        position: absolute;
        left: 2.5rem;
        right: 2.5rem;
        bottom: 100%;
        height: 1.25rem;
        box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
    }

    .ce-media-image a::before {
        right: 0.625rem;
        bottom: 0.625rem;
    }

    /* news teaser */
    .news-list-teaser {
        margin: 0 -0.625rem;
    }
    .news-list-item-teaser {
        width: 50%;
        float: left;
        padding: 0 0.625rem;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(2n+1) {
        clear: left;
    }
    .ce-team-container{
        -ms-grid-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        -ms-grid-gap: 2.5rem;
        grid-gap: 2.5rem;
    }
    .ce-gallery[data-ce-columns="3"] .ce-row{
        flex-direction:row;
    }

}

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

    .news-list-item + .news-list-item {
        padding-top: 1.5625rem;
    }

    /* news teaser */
    .news-list-teaser {
        margin: 0 -1.25rem;
    }
    .news-list-item-teaser {
        width: 50%;
        float: left;
        padding: 0 1.25rem;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(2n+1) {
        clear: left;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(3n+1) {
        clear: left;
    }
    .ce-grid-large-66-33 .news-list-teaser .news-list-item-teaser:nth-child(3n+1) {
        clear: none;
    }
    .ce-slider .slick-arrow,
    .ce-carousel .slick-arrow{
        left:2.5rem;
        width:3.75rem;
        height:3.75rem;
    }
    .ce-slider .slick-arrow.slick-next,
    .ce-carousel .slick-arrow.slick-next{
        left:auto;
        right:2.5rem;
    }
    .ce-element{
        margin-bottom:1.5625rem;
    }
    .news-list-item-teaser{
        margin-bottom: 0.9375rem;
    }
    .ce-frame-imageteaser{
        margin-bottom:2.5rem;
    }
    .news-list-item-teaser .ce-textpic-inner{
        padding-bottom:1.75rem;
    }
    .news-list .news-date {
        margin: 1.25rem 0 1rem;
    }
    .news-list-date-item{
        margin-bottom:1.25rem;
    }
    .news-list-date-item:last-child{
        margin-bottom:2.5rem;
    }
    .ce-type-list + .ce-type-textmedia{
        margin-top:-1.25rem;
    }
}

/* desktop - xlarge */
@media (min-width:82.5em) {
    .ce-element{
        margin-bottom:2.8125rem;
    }
    .news-list-item-teaser{
        margin-bottom: 1.5625rem;
    }
    .news-list-item + .news-list-item {
        padding-top: 2.5rem;
    }
    .slick-list{
        overflow:visible;
    }
    .ce-team-container{
        -ms-grid-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
        -ms-grid-gap: 2.5rem;
        grid-gap: 2.5rem;
    }
    .ce-news-date-day{
        font-size:3.25rem;
    }
    .ce-type-list + .ce-type-textmedia{
        margin-top:-2.5rem;
    }
}
