/* =====================================================================
   journey-carousel.css
   Einbinden in dein bestehendes Stylesheet oder als <style>-Block
   ===================================================================== */

/* ── Haupt-Carousel ─────────────────────────────────────────────────── */
.journey-carousel {
    border-radius: 0;
    overflow: hidden;
}

.journey-carousel .carousel-item {
    object-fit: cover;
    height: 250px;
    overflow: hidden;
}

.journey-media-main {
    object-fit: cover;
    height: 250px;
    width: 100%;
    display: block;
}

/* ── Counter-Badge ──────────────────────────────────────────────────── */
.journey-counter-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 50px;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.02em;
}

/* ── Caption-Pill ───────────────────────────────────────────────────── */
.journey-caption-pill {
    background-color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(231, 126, 33, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #333;
    display: inline-block;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Video-Play-Overlay ─────────────────────────────────────────────── */
.journey-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s;
}
.journey-play-overlay:hover { background: rgba(0, 0, 0, 0.28); }

.journey-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent rgba(255,255,255,0.9);
    margin-left: 5px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ── Thumbnail-Strip ────────────────────────────────────────────────── */
.journey-thumb-strip {
    display: flex;
    gap: 5px;
    padding: 6px 8px;
    background: #f5f5f3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    scroll-behavior: smooth;
}
.journey-thumb-strip::-webkit-scrollbar { display: none; }

.journey-thumb {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #ccc;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.15s ease;
}
.journey-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.journey-thumb.active {
    border-color: #e77e21;
    transform: scale(1.06);
}
.journey-thumb:focus-visible {
    outline: 2px solid #e77e21;
    outline-offset: 2px;
}

/* Video-Play-Icon im Thumbnail */
.journey-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}
.journey-thumb-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent rgba(255,255,255,0.95);
    margin-left: 2px;
}

/* ── Dot-Strip ──────────────────────────────────────────────────────── */
.journey-dot-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px 8px 4px;
    background: #f5f5f3;
}

.journey-dot {
    display: inline-block;
    height: 6px;
    width: 6px;
    border-radius: 3px;
    background: #ccc;
    transition: width 0.22s ease, background 0.22s ease;
}
.journey-dot.active {
    width: 18px;
    background: #e77e21;
}

/* ── Dark-mode-Anpassungen ──────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .journey-thumb-strip,
    .journey-dot-strip { background: #1e1e1e; }
    .journey-dot { background: #444; }
    .journey-caption-pill { background: #222; color: #eee; }
}


.journey-thumb:has(.journey-thumb-play) {
    background: #2a2a2a;
}