#header .logo img {
    margin-right: unset;
    min-width: unset;
}

h3 {
    line-height: 1.3em;
}

@media screen and (max-width: 1100px){
    #header .navigation-wrapper {
        width: 70%;
    }
    #header .logo {
        width: 29%;
    }
}

@media screen and (max-width: 1000px){
    #header .navigation-wrapper {
        width: 58.00781%;
    }
    #header .logo {
        width: 41.21094%;
    }
}

#container .full-width {
    width: auto;
    max-width: 1920px;
    margin-right: auto;
    margin-left: auto;
}

.red {
    color: #e40028;
}

#wrapper.full-width.content-player {
    padding: 0;
}

.full-width .content-player figure {
    height: 100%;
}

.full-width .content-player video {
    min-height: 400px;
    height: auto;
    width: 100%;
    object-fit: cover;
}

.reference {
    font-size: 1.6em;;
}

.reference .grid .item:hover figcaption {
    left: 3px;
    right: 3px;
    width: auto;
}

#header h1.logo {
    margin: 0;
    font-size: 1em;
}

#header .navigation-menu-button {
    text-transform: capitalize;
    font-size: 1.5625em;
    line-height: 4.25em;
}

#main h1,
#main h2 {
    margin-bottom: 50px;
}

.content-text .rte {
    font-size: 24px;
    margin-bottom: 85px;
}

#off_canvas .mod_mmenu {
    display: none;
}

img {
    min-width: unset;
}

.content-player figure {
    margin: 0;
}

.content-image {
    padding-left: 0;
    padding-right: 0;
}

.socials-icon {
    min-width: 0;
    display: inline-block;
}

.ce_sHtml5Start {
    padding: 0 5px;
}

.half:nth-of-type(odd) {
    margin-right: 4px;
}

.half:nth-of-type(even) {
    margin-left: 4px;
}

.content-text ul {
    padding-left: 20px;
    list-style-type: disc;
    list-style-position: outside;
}

.content-hyperlink {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 10px;
}

.content-hyperlink figure {
    margin-bottom: 0;
}

.content-hyperlink .caption {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    padding-left: 0.1875em;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100px;
    color: #fff;
    margin: 0 auto;
    font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-size: 1.5625em;
    pointer-events: none;
    visibility: hidden;
}

.content-hyperlink:hover .caption, .content-hyperlink:hover span {
    visibility: visible;
}

.content-hyperlink .caption::after {
    bottom: -0.75em;
    color: #fff;
    content: "\f105";
    display: block;
    font-family: FontAwesome, sans-serif;
    font-size: 48px;
    height: 100px;
    position: absolute;
    right: 0.125em;
}

.content-hyperlink:hover .caption, .content-hyperlink:hover span {
    visibility: visible;
}

.mm-navbar {
    border-bottom: 1px solid #000000;
    color: #e40028;
}

.mm-listitem {
    color: #000000;
    border-color: #000000;
}

.mm-listitem_selected,
.mm-listitem a.trail {
    color: #e40028;
}

.mm-btn:after, .mm-btn:before {
    border: 2px solid #000000;
    border-bottom: none;
    border-right: none;
}

.mm-btn_next:after {
    top: 50%;
    transform: rotate(135deg) translate(-50%);
    margin: 0;
}

.trail .mm-btn:after {
    border: 2px solid #e40028;
    border-bottom: none;
    border-right: none;
}

.level_1.mm-listview > li > .mm-btn {
    border: none;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.contact-wrapper .address {
    flex: 1 1 auto;
    padding-left: 0;
}

.contact-wrapper .ce_google_map {
    flex: 1 1 45%;
    padding-left: 0;
}

footer .navigation-wrapper > .navigation-menu-button {
    display: none;
}

.button-inline-text {
    display: flex;
}

.button-inline-text figure {
    margin: 0 0.8em 0 0;
    width: fit-content;
}

.button-inline-text p {
    transform: translateY(25%);
}

.ol-visible ol {
    list-style-type: decimal;
    list-style-position: inside;
}

.w50,
input.w50 {
    width: 50%;
}


.td-no-border td {
    border: none;
}

.form-grey-flex fieldset {
    background-color: #E2E2E2;
    display: flex;
    border: none;
    flex-wrap: wrap;
    gap: 10px;
}

.form-grey-flex fieldset .widget {
    flex: 1 0 calc(50% - 10px);
}

.form-grey-flex fieldset .widget input,
.form-grey-flex fieldset .widget textarea {
    border: none;
    position: relative;
}

.form-grey-flex fieldset .widget .upload.filled::before {
    display: block;
}

.form-grey-flex fieldset .widget .upload.filled::after {
    content: none;
}

.form-grey-flex fieldset .widget .upload::before {
    content: '';
    width: 100%;
    height: 2rem;
    display: inline-block;
    background: #fff;
    padding: 5px 8px;
    cursor: pointer;
}

.form-grey-flex fieldset .widget .upload::after {
    content: 'Durchsuchen';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-60%, 7px);
}

.form-grey-flex fieldset .widget .upload::-webkit-file-upload-button {
    visibility: hidden;
}

.form-grey-flex fieldset .widget-explanation {
    flex-basis: 100%;
}

.more-text__dots {
    display: none;
}

.more-text__text {
}

.more-text__button {
    display: none;
}

button.more-text__button {
    background: transparent;
    color: black;
    font-weight: 400;
    padding-left: 0;
    font-size: 20px !important;
    margin-top: 18px;
}

@media screen and (max-width: 600px) {
    .more-text__dots {
        display: inline;
    }

    .more-text__text {
        display: none;
    }

    .more-text__button {
        display: block;
    }
}

@media screen and (max-width: 1089px) {
    .half:nth-of-type(even) {
        margin-left: 3px;
    }
}

@media screen and (max-width: 989px) {
    #header ul.navigation-menu.show {
        display: none;
    }

    a.anchor {
        visibility: visible;
        top: auto;
    }

    .content-text .rte {
        font-size: 20px;
        margin-bottom: 100px;
    }
}

@media screen and (max-width: 962px) {
    .half:nth-of-type(odd) {
        margin-right: 3px;
    }
}

@media screen and (max-width: 834px) {
    .half:nth-of-type(odd) {
        margin-right: 2px;
    }

    .half:nth-of-type(even) {
        margin-left: 2px;
    }
}

@media screen and (max-width: 779px) {
    .half:nth-of-type(odd) {
        margin-right: 0;
    }

    .half:nth-of-type(even) {
        margin-left: 0;
    }

    #footer .inside > div:first-child {
        margin-top: 0;
    }

    #footer .inside > div {
        margin-top: 1.875em;
    }
}

@media screen and (max-width: 834px) {
    .flex-gallery ul li {
        flex: 0 0 50%;
    }
}

@media screen and (max-width: 600px) {
    .flex-gallery ul {
        display: block;
    }

    .content-text .rte {
        font-size: 20px;
        margin-bottom: 50px;
    }

    #main h1, #main h2 {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .home .ce_rsce_referenz_teaser .teaser-link {
        margin-top: 20px;
    }
}



@media screen and (max-width: 800px) {
    .form-grey-flex fieldset {
        display: block;
    }

    .w50,
    input.w50,
    .form-grey-flex fieldset:last-of-type .widget:nth-last-child(2) textarea {
        width: 100%;
    }
}

p.error {
    color: red !important;
    margin-top: 5px;
}

.ccm-cookie-declaration p {
    margin-bottom: 15px;
}

.ccm-cookie-declaration a {
    text-decoration: underline;
}

/* Style for Form body file */
.form-grey-flex fieldset .widget .upload::before {
    height: 111px;
}

.form-grey-flex fieldset .widget .upload::after {
    content: 'Klicke hier/Ziehe deinen Dateien hierher.';
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    bottom: 18px;
    left: 0;
    transform: unset;
}


ul .level_2,
ul .level_3 {
    display: none;
}

.home #footer p {
    font-size: unset;
    font-weight: normal;
}

.home .caption h3 {
    font-size: 40px;
    margin-bottom: 50px;
}

.home .list-tiles__wrapper {
    margin: 100px 0;
}

@media screen and (max-width: 1024px) {
    .home .list-tiles__wrapper {
        margin: 50px 0;
    }
}

.home .ce_rsce_referenz_teaser {
    margin-top: 100px;
}

@media screen and (max-width: 1024px) {
    .home .ce_rsce_referenz_teaser {
        margin-top: 50px;
    }
}

.home .ce_rsce_referenz_teaser .teaser-link {
    margin-top: 50px;
    display: block;
}

.home .teaser-container img {
    width: 100%;
}

#footer {
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    width: 100%;
    max-width: 1960px;
    margin-top: 75px;
}

#footer .inside {
    width: 100%;
    max-width: 1960px;
}

#footer .content-text .rte {
    margin-bottom: 75px;
    font-size: 24px;
    line-height: 36px;
}

#footer .content-text p {
    font-size: 24px;
    line-height: 36px;
}

#footer .inside .footer {
    display: flex;
    flex-flow: wrap row;
    justify-content: space-between;
    min-width: 100%;

    .navigation-wrapper {
        font-size: 24px;
        line-height: 36px;
    }
}

#footer .content-text .rte,
#footer .inside div {
    width: auto;
}

/* Style for Reference List tiles */
.list-tile:nth-child(2n) > a {
    order: 2;
}

.list-tile:nth-child(2n) {
    text-align: right;
}

.list-tile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    padding: 0;
    margin: 0;

    .caption {
        padding: 6rem;
    }

    .caption a {
        margin-top: 50px;
        display: block;
        font-size: 40px;
    }
}

@media screen and (max-width: 1850px) {
    .list-tile .caption a {
        font-size: 28px;
    }
}

.list-tile figure {
    width: 100%;
    height: 50vw;
    max-height: 960px;
    margin: 0;
}

.list-tile figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-tile figure video {
    min-height: 1px;
    min-width: 1px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 900px) {
    .list-tile:nth-child(2n) > a {
        order: unset;
    }

    .list-tile:nth-child(2n) {
        text-align: unset;
    }

    .list-tile {
        grid-template-columns: 1fr;

        .caption {
            padding: 2rem;
        }
    }

    .list-tile figure {
        width: 100%;
        height: 100vw;
    }
}

/* style for teaser list element */
.teaser-wrapper {
    display: grid;
    grid-gap: 40px;
    grid-template-columns: repeat(3, 1fr);

    .teaser-container figure {
        margin: 0;
        width: 100%;
        height: auto;
    }

    .teaser-container_video {
        display: flex;
    }

    .teaser-container_video figure {

    }

    .teaser-container_video video {
    }

    .teaser-container figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .teaser-container figure .teaser-text {
        padding: 20px;
    }

    .teaser-container figure .teaser-text a {
        padding-top: 120px;
    }
}

#main .mod_reference_detail h1 {
    font-size: 40px;
    margin-bottom: 0;
}

#main .mod_reference_detail .description {
    font-size: 24px;
}

.grid {
    margin-bottom: 0;
}

.grid .item:hover figcaption {
    margin: 7px;
    height: 150px;
}

.grid .item:hover span::after {
    right: 20px;

}

.grid .item {
    padding: 10px;
    background-clip: content-box;
    word-break: break-word;
    word-break: auto-phrase;
    hyphens: auto;
}

.grid .item:hover figcaption,
.grid .item p {
    font-size: 25px;
}

.reference .grid .item:hover figcaption {
    padding-right: 55px;
}

.home p {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 49px;
}

@media screen and (max-width: 1850px) {
    .home p {
        font-size: 1.8rem;
        line-height: 40px;
    }
}

.home .content-text .rte {
    margin-bottom: 0;
}

.mod_reference_detail .ref_gallery .landscape {
    margin-bottom: 30px;
}

.home h1 {
    margin-top: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 49px;
}

.home .full-width .content-headline {
    padding: 0 40px;
}

.home .full-width .content-text {
    padding: 0 40px;
}

.home .teaser-container .teaser-text {
    padding: 40px 40px 0px 40px;
}

.home .teaser-wrapper {
    grid-gap: 6rem;
}

@media screen and (max-width: 1200px) {
    .home .teaser-wrapper {
        grid-gap: 1rem 2rem;
    }
}

@media screen and (max-width: 900px) {

    .teaser-wrapper {
        grid-gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    #footer .inside .footer {
        min-width: unset;
    }

    #footer .inside .footer div {
        margin-bottom: 40px;
        width: 45%;
    }

    .grid .item p {
        font-size: 25px;
        hyphens: auto;
    }

    .reference .grid .item figcaption {
        font-size: 25px;
        hyphens: auto;
        padding-right: 10px;
    }

}

@media screen and (max-width: 779px) {
    .grid .item {
        padding: 3px;
    }

    .grid .item:hover figcaption {
        height: 80px;
        margin: 0;
    }

    .reference .grid .item:hover figcaption {
        padding-right: 35px;
    }

}


@media screen and (min-width: 1400px) {
    .grid .item:hover figcaption,
    .grid .item p {
        font-size: 40px;
    }
}

@media screen and (max-width: 600px) {

    .grid .item:hover figcaption,
    .grid .item p {
        font-size: 20px;
    }

    #footer .footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .home p,
    .home h1 {
        font-size: 1.6rem;
        line-height: 2.1rem;
    }

    .list-tile .caption a {
        margin-top: 25px;
        margin-bottom: 20px;
        font-size: 25px;
    }

    .teaser-wrapper {
        grid-template-columns:  1fr;
    }

    #footer .inside .footer {
        flex-flow: wrap row;
    }

    #footer .inside .footer div {
        width: 100%;
    }

    .full-width .content-player video {
        min-height: 200px;
    }

    .list-tile .caption {
        padding: 20px;
    }

    .home .caption h3 {
        font-size: 25px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .home .list-tiles__wrapper {
        margin: 30px 0;
    }

    .home .teaser-container .teaser-text {
        padding: 20px;
    }

    .home .ce_rsce_referenz_teaser .teaser-link {
        margin-top: 20px;
    }

    .home .teaser-wrapper {
        grid-gap: 15px;
    }

    #footer .content-text .rte {
        margin-bottom: 50px;
    }

    #footer .inside .footer div:last-child {
        margin-bottom: 0;
    }

    #main .mod_reference_detail .description {
        font-size: 20px;
    }

    .reference .grid .item figcaption {
        font-size: 20px;
        hyphens: auto;
        padding-right: 10px;
    }
}

.video-popup--open {
    position: fixed;
    display: flex;
    justify-content: center;
    background: #000000;
    z-index: 9999999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    figure {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.mod_reference_detail .pre-ref, .mod_reference_detail .next-ref {
    position: fixed;
}

.mod_reference_detail .close-ref {
    position: fixed;
    top: 6.25em;
}

@media screen and (max-width: 1200px) {
    .mod_reference_detail .pre-ref, .mod_reference_detail .next-ref {
        top: 355px;
    }
}

@media screen and (max-width: 1090px) {
    .mod_reference_detail .pre-ref, .mod_reference_detail .next-ref {
        top: 31vw;
    }
}

@media screen and (max-width: 960px) {
    .mod_reference_detail .pre-ref, .mod_reference_detail .next-ref {
        top: calc(32vw + 35px);
    }
}

.no-margin-bottom {
    margin-bottom: 0;
}

.no-margin-bottom.content-text .rte {
    margin-bottom: 0;
}
