/* FC Vereinsbereich – zentraler Speichern-Knopf (rote Diskette), Dialog, Fehleranzeige */

.fc-save-fab {
    position: fixed;
    right: 72px;
    bottom: 24px;
    z-index: 99985;               /* über .fc-side-menu (99980), unter Push-Banner/-Dialog (99990+) */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    margin: 0;
    padding: 0 18px 0 14px;
    border: 0;
    border-radius: 28px;
    background: #cf1c1f;
    color: #fff;
    font: 700 14px/1.2 Montserrat, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}
.fc-save-fab[hidden] { display: none !important; }
.fc-save-fab:hover { background: #b0181b; color: #fff; transform: translateY(-1px); }
.fc-save-fab:focus-visible { outline: 3px solid #1f1c1c; outline-offset: 3px; }
.fc-save-fab__icon { display: inline-flex; }
.fc-save-fab__icon svg { width: 26px; height: 26px; }
.fc-save-fab__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #fff;
    color: #cf1c1f;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}
.fc-save-fab__count:empty { display: none; }
.fc-save-fab.is-saving { opacity: 0.85; cursor: progress; }
.fc-save-fab.has-error { background: #8f1013; }
.fc-save-fab.is-ok { background: #00a32a; }

/* Push-Banner unten sichtbar → Diskette darüber */
.fc-push-banner:not(.fc-push-banner--hidden) ~ .fc-save-fab { bottom: 120px; }

@media (max-width: 600px) {
    .fc-save-fab { right: 56px; bottom: 16px; height: 48px; padding: 0 12px; gap: 6px; }
    .fc-save-fab__text { display: none; }   /* Zahl + aria-label reichen am Handy */
    .fc-push-banner:not(.fc-push-banner--hidden) ~ .fc-save-fab { bottom: 140px; }
}

/* Nur für Screenreader */
.fc-save-live {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Fehler eines Bereichs */
.fc-save-error { outline: 2px solid #d63638; outline-offset: 4px; border-radius: 4px; }
tr.fc-save-error { outline-offset: -2px; background: #fbe9e7; }
.fc-save-error-msg {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-left: 4px solid #d63638;
    background: #fbe9e7;
    color: #8a1f11;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
tr .fc-save-error-msg { margin: 6px 0 0; padding: 4px 8px; font-size: 12px; }

/* Dialog „Speichern & weiter / Verwerfen / Abbrechen" */
.fc-save-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}
.fc-save-dialog[hidden] { display: none !important; }
.fc-save-dialog__box {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border-radius: 10px;
    background: #fff;
    color: #1f1c1c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: Montserrat, sans-serif;
}
.fc-save-dialog__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #1f1c1c; }
.fc-save-dialog__text { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #444; }
.fc-save-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fc-save-dialog .fc-save-btn {
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #1f1c1c;
    font: 600 14px/1.2 Montserrat, sans-serif;
    text-transform: none;
    cursor: pointer;
}
.fc-save-dialog .fc-save-btn:hover { background: #f3f3f3; color: #1f1c1c; }
.fc-save-dialog .fc-save-btn--primary { border-color: #cf1c1f; background: #cf1c1f; color: #fff; }
.fc-save-dialog .fc-save-btn--primary:hover { background: #b0181b; color: #fff; }
.fc-save-dialog .fc-save-btn:focus-visible { outline: 3px solid #1f1c1c; outline-offset: 2px; }
