/* ============================================
   REVIEW SLIDER - STYLES
   ============================================ */

:root {
    --gold-accent: #E5B23C;
    --gold-accent-hover: #b8941f;
    --gold-accent-light: #f5e6d3;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --star-empty: #E0E0E0;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

.overall-rating {
    text-align: center;
    margin-bottom: 40px;
}

.overall-rating-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: Georgia, 'Times New Roman', serif;
}

.overall-rating-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.overall-rating-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.overall-rating-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.overall-rating-stars .star {
    font-size: 1.8rem;
}

.overall-rating-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.overall-rating-count {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.2;
    text-align: center;
}

.reviews-slider {
    position: relative;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

.slider-container:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.review-card {
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.review-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.review-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    align-items: center;
}

.star {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

.star svg {
    width: 100%;
    height: 100%;
    display: block;
}

.star-full svg {
    fill: var(--gold-accent);
    color: var(--gold-accent);
}

.star-empty svg {
    fill: var(--star-empty);
    color: var(--star-empty);
}

.star-half {
    position: relative;
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    overflow: hidden;
}

/* Linke Hälfte: Gold (dynamische Breite basierend auf Prozentsatz) */
.star-half .star-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    /* Breite wird dynamisch via inline-style gesetzt */
}

.star-half .star-filled svg {
    fill: var(--gold-accent);
    color: var(--gold-accent);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    /* Skalierung für korrekte Anzeige */
    transform-origin: left center;
}

/* Rechte Hälfte: Grau (füllt den Rest) */
.star-half .star-empty {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    /* Breite wird dynamisch via inline-style gesetzt */
}

.star-half .star-empty svg {
    fill: var(--star-empty);
    color: var(--star-empty);
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    /* Skalierung für korrekte Anzeige */
    transform-origin: right center;
}

.review-rating {
    margin-left: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.review-text {
    flex: 1;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.review-text-preview {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-clamp: 6;
    margin-bottom: 15px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--gold-accent);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.read-more-btn:hover {
    color: var(--gold-accent-hover);
}

.review-source {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.review-source-link {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-source-link:hover {
    color: var(--gold-accent-hover);
    text-decoration: underline;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    color: var(--white);
}

.slider-nav-prev {
    left: 15px;
}

.slider-nav-next {
    right: 15px;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background: var(--gold-accent);
    transform: scale(1.2);
}

.dot.active {
    background: var(--gold-accent);
    width: 30px;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gold-accent-light);
    color: var(--text-dark);
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .overall-rating {
        margin-bottom: 30px;
    }
    
    .overall-rating-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .overall-rating-content {
        gap: 8px;
    }
    
    .overall-rating-top {
        gap: 12px;
    }
    
    .overall-rating-stars .star {
        font-size: 1.5rem;
    }
    
    .overall-rating-value {
        font-size: 1.25rem;
    }
    
    .overall-rating-count {
        font-size: 0.9rem;
    }
    
    .reviews-slider {
        padding: 0 50px;
    }
    
    .review-card {
        height: auto;
        min-height: 400px;
        padding: 25px;
    }
    
    .review-text-preview {
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-nav-prev {
        left: 10px;
    }
    
    .slider-nav-next {
        right: 10px;
    }
    
    .modal-content {
        padding: 30px 25px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .reviews-slider {
        padding: 0 45px;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .slider-nav-prev {
        left: 8px;
    }
    
    .slider-nav-next {
        right: 8px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-title {
        font-size: 1.1rem;
    }
}

