/* Wittenzellner FuMi — Formular-Ergänzungen (setzt Theme-CSS voraus) */

/* ── Sorte-Filter ────────────────────────────────────────────────────── */
.wfmo-sorte-filter {
    width: 100%;
    margin-bottom: 4px;
}

/* ── Pflichtfeld-Stern ───────────────────────────────────────────────── */
.field em {
    color: #c0392b;
    margin-left: 2px;
    font-style: normal;
}

.field .optional {
    font-size: 0.85em;
    color: #777;
    font-weight: normal;
}

/* ── Fehler-States ───────────────────────────────────────────────────── */
.wfmo-error {
    display: block;
    color: #c0392b;
    font-size: 0.85em;
    margin-top: 3px;
    min-height: 1.1em;
}

.wfmo-field-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

/* ── Notices ─────────────────────────────────────────────────────────── */
.wfmo-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.95em;
    line-height: 1.5;
}

.wfmo-notice--success {
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e6b3e;
}

.wfmo-notice--error {
    background: #fdf2f2;
    border: 1px solid #c0392b;
    color: #922b21;
}

.wfmo-notice--warn {
    background: #fef9e7;
    border: 1px solid #d4ac0d;
    color: #7d6608;
}

/* ── Login-Hinweis ───────────────────────────────────────────────────── */
.wfmo-login-notice {
    padding: 16px;
    background: #f4f6f9;
    border-left: 4px solid #2980b9;
    border-radius: 0 4px 4px 0;
}

/* ── Submit-Button ───────────────────────────────────────────────────── */
.wfmo-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wfmo-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ─────────────────────────────────────────────────────────── */
.wfmo-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wfmo-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes wfmo-spin {
    to { transform: rotate(360deg); }
}

/* ── Position-Gruppen-Trenner ────────────────────────────────────────── */
.wfmo-position-group hr {
    margin: 24px 0 12px;
    border: none;
    border-top: 1px solid #dde;
}

/* ── Reduced Motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .wfmo-spinner {
        animation: none;
        border-right-color: currentColor;
        opacity: 0.5;
    }
}
