/* ========================================
   POPUP OVERLAY
   ======================================== */

.popup-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    padding: 20px;

    /* Webseite dahinter abdunkeln */
    background: rgba(0, 0, 0, 0.72);

    /* Hintergrund leicht weichzeichnen */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* ========================================
   GROSSES POPUP-FENSTER
   ======================================== */

.popup-window {
    position: relative;

    width: 75vw;
    height: 75vh;

    max-width: 1200px;
    max-height: 900px;

    min-width: 300px;
    min-height: 250px;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    overflow: hidden;

    border-radius: 18px;

    /* Transparenter Außenbereich */
    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.55);
}


/* ========================================
   ZENTRALE TEXTKARTE
   ======================================== */
.popup-content {
    width: 45%;
    min-width: 340px;

    padding: 40px;

    box-sizing: border-box;

    background: rgba(90, 25, 25, 0.92);

    border: 2px solid rgba(255, 120, 120, 0.65);

    border-radius: 14px;

    /* Alles untereinander */
    display: flex;
    flex-direction: column;

    /* Alles horizontal zentrieren */
    align-items: center;

    /* Text zentrieren */
    text-align: center;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Überschrift */

.popup-content h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 30px;
    line-height: 1.2;

    color: #ffffff;

    text-align: center;
}

/* Text */

.popup-content p {
    width: 100%;

    margin-top: 0;
    margin-bottom: 25px;

    font-size: 17px;
    line-height: 1.6;

    color: #f5f5f5;

    text-align: center;
}


/* ========================================
   COUNTDOWN BIS 02.01.2027
   ======================================== */

.offer-countdown {
    width: 100%;
    margin: 5px 0 25px;

    text-align: center;
}

.offer-countdown-title {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-countdown-days {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 8px;

    background: rgba(0, 0, 0, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.25);

    color: #ffffff;

    font-size: 28px;
    font-weight: bold;

    line-height: 1.2;
}

.offer-countdown-days small {
    font-size: 15px;
    font-weight: normal;
}

/* ========================================
   ANGEBOTS-BUTTON
   ======================================== */

.offer-button {
    display: inline-block;

    padding: 13px 28px;

    border-radius: 7px;

    background: #007bff;

    color: #ffffff;

    font-size: 16px;
    font-weight: bold;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.offer-button:hover {
    background: #005fc7;

    transform: translateY(-2px);
}

.sad-emoji {
    font-size: 30px !important;
    line-height: 1;
}
.no-thanks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 18px;

    padding: 5px 10px;

    border: none;
    background: transparent;

    color: #888;


    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.no-thanks:hover {
    color: #444;
    transform: translateY(-1px);
}


/* ========================================
   SCHLIESSEN X
   ======================================== */

.popup-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    color: #ffffff;

    font-size: 30px;
    font-weight: bold;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);

    transform: scale(1.08);
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {

    .popup-overlay {
        padding: 15px;
    }

    .popup-window {
        width: 85vw;
        height: 80vh;
    }

    .popup-content {
        width: 52%;

        padding: 32px;
    }

}


/* ========================================
   HANDY
   ======================================== */

@media (max-width: 600px) {

    .popup-overlay {
        padding: 10px;
    }

    .popup-window {
        width: 94vw;
        height: 88vh;

        min-width: 0;
        min-height: 0;

        border-radius: 14px;
    }

    .popup-content {
        width: 88%;
        min-width: 0;

        padding: 28px 22px;
    }

    .popup-content h2 {
        font-size: 25px;
    }

    .popup-content p {
        font-size: 16px;
    }

    .popup-close {
        top: 9px;
        right: 9px;

        width: 40px;
        height: 40px;

        font-size: 27px;
    }

}