/**************************************************
| 2026-08-12
| Strukturelles Basismuster für Modal-Darstellungen
| Status: draft / entwurf
|
| Keine projektspezifischen Farben oder Typografie.
**************************************************/

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

.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.custom-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(90vw, 640px);
    max-height: 90vh;
    overflow: auto;
    padding: 2rem;
    background: #fff;
}

.custom-modal--minimal .custom-modal__dialog {
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
}

.custom-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.custom-modal__loader {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border: 0.25rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: custom-modal-spin 0.8s linear infinite;
}

.custom-modal--minimal .custom-modal__loader {
    margin: 0;
}

.custom-modal__title {
    margin-bottom: 1rem;
    font-weight: 700;
}

.custom-modal__actions {
    margin-top: 1.5rem;
}

.custom-modal-is-open {
    overflow: hidden;
}

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