/* ======= KURSANGEBOT - Ergänzungen zu galerie-page.css ======= */

/* Videos im Polaroid exakt wie Bilder behandeln */
.gallery-item video {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: var(--black-pure);
    pointer-events: none;
}

/* Beschreibungstext mehrzeilig */
.dynamic-info-section .dynamic-desc {
    transition: opacity 0.4s ease;
}

.dynamic-info-section .dynamic-desc p {
    font-family: var(--body-font);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

/* ======= TABLET (max 900px) ======= */
@media screen and (max-width: 900px) {
    .gallery-section {
        padding-top: 7rem;
    }

    .gallery-item {
        width: 340px;
        height: 280px;
        margin-left: -170px;
        margin-top: -140px;
        padding: 8px;
    }

    .gallery-item video {
        height: calc(100% - 35px);
    }

    .gallery-overlay {
        height: 42px;
    }

    .gallery-item-title {
        font-size: 1.2rem;
    }

    .carousel-container {
        height: 340px;
        margin-bottom: 3rem;
    }

    .carousel-btn {
        font-size: 2.5rem;
        padding: 12px;
    }

    .dynamic-info-section {
        padding: 0 1.5rem;
    }

    .dynamic-info-section .dynamic-title {
        font-size: 1.8rem;
    }

    .dynamic-info-section .dynamic-desc p {
        font-size: 0.95rem;
    }

    /* Nur 2 Nachbarn sichtbar */
    .gallery-item.left-3,
    .gallery-item.right-3 {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ======= MOBILE (max 680px) ======= */
@media screen and (max-width: 680px) {
    .gallery-section {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .gallery-header {
        margin-bottom: 2rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .gallery-item {
        width: 260px;
        height: 220px;
        margin-left: -130px;
        margin-top: -110px;
        padding: 6px;
    }

    .gallery-item video {
        height: calc(100% - 30px);
    }

    .gallery-overlay {
        height: 36px;
    }

    .gallery-item-title {
        font-size: 1rem;
    }

    .carousel-container {
        height: 280px;
        margin-bottom: 2.5rem;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 8px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    /* Nur 1 Nachbar sichtbar */
    .gallery-item.left-2,
    .gallery-item.right-2,
    .gallery-item.left-3,
    .gallery-item.right-3 {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Nachbarn enger ran */
    .gallery-item.left-1 {
        transform: translateX(-45%) translateZ(-10px) rotateY(30deg) !important;
    }

    .gallery-item.right-1 {
        transform: translateX(45%) translateZ(-10px) rotateY(-30deg) !important;
    }

    .dynamic-info-section {
        padding: 0 1.2rem;
    }

    .dynamic-info-section .dynamic-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .dynamic-info-section .dynamic-desc p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }
}

/* ======= SMALL MOBILE (max 420px) ======= */
@media screen and (max-width: 420px) {
    .gallery-section {
        padding-top: 5.5rem;
    }

    .gallery-title {
        font-size: 1.6rem;
    }

    .gallery-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .gallery-item {
        width: 210px;
        height: 180px;
        margin-left: -105px;
        margin-top: -90px;
        padding: 5px;
    }

    .gallery-item video {
        height: calc(100% - 26px);
    }

    .gallery-overlay {
        height: 30px;
    }

    .gallery-item-title {
        font-size: 0.85rem;
    }

    .carousel-container {
        height: 240px;
        margin-bottom: 2rem;
    }

    .carousel-btn {
        font-size: 1.6rem;
        padding: 6px;
    }

    /* Nachbarn noch enger */
    .gallery-item.left-1 {
        transform: translateX(-40%) translateZ(-20px) rotateY(25deg) !important;
        opacity: 0.7 !important;
    }

    .gallery-item.right-1 {
        transform: translateX(40%) translateZ(-20px) rotateY(-25deg) !important;
        opacity: 0.7 !important;
    }

    .dynamic-info-section {
        padding: 0 1rem;
    }

    .dynamic-info-section .dynamic-title {
        font-size: 1.25rem;
    }

    .dynamic-info-section .dynamic-desc p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
