/* MH Reviews Karussell - Frontend Styles */

.mh-reviews-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.mh-reviews-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 50px 0;
    letter-spacing: -0.5px;
}

.mh-reviews-container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.mh-reviews-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.mh-reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Review Card - exaktes Design wie Screenshot */
.mh-review-card {
    flex: 0 0 calc((100% - 96px) / 5); /* 5 Karten mit 24px Gap */
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.mh-review-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Header mit Avatar und Name */
.mh-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.mh-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.mh-review-meta {
    flex: 1;
    min-width: 0;
}

.mh-review-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Sterne - Google-Gelb */
.mh-review-stars {
    display: flex;
    gap: 1px;
}

.mh-star {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1;
}

.mh-star.filled {
    color: #fbbc04;
}

/* Content */
.mh-review-content {
    position: relative;
}

.mh-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.mh-review-readmore {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.mh-review-readmore:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* Navigation Buttons */
.mh-reviews-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #5f6368;
}

.mh-reviews-nav:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

.mh-reviews-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mh-reviews-nav svg {
    width: 20px;
    height: 20px;
}

/* Responsive: Desktop bis 1600px - max 5 Karten */
@media (max-width: 1400px) {
    .mh-review-card {
        flex: 0 0 calc((100% - 72px) / 4); /* 4 Karten */
    }
}

@media (max-width: 1100px) {
    .mh-review-card {
        flex: 0 0 calc((100% - 48px) / 3); /* 3 Karten */
    }
}

/* Tablet: 3 Karten */
@media (max-width: 900px) {
    .mh-reviews-wrapper {
        padding: 40px 16px;
    }
    
    .mh-reviews-title {
        font-size: 26px;
        margin-bottom: 32px;
    }
    
    .mh-review-card {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: 220px;
        padding: 20px;
    }
    
    .mh-reviews-nav {
        width: 40px;
        height: 40px;
    }
}

/* Mobile: 1 Karte */
@media (max-width: 640px) {
    .mh-reviews-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .mh-reviews-track {
        gap: 16px;
    }
    
    .mh-review-card {
        flex: 0 0 100%;
        min-width: 0;
    }
    
    .mh-reviews-nav {
        display: none;
    }
    
    /* Mobile: Swipe-Hinweis */
    .mh-reviews-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mh-reviews-track-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .mh-review-card {
        scroll-snap-align: center;
    }
    
    .mh-reviews-title {
        font-size: 22px;
    }
}

/* Animation für expandierten Text */
.mh-review-text {
    transition: max-height 0.3s ease;
}

.mh-review-card.expanded .mh-review-text {
    max-height: none;
}
