/* ============================================
   OWL CAROUSEL - CUSTOM STYLES
   ============================================ */

#mx body {
    /* background: red; */
}

/* Screen Reader only Klasse */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.owl-carousel,
.owl-carousel .owl-item {
    -webkit-tap-highlight-color: transparent;
    position: relative
}

.owl-carousel {
    display: none;
    width: 100%;
    z-index: 1
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y
}

.owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0)
}

.owl-carousel .owl-item {
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-touch-callout: none
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    -webkit-transform-style: preserve-3d
}

.owl-carousel .owl-dots.disabled,
.owl-carousel .owl-nav.disabled {
    display: none
}

.owl-carousel .owl-dot,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav .owl-prev {
    cursor: pointer;
    cursor: hand;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.owl-carousel.owl-loaded {
    display: block
}

.owl-carousel.owl-loading {
    opacity: 0;
    display: block
}

.owl-carousel.owl-hidden {
    opacity: 0
}

.owl-carousel.owl-refresh .owl-item {
    display: none
}

.owl-carousel.owl-drag .owl-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.owl-carousel.owl-grab {
    cursor: move;
    cursor: grab
}

.owl-carousel.owl-rtl {
    direction: rtl
}

.owl-carousel.owl-rtl .owl-item {
    float: right
}

.no-js .owl-carousel {
    display: block
}

.owl-carousel .animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both
}

.owl-carousel .owl-animated-in {
    z-index: 0
}

.owl-carousel .owl-animated-out {
    z-index: 1
}

.owl-carousel .fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.owl-height {
    transition: height .5s ease-in-out
}

.owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity .4s ease
}

.owl-carousel .owl-item img.owl-lazy {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d
}

.owl-carousel .owl-video-wrapper {
    position: relative;
    height: 100%;
    background: #000
}

.owl-carousel .owl-video-play-icon {
    position: absolute;
    height: 80px;
    width: 80px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background: url(owl.video.play.png) no-repeat;
    cursor: pointer;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    transition: -webkit-transform .1s ease;
    transition: transform .1s ease
}

.owl-carousel .owl-video-play-icon:hover {
    -webkit-transform: scale(1.3, 1.3);
    -ms-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3)
}

.owl-carousel .owl-video-playing .owl-video-play-icon,
.owl-carousel .owl-video-playing .owl-video-tn {
    display: none
}

.owl-carousel .owl-video-tn {
    opacity: 0;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity .4s ease
}

.owl-carousel .owl-video-frame {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%
}

@media (max-width: 767px) {
    #mx .owl-carousel {
        max-width: 360px;
    }
}

#mx .owl-stage-outer {
    overflow: visible;
}

.owl-item {
    transition: all 0.3s ease;
}

.owl-item:not(.active) {
    transform: scale(0.90);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 1;
    filter: none;
}

.owl-item.active {
    transform: scale(1);
}

#mx .review-card {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #000;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.owl-item.active #mx .review-card,
#mx .owl-item.active .review-card {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    #mx .review-card {
        flex-direction: row;
        height: 300px;
    }
}

#mx .review-card__header {
    max-height: 300px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    #mx .review-card__header {
        min-width: 275px;
    }
}

#mx .review-card__header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#mx .review-card__body {
    display: flex;
    padding: 32px;
    flex-direction: column;
}

#mx .review-card__stars {
    padding-bottom: 16px;
}

#mx .review-card__quote {
    font-size: 15px;
    line-height: 150%;
    font-weight: 400;
    font-family: 'Montserrat';
    padding-bottom: 24px;
}

#mx .review-card__name {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Montserrat';
}

/* BARRIEREFREIE LÖSUNG: Alle Elemente haben einheitliches Styling */

/* Fokus- und Hover-Stile für Review Cards */
.owl-item:focus {
    outline: none;
}

.owl-item:focus .review-card,
.owl-item:hover .review-card {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25) !important;
    transition: box-shadow 0.3s ease;
}

/* Navigation Focus-Stile */
.owl-nav button:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

/* Hochkontrast-Modus Unterstützung */
@media (prefers-contrast: high) {
    .owl-item[aria-hidden="true"] .review-card,
    .owl-item:not(.active) .review-card {
        border: 2px dashed #666;
        background-color: #fff;
    }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .owl-carousel,
    .owl-carousel .owl-item,
    .review-card {
        transition: none !important;
    }
    
    .owl-carousel .animated {
        animation: none !important;
    }
}

/* Owl Carousel Controls */
.carousel-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 10%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0 56px;
    padding-bottom: 50px; /* Platz für Navigation unten */
}

/* fix blank or flashing items on carousel */
.owl-carousel>.item {
    position: relative;
    z-index: 1;
    -webkit-backface-visibility: hidden;
}

/* Navigation - Kompakte Pfeile */
.owl-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 150px; /* Etwas schmaler */
    margin: 0 auto;
    padding-top: 40px;
    position: relative;
    z-index: 20;
}

.owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.owl-nav>div {
    position: relative;
    top: -21px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #9b9b9b;
    cursor: pointer;
}

.owl-nav .owl-prev {
    left: -8px;
}

.owl-nav .owl-next {
    right: -8px;
}

.owl-nav>div:hover {
    background: #9b9b9b;
    border-color: #9b9b9b;
}

.owl-nav .owl-prev:hover::before,
.owl-nav .owl-next:hover::after {
    color: #ffffff !important;
}

.owl-nav i {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.owl-nav>div:hover i {
    color: #333;
}

/* Carousel and Items */
.owl-carousel {
    width: 100%;
    max-width: 800px;
}

.owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 0;
}

.owl-dot span {
    background: #d9d9d9;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
}

.owl-dot.active span {
    background: #9b9b9b;
}

/* RESET: Alle alten Icon-Stile überschreiben */
.owl-nav .fa-caret-left,
.owl-nav .fa-caret-right {
    font-family: inherit !important;
    font-size: inherit !important;
}

.owl-nav .fa-caret-left::before,
.owl-nav .fa-caret-right::before,
.owl-nav .fa-caret-left::after,
.owl-nav .fa-caret-right::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
}

/* Schöne Unicode-Pfeile */
.owl-nav .owl-prev::before {
    content: '❮';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9b9b9b;
    font-weight: 500;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.owl-nav .owl-next::after {
    content: '❯';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9b9b9b;
    font-weight: 500;
    line-height: 1;
    width: 100%;
    height: 100%;
}

/* Stars */
.review-card__stars {
    padding-bottom: 16px;
}

.review-card__stars::after {
    content: '';
    position: relative;
    display: block;
    width: auto;
    height: 32.55px;
    background-repeat: no-repeat;
}

.review-card__stars[data-rating="5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="4.5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Half.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="4"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="3.5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg), url(../images/Star-Half.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="3"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Full.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="2.5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(../images/Star-Half.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="2"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Full.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="1.5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(../images/Star-Half.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="1"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Full.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="0.5"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(../images/Star-Half.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}

.review-card__stars[data-rating="0"]::after {
    width: calc(5 * 32.55px + 4 * 8px);
    background-image: url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg), url(/wp-content/uploads/assets/Star-Empty.svg),
        url(/wp-content/uploads/assets/Star-Empty.svg);
    background-size: 32.55px 32.55px;
    background-position: 0 0, 40px 0, 80px 0, 120px 0, 160px 0;
}