/* Textbereich */
.list-container {
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
}

.list-container ul,
.list-container ol {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.list-container li {
    margin-bottom: 0.8rem;
}

/* --- ANIMATION CSS --- */
.reveal-on-scroll {
    opacity: 0;
    transition: all 1s ease-out;
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

#lightbox-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-modal.is-open #lightbox-img-container {
    transform: scale(1);
}

/* Hilfsklasse um das Bild beim Wechsel unsichtbar zu machen */
.fade-out {
    opacity: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ref-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    /* Bei Mobile: Bild immer oben, Text unten, egal ob reverse oder nicht */
    .list-reverse {
        flex-direction: column;
    }

    .image-wrapper {
        width: 100% !important;
    }
    .list-container {
        color: white;
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
}