/* ================================================================
   Report Modal  (rpm-*)
   WCAG 2.1 AA
   ================================================================ */

.rpm-content
{
    max-width: 500px;
}

/* ── Schritte ───────────────────────────────────────────────── */

.rpm-step { display: flex; flex-direction: column; }
.rpm-step[hidden] { display: none; }

.rpm__title
{
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: #b91c1c;
}

.rpm__subtitle
{
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* ── Kategorie-Auswahl ──────────────────────────────────────── */

.rpm-category-fieldset
{
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.rpm-category-fieldset legend
{
    margin-bottom: 0.5rem;
}

.rpm-field__label
{
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    display: block;
    margin-bottom: 0.4rem;
}

.rpm-categories
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.rpm-category
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 6px;
    cursor: pointer;
    background: var(--color-background, #fff);
    transition: background 0.1s, border-color 0.1s;
    font-size: 0.875rem;
}

.rpm-category input[type="radio"]
{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rpm-category:has(input:checked)
{
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 600;
}

.rpm-category:hover
{
    background: #fef2f2;
    border-color: #fca5a5;
}

.rpm-category input:focus-visible ~ .rpm-category__label
{
    outline: 3px solid #0057b7;
    outline-offset: 2px;
    border-radius: 2px;
}

.rpm-category__icon { font-size: 1rem; flex-shrink: 0; }
.rpm-category__label { line-height: 1.3; }

/* ── Textarea ───────────────────────────────────────────────── */

.rpm-field
{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.rpm-field textarea
{
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.rpm-field textarea:focus
{
    outline: 3px solid #0057b7;
    outline-offset: 1px;
}

.rpm-char-count
{
    font-size: 0.78rem;
    color: #888;
    text-align: right;
}

/* ── Fehler ─────────────────────────────────────────────────── */

.rpm-form__error
{
    color: #b91c1c;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
}

/* ── Erfolg ─────────────────────────────────────────────────── */

.rpm-success
{
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: 1rem;
}

.rpm-success__icon { width: 3rem; height: 3rem; color: #22c55e; }
.rpm-success__text { font-size: 1rem; font-weight: 600; margin: 0; }
.rpm-success__hint { font-size: 0.875rem; color: #64748b; margin: 0; max-width: 320px; line-height: 1.5; }
