/* ===== ed-bildlauf - Horizontaler Thumbnail-Slider ===== */

/* Container für den gesamten Slider */
.ed-bildlauf-container {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

/* Wrapper für Pfeile und Thumbnails */
.ed-bildlauf-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Der sichtbare Bereich der Thumbnails */
.ed-bildlauf-viewport {
    overflow: hidden;
    flex: 1;
    margin: 0;
}

/* Der innere Container, der scrollt */
.ed-bildlauf-track {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

/* Einzelnes Thumbnail */
.ed-bildlauf-item {
    flex: 0 0 calc(33.333% - 0.333rem);
    min-width: calc(33.333% - 0.333rem);
}

.ed-bildlauf-item a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.ed-bildlauf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Navigations-Pfeile - Overlay über den Bildern */
.ed-bildlauf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ed-bildlauf-prev {
    left: 8px;
}

.ed-bildlauf-next {
    right: 8px;
}

/* Hauptbild-Pfeile - größer */
.ed-bildlauf-main-image .ed-bildlauf-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.ed-bildlauf-main-prev {
    left: 10px;
}

.ed-bildlauf-main-next {
    right: 10px;
}

.ed-bildlauf-arrow:hover {
    background: rgba(0, 0, 0, 0.35);
}

.ed-bildlauf-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ed-bildlauf-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Anzeige der Bildanzahl (X / Y) */
.ed-bildlauf-counter {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 5;
}

/* Punkt-Indikatoren */
.ed-bildlauf-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 0;
}

.ed-bildlauf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.ed-bildlauf-dot:hover {
    background: #999;
}

.ed-bildlauf-dot.active {
    background: #70A91E;
    transform: scale(1.2);
}

/* Responsive: Tablet */
@media (max-width: 991px) {
    .ed-bildlauf-item {
        flex: 0 0 calc(33.333% - 0.333rem);
        min-width: calc(33.333% - 0.333rem);
    }
}

/* Responsive: Mobile */
@media (max-width: 576px) {
    .ed-bildlauf-item {
        flex: 0 0 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
    }

    .ed-bildlauf-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}