/* =============================================================
   Jundo Team Parallax-Slider
   Mobile First | Breakpoints: md 769px · lg 1025px

   Vertikaler Scroll-Slider mit Minimap (Desktop) für die Startseite.
   Scroll/Touch wird nur innerhalb der Section abgefangen – an den
   Rändern (erstes/letztes Mitglied) läuft der normale Seiten-Scroll
   ungehindert weiter, siehe js/team-parallax-slider.js.
   ============================================================= */

.jundo-team-parallax {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .jundo-team-parallax {
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
    }
}

/* =============================================================
   Main stage (großes Bild + Caption)
   ============================================================= */
.jundo-team-parallax-main {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--wp--preset--color--background-alt);
    touch-action: pan-y;
}

/* flex:1 (flex-basis:0) darf erst greifen, sobald die Flex-Achse die
   Breite ist (flex-direction:row, Desktop) – im mobilen column-Layout
   würde es mit der festen height kollidieren: die absolut positionierten
   Slides tragen keine Content-Höhe bei, der Container fiele auf 0px
   zusammen. */
@media (min-width: 769px) {
    .jundo-team-parallax-main { flex: 1; height: 560px; }
}

@media (min-width: 1025px) {
    .jundo-team-parallax-main { height: 620px; }
}

.jundo-team-parallax-track {
    position: absolute;
    inset: 0;
}

.jundo-team-parallax-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.jundo-team-parallax-img {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.jundo-team-parallax-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    will-change: transform;
}

.jundo-team-parallax-caption {
    padding: 16px 20px;
    background: var(--wp--preset--color--background);
    border-top: 1px solid var(--wp--preset--color--border);
}

@media (min-width: 769px) {
    .jundo-team-parallax-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 30, 46, .82) 0%, rgba(0, 30, 46, .55) 55%, transparent 100%);
        border-top: none;
        padding: 32px 28px 24px;
    }
}

.jundo-team-parallax-badge {
    display: inline-block;
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    background: var(--wp--preset--color--primary);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.jundo-team-parallax-name {
    font-family: var(--wp--preset--font-family--oswald);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--wp--preset--color--heading);
    margin: 0 0 4px;
}

@media (min-width: 769px) {
    .jundo-team-parallax-name { color: #fff; }
}

.jundo-team-parallax-position {
    display: inline-block;
    font-size: .85em;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    background: rgba(223, 1, 1, .08);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

@media (min-width: 769px) {
    .jundo-team-parallax-position {
        color: #fff;
        background: rgba(223, 1, 1, .55);
    }
}

.jundo-team-parallax-bio {
    font-size: .9em;
    line-height: 1.6;
    color: var(--wp--preset--color--foreground-light);
    margin: 0;
}

@media (min-width: 769px) {
    .jundo-team-parallax-bio { color: var(--wp--preset--color--contrast-text); }
}

/* =============================================================
   Minimap (Desktop only)
   ============================================================= */
.jundo-team-parallax-minimap {
    display: none;
}

@media (min-width: 769px) {
    .jundo-team-parallax-minimap {
        display: flex;
        gap: 16px;
        width: 260px;
        height: 560px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
    }
}

@media (min-width: 1025px) {
    .jundo-team-parallax-minimap {
        width: 300px;
        height: 620px;
    }
}

.jundo-team-parallax-minimap-thumbs {
    position: relative;
    width: 64px;
    flex-shrink: 0;
}

.jundo-team-parallax-minimap-thumb {
    position: absolute;
    inset: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    opacity: .4;
    transition: opacity .3s;
    will-change: transform;
}

.jundo-team-parallax-minimap-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.jundo-team-parallax-minimap-info {
    position: relative;
    flex: 1;
}

.jundo-team-parallax-minimap-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: left;
    background: none;
    border: none;
    padding: 0 0 0 4px;
    cursor: pointer;
    opacity: .4;
    transition: opacity .3s;
    will-change: transform;
}

.jundo-team-parallax-minimap-thumb.is-active,
.jundo-team-parallax-minimap-item.is-active {
    opacity: 1;
}

.jundo-team-parallax-minimap-num {
    font-size: .7em;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
}

.jundo-team-parallax-minimap-name {
    font-family: var(--wp--preset--font-family--oswald);
    font-size: .95em;
    font-weight: 700;
    color: var(--wp--preset--color--heading);
}

.jundo-team-parallax-minimap-role {
    font-size: .75em;
    color: var(--wp--preset--color--foreground-light);
}

/* =============================================================
   Dots (Mobile navigation)
   ============================================================= */
.jundo-team-parallax-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 769px) {
    .jundo-team-parallax-dots { display: none; }
}

.jundo-team-parallax-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp--preset--color--border);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, transform .2s;
}

.jundo-team-parallax-dot.active {
    background: var(--wp--preset--color--primary);
    transform: scale(1.3);
}

/* =============================================================
   Screen-reader-only status line
   ============================================================= */
.jundo-team-parallax-sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================
   Reduced motion: keine schwebenden Zwischenzustände
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .jundo-team-parallax-slide,
    .jundo-team-parallax-img img,
    .jundo-team-parallax-minimap-thumb,
    .jundo-team-parallax-minimap-item {
        transition: none !important;
    }
}
