/* ============================================================
   Popup Overlay – hebammenart
   ============================================================ */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: popupFadeIn 300ms ease forwards;
}

.popup-overlay.popup-hidden {
    display: none;
}

/* Backdrop */
.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Box */
.popup-box {
    position: relative;
    background: #ffffff;
    color: #000000;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.5rem 4rem 4rem;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 300ms ease forwards;
}

/* Schließen-Button */
.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    padding: 0;
    transition: opacity 150ms ease;
}

.popup-close:hover,
.popup-close:focus {
    opacity: 0.6;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Inhalt */
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-image {
    margin: 0;
    line-height: 0;
}

.popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-headline {
    margin: 0;
    text-align: center;
}

.popup-text {
    line-height: 1.6;
    text-align: center;
}

.popup-text p:first-child { margin-top: 0; }
.popup-text p:last-child  { margin-bottom: 0; }

/* Button */
.popup-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
   /* background: unset;
    color: unset;*/
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: opacity 150ms ease;
    align-self: center;
}

.popup-button:hover,
.popup-button:focus {
    opacity: 0.75;
}

/* Animationen */
@keyframes popupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popupSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Mobil */
@media (max-width: 600px) {
    .popup-box {
        padding: 2.5rem 1rem 1.5rem;
        max-height: 95vh;
    }
}
