/* elements.css for >FIXME< */

.werbelink {
    float: right;
    font-size: 87.5%;
    line-height: 1;
    padding: var(--size-x4) var(--size-x2);
    text-decoration: none;
    opacity: 0.25;
    margin-right: var(--size-n2);
}

.werbelink span {
    font-weight: 700;
}

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

/* link icons */

.ce-bodytext .link-icon-set {
    position: relative;
    padding-left: 1.25em;
}

.ce-bodytext .btn.link-icon-set {
    padding-left: 1rem;
}

.ce-bodytext .link-icon-set.link-internal,
.ce-bodytext .link-icon-set.link-download {
    padding-left: 1.125em;
}

.link-icon-set.link-mail i {
    margin-top: 0.03125em;
}

.link-icon-set i {
    position: absolute;
    left: 0;
    top: 1em;
    transform: translateY(-100%);
}

.btn.link-icon-set i {
    position: static;
    transform: none;
}

.link-icon-set.link-internal i,
.link-icon-set.link-external i,
.link-icon-set.link-mail i {
    margin-top: 0.0625em;
}

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

    .ce-media-image a::before {
        content: "\f0c1";

        font-family: "Font Awesome 5 Free";
        font-size: 1rem;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: block;

        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
        font-weight: 700;

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

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

    .ce-media-image a.lightbox::before {
        content: "\f055";
        /*! content: '\f00e'; */
    }
    .ce-media-image .ce-media-caption a::before {
        content: none;
    }
}

/* news */
@media all {
    .news-list-item + .news-list-item {
        /*! border-top: .25rem solid rgb(235, 235, 235); */
        padding-top: 2.5rem;
    }
    .news-list-item + .news-list-item.news-list-item-teaser {
        border: none;
        padding-top: 0;
    }

    .news-date {
        float: left;
        font-weight: 700;
    }
    .news-date::after {
        display: inline-block;
        content: " | ";
    }
    .news-list-link .fa {
        padding-left: 0.5em;
    }

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

    .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-tables */

    .ce-type-table {
        overflow: auto;
    }

    .ce-element .ce-table {
        width: 100%;
    }

    .ce-element .ce-table th,
    .ce-element .ce-table td {
        padding: var(--size-x1);
    }

    .ce-element .ce-table tr:nth-child(2n + 1) td,
    .ce-element .ce-table tr:nth-child(2n + 1) th,
    .ce-element .ce-table thead + tbody tr:nth-child(2n + 2) td {
        background-color: #e9e9e9;
    }

    .ce-element .ce-table tr:nth-child(2n) td,
    .ce-element .ce-table tr:nth-child(2n) th,
    .ce-element .ce-table thead + tbody tr:nth-child(2n + 1) td {
        background-color: #f3f3f3;
    }

    .ce-element .ce-table tr + tr,
    .ce-element .ce-table thead + tbody {
        border-top: var(--size-f2) solid #fff;
    }

    .ce-element .ce-table th + th,
    .ce-element .ce-table th + td,
    .ce-element .ce-table td + td {
        border-left: var(--size-f2) solid #fff;
    }
}

/* 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;
        margin: 0;
    }

    .pagination span,
    .pagination a {
        display: inline-block;
        font-size: inherit;
        color: currentColor;
        text-decoration: none;
        text-align: center;
        line-height: 1;
        /*! width: 1.75rem; */
        padding: 0.8375rem 1rem;
        border-radius: var(--border-radius);
        color: rgb(51, 51, 51);
        background-color: var(--color-shared-gray);
        font-weight: 700;
    }

    .pagination a:not(.btn):focus,
    .pagination a:not(.btn):hover {
        background-color: var(--color-primary);
        color: var(--color-text-neg);
    }

    .pagination span i,
    .pagination a i {
        color: inherit;
    }

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

    .offset-controller {
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: 0;
        height: 2.75rem;
    }

    .sticky-controller {
        position: relative;
        display: none;
        height: 0;
    }

    .ce-teaserlink-button {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        background: none;
        opacity: 0;
        cursor: pointer;
        padding: 0;
    }

    .ce-frame-teaser_color_1 .ce-bodytext p,
    .ce-frame-teaser_color_1 .ce-bodytext p a {
        color: #ea8d00;
    }

    .ce-frame-teaser_color_2 .ce-bodytext p,
    .ce-frame-teaser_color_2 .ce-bodytext p a {
        color: #e22f29;
    }

    .ce-frame-teaser_color_3 .ce-bodytext p,
    .ce-frame-teaser_color_3 .ce-bodytext p a {
        color: #642380;
    }

    .ce-frame-teaser_color_4 .ce-bodytext p,
    .ce-frame-teaser_color_4 .ce-bodytext p a {
        color: #0e6eb4;
    }

    .ce-frame-teaser_color_5 .ce-bodytext p,
    .ce-frame-teaser_color_5 .ce-bodytext p a {
        color: #91bb1e;
    }

    .ce-frame-teaser_color_6 .ce-bodytext p,
    .ce-frame-teaser_color_6 .ce-bodytext p a {
        color: #905e36;
    }
    
    .ce-type-textmedia.ce-is-teaserlink > .ce-teaserlink-outer, 
    [class*="ce-frame-teaser"] > .ce-teaserlink-outer {
        height: 100%
    }

    .navigation-institutions {
        display: grid;
        margin: var(--size-x4) 0;
        gap: var(--size-x1);
        grid-template-columns: repeat(1, 1fr);
    }

    .navigation-institutions > .ce-element {
        background-color: rgb(255, 255, 255);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        margin: 0;
        overflow: hidden;
        transition: var(--animation-default);
    }

    .navigation-institutions > .ce-element .ce-textpic {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
    }

    .navigation-institutions > .ce-element p,
    .navigation-institutions > .ce-element .ce-teaserlink-outer,
    .navigation-institutions > .ce-element .ce-gallery {
        margin-bottom: 0;
    }

    .navigation-institutions > .ce-element.ce-is-teaserlink:focus,
    .navigation-institutions > .ce-element.ce-is-teaserlink:hover {
        transform: translateX(var(--size-x1));
        box-shadow: var(--box-shadow-hover);
    }

    .navigation-institutions > .ce-element .ce-above-header .ce-gallery,
    .navigation-institutions > .ce-element .ce-above .ce-gallery {
        background-color: rgb(245, 245, 245);
        min-width: 50%;
        max-width: 50%;
        position: relative;
    }

    .navigation-institutions > .ce-element .ce-gallery::before,
    .navigation-institutions > .ce-element .ce-gallery::after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        min-height: 100%;
        background-color: var(--color-shared-gray);
    }

    .navigation-institutions > .ce-element .ce-gallery::before {
        bottom: 100%;
    }

    .navigation-institutions > .ce-element .ce-gallery::after {
        top: 100%;
        display: none;
    }

    .navigation-institutions > .ce-element .ce-textpic-inner {
        line-height: 1.35;
        padding: var(--size-x2);
    }

    .cc-revoke.cc-bottom {
        left: var(--size-x4);
    }

    .news-list-link {
        clear: both;
    }

    .cc-revoke,
    .cc-window {
        font-size: inherit;
    }

    .cc-window .cc-compliance .cc-btn.cc-allow {
        color: var(--color-text-neg);
        background-color: var(--color-secondary);
    }

    .cc-window .cc-compliance .cc-btn.cc-allow:hover {
        background-color: var(--color-secondary-alt);
    }

    .cc-window .cc-link,
    .cc-window a:not(.btn),
    .cc-window .cc-link:visited,
    .cc-window a:not(.btn):visited,
    .cc-window .cc-link:active,
    .cc-window .cc-link:visited {
        color: var(--color-text-neg);
    }

    .cc-window a:not(.btn):focus,
    .cc-window a:not(.btn):hover,
    .cc-window .cc-link:focus,
    .cc-window .cc-link:hover {
        color: var(--color-secondary-alt);
    }

    .ce-uploads-file {
        display: flex;
        align-items: center;
        gap: var(--size-x2);
        padding: var(--size-x2);
        border-radius: var(--border-radius);
        background-color: var(--color-shared-gray);
    }

    .ce-uploads-filename {
        font-weight: 700;
    }

    .ce-uploads-file > .fa {
        font-size: 150%;
        color: var(--color-primary);
    }

    .ce-uploads-file:hover {
        color: var(--color-text-neg);
        background-color: var(--color-primary);
    }

    .ce-uploads-file:hover > .fa {
        color: var(--color-text-neg);
    }
}

@media all and (min-width: 30em) {
    .offset-controller {
        height: 3.375rem;
    }
}

@media all and (min-width: 47.5em), print {
    .ce-div {
        overflow: visible;
        opacity: 1;
    }

    .ce-div::before {
        content: "";
        display: block;
        border-radius: var(--border-radius);
        height: var(--size-x1);
        /*! box-shadow: 0 0 1.25rem rgba(0,0,0,0.25); */
        background-color: var(--color-shared-gray);
    }

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

    .offset-controller {
        height: 5.5rem;
    }

    .navigation-institutions {
        gap: var(--size-x4);
        grid-template-columns: repeat(3, 1fr);
    }

    .navigation-institutions > .ce-element.ce-is-teaserlink:focus,
    .navigation-institutions > .ce-element.ce-is-teaserlink:hover {
        transform: translateY(var(--size-n1));
        box-shadow: var(--box-shadow-hover);
    }

    .navigation-institutions > .ce-element .ce-textpic {
        flex-direction: column;
    }

    .navigation-institutions > .ce-element .ce-textpic-inner {
        text-align: center;
        display: flex;
        align-items: center;
        flex-grow: 1;
    }

    .navigation-institutions > .ce-element .ce-above-header .ce-gallery,
    .navigation-institutions > .ce-element .ce-above .ce-gallery {
        min-width: 100%;
        max-width: 100%;
    }

    .navigation-institutions > .ce-element .ce-textpic-inner {
        padding: var(--size-x4);
    }

    .ce-element .ce-table th,
    .ce-element .ce-table td {
        padding: var(--size-x2);
    }
}

/* desktop */
@media all and (min-width: 62.5em) {
    .sticky-controller {
        display: block;
    }

    /* news teaser */
    .news-list-teaser {
        margin: 0 var(--size-n4);
    }
    .news-list-item-teaser {
        width: 33.3333%;
        float: left;
        padding: 0 var(--size-x4);
    }
    .news-list-teaser .news-list-item-teaser:nth-child(2n + 1) {
        clear: none;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(3n + 1) {
        clear: left;
    }

    .offset-controller,
    .sticky-controller {
        height: 3.625rem;
    }

    .navigation-institutions {
        margin: var(--size-x8) 0;
    }

    .cc-revoke.cc-bottom {
        left: var(--size-x8);
    }

    .ce-uploads-file {
        gap: var(--size-x4);
        padding: var(--size-x4);
    }
}

/* desktop - xlarge */
@media (min-width: 82.5em) {
    .news-list-item + .news-list-item {
        padding-top: 2.5rem;
    }
    .offset-controller,
    .sticky-controller {
        height: 3.75rem;
    }
    .news-list-teaser {
        margin: 0 -2.5rem;
    }
    .news-list-item-teaser {
        padding: 0 2.5rem;
    }

    .navigation-institutions {
        margin: var(--size-x12) var(--size-x4);
    }

    .cc-revoke.cc-bottom {
        left: 50%;
        margin-left: -37.5rem;
    }
}
