/* Modal Pop-up System - BERG Softwareentwicklung */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 40, 63, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Modal sichtbar machen */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background-color: var(--bg-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-light);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-bright);
    margin: 0;
}

/* Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-bright);
}

/* Modal Body */
.modal-body {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal Buttons */
.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.modal-btn-primary:hover {
    background-color: var(--accent-bright);
}

.modal-btn-secondary {
    background-color: var(--primary-mid);
    color: white;
}

.modal-btn-secondary:hover {
    background-color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        font-size: 0.95rem;
    }
}
