/* -----------------------------------------------------------
   FILTERBAR (neu)
----------------------------------------------------------- */
.filter-bar {
    max-width: 1800px;
    margin: 0px auto 10px auto;
    padding: 0 40px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
}


/* -----------------------------------------------------------
   GALERIE-CONTAINER
----------------------------------------------------------- */
.gallery {
    max-width: 1800px;

    margin: 6px auto 14px auto;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;

    width: 100%;
    min-height: 1px;
}


/* -----------------------------------------------------------
   EINZELNES GALERIE-ELEMENT
----------------------------------------------------------- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1px;

    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}


/* -----------------------------------------------------------
   TITEL-OVERLAY
----------------------------------------------------------- */
.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 1rem;
    letter-spacing: 1px;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    pointer-events: none;
    z-index: 5;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}


/* -----------------------------------------------------------
   BILDER
----------------------------------------------------------- */
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;

    position: relative;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* -----------------------------------------------------------
   OPTIONAL: LAYOUT-KOMPATIBILITÄT
----------------------------------------------------------- */
.content, .main, section {
    overflow: visible;
}


/* -----------------------------------------------------------
   ÄUSSERER WRAPPER
----------------------------------------------------------- */
.gallery-outer {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}


/* -----------------------------------------------------------
   MOBILE-OPTIMIERUNG
----------------------------------------------------------- */
@media (max-width: 480px) {
    .gallery {
        padding: 0 16px;
        grid-template-columns: 1fr;
    }
}


/* -----------------------------------------------------------
   LIGHTBOX – sanftes Fade + Zoom
----------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

/* Wrapper für Bild + Infos */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


/* -----------------------------------------------------------
   LIGHTBOX-BILD (optimiert!)
----------------------------------------------------------- */
.lightbox img {
    max-width: 90vw;      /* nie breiter als der Screen */
    max-height: 75vh;     /* genug Platz für Text */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;

    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lightbox.show img {
    opacity: 1;
    transform: scale(1);
}

.lightbox img:hover {
    transform: scale(1.03);
    cursor: zoom-out;
}


/* -----------------------------------------------------------
   LIGHTBOX-INFOS
----------------------------------------------------------- */
.lightbox-info {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    opacity: 0.85;
    line-height: 1.4;
    letter-spacing: 0.5px;
}


/* -----------------------------------------------------------
   LIGHTBOX – Close Button (X)
----------------------------------------------------------- */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 1;
}


/* -----------------------------------------------------------
   LIGHTBOX – Navigation (Pfeile)
----------------------------------------------------------- */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    opacity: 0.6;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.2s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* -----------------------------------------------------------
   MOBILE – Pfeile dezenter
----------------------------------------------------------- */
@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 2.2rem;
        padding: 6px;
        opacity: 0.5;
    }

    .lightbox-close {
        font-size: 1.6rem;
        top: 14px;
        right: 20px;
    }
}