/* Popup Styles für IT-Mit-Alles.de */
#custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 280px;
    max-width: 90vw;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.18);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    border: 2.5px solid var(--primary-darkmode);
    background: var(--accent-dark);
    color: var(--primary-darkmode);
    transition: opacity 0.3s;
    opacity: 1;
    pointer-events: auto;
    animation: popup-fadein 0.3s;
}

#custom-popup .popup-close-btn {
    margin-top: 1.2em;
    padding: 0.5em 1.5em;
    border-radius: 8px;
    border: none;
    background: var(--primary-darkmode);
    color: var(--accent-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
}

#custom-popup .popup-close-btn:hover {
    background: var(--accent-dark);
    color: var(--primary-darkmode);
    border: 2px solid var(--primary-darkmode);
}

#custom-popup.popup-error {
    color: #fff;
    background: #c0392b;
    border: 2.5px solid #e74c3c;
}

body.light-mode #custom-popup {
    background: var(--accent-light);
    color: var(--primary-lightmode);
    border: 2.5px solid var(--primary-lightmode);
}

body.light-mode #custom-popup .popup-close-btn {
    background: var(--primary-lightmode);
    color: var(--accent-light);
}

body.light-mode #custom-popup .popup-close-btn:hover {
    background: var(--accent-light);
    color: var(--primary-lightmode);
    border: 2px solid var(--primary-lightmode);
}

body.light-mode #custom-popup.popup-error {
    background: #e74c3c;
    color: #fff;
    border: 2.5px solid #c0392b;
}

@keyframes popup-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}