/**
 * UF Testimonial Slider - Frontend Styles
 * Autor: Unicorn Factory Media GmbH
 */

/* ==========================================================================
   Slider Container
   ========================================================================== */
.uf-testimonial-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.uf-testimonial-slides {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Einzelner Slide
   ========================================================================== */
.uf-testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.uf-testimonial-slide.active {
    display: flex;
    opacity: 1;
    gap: 40px;
    align-items: center;
}

/* ==========================================================================
   Bild
   ========================================================================== */
.uf-testimonial-image {
    flex: 0 0 35%;
    max-width: 35%;
    position: relative;
    overflow: hidden;
}

.uf-testimonial-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   Inhalt
   ========================================================================== */
.uf-testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Zitat
   ========================================================================== */
.uf-testimonial-quote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.25rem;
    line-height: 1.6;
    color: inherit;
}

.uf-testimonial-quote-bold {
    font-weight: 700;
    font-style: normal;
}

.uf-testimonial-quote-italic {
    font-weight: 400;
    font-style: italic;
}

/* ==========================================================================
   Autor
   ========================================================================== */
.uf-testimonial-author {
    margin-top: 1.5em;
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    color: inherit;
}

/* ==========================================================================
   Navigation - Pfeile
   ========================================================================== */
.uf-testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.uf-testimonial-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.uf-testimonial-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.uf-testimonial-prev {
    left: 0;
}

.uf-testimonial-next {
    right: 0;
}

.uf-testimonial-arrow svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Navigation - Wrapper
   ========================================================================== */
.uf-testimonial-nav {
    /* Desktop: kein Layout-Effekt, Arrows bleiben absolut */
}

/* ==========================================================================
   Navigation - Dots
   ========================================================================== */
.uf-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.uf-testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
    opacity: 0.5;
}

.uf-testimonial-dot:hover,
.uf-testimonial-dot.active {
    opacity: 1;
}

.uf-testimonial-dot.active {
    background: currentColor;
}

.uf-testimonial-dot:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .uf-testimonial-slide.active {
        gap: 30px;
    }

    .uf-testimonial-image {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .uf-testimonial-quote {
        font-size: 1.125rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .uf-testimonial-slide.active {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .uf-testimonial-image {
        flex: 0 0 auto;
        max-width: 50%;
        margin: 0 auto;
    }

    .uf-testimonial-content {
        text-align: center;
        width: 100%;
    }

    .uf-testimonial-quote {
        font-size: 1rem;
    }

    .uf-testimonial-author {
        margin-top: 1em;
    }

    /* Nav-Row: Arrows + Dots in einer Zeile */
    .uf-testimonial-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 20px;
    }

    .uf-testimonial-arrow {
        position: static;
        transform: none;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .uf-testimonial-arrow svg {
        width: 20px;
        height: 20px;
    }

    .uf-testimonial-dots {
        margin-top: 0;
        gap: 8px;
    }

    .uf-testimonial-dot {
        width: 14px;
        height: 14px;
    }
}

/* Kleine Mobile */
@media (max-width: 480px) {
    .uf-testimonial-image {
        max-width: 60%;
    }

    .uf-testimonial-quote {
        font-size: 0.9375rem;
    }
}
