/* ==========================================================
   10) Galerie – Kategorien & Grid
========================================================== */

.kategorie-titel {
    margin: 20px 0 10px;
    font-size: 1.6rem;
    font-weight: 600;
}

.galerie-kategorie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}


/* ==========================================================
   11) Galerie – Bildboxen
========================================================== */

.bildbox {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.bildbox:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.bildbox img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.bildbox img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.bildtext {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}


/* ==========================================================
   12) Lightbox
========================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(6px);
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#lightbox-caption {
    margin-top: 15px;
    color: #eee;
    font-size: 18px;
    text-align: center;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
}

.lightbox-nav span {
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: .2s;
}

.lightbox-nav span:hover,
.lightbox .close:hover {
    color: #ffcc00;
}


