/* === Bewertungs-Modal === */
.nm-bwf {
    --bwf-navy: #16233F;
    --bwf-gold: #E0AC33;
    --bwf-rand: #ECE3CE;
    --bwf-creme: #FBF6E9;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 30px 70px -20px rgba(12, 20, 38, .45);
    color: #2b3444;
    max-width: 620px;
    padding: 0;
    width: min(94vw, 620px);
}

.nm-bwf::backdrop {
    background: rgba(12, 20, 38, .62);
}

.nm-bwf-form {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 3vw, 30px);
}

.nm-bwf-kopf {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.nm-bwf-kopf h2 {
    color: var(--bwf-navy) !important;
    font-size: 21px !important;
    line-height: 1.2;
    margin: 0 !important;
}

.nm-bwf-zu {
    background: none;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0 4px;
}

.nm-bwf-zu:hover { color: var(--bwf-navy); }

.nm-bwf-intro {
    color: #5b6472;
    font-size: 14px;
    line-height: 1.55;
    margin: -6px 0 0;
}

/* --- Sterne ---
   Die Radiobuttons liegen im Markup als 5..1 vor. Dadurch trifft
   "der aktive Stern und alle danach folgenden Geschwister" genau die
   Sterne 1..n - ohne eine Zeile JavaScript. */
.nm-bwf-sterne-feld {
    border: 0;
    margin: 0;
    padding: 0;
}

.nm-bwf-sterne-feld legend {
    color: var(--bwf-navy);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    padding: 0;
}

.nm-bwf-sterne {
    direction: rtl;
    display: inline-flex;
    gap: 4px;
}

.nm-bwf-sterne input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.nm-bwf-sterne label {
    color: #dcd7ca;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transition: color .12s ease, transform .12s ease;
}

.nm-bwf-sterne label:hover,
.nm-bwf-sterne label:hover ~ label,
.nm-bwf-sterne input:checked ~ label {
    color: var(--bwf-gold);
}

.nm-bwf-sterne label:hover { transform: scale(1.08); }

/* Tastaturfokus muss sichtbar bleiben, obwohl das Feld optisch
   ein Sternenband ist. */
.nm-bwf-sterne input:focus-visible + label {
    outline: 2px solid var(--bwf-navy);
    outline-offset: 3px;
    border-radius: 4px;
}

.nm-bwf-sr {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* --- Felder --- */
.nm-bwf-reihe {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.nm-bwf-feld {
    display: grid;
    gap: 5px;
    margin: 0;
}

.nm-bwf-feld label,
.nm-bwf-sterne-feld legend {
    color: var(--bwf-navy);
    font-size: 13.5px;
    font-weight: 700;
}

.nm-bwf-optional {
    color: #8a919c;
    font-weight: 500;
}

.nm-bwf-feld input[type="text"],
.nm-bwf-feld input[type="email"],
.nm-bwf-feld select,
.nm-bwf-feld textarea {
    background: #fff;
    border: 1px solid #d9d2c2;
    border-radius: 9px;
    color: #2b3444;
    font: inherit;
    font-size: 14.5px;
    padding: 10px 13px;
    width: 100%;
}

.nm-bwf-feld textarea {
    line-height: 1.55;
    resize: vertical;
}

.nm-bwf-feld input:focus,
.nm-bwf-feld select:focus,
.nm-bwf-feld textarea:focus {
    border-color: var(--bwf-gold);
    box-shadow: 0 0 0 3px rgba(224, 172, 51, .25);
    outline: none;
}

.nm-bwf-feld input[type="file"] {
    background: var(--bwf-creme);
    border: 1px dashed #d9d2c2;
    border-radius: 9px;
    font-size: 13.5px;
    padding: 11px 13px;
    width: 100%;
}

.nm-bwf-hinweis {
    color: #7a828e;
    font-size: 12.5px;
    line-height: 1.45;
}

/* Honigtopf - fuer Menschen unsichtbar, fuer Bots sichtbar. */
.nm-bwf-topf {
    left: -9999px;
    position: absolute;
}

.nm-bwf-zustimmung {
    background: var(--bwf-creme);
    border: 1px solid var(--bwf-rand);
    border-radius: 10px;
    margin: 0;
    padding: 12px 14px;
}

.nm-bwf-zustimmung label {
    align-items: start;
    color: #4c5563;
    display: flex;
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.5;
}

.nm-bwf-zustimmung input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.nm-bwf-zustimmung a {
    color: var(--bwf-navy);
    font-weight: 700;
}

.nm-bwf-fuss {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.nm-bwf-senden {
    background: var(--bwf-navy);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 28px;
    transition: background .18s ease;
}

.nm-bwf-senden:hover { background: #0e1830; }

.nm-bwf-pruefhinweis {
    color: #7a828e;
    font-size: 12.5px;
}

/* --- Rueckmeldung nach dem Absenden --- */
.nm-bwf-toast {
    background: #fff;
    border-left: 5px solid var(--bwf-gold);
    border-radius: 11px;
    bottom: 22px;
    box-shadow: 0 18px 44px -14px rgba(12, 20, 38, .38);
    display: grid;
    gap: 3px;
    left: 50%;
    max-width: 420px;
    padding: 15px 19px;
    position: fixed;
    transform: translateX(-50%);
    transition: opacity .4s ease, transform .4s ease;
    width: calc(100% - 32px);
    z-index: 9999;
}

.nm-bwf-toast strong { color: var(--bwf-navy); font-size: 14.5px; }
.nm-bwf-toast span { color: #5b6472; font-size: 13px; line-height: 1.5; }
.nm-bwf-toast-fehler { border-left-color: #b51625; }

.nm-bwf-toast-weg {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}

@media (max-width: 560px) {
    .nm-bwf-reihe { grid-template-columns: 1fr; }
    .nm-bwf-fuss { flex-direction: column; align-items: stretch; }
    .nm-bwf-senden { width: 100%; }
    .nm-bwf-pruefhinweis { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-bwf-sterne label,
    .nm-bwf-senden,
    .nm-bwf-toast { transition: none; }
    .nm-bwf-sterne label:hover { transform: none; }
}
