/* ══════════════════════════════════════════════════
   PANORAMA SLIDER
   ══════════════════════════════════════════════════ */
.cq-panorama {
    position: relative;
    overflow: visible;
    overflow-x: clip;
    user-select: none;
    -webkit-user-select: none;
}

/* Ambient glow behind active slide */
.cq-panorama-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: background 1s var(--ease);
}

/* 3D container */
.cq-panorama-stage {
    position: relative;
    z-index: 2;
    cursor: grab;
    touch-action: pan-y;
}

.cq-panorama-stage.dragging {
    cursor: grabbing;
}

.cq-panorama-perspective {
    position: relative;
    width: clamp(480px, 52vw, 960px);
    margin: 0 auto;
    perspective: 1200px;
    overflow: visible;
}

.cq-panorama-track {
    display: flex;
    width: 100%;
    height: clamp(240px, 28vw, 420px);
    transform-style: preserve-3d;
    transition: transform 600ms var(--ease);
}

.cq-panorama-track.no-transition,
.cq-panorama-track.no-transition .cq-panorama-slide {
    /* Seit die Slides selbst auf dem Ring positioniert werden (nicht mehr
       der track), muss das Ziehen auch ihre Uebergaenge abschalten — sonst
       laufen sie dem Finger 600 ms hinterher. */
    transition: none;
}

/* Individual slide */
.cq-panorama-slide {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 600ms var(--ease), opacity 600ms ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.cq-panorama-slide.active {
    border-color: var(--glass-border);
    cursor: default;
}

.cq-panorama-slide:not(.active) {
    cursor: pointer;
}

.cq-panorama-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cq-panorama-slide-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: background 600ms ease;
}

.cq-panorama-slide.active .cq-panorama-slide-dim {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.cq-panorama-slide-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

/* Duration badge on slide */
.cq-panorama-slide-duration {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3px 8px;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.4;
    transition: opacity 600ms ease;
}

.cq-panorama-slide.active .cq-panorama-slide-duration {
    opacity: 0.9;
}

/* Location badge on slide */
.cq-panorama-slide-location {
    position: absolute;
    top: 11px;
    left: 12px;
    z-index: 5;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 600ms ease;
}

.cq-panorama-slide.active .cq-panorama-slide-location {
    opacity: 1;
}

/* Active overlay on slide */
.cq-panorama-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 2vw, 1.8rem) clamp(0.6rem, 1.5vw, 1rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transform-style: flat;
}

.cq-panorama-slide.active .cq-panorama-slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cq-panorama-slide-genre {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2px 10px;
    font-size: 0.63rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.cq-panorama-slide-name {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 100;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.cq-panorama-slide-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.4rem;
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    color: var(--ok);
    text-transform: uppercase;
}

.cq-panorama-slide-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    animation: cqPulse 2s infinite;
}

@keyframes cqPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 194, 126, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(24, 194, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(24, 194, 126, 0);
    }
}

/* ── Arrows ───────────────────────────────────── */
.cq-panorama-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding: 0;
    line-height: 1;
    transition: all 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.cq-panorama-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cq-panorama-arrow--prev {
    left: clamp(16px, 2vw, 30px);
}

.cq-panorama-arrow--next {
    right: clamp(16px, 2vw, 30px);
}

.cq-panorama-arrow:hover {
    border-color: rgba(178, 148, 116, 0.4);
    color: var(--gold);
    background: rgba(178, 148, 116, 0.08);
    box-shadow: 0 10px 30px rgba(178, 148, 116, 0.2);
    transform: translateY(-50%) scale(1.06);
}

.cq-panorama-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* ── Controls: Counter + Dots + Pause ─────────── */
.cq-panorama-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 0 0.5rem;
    position: relative;
    z-index: 2;
}

.cq-panorama-counter {
    font-size: 0.81rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65); /* a11y: vorher 0.25 = 2.13 ratio (AA-fail) */
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
}

.cq-panorama-counter-active {
    color: var(--gold);
}

.cq-panorama-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cq-panorama-dot {
    width: 8px;
    height: 2px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.5s var(--ease);
}

.cq-panorama-dot.active {
    width: 24px;
    background: var(--gold);
}

.cq-panorama-pause {
    width: 32px;
    height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.cq-panorama-pause::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.cq-panorama-pause:hover {
    border-color: rgba(178, 148, 116, 0.4);
    color: var(--gold);
    background: rgba(178, 148, 116, 0.06);
}

/* ── Info Panel (below slider) ────────────────── */
.cq-panorama-info {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    padding: 0.5rem 2rem 0;
    text-align: center;
}

.cq-panorama-info-inner {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.cq-panorama-info-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cq-panorama-info-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 1.5vw, 1.2rem);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cq-panorama-info-item {
    text-align: center;
}

.cq-panorama-info-label {
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 2px;
}

.cq-panorama-info-value {
    font-size: 0.98rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.cq-panorama-info-value--gold {
    color: var(--gold);
}

.cq-panorama-info-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
}

.cq-panorama-info-diff {
    display: flex;
    gap: 3px;
    align-items: center;
}

.cq-panorama-info-diff-bar {
    width: 16px;
    height: 2px;
    transition: background 0.4s;
}

/* CTA */
.cq-panorama-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 2px solid var(--gold);
    color: var(--black);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(178, 148, 116, 0.3);
    transition: all 0.3s var(--ease);
}

.cq-panorama-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cq-panorama-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(178, 148, 116, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.cq-panorama-cta:hover::before {
    transform: translateX(100%);
}

.cq-panorama-cta span {
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cq-panorama-orb {
        width: 100%;
        max-width: 100vw;
        height: 400px;
    }

    .cq-panorama-perspective {
        width: clamp(340px, 58vw, 560px);
    }

    .cq-panorama-track {
        height: clamp(250px, 42vw, 400px);
    }

    .cq-panorama-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cq-panorama-perspective {
        width: calc(100vw - 2rem);
        perspective: 800px;
    }

    .cq-panorama-track {
        height: clamp(320px, 110vw, 480px);
    }

    .cq-panorama-slide:not(.active) {
        opacity: 0.3 !important;
    }

    .cq-panorama-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 45%;
    }

    .cq-panorama-arrow--prev {
        left: 6px;
    }

    .cq-panorama-arrow--next {
        right: 6px;
    }

    .cq-panorama-controls {
        gap: 0.6rem;
        padding: 0.5rem 0.5rem 0.3rem;
    }

    .cq-panorama-counter {
        font-size: 0.72rem;
        min-width: 32px;
    }

    .cq-panorama-dot {
        width: 6px;
    }

    .cq-panorama-dot.active {
        width: 18px;
    }

    .cq-panorama-pause {
        width: 28px;
        height: 28px;
        font-size: 8px;
    }

    .cq-panorama-info {
        padding: 0.3rem 1rem 0;
    }

    .cq-panorama-info-meta {
        gap: 0.5rem;
    }

    .cq-panorama-info-value {
        font-size: 0.82rem;
    }

    .cq-panorama-info-label {
        font-size: 0.58rem;
    }

    .cq-panorama-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.81rem;
    }

    .cq-panorama-slide-name {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .cq-panorama-slide-overlay {
        padding: 2rem 1rem 0.8rem;
    }
}