/* components/modal.css */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 26, 43, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    width: 90%;
    max-width: 80%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: var(--color-text);
}

/* Schmalere Modal-Variante (z.B. Formulare) */
.modal-content--wide {
    max-width: 640px;
}

/* Aktionszeile am unteren Ende eines Modal-Formulars */
.modal-form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        max-height: 100%;
    }
}
