:root {
    /* FONT */
    --srs-rezensionen-author-font-size: 18px;
    --srs-rezensionen-text-font-size: 16px;
    --srs-rezensionen-slider-font-size: 12px;
    --srs-rezensionen-author-font-family: 'Roboto','Arial', serif;
    --srs-rezensionen-text-font-family: 'Roboto','Arial', serif;

    /* SIZES */
    --srs-rezensionen-slider-author-image-size: 130px;
    --srs-rezensionen-slider-testimonial-box-width: 400px; /* 440 */
    --srs-rezensionen-compact-author-image-size: 150px;
    --srs-rezensionen-compact-row-gap: 50px;
    --srs-rezensionen-grid-author-image-size: 150px;
    --srs-rezensionen-grid-row-gap: 80px;
    --srs-rezensionen-grid-col-gap: 20px;
    --srs-rezensionen-grid-col-items: 3;
    --srs-rezensionen-quote-size: 40px;

    /* COLORS */
    --popup-background-color: #e5e8e9;
    --srs-rezensionen-highlight-color: #f18700;
     --fancybox-bg: rgba(255, 255, 255, 0.9);
    /**/ --fancybox-color: black;
}

* {
    box-sizing: border-box;
}

.highlight {
    color: var(--srs-rezensionen-highlight-color) !important;
}

.tx-srs-rezensionen {
    max-width: 1920px;
    margin: 0 auto;
}

.srs_rezensionen_wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.srs_slider_arrows {
    width: 45px;
    height: 120px;
    cursor: pointer;
}

.srs_slider_arrows.left {
    background: url("../Icons/arrow-left.svg") no-repeat center;
    margin-left: 2rem;
}

.srs_slider_arrows.right {
    background: url("../Icons/arrow-right.svg") no-repeat center;
    margin-right: 2rem;
}

.srs_rezensionen {
    max-width: calc(85% + 20px);
    margin: 0 auto;
    width: 100vw;
    height: auto;
    display: flex;
    hyphens: auto;
}

.srs_rezensionen .disabled {
    display: none;
}

.srs_testimonial_item {
    position: relative;
    width: 100%;
    max-width: var(--srs-rezensionen-slider-testimonial-box-width);
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-weight: 400 !important;
    transition: all .3s;
}


.srs_testimonial_item:not(.srs_rezensionen.slider .srs_testimonial_item):hover{
    transform: scale(1.01);
}
.srs_testimonial_item .testimonial_img {
    overflow: hidden;
}

.srs_testimonial_item .testimonial_img img {
    position: relative !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 100%;
    box-shadow: none !important;

}
.srs_testimonial_item .flag {
    margin-top: 15px;
    width: 16px;
}

.srs_testimonial_item:hover .testimonial_img {
    filter: saturate(1);
}


.srs_testimonial_item .testimonial_img, .testimonial_popup .client_img {
    position: absolute;
    width: var(--srs-rezensionen-slider-author-image-size);
    height: var(--srs-rezensionen-slider-author-image-size);
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: top; /* center -25px */
    background-size: cover;
    filter: saturate(0);
    transition: all .3s ease;
    left: calc(var(--srs-rezensionen-slider-author-image-size) / -2);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

.srs_testimonial_item .testimonial_content {
    font-size: var(--srs-rezensionen-text-font-size);
    font-weight: 300;
    font-family: var(--srs-rezensionen-text-font-family);
    padding: 5px 30px 10px calc(var(--srs-rezensionen-slider-author-image-size) / 1.5);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
    transition: all .3s;
}

.srs_testimonial_item .testimonial_content.gray{
    background-color: var(--srs-rezensionen-card-gray);
}
.srs_testimonial_item .testimonial_content.white{
    background-color: white;
}

.srs_testimonial_item:hover .testimonial_content {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.srs_testimonial_item .testimonial_quote, .testimonial_popup .testimonial_quote {
    width: var(--srs-rezensionen-quote-size);
    height: var(--srs-rezensionen-quote-size);
    background: url("../Icons/quotation-mark.svg") no-repeat center;
    background-size: contain;
    margin: 5px 0;
}

.srs_testimonial_item .authorName {
    font-weight: 700;
    font-size: var(--srs-rezensionen-author-font-size);
    font-family: var(--srs-rezensionen-author-font-family);
    padding-bottom: 0 !important;
}

.srs_testimonial_item .testimonial_content > * {
    padding: 5px 0;
}

.srs_testimonial_item .companyAndPosition {
    display: flex;
    font-size: var(--srs-rezensionen-author-font-size);
    padding-top: 0;
    padding-bottom: 0;
    z-index: 700;
}

.srs_testimonial_item .companyAndPosition .position {
    padding-top: 0;
}

.srs_testimonial_item a {
    text-decoration: none;
    color: var(--srs-rezensionen-highlight-color);
}

.srs_testimonial_item .testimonial_text {
    text-overflow: ellipsis;
    overflow: hidden;
    padding-top: 0;
}

.srs_testimonial_item .testimonial_text p {
    margin-bottom: 0;
    margin-top: 5px;
    max-height: 72px;
    overflow: hidden;
    line-height: 1.1;
}

.srs_rezensionen .actionLink {
    margin-top: auto;
}
.srs_rezensionen .actionLink::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
}

.srs_rezensionen .location{
    display: flex;
    gap: 5px;
    margin-top: 5px;
}
/* SLIDER */
.srs_rezensionen.slider {
    height: 400px;

}
.srs_rezensionen.slider .srs_testimonial_item .testimonial_text{
    font-size: var(--srs-rezensionen-slider-font-size);
}

.srs_rezensionen.slider .owl-stage {
    height: 100% !important;
}

.srs_rezensionen.slider .owl-stage-outer {
    height: auto !important;
}

.srs_rezensionen.slider .srs_testimonial_item {
    width: 100%;
    padding: 0;
    margin: 20px 20px 20px 75px;
}

.srs_rezensionen.slider .owl-item {
    transition: transform .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* margin-right: 2.604vw !important;*/
}

.srs_rezensionen.slider .owl-item.active.center {
    transform: scale(1.2);
    margin-right: calc(50px * 1.2);
    margin-left: calc(50px * 1.2 - 50px);
}

.srs_rezensionen.slider .owl-item.active.center .testimonial_text{
    font-size: 15px;
}
.srs_rezensionen.slider .owl-item:not(.owl-item.active.center) .testimonial_text p{
    line-height: 1.3;
}

.srs_rezensionen.slider .owl-item.active.center .srs_testimonial_item .testimonial_img {
    filter: saturate(1) !important;
}

.srs_rezensionen.slider .srs_testimonial_item .companyAndPosition {
    flex-direction: column;
}

/* /SLIDER */

/* COMPACT LAYOUT */
.srs_rezensionen.compact {
    max-width: 100%;
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    grid-row-gap: var(--srs-rezensionen-compact-row-gap);*/
    display: flex;
    flex-direction: column;
    gap: var(--srs-rezensionen-compact-row-gap);
    padding-top: 10px;
}

.srs_rezensionen.compact .srs_testimonial_item {
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    flex: 1 1 285px;
    padding: 0 0 0 15px;
    margin: 0 auto;
}

.srs_rezensionen.compact .srs_testimonial_item .testimonial_img {
    width: calc(var(--srs-rezensionen-compact-author-image-size) * .9);
    height: calc(var(--srs-rezensionen-compact-author-image-size) * .9);
    filter: saturate(1);
}

.srs_rezensionen.compact .srs_testimonial_item .testimonial_text {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srs_rezensionen.compact .srs_testimonial_item .testimonial_content {
    text-align: left;
    width: 100%;
    padding: 10px 50px 15px 95px;
}

.srs_rezensionen.compact .srs_testimonial_item .authorName {
    display: flex;
    align-items: center;
}

.srs_rezensionen.compact .srs_testimonial_item .flag {
    margin-top: 0;
}

/* /COMPACT LAYOUT */

/* GRID LAYOUT */
.srs_rezensionen.grid {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    gap: var(--srs-rezensionen-grid-row-gap) var(--srs-rezensionen-grid-col-gap);
}

.srs_rezensionen.grid .srs_testimonial_item {
    width: calc(100% / var(--srs-rezensionen-grid-col-items) - var(--srs-rezensionen-grid-col-gap)*2);
    flex: 1 1 285px;
    padding: 0;
}

.srs_rezensionen.grid .srs_testimonial_item .testimonial_img {
    width: var(--srs-rezensionen-grid-author-image-size);
    height: var(--srs-rezensionen-grid-author-image-size);
}

.srs_rezensionen.grid .srs_testimonial_item .testimonial_text {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srs_rezensionen.grid .srs_testimonial_item .flag {
    margin-top: 0;
}

.srs_rezensionen.grid .srs_testimonial_item {
    flex-direction: column;
    padding-top: 30px;
}

.srs_rezensionen.grid .srs_testimonial_item .testimonial_img {
    left: unset;
    top: calc(var(--srs-rezensionen-slider-author-image-size) / -3);
    filter: saturate(1);
}

.srs_rezensionen.grid .srs_testimonial_item .testimonial_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--srs-rezensionen-slider-author-image-size) / 1.5) 30px 20px 30px;
}

.srs_rezensionen.grid .srs_testimonial_item .testimonial_text,
.srs_rezensionen.grid .srs_testimonial_item .authorName,
.srs_rezensionen.grid .srs_testimonial_item .companyAndPosition {
    flex-direction: column;
    text-align: center;
}

.srs_rezensionen.grid .srs_testimonial_item .authorName {
    line-height: 1;
}

/* /GRID LAYOUT */
.testimonial_popup .flag {
    width: 16px;
}
.tx-srs-rezensionen .rating, .testimonial_popup .rating {
    display: flex;
}

.tx-srs-rezensionen .rating .star, .testimonial_popup .rating .star {
    width: 20px;
    height: 20px;
    background: url("../Icons/star-light_Zeichenfläche 1.svg") no-repeat center;
    background-size: contain;
}

.tx-srs-rezensionen .rating .star.filled, .testimonial_popup .rating .star.filled {
    background: url("../Icons/star-dark_Zeichenfläche 1.svg") no-repeat center;
}

.slider_arr_mobile {
    display: none;
}
.slider_arr_mobile .srs_slider_arrows {
    margin-top: 0;
}

.testimonial_popup {
    display: none;
    background-color: transparent !important;
}

.testimonial_popup .popup_content {
    position: relative;
    width: 992px;
    max-width: 100vw;
    height: auto;
    text-align: center;
    background-color: var(--popup-background-color);
    padding: 0 80px 70px 80px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

.testimonial_popup .popup_content .client_img {
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--srs-rezensionen-slider-author-image-size) / -2.5);
    filter: saturate(1);
}

.testimonial_popup .popup_content .popup_text {
    padding-top: calc(var(--srs-rezensionen-slider-author-image-size) * .75);
    width: 100%;
    height: 100%;
}

.testimonial_popup .popup_content .popup_text .authorName {
    font-weight: bold;
    line-height: 1;
}

.testimonial_popup .popup_content .popup_text .authorName, .testimonial_popup .popup_content .companyAndPosition {
    font-size: 1.3125rem;
}

.testimonial_popup .popup_content .companyAndPosition {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.testimonial_popup .popup_content .location {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.testimonial_popup .popup_content .testimonial_text {
    font-size: 0.9375rem;
}

.testimonial_popup .popup_content .rating {
    justify-content: center;
}

.testimonial_popup .popup_content .rating .star {
    width: 30px;
    height: 30px;
}

.testimonial_popup .testimonial_quote {
    margin: 1rem auto .5rem auto;
}

.fancybox__content > .carousel__button.is-close {
    top: 50px !important;
    right: 60px !important;
    transform: scale(1.5) !important;
    color: black !important;
}

.global_rating_box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.global_rating_box h3{
    line-height: 1.2!important;
}
.global_rating_box .global_rating_message{
    font-weight: bold;
    margin: .5rem 0;
}
.global_rating_box .global_rating_message::before{
    content: "„";
}
.global_rating_box .global_rating_message::after{
    content: "“";
}
.global_rating_box .rating_subtitle{
    font-size: 15px;
}

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

    .srs_rezensionen.slider {
        max-width: 100%;
        height: 100% !important;
    }

    .srs_rezensionen.slider .owl-stage {
        align-items: flex-end;
    }

    .srs_rezensionen_wrapper {
        flex-direction: column;
        padding: 20px 0;
    }

    .srs_rezensionen.slider .owl-item {
        width: 100% !important;
    }

    .slider_arr_mobile {
        display: flex;
        width: 50%;
        justify-content: space-between;
    }

    .slider_arr_mobile .srs_slider_arrows {
        transform: scale(.5);
    }

    .srs_slider_arrows:not(.slider_arr_mobile .srs_slider_arrows) {
        display: none;
    }

    /* POPUP */
    .testimonial_popup .popup_content .companyAndPosition {
        flex-direction: column;
    }

    .testimonial_popup .popup_content .companyAndPosition .desktopSeparator {
        display: none;
    }

    .testimonial_popup .popup_content {
        padding: 20px 20px 50px 20px;
    }

    /* /POPUP */
    /* COMPACT VIEW */
    .srs_rezensionen.compact {
        padding-top: calc(var(--srs-rezensionen-slider-author-image-size) / 3);
        row-gap: var(--srs-rezensionen-grid-row-gap);
    }

    .srs_rezensionen.compact .srs_testimonial_item {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        flex-direction: column;
        padding-top: 30px;
    }

    .srs_rezensionen.compact .desktopSeparator {
        display: none;
    }

    .srs_rezensionen.compact .srs_testimonial_item .flag {
        margin: 0;
    }

    .srs_rezensionen.compact .srs_testimonial_item .testimonial_img {
        left: unset;
        top: calc(var(--srs-rezensionen-slider-author-image-size) / -3);
        filter: saturate(1);
    }

    .srs_rezensionen.compact .srs_testimonial_item .testimonial_content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: calc(var(--srs-rezensionen-slider-author-image-size) / 1.5) 30px 20px 30px;
    }

    .srs_rezensionen.compact .srs_testimonial_item .testimonial_text,
    .srs_rezensionen.compact .srs_testimonial_item .authorName,
    .srs_rezensionen.compact .srs_testimonial_item .companyAndPosition {
        flex-direction: column;
        text-align: center;
    }

    .srs_rezensionen.compact .srs_testimonial_item .authorName {
        line-height: 1;
    }

    /* /COMPACT VIEW */
}

@media screen and (min-width: 768px) and (max-width: 995px) {
    /*.srs_rezensionen.slider .owl-item {
        width: calc(85vw / 2 + 2.5px) !important;
    }*/
}
/*
@media screen and (min-width: 935px){
    .srs_rezensionen.grid{
        justify-content: flex-start;
    }
}
*/
@media screen and (max-width: 1250px) {
    .srs_rezensionen.compact .srs_testimonial_item {
        max-width: 80%;
    }
}

@media screen and (min-width: 995px) and (max-width: 1659px) {
    /*.srs_rezensionen.slider .owl-item {
        width: calc(85vw / 3 + 2.5px) !important;
    }*/
}

@media screen and (max-width: 1659px) {
    .srs_rezensionen.slider .srs_testimonial_item .testimonial_img {
        filter: saturate(1);
    }
}


@media screen and (max-width: 1850px) {
    .srs_rezensionen.slider {
        height: 550px;
    }

    .srs_rezensionen.slider .srs_testimonial_item {
        flex-direction: column;
    }

    .srs_rezensionen.slider .srs_testimonial_item .testimonial_img {
        left: unset;
        top: calc(var(--srs-rezensionen-slider-author-image-size) / -2);
    }

    .srs_rezensionen.slider .srs_testimonial_item .testimonial_content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: calc(var(--srs-rezensionen-slider-author-image-size) / 1.5) 30px 20px 30px;
    }

    .srs_rezensionen.slider .srs_testimonial_item .testimonial_text,
    .srs_rezensionen.slider .srs_testimonial_item .authorName,
    .srs_rezensionen.slider .srs_testimonial_item .companyAndPosition {
        text-align: center;
    }

    .srs_rezensionen.slider .srs_testimonial_item .authorName {
        line-height: 1;
    }

    .srs_rezensionen.slider .srs_testimonial_item {
        margin: 95px 20px 20px 20px;
    }

    .srs_slider_arrows {
        width: 70px;
        height: 70px;
        margin-top: 95px;
    }

    .srs_slider_arrows.right {
        margin-right: .5rem;
    }

    .srs_slider_arrows.left {
        margin-left: .5rem;
    }

}
