@charset "UTF-8";

/* Hauptbereich */
.gallery-wrapper {
    width: 100%;
    padding-bottom: 20px;
}

/* Kategorien / Filter */
.gallery-filter {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.gallery-filter button {
/*    border: none;
    border-radius: 0;
    background: #222;
    color: #fff;
    padding: 11px 20px;
    font-size: 15px;*/
    cursor: pointer;
    transition: 
        background 0.3s ease,
        transform 0.3s ease;   
   border: 2px solid transparent}

/*.gallery-filter button:hover*/
.gallery-filter button.active
{
    background: #ff6b00;
/*    transform: translateY(-2px);*/
}

/* Galerie Grid */
.gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);  
    gap: 20px;
}

/* Einzelne Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: #000;
    cursor: pointer;
    min-height: 240px;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* Bild */
.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: block;
    object-fit: cover;
    border: none;
    border-radius: 0;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

/* Orange Einfärbung */
.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 130, 32, 0.68);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Hover Effekte */
.gallery-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

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

.gallery-card:hover img {
    transform: scale(1.2) rotate(7deg);
    filter: blur(1.6px) saturate(1.25);
}

/* Lupe Icon */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%) scale(0.4) rotate(-20deg);
    opacity: 0;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

/* Lupen-Kreis */
.zoom-icon::before {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    left: 9px;
    top: 8px;
    border: 4px solid #fff;
    border-radius: 50%;
}

/* Lupen-Griff */
.zoom-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 4px;
    left: 36px;
    top: 42px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.gallery-card:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Bildtitel */
.card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 18px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    opacity: 0;
    transform: translateY(100%);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.gallery-card:hover .card-title {
    opacity: 1;
    transform: translateY(0);
}

/* Ausblend-Status */
.gallery-card.hidden {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-wrapper {
        padding: 10px;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 75px 20px 30px;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition:
        background 0.45s ease,
        opacity 0.45s ease;
}

.lightbox.active {
    background: rgba(0, 0, 0, 0.88);
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    width: 100%;
    max-width: 1100px;
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
}

/* Lightbox Text + Linkbutton */
.lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 16px;
    color: #fff;
}

.lightbox-description {
    font-size: 16px;
    line-height: 1.5;
}

.lightbox-link {
    flex-shrink: 0;
    display: inline-block;
    background: #f58220;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    font-size: 15px;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.lightbox-link:hover {
    background: #d96b0f;
    transform: translateY(-2px);
}

/* Schließen Symbol */
.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 10000;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.lightbox-close:hover {
    color: #f58220;
    transform: rotate(90deg);
}

@media (max-width: 700px) {
    .lightbox-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .lightbox-link {
        width: 100%;
        text-align: center;
    }
}