/* Boxen Carousel */
.bc-box { container-type: inline-size; position: relative; }
.bc-box + .bc-box { margin-top: 14px; }
.bc-pos-under_header { margin: 0 auto; }
.bc-pos-under_header + .bc-pos-under_header { margin-top: 10px; }
.bc-pos-middle_top, .bc-pos-middle_bottom { max-width: 100%; margin: 0 auto 14px; }
.bc-box { width: var(--bc-w, 100%); max-width: min(100%, var(--bc-maxw, 100%)); }
.bc-al-left   { margin-left: 0; margin-right: auto; }
.bc-al-center { margin-left: auto; margin-right: auto; }
.bc-al-right  { margin-left: auto; margin-right: 0; }
.bc-h-px .bc-viewport { aspect-ratio: auto; height: var(--bc-h, 300px); }
.bc-viewport { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: var(--bc-ratio, 16 / 9); background: #000; touch-action: pan-y; }
.bc-track { position: absolute; inset: 0; display: flex; transition: transform .5s ease; will-change: transform; }
.bc-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.bc-link { display: block; position: relative; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.bc-img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.bc-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px;
    color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3; text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
/* Überblenden statt Schieben */
.bc-fx-fade .bc-track { display: block; transition: none; transform: none !important; }
.bc-fx-fade .bc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.bc-fx-fade .bc-slide.is-active { opacity: 1; pointer-events: auto; }

.bc-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(0,0,0,.45); color: #fff; font-size: 16px; line-height: 34px; text-align: center;
    opacity: 0; transition: opacity .2s, background .2s;
}
.bc-prev { left: 8px; } .bc-next { right: 8px; }
.bc-box:hover .bc-btn, .bc-btn:focus-visible { opacity: 1; }
.bc-btn:hover { background: rgba(0,0,0,.7); }
@media (hover: none) { .bc-btn { opacity: .85; } }

.bc-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.bc-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: currentColor; opacity: .3; transition: opacity .2s, transform .2s; }
.bc-dot.is-active { opacity: .95; transform: scale(1.25); }
.bc-btn:focus-visible, .bc-dot:focus-visible, .bc-link:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .bc-track, .bc-fx-fade .bc-slide { transition: none; }
}
