/* ===== Portfolio Hero ===== */
.portfolio-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background-color: #09090B;
    font-family: 'Inter', sans-serif;
    gap: 20px;
}

.portfolio-hero h1 {
    color: white;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.portfolio-hero-sub {
    color: #a1a1aa;
    font-size: 18px;
    line-height: 1.6;
    max-width: 520px;
    text-align: center;
    margin: 0;
}

/* ===== Portfolio Videos ===== */
.portfolio-videos {
    background-color: #09090B;
    padding: 60px 24px 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.portfolio-video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 320px;
}

.portfolio-video-thumb {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-video-card:hover .portfolio-video-thumb {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.portfolio-thumb-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    aspect-ratio: 9 / 16;
    background-color: #18181b;
    background-size: cover;
    background-position: center;
}

.portfolio-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s ease;
}

.portfolio-video-card:hover .portfolio-play-btn {
    background: rgba(0,0,0,0.55);
}

.portfolio-video-title {
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin: 0;
}
/* ===== Video Modal ===== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 88vw;
    max-width: 1200px;
}

.video-modal-content video {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

/* Vimeo iframe im Modal */
#modalVimeoWrapper {
    width: 100%;
}

#modalVimeoWrapper iframe {
    width: 100%;
    height: 80vh;
    border-radius: 12px;
    display: block;
}

/* Portrait-Modus (Hochformat-Videos) */
.video-modal-content.portrait-mode {
    width: calc(80vh * 9 / 16);
    max-width: 92vw;
}


#modalVimeoWrapper.portrait {
    height: 80vh;
    width: 100%;
}

#modalVimeoWrapper.portrait iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
/* ===================================================
   RESPONSIVE — 768px
   =================================================== */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 80px 20px 60px;
    }
    .portfolio-hero h1 {
        font-size: 48px;
    }
    .portfolio-hero-sub {
        font-size: 16px;
    }
    .portfolio-videos {
        padding: 40px 20px 80px;
        gap: 20px;
    }
    .portfolio-video-card {
        width: calc(50% - 10px);
    }
    .video-modal-content {
        width: 92vw;
    }
    /* Schließen-Button überlappt sonst mit dem Hamburger-Menü im Header */
    .video-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        z-index: 20;
    }
}

/* ===================================================
   RESPONSIVE — 480px
   =================================================== */
@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 36px;
    }
    .portfolio-video-card {
        width: 100%;
        max-width: 380px;
    }
}
