/* Hier beginnt der CSS-Code für die Bewertungen */
.bewertungs-wrapper {
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 10px; /* NEU: Abgerundete Ecken */
}

.bewertungs-wrapper h3 {
    width: 100%;
    margin-top: 0;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.bewertungs-info {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}

.bewertungs-formular {
    flex: 1 1 300px;
}

.bewertungs-grafik {
    flex: 1 1 200px;
}

.bewertungs-liste {
    flex: 1 1 100%;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.durchschnitt {
    font-size: 2.5em;
    font-weight: bold;
    color: #f7d100;
}

.sterne-rating {
    display: inline-block;
    color: #f7d100;
}

.rating-anzeige {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.rating-anzeige .bar {
    width: 100px;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.rating-anzeige .fill {
    height: 100%;
    background-color: #f7d100;
}

/* Dynamische Status-Felder */
.status-box {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.status-trend.active { background-color: #008CBA; }
.status-beliebt.active { background-color: #4CAF50; }
.status-neutral { background-color: #ccc; }

/* Formular-Styling */
#reviewForm input[type="text"],
#reviewForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#reviewForm textarea {
    resize: vertical;
}

.char-counter {
    font-size: 0.8em;
    color: #888;
    text-align: right;
    margin-bottom: 10px;
}

/* Stern-Auswahl */
.sterne-auswahl {
    direction: rtl; /* Kehrt die Richtung für die Sterne um */
    display: inline-block;
}

.sterne-auswahl input[type="radio"] {
    display: none;
}

.sterne-auswahl label {
    font-size: 1.5em;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 2px;
}

.sterne-auswahl input[type="radio"]:checked ~ label,
.sterne-auswahl label:hover,
.sterne-auswahl label:hover ~ label {
    color: #f7d100;
}

/* NEU: Grüner Hinweiskasten */
.success-box {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}