.tm-banner {
    position: relative;
    width: 100%;
    height: var(--tm-banner-height, 200px);
    overflow: hidden;
    background: transparent;
}

.tm-banner-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tm-banner-track {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 5px;
    transition: transform 0.65s ease;
    will-change: transform;
}

.tm-banner-slide {
    position: relative;
    /* Breite abzüglich der Gaps zwischen den sichtbaren Slides (n-1 Gaps à 5px) */
    flex: 0 0 calc((100% - (var(--tm-banner-visible, 1) - 1) * 5px) / var(--tm-banner-visible, 1));
    width: calc((100% - (var(--tm-banner-visible, 1) - 1) * 5px) / var(--tm-banner-visible, 1));
    max-width: calc((100% - (var(--tm-banner-visible, 1) - 1) * 5px) / var(--tm-banner-visible, 1));
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.tm-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tm-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 1.1rem 0.85rem 0.75rem;
    background: linear-gradient(transparent, rgba(16, 24, 40, 0.72));
    color: #fff;
}

.tm-banner-caption-title {
    font-size: clamp(0.8rem, 1.4vw, 1.05rem);
    font-weight: 700;
    line-height: 1.25;
}

.tm-banner-caption-price {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 600;
    opacity: 0.95;
}

.tm-banner-dots {
    position: absolute;
    right: 0.85rem;
    bottom: 0.75rem;
    z-index: 3;
    display: flex;
    gap: 0.35rem;
}

.tm-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.tm-banner-dot.is-active {
    background: #fff;
    width: 18px;
}

.tm-banner-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .tm-banner {
        --tm-banner-visible: 1 !important;
    }
}
