.modal {
    display: none;
    position: fixed;
    z-index: 1400;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
}
.modal.active { display: block; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-dialog {
    background-color: #fefefe;
    margin: 50px auto;
    border: 0 solid #888;
    width: 80%;
    color: #000;
    animation: modalFadeIn 0.15s ease-out;
}

/* RESPONSIVE GRÖSSEN */
@media (max-width: 801px) {
    .modal-dialog { width:95%; margin: 10px auto; }
}
@media (min-width: 801px) {
    .modal-dialog-s { width:60%; margin: 10px auto; }
    .modal-dialog-xs { width:700px; margin: 10px auto; }
    .modal-dialog-xl { width:90%; margin: 10px auto; }
}

/* FULL HEIGHT MODAL */
.modal-dialog-h100 {
    height: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.modal-dialog-h100 .modal-content {
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important; /* Padding muss vom Inhalt kommen */
    overflow: hidden !important;
}

/* HEADER / CONTENT / FOOTER */
.modal-header {
    padding: 10px;
    font-size: 18px;
    background-color: #222;
    color: #fff;
}
.modal-header .modalclose {
    color:white;
    font-weight:700;
    float:right;
    cursor:pointer;
}
.modal-content {
    padding: 20px 20px;
    color: var(--bs-modal-color, #000);
    background-color: var(--bs-modal-bg, #fff);
    border: var(--bs-modal-border-width, 1px) solid var(--bs-modal-border-color, #ccc);
    border-radius: var(--bs-modal-border-radius, 6px);
}
.modal-footer { padding:20px 20px; /*background:#f5f5f5;*/ }
.modal-footer .modalclose { float:right; }

.hidden { display:none !important; }
.body-modal-open { overflow:hidden; }
.modal.modal-static { background-color: rgba(0,0,0,0.4); }
