/* Sternbewertung CSS */

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 1.5rem;
}


/* Nicht-interaktive Sternanzeige */

.star-rating .star {
    margin: 0 2px;
}

.star-rating .star.full {
    color: #FFD700;
}

.star-rating .star.half {
    position: relative;
    color: #E0E0E0;
}

.star-rating .star.half::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FFD700;
}

.star-rating .star.empty {
    color: #E0E0E0;
}


/* Interaktive Sternbewertung für Formulare */

.star-rating.interactive {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating.interactive input {
    display: none;
}

.star-rating.interactive label {
    color: #E0E0E0;
    cursor: pointer;
    font-size: 1.75rem;
    padding: 0 0.1rem;
    transition: all 0.2s ease;
}

.star-rating.interactive label:hover,
.star-rating.interactive label:hover~label,
.star-rating.interactive input:checked~label {
    color: #FFD700;
}


/* Bewertungsbereich */

.rating-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #F9FAFB;
}

.rating-form {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.rating-comment {
    margin-top: 0.5rem;
}


/* Bewertungsliste */

.rating-list {
    margin-top: 1.5rem;
}

.rating-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-user {
    display: flex;
    align-items: center;
}

.rating-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    overflow: hidden;
}

.rating-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-user-name {
    font-weight: 600;
}

.rating-date {
    margin-left: auto;
    font-size: 0.875rem;
    color: #6B7280;
}

.rating-value {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-text {
    margin-left: 0.5rem;
}

.rating-comment {
    line-height: 1.5;
}


/* Zusammenfassung der Bewertungen */

.rating-summary {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-average {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-right: 1rem;
}

.rating-count {
    font-size: 0.875rem;
    color: #6B7280;
}