/* 
* OxyVanityHair - Galerie-Stile
* Enthält alle Stile für die Galerie-Seite
*/

/* Banner-Bereich */
.page-banner {
    padding-top: 180px;
    padding-bottom: 80px;
    background-color: #4A266A;
    color: white;
    text-align: center;
}

.banner-content h1 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Galerie-Navigation */
.gallery-nav {
    padding: 50px 0 20px;
    background-color: white;
}

.gallery-nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.gallery-tab:hover,
.gallery-tab.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Galerie-Bereich */
.gallery-section {
    padding: 50px 0 100px;
    background-color: var(--light-color);
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

/* Bild-Galerie mit angepasstem Grid für gemischte Formate */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    min-height: 500px;
    transition: height 0.3s ease;
}

/* Allgemeine Galerie-Element-Stile */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    display: none; /* Standardmäßig alle ausblenden */
}

/* Bilder im quadratischen Format */
.gallery-item.before-after,
.gallery-item.studio {
    height: auto;
    aspect-ratio: 1/1; /* Quadratisches Format für Bilder */
}

/* Videos im 9:16 Hochformat */
.gallery-item.videos {
    height: auto;
    aspect-ratio: 9/16; /* Hochformat für Videos */
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    z-index: 5;
}

.gallery-item img,
.gallery-item.videos video {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.gallery-item.videos:hover video {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Lightbox-Anpassungen */
.lb-data .lb-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.lb-data .lb-details {
    width: 90%;
    text-align: center;
}

/* Testimonial-Bereich */
.gallery-testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Filter-Funktionalität - überarbeitete Version */
/* Elemente werden über JavaScript eingeblendet */

/* Responsive Anpassungen für gemischte Formate */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    /* Mehr Platz für Videos im Hochformat */
    .gallery-item.videos {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .testimonial-cards {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding-top: 150px;
        padding-bottom: 60px;
    }
    
    .gallery-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-section,
    .gallery-testimonials {
        padding: 40px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }
    
    /* Bessere Ausrichtung auf mobilen Geräten */
    .gallery-item.videos {
        aspect-ratio: 9/16;
    }
    
    .gallery-item.before-after,
    .gallery-item.studio {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item.videos {
        grid-column: span 1;
    }
    
    .gallery-nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .gallery-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Extra kleine Bildschirme */
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.videos,
    .gallery-item.before-after,
    .gallery-item.studio {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Video-Element innerhalb des Gallery-Items */
.gallery-item.videos video {
    cursor: pointer;
}

/* Video-Popup-Styles */
.video-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-popup-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 800px;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}

#popup-video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-video {
    position: absolute;
    right: -40px;
    top: -40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: 0.3s;
}

.close-video:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Verbesserte Klick-Interaktion */
.gallery-item img,
.gallery-item.videos video,
.video-lightbox {
    cursor: pointer;
}

/* Video-Lightbox-Link */
.video-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animation für Popup */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.video-popup.show {
    display: block;
    animation: fadeIn 0.3s;
}

/* Scroll verhindern, wenn Popup aktiv ist */
body.popup-open {
    overflow: hidden;
}

/* Responsive Video-Popup */
@media (max-width: 768px) {
    .video-popup-content {
        width: 95%;
    }
    
    .close-video {
        right: 0;
        top: -50px;
    }
}

/* Bild-Element innerhalb des Gallery-Items */
.gallery-item.before-after img,
.gallery-item.studio img {
    cursor: pointer;
}

/* Image-Popup-Styles (ähnlich wie Video-Popup) */
.image-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.image-popup-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1000px;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}

#popup-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.close-image {
    position: absolute;
    right: -40px;
    top: -40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: 0.3s;
}

.close-image:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Bild-Lightbox-Link */
.image-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animation für Image-Popup */
.image-popup.show {
    display: block;
    animation: fadeIn 0.3s;
}

/* Responsive Image-Popup */
@media (max-width: 768px) {
    .image-popup-content {
        width: 95%;
    }
    
    .close-image {
        right: 0;
        top: -50px;
    }
}

/* Navigation innerhalb der Popups */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 2010;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.popup-nav:hover {
    opacity: 1;
    color: var(--primary-light);
}

.popup-prev {
    left: -60px;
}

.popup-next {
    right: -60px;
}

@media (max-width: 992px) {
    .popup-prev {
        left: 10px;
    }
    
    .popup-next {
        right: 10px;
    }
}

/* Responsive Image-Popup */
@media (max-width: 768px) {
    .image-popup-content, 
    .video-popup-content {
        width: 95%;
    }
    
    .close-image, 
    .close-video {
        right: 0;
        top: -50px;
    }
    
    .popup-nav {
        font-size: 40px;
    }
    
    .popup-prev {
        left: 5px;
    }
    
    .popup-next {
        right: 5px;
    }
} 