/* Galerie Page Styles */

.gallery-hero {
    margin-top: 98px;
    padding-top: 80px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05), rgba(205, 133, 63, 0.05));
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Filter Buttons */
.gallery-filters {
    /* war sticky, jetzt normaler Flow */
    position: static;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-brown);
    color: var(--primary-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-brown));
    border-color: var(--primary-brown);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
}

.gallery-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    display: block;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    background: var(--white);
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: var(--white);
    width: 100%;
}

.gallery-content h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.gallery-content p {
    margin: 0;
    opacity: 0.9;
}

/* Nav Active State */
.nav-link.active {
    color: var(--gold-brown) !important;
}

.nav-link.active::before {
    width: 80% !important;
}

/* Dark Mode Styles for Gallery */
[data-theme="dark"] .gallery-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(205, 133, 63, 0.1));
}

[data-theme="dark"] .gallery-title {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .gallery-subtitle {
    color: var(--text-light) !important;
}

[data-theme="dark"] .filter-btn {
    background: #2a2a2a !important;
    color: var(--text-dark) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .filter-btn:hover {
    border-color: var(--gold-brown) !important;
    color: var(--gold-brown) !important;
}

[data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-brown)) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .gallery-card {
    background: #2a2a2a !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        margin-top: 56px;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .gallery-filters {
        /* nicht sticky auf Mobile */
        position: static;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .gallery-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        margin-top: 56px;
        padding-top: 50px;
        padding-bottom: 30px;
    }
    
    .filter-buttons {
        padding-bottom: 0.75rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .gallery-image {
        height: 200px;
    }
}

