/* =========================================================
   VIDEO POPUP
   ========================================================= */

.video-popup {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.88);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}


/* =========================================================
   POPUP AKTIV
   ========================================================= */

.video-popup.active {
    opacity: 1;
    visibility: visible;
}


 /* =========================================================
    SCHÖNES VIDEOFENSTER
    ========================================================= */

.video-box {

    position: relative;

    width: 30vw;
 /*   max-width: 1080px;*/

    padding: 8px;

    background: linear-gradient(
        145deg,
        #202020,
        #080808
    );

    border: 1px solid rgba(255,255,255,0.18);

    border-radius: 16px;

    box-shadow:

        0 0 0 1px rgba(255,255,255,0.04),

        0 0 25px rgba(255,255,255,0.08),

        0 25px 80px rgba(0,0,0,0.9);

    overflow: visible;

    opacity: 0;

    transform:
        scale(0.65)
        translateY(40px);

    filter: blur(8px);

    transition:
        opacity 0.6s ease,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.6s ease;
}


/* =========================================================
   VIDEOFENSTER ÖFFNEN
   ========================================================= */

.video-popup.active .video-box {

    opacity: 1;

    transform:
        scale(1)
        translateY(0);

    filter: blur(0);

    transition-delay: 0.15s;
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-box video {

    display: block;

    width: 100%;

    height: auto;

    max-height: 80vh;

    background: #000;

    border-radius: 10px;
}


/* =========================================================
   SCHLIESSEN BUTTON
   ========================================================= */

.video-close {

    position: absolute;

    top: -48px;
    right: -2px;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 50%;

    background: rgba(20,20,20,0.9);

    color: #fff;

    font-size: 25px;

    line-height: 36px;

    text-align: center;

    cursor: pointer;

    z-index: 20;

    opacity: 0;

    transform: scale(0.5);

    box-shadow:
        0 5px 20px rgba(0,0,0,0.6);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   X EINBLENDEN
   ========================================================= */

.video-popup.active .video-close {

    opacity: 1;

    transform: scale(1);

    transition-delay: 0.5s;
}


/* =========================================================
   X HOVER
   ========================================================= */

.video-close:hover {

    background: #333;

    box-shadow:
        0 0 15px rgba(255,255,255,0.2);

    transform:
        rotate(90deg)
        scale(1.1);
}




@media (max-width: 2000px) {

.video-box {

    width: 50vw;
 /*   max-width: 1080px;*/


}


}



/* =========================================================
   MOBILE
   ========================================================= */











@media (max-width: 768px) {

    .video-box {

        width: 90vw;

        padding: 6px;

        border-radius: 12px;
    }

    .video-box video {

        max-height: 70vh;

        border-radius: 8px;
    }

    .video-close {

        top: -45px;

        right: 0;

        width: 38px;
        height: 38px;

        font-size: 23px;
    }
}