.impressionen-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.impressionen-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 18, 40, 0.45), rgba(8, 20, 44, 0.68));
}

.impressionen-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 2rem 1rem;
}

.impressionen-hero h1 {
    color: #fff;
    margin-bottom: 0.7rem;
}

.impressionen-subline {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.1rem;
}

.impressionen-gallery-wrap {
    padding: 2.2rem 0 3.2rem;
}

.impressionen-gallery-wrap .container {
    max-width: 1380px;
}

.impressionen-gallery {
    column-count: 3;
    column-gap: 1rem;
}

.impressionen-item {
    break-inside: avoid;
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(6, 18, 44, 0.12);
    background: #fff;
    cursor: zoom-in;
}

.impressionen-item img {
    width: 100%;
    display: block;
    transition: transform 0.35s ease;
}

.impressionen-item:hover img {
    transform: scale(1.03);
}

.impressionen-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    /* Über fixierter Navigation (.nav-desktop z-index 12000), sonst wirken Controls „falsch“/unbedienbar */
    z-index: 20050;
    padding: 1rem;
}

.impressionen-lightbox.open {
    display: flex;
}

.impressionen-lightbox-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 5.25rem 1.5rem;
    box-sizing: border-box;
}

.impressionen-lightbox-stage img {
    max-width: min(98vw, 2200px) !important;
    max-height: min(92vh, 92dvh) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Direktes button-Kind: höhere Spezifität + appearance-Reset gegen Theme/Browser (Live vs. lokal) */
.impressionen-lightbox > button.impressionen-close,
.impressionen-lightbox > button.impressionen-nav {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font: inherit;
    text-align: center;
    box-shadow: none;
    outline: none;
}

.impressionen-lightbox > button.impressionen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50% !important;
    border: 2px solid rgba(201, 168, 76, 0.6) !important;
    background: rgba(10, 22, 45, 0.85) !important;
    color: #c9a84c !important;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 3;
}

.impressionen-lightbox > button.impressionen-close:hover {
    background: rgba(201, 168, 76, 0.22) !important;
    border-color: #c9a84c !important;
    color: #f0d080 !important;
}

.impressionen-lightbox > button.impressionen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50% !important;
    border: 2px solid rgba(201, 168, 76, 0.55) !important;
    background: rgba(10, 22, 45, 0.85) !important;
    color: #c9a84c !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    z-index: 3;
    user-select: none;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.impressionen-lightbox > button.impressionen-nav:hover {
    background: rgba(201, 168, 76, 0.22) !important;
    border-color: #c9a84c !important;
    color: #f0d080 !important;
    transform: translateY(-50%) scale(1.08);
}

.impressionen-lightbox > button.impressionen-nav-prev {
    left: 1.25rem;
}

.impressionen-lightbox > button.impressionen-nav-next {
    right: 1.25rem;
}

@media (max-width: 600px) {
    .impressionen-lightbox-stage {
        padding: 3.5rem 3rem 1rem;
    }
    .impressionen-lightbox > button.impressionen-nav {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.15rem;
    }
    .impressionen-lightbox > button.impressionen-nav-prev {
        left: 0.5rem;
    }
    .impressionen-lightbox > button.impressionen-nav-next {
        right: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .impressionen-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .impressionen-gallery {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .impressionen-gallery {
        column-count: 1;
    }
}
