.gallery-page {
    padding: 2rem;
    background-color: var(--background-dark);
    min-height: 100vh;
}

.gallery-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-nav-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px; /* Runde Ecken für Buttons */
}

.gallery-nav-btn:hover,
.gallery-nav-btn.active {
    background-color: var(--primary-color);
    border-color: var(--gold-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05); /* Leichte Vergrößerung beim Hover */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 1rem;
    color: var(--text-light);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section Styles - an bar.css angelehnt */
.gallery-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    margin-top: 60px; /* Abstand zum Menü */
    overflow: hidden;
}

.gallery-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 8s ease;
    transform: scale(1.05);
}

.gallery-hero:hover .hero-image img {
    transform: scale(1.1);
}

.gallery-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.gallery-hero .hero-content {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2rem 2rem 0;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6);
    color: var(--text-light);
}

.gallery-hero .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

/* Ambiente Info Grid - an bar-info-grid angelehnt */
.ambiente-info-grid {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
    z-index: 4;
}

.ambiente-info-card {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-accent);
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-medium);
}

.ambiente-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.ambiente-info-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.ambiente-info-text {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Anpassung der bestehenden gallery-page Styles */
.gallery-page {
    /*padding: 0 2rem 2rem;*/
    background-color: var(--background-dark);
}

.gallery-navigation {
    padding-top: 2rem;
}

/* Call to Action Section im Stil von bar.css vip-cta */
.ambiente-cta-section {
    background: linear-gradient(to bottom, var(--background-dark), #1a0000);
    padding: 5rem 0;
    position: relative;
}

.ambiente-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0,0 L40,40 M40,0 L0,40' stroke='%23ff0000' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.ambiente-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    position: relative;
    z-index: 2;
}

.ambiente-cta-content h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.ambiente-cta-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

/* Lightbox Navigation Styles */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 1010;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold-color);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold-color);
    transform: scale(1.1);
}

/* Additional Ambiente CSS Styles */

/* Fix any styling gaps in main ambiente.css */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    height: 250px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-item-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Lightbox Enhancements */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.image-caption {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    color: white;
    text-align: center;
    border-radius: 0 0 5px 5px;
}

.image-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.image-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Category Navigation Enhancements */
.gallery-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.gallery-nav-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.gallery-nav-btn:hover,
.gallery-nav-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Responsive Anpassungen für Hero und Info Grid */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .ambiente-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 900px;
    }
    
    .ambiente-info-title {
        font-size: 1.3rem;
    }
    
    .ambiente-cta-content {
        max-width: 650px;
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .gallery-hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .gallery-hero .hero-content {
        padding-top: 1.5rem;
    }
    
    .ambiente-info-grid {
        bottom: 1.5rem;
    }
    
    .ambiente-info-title {
        font-size: 1.2rem;
    }
    
    .ambiente-info-text {
        font-size: 0.75rem;
    }
    
    .ambiente-cta-content h2 {
        font-size: 1.6rem;
    }
    
    .ambiente-cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }
    
    .ambiente-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .ambiente-info-card {
        padding: 0.8rem 0.5rem;
    }
    
    .ambiente-info-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .ambiente-info-text {
        font-size: 0.7rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .ambiente-cta-content {
        padding: 1.5rem;
    }
    
    .ambiente-cta-content h2 {
        font-size: 1.4rem;
    }
    
    .ambiente-cta-content p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .image-caption {
    position: absolute;
    bottom: -100px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        height: auto;
        min-height: 500px;
        margin-top: 60px;
        padding-bottom: 150px; /* Platz für die gestapelten Info-Karten */
    }
    
    .gallery-hero .hero-content {
        padding: 2.5rem 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .ambiente-info-grid {
        position: absolute;
        bottom: 1rem;
        grid-template-columns: repeat(2, 1fr); /* 2 Karten pro Zeile auf Mobilgeräten */
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .ambiente-cta-content {
        padding: 1.2rem;
    }
    
    .ambiente-cta-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 380px) {
    .gallery-hero {
        padding-bottom: 220px; /* Noch mehr Platz für gestapelte Karten */
    }
    
    .ambiente-info-grid {
        grid-template-columns: 1fr; /* 1 Karte pro Zeile auf sehr kleinen Geräten */
    }
}