/* ==========================================================================
   Heilpraxis Google Reviews — Carousel
   ========================================================================== */

.hpr-reviews {
    max-width: 860px;
    margin: 0 auto;
}

.hpr-reviews *,
.hpr-reviews *::before,
.hpr-reviews *::after {
    box-sizing: border-box;
}

.hpr-reviews,
.hpr-carousel,
.hpr-carousel-viewport,
.hpr-carousel-track,
.hpr-carousel-slide {
    min-width: 0;
}

/* Prevent the carousel's min-content width from inflating
   a parent grid/flex item (e.g. <article> in a CSS Grid layout). */
.content-sidebar-wrap > article,
article.hentry {
    min-width: 0;
}

/* -- Header ------------------------------------------------------------ */

.hpr-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-light, #eee);
}

.hpr-rating-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text, #333);
    line-height: 1;
    margin-bottom: 6px;
}

.hpr-stars-big .hpr-stars {
    font-size: 1.6rem;
}

.hpr-stars {
    color: #f5a623;
    letter-spacing: 2px;
}

.hpr-review-count {
    display: block;
    font-size: .88rem;
    color: var(--color-text-light, #777);
    margin-top: 6px;
    text-decoration: none;
}

.hpr-review-count:hover {
    color: var(--color-primary, #3d7a2d);
    text-decoration: underline;
}

.hpr-google-logo {
    display: block;
    margin: 12px auto 0;
    opacity: .5;
}

/* -- Carousel ---------------------------------------------------------- */

.hpr-carousel {
    position: relative;
    margin-bottom: 32px;
    padding: 0 50px; /* space for arrows */
    box-sizing: border-box;
}

.hpr-carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.hpr-carousel-track {
    display: flex;
    transition: transform .6s cubic-bezier(.25, .1, .25, 1);
    will-change: transform;
}

.hpr-carousel-slide {
    flex: 0 0 50%;
    padding: 0 8px;
    box-sizing: border-box;
}

/* -- Card -------------------------------------------------------------- */

.hpr-card {
    background: var(--color-white, #fff);
    border: 1px solid var(--color-gray-mid, #dde5d8);
    border-radius: 12px;
    padding: 24px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease;
}

.hpr-card:hover {
    box-shadow: 0 6px 24px rgba(95, 158, 74, .12);
}

.hpr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hpr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hpr-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hpr-card-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text, #333);
}

.hpr-card-time {
    font-size: .75rem;
    color: #999;
    margin-top: 1px;
}

.hpr-card-stars {
    margin-bottom: 10px;
}

.hpr-card-stars .hpr-stars {
    font-size: .95rem;
}

.hpr-card-text {
    font-size: .9rem;
    color: var(--color-text-light, #555);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* -- Arrows ------------------------------------------------------------ */

.hpr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%); /* offset for dots */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-mid, #dde5d8);
    background: rgba(255, 255, 255, .95);
    color: var(--color-text, #333);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    z-index: 2;
    padding: 0;
}

.hpr-arrow:hover {
    background: var(--color-primary, #3d7a2d);
    border-color: var(--color-primary, #3d7a2d);
    color: #fff;
}

.hpr-arrow-prev {
    left: 0;
}

.hpr-arrow-next {
    right: 0;
}

/* -- Dots -------------------------------------------------------------- */

.hpr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hpr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-gray-mid, #ccc);
    cursor: pointer;
    padding: 0;
    transition: all .3s ease;
}

.hpr-dot.active {
    background: var(--color-primary, #3d7a2d);
    transform: scale(1.3);
}

.hpr-dot:hover:not(.active) {
    background: #999;
}

/* -- CTA Footer -------------------------------------------------------- */

.hpr-cta {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--color-gray-light, #eee);
}

.hpr-cta-text {
    font-size: .92rem;
    color: var(--color-text-light, #777);
    margin-bottom: 14px;
}

.hpr-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--color-primary, #3d7a2d);
    border: 2px solid var(--color-primary, #3d7a2d);
    border-radius: 30px;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.hpr-cta-btn:hover {
    background: var(--color-primary, #3d7a2d);
    color: var(--color-white, #fff);
    transform: translateY(-2px);
}

/* -- Empty ------------------------------------------------------------- */

.hpr-empty {
    text-align: center;
    color: var(--color-text-light, #555);
    font-style: italic;
    padding: 40px 20px;
}

/* -- Responsive -------------------------------------------------------- */

@media (max-width: 760px) {
    .hpr-carousel {
        padding: 0 36px;
    }

    .hpr-carousel-slide {
        flex: 0 0 100%;
    }

    .hpr-rating-big {
        font-size: 2.4rem;
    }

    .hpr-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
}

/* -- Print ------------------------------------------------------------- */

@media print {
    .hpr-carousel-track {
        flex-wrap: wrap;
        transform: none !important;
    }

    .hpr-carousel-slide {
        flex: 0 0 100%;
        margin-bottom: 12px;
    }

    .hpr-carousel {
        padding: 0;
    }

    .hpr-arrow,
    .hpr-dots,
    .hpr-cta {
        display: none;
    }

    .hpr-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
