.ablauf-viewer {
    position: relative;
}

.ablauf-preview {
    background: #fff;
    border: none;
    padding: 0;
}

.ablauf-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.ablauf-preview img,
.ablauf-lightbox-stage img {
    image-rendering: auto;
}

.ablauf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: rgba(11, 19, 43, 0.92);
    backdrop-filter: blur(8px);
}

.ablauf-lightbox[hidden] {
    display: none !important;
}

.ablauf-lightbox-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ablauf-lightbox-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.ablauf-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ablauf-lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ablauf-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.ablauf-lightbox-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    cursor: grab;
    touch-action: none;
}

.ablauf-lightbox-viewport.is-dragging {
    cursor: grabbing;
}

.ablauf-lightbox-stage {
    transform-origin: center top;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.ablauf-lightbox-stage img {
    display: block;
    max-width: none;
    width: min(1600px, 100vw - 3rem);
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    user-select: none;
    -webkit-user-drag: none;
    image-rendering: high-quality;
}

.ablauf-lightbox-hint {
    flex-shrink: 0;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}
