/*
 * Bewertung schreiben (Fenster) + Hinweisseiten – Werte 1:1 aus dem Prototyp (modalReview), ADR-041.
 * Fenster öffnet ohne JS über #bewerten (:target), mit JS über .is-open.
 */
.oaf-rvm { --r-font: var(--oaf-font, "Geist", system-ui, sans-serif);
	position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; font-family: var(--r-font); line-height: normal; color: #141C1F; }
.oaf-rvm:target, .oaf-rvm.is-open { display: flex; }
.oaf-rvm.is-closed { display: none; }
.oaf-rvm *, .oaf-rvm *::before, .oaf-rvm *::after { box-sizing: border-box; }
.oaf-rvm__backdrop { position: absolute; inset: 0; background: rgba(14, 42, 49, .45); }
.oaf-rvm__dialog { position: relative; background: #FFFFFF; border-radius: 12px; width: 100%; max-width: 540px; max-height: 100%; overflow: auto; box-shadow: 0 16px 40px rgba(20, 28, 31, .2); display: flex; flex-direction: column; margin: 0; }
.oaf-rvm__head { padding: 18px 22px; border-bottom: 1px solid #DCE1E3; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.oaf-rvm__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oaf-rvm__title { font-weight: 600; font-size: 18px; }
.oaf-rvm__company { font-size: 13.5px; color: #55626A; }
.oaf-rvm a.oaf-rvm__close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #141C1F; text-decoration: none; }
.oaf-rvm__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.oaf-rvm__group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oaf-rvm .oaf-rvm__label { font-size: 14px; font-weight: 600; padding: 0; color: #141C1F; }
.oaf-rvm__starrow { display: flex; gap: 4px; align-items: center; }
.oaf-rvm__stars { display: flex; flex-direction: row-reverse; gap: 4px; }
.oaf-rvm__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oaf-rvm .oaf-rvm__stars label { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 32px; line-height: 1; color: #DCE1E3; padding: 0; margin: 0; }
.oaf-rvm .oaf-rvm__stars input:checked ~ label, .oaf-rvm .oaf-rvm__stars label:hover, .oaf-rvm .oaf-rvm__stars label:hover ~ label { color: #C17E12; }
.oaf-rvm__stars input:focus-visible + label { outline: 2px solid #2B7A8C; outline-offset: 2px; border-radius: 4px; }
.oaf-rvm .oaf-rvm__stars[aria-invalid="true"] label { color: #E7C9C6; }
.oaf-rvm__starlabel { font-size: 14px; color: #55626A; margin-left: 8px; }
.oaf-rvm label.oaf-rvm__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font: 400 16px var(--r-font); line-height: normal; color: #141C1F; }
.oaf-rvm textarea { font: 400 16px/1.5 var(--r-font); border: 1px solid #C9D1D4; border-radius: 6px; padding: 10px 12px; outline: none; resize: vertical; width: 100%; color: #141C1F; background: #FFFFFF; box-shadow: none; margin: 0; }
.oaf-rvm input[type="text"], .oaf-rvm input[type="email"] { font: 400 16px var(--r-font); height: 44px; border: 1px solid #C9D1D4; border-radius: 6px; padding: 0 12px; outline: none; width: 100%; color: #141C1F; background: #FFFFFF; box-shadow: none; margin: 0; }
.oaf-rvm textarea:focus, .oaf-rvm input[type="text"]:focus, .oaf-rvm input[type="email"]:focus { border-color: #1D4E5A; box-shadow: 0 0 0 3px #C6D8DC; }
.oaf-rvm [aria-invalid="true"] { border-color: #B3261E; }
.oaf-rvm label.oaf-rvm__check { font: 400 14.5px var(--r-font); display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: #141C1F; line-height: 1.45; position: relative; margin: 0; }
.oaf-rvm__check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.oaf-rvm__box { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #9AA5AB; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #FFFFFF; background: #FFFFFF; }
.oaf-rvm__check input:checked + .oaf-rvm__box { background: #1D4E5A; border-color: #1D4E5A; }
.oaf-rvm__check input:checked + .oaf-rvm__box::after { content: "\2713"; }
.oaf-rvm__check input:focus-visible + .oaf-rvm__box { outline: 2px solid #2B7A8C; outline-offset: 2px; }
.oaf-rvm__check input[aria-invalid="true"] + .oaf-rvm__box { border-color: #B3261E; }
.oaf-rvm__hint { font-size: 13px; color: #55626A; line-height: 1.45; }
.oaf-rvm__error { font-size: 13.5px; color: #B3261E; font-weight: 500; }
.oaf-rvm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oaf-rvm__foot { padding: 14px 22px; border-top: 1px solid #DCE1E3; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.oaf-rvm .oaf-rvm__btn { font: 500 15px var(--r-font); background: #FFFFFF; border: 1px solid #C9D1D4; height: 44px; padding: 0 16px; border-radius: 6px; cursor: pointer; color: #141C1F; text-decoration: none; display: inline-flex; align-items: center; box-shadow: none; text-transform: none; letter-spacing: normal; }
.oaf-rvm .oaf-rvm__btn:hover, .oaf-rvm .oaf-rvm__btn:focus { background: #FFFFFF; color: #141C1F; border-color: #9AA5AB; }
.oaf-rvm .oaf-rvm__btn--cta, .oaf-rvm .oaf-rvm__btn--cta:focus { background: #DFA13A; border-color: #DFA13A; color: #141C1F; }
.oaf-rvm .oaf-rvm__btn--cta:hover { background: #C98C24; border-color: #C98C24; color: #141C1F; }

/* Melden (Prototyp modalReport): 460 px, Gründe als Auswahlpunkte */
.oaf-rvm__dialog--sm { max-width: 460px; }
.oaf-rvm__body--report { padding: 16px 22px; gap: 4px; }
.oaf-rvm__reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oaf-rvm label.oaf-rvm__reason { font: 400 15px var(--r-font); line-height: normal; display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; color: #141C1F; margin: 0; position: relative; }
.oaf-rvm__reason input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.oaf-rvm__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9AA5AB; background: #FFFFFF; }
.oaf-rvm__reason input:checked + .oaf-rvm__dot { border: 5px solid #1D4E5A; }
.oaf-rvm__reason input:focus-visible + .oaf-rvm__dot { outline: 2px solid #2B7A8C; outline-offset: 2px; }
.oaf-rvm__reasons[aria-invalid="true"] .oaf-rvm__dot { border-color: #B3261E; }
.oaf-rvm__more { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; margin-top: 8px; border-top: 1px solid #F0F2F1; }
/* Fenster „Eintrag melden“ (M3, ADR-054, Entwurf m3-eintrag-melden-fenster.html) */
.oaf-em-owner { margin: 0 0 4px; padding: 10px 12px; border-radius: 6px; background: #E3ECEE; color: #1D4E5A; font: 400 13.5px/1.5 var(--r-font); }
.oaf-em-owner a { color: #1D4E5A; font-weight: 500; }
.oaf-em-note { display: none; margin-top: 2px; padding: 8px 10px; border-radius: 6px; background: #FBF0DC; color: #3D2600; font: 400 13px/1.45 var(--r-font); }
.oaf-rvm__reasons:has(input[value="objection"]:checked) ~ .oaf-em-note { display: block; }

/* Einspruch-Seite */
.oaf-appeal { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.oaf-done label.oaf-appeal__field { display: flex; flex-direction: column; gap: 6px; font: 400 16px var(--i-font); color: #141C1F; margin: 0; }
.oaf-appeal__label { font-size: 14px; font-weight: 600; }
.oaf-appeal textarea { font: 400 16px/1.5 var(--i-font); border: 1px solid #C9D1D4; border-radius: 6px; padding: 10px 12px; outline: none; resize: vertical; width: 100%; color: #141C1F; background: #FFFFFF; box-shadow: none; }
.oaf-appeal textarea:focus { border-color: #1D4E5A; box-shadow: 0 0 0 3px #C6D8DC; }
.oaf-appeal textarea[aria-invalid="true"] { border-color: #B3261E; }
.oaf-done .oaf-rvm__error { font-size: 13.5px; color: #B3261E; font-weight: 500; }

/* Hinweisseiten: Knopf zum Bestätigen wie .oaf-done__btn */
.oaf-done button.oaf-done__btn { display: inline-flex; align-items: center; font: 500 15px var(--i-font); background: #FFFFFF; border: 1px solid #C9D1D4; height: 44px; padding: 0 16px; border-radius: 6px; color: #141C1F; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
.oaf-done button.oaf-done__btn--cta, .oaf-done button.oaf-done__btn--cta:focus { background: #DFA13A; border-color: #DFA13A; color: #141C1F; }
.oaf-done button.oaf-done__btn--cta:hover { background: #C98C24; border-color: #C98C24; color: #141C1F; }

@media (max-width: 767px) {
	.oaf-rvm { padding: 0; align-items: stretch; }
	.oaf-rvm__dialog { max-width: none; border-radius: 0; height: 100%; }
	.oaf-rvm__body { flex: 1; }
	.oaf-rvm__foot .oaf-rvm__btn { flex: 1 1 auto; justify-content: center; }
}
.oaf-rvm label.oaf-rvm__reason[hidden] { display: none; } /* „Antwort melden“ ohne „Kein echter Kundenkontakt“ (ADR-058) */

/* 5b E3 – freiwillige Teilbewertungen (abgeleitet aus den großen Sternen, kleiner) */
.oaf-rvm__opt { font-weight: 400; color: #55626A; }
.oaf-rvm__crit { display: flex; flex-direction: column; gap: 2px; }
.oaf-rvm__crow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.oaf-rvm__cl { font-size: 14.5px; color: #2B363C; }
.oaf-rvm__cstars { display: flex; flex-direction: row-reverse; gap: 0; }
.oaf-rvm__cstars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oaf-rvm .oaf-rvm__cstars label { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; line-height: 1; color: #DCE1E3; padding: 0; margin: 0; }
.oaf-rvm .oaf-rvm__cstars input:checked ~ label, .oaf-rvm .oaf-rvm__cstars label:hover, .oaf-rvm .oaf-rvm__cstars label:hover ~ label { color: #C17E12; }
.oaf-rvm__cstars input:focus-visible + label { outline: 2px solid #2B7A8C; outline-offset: 1px; border-radius: 4px; }

/* 5b E4 – Foto-Feld im Bewertungsfenster */
.oaf-rvm .oaf-rvm__file { font: 400 14px "Geist", sans-serif; padding: 8px 0; border: 0; background: none; height: auto; }

/* Anzeigename + Ort nebeneinander (ADR-143, abgeleitet) */
.oaf-rvm .oaf-rvm__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.oaf-rvm .oaf-rvm__hint--pair { display: block; margin-top: -8px; }
@media (max-width: 520px) { .oaf-rvm .oaf-rvm__pair { grid-template-columns: minmax(0, 1fr); } }
