/* Bildbetrachter */
.wkr-bild-schicht {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 20, 13, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: bild-auf 0.22s ease;
}

.wkr-bild-schicht[hidden] {
    display: none !important;
}

.bild-buehne {
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.bild-gross {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bild-gross.ist-da {
    opacity: 1;
    transform: none;
}

.bild-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    text-align: center;
}

.bild-zaehler {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.wkr-bild-schicht button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.wkr-bild-schicht button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.wkr-bild-schicht button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.bild-zurueck,
.bild-vor {
    width: 52px;
    height: 52px;
}

.bild-schliessen {
    position: absolute;
    top: clamp(0.8rem, 2vw, 1.6rem);
    right: clamp(0.8rem, 2vw, 1.6rem);
    width: 44px;
    height: 44px;
}

.bild-zurueck[hidden],
.bild-vor[hidden] {
    display: none !important;
}

body.bild-offen {
    overflow: hidden;
}

img.bild-vergroessern {
    cursor: zoom-in;
}

@keyframes bild-auf {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 700px) {
    .bild-zurueck,
    .bild-vor {
        position: absolute;
        bottom: 1.2rem;
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.18);
    }

    .bild-zurueck { left: 1.2rem; }
    .bild-vor { right: 1.2rem; }

    .bild-gross {
        max-height: calc(100vh - 12rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wkr-bild-schicht,
    .bild-gross {
        animation: none;
        transition: none;
    }

    .bild-gross {
        opacity: 1;
        transform: none;
    }
}
