/* ===================================================
   RAIMOND POPUP v2 – Frontend Styles
   =================================================== */

.rpopup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100010;
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    overflow: hidden;
}
.rpopup-box .rpopup-content {
    width: 100%;
    height: 100%;
    overflow: auto;
}
.rpopup-box .rpopup-html-content {
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Schließen-Button */
a.rpopup-close {
    display: block;
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    background: #1e1e2e;
    border-radius: 50%;
    z-index: 9999;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
a.rpopup-close::before,
a.rpopup-close::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 2px;
    background: #fff;
    border-radius: 2px;
}
a.rpopup-close::before { transform: translate(-50%,-50%) rotate(45deg); }
a.rpopup-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }
a.rpopup-close:hover   { background: #6c63ff; transform: scale(1.1); }

/* Overlay */
.rpopup-fade {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100009;
    display: none;
    background: rgba(0,0,0,.8);
}

/* Countdown-Timer */
.rpopup-timer-holder {
    position: fixed;
    top: 12px; right: 12px;
    z-index: 100015;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    font-family: sans-serif;
}
.rpopup-timer-holder canvas {
    display: block;
    margin: 0 auto 3px;
}

/* ── SLIDE POPUP ───────────────────────────── */
.rpopup-box.rpopup-slide {
    position: fixed;
    top: auto; left: auto;
    bottom: 30px;
    transform: none;
    margin-left: 30px;
    max-width: 320px;
    width: 320px;
    min-height: 180px;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    transition: margin-left .8s ease;
    display: block;
    overflow: visible;
    z-index: 100010;
}
.rpopup-box.rpopup-slide a.rpopup-close {
    top: 8px; right: 8px;
}
.rpopup-box.rpopup-slide .rpopup-html-content {
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}
.rpopup-box.rpopup-slide .rpopup-button {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(35deg, #21d285, #00d4ff);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: opacity .2s;
}
.rpopup-box.rpopup-slide .rpopup-button:hover { opacity: .85; }

/* Plus/Öffnen-Button */
.rpopup-plus {
    position: fixed;
    bottom: 30px;
    margin-left: -80px;
    z-index: 100011;
    cursor: pointer;
    transition: margin-left .9s ease;
}
.rpopup-plus span {
    display: block;
    background: linear-gradient(35deg, #6c63ff, #a78bfa);
    color: #fff;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 12px rgba(0,0,0,.15);
}

@media (max-width: 600px) {
    .rpopup-box:not(.rpopup-slide) {
        width: 92vw !important;
        height: auto !important;
    }
    .rpopup-box.rpopup-slide {
        max-width: 88vw;
        width: 88vw;
        margin-left: 12px;
    }
}
