/**
 * Universelle Modal-Overlay-Styles (Create/Edit-Pop-Ups).
 * Briefing: briefing/screens/screen-feed-management/ScreenFeedManagement.md (Formulare und Modal-Flow).
 * Skills: @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance.
 */

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | Modal-Overlay sichtbar als Pop-Up */
.base-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: var(--color-modal-overlay-backdrop);
}

.base-modal-overlay[hidden] {
    display: none;
}

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | Zentriertes Modal-Fenster */
.base-modal-content {
    position: relative;
    width: 100%;
    max-width: 32rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border-highlight);
    background: var(--color-ci-background);
    box-shadow: var(--shadow-lg);
}

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | × oben rechts */
.base-modal-header-close-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-ci-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.base-modal-header-close-button:hover {
    background: var(--color-ci-surface);
    color: var(--color-ci-accent);
}

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | Aktionszeile Schließen neben Speichern */
.base-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | Icon-only Schliessen/Speichern ohne sichtbaren Text */
.base-modal-action-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    gap: 0;
}

/* Änderungsprotokoll: 2026-08-27 | subagent-update-screen | @skill-modal-popup-windows, @skill-css-rules, @skill-change-provenance | SVG-Groesse fuer Modal-Aktionsicons */
.base-modal-action-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .base-modal-content {
        padding: 1.75rem 1.5rem 1.5rem;
    }
}
