/* MX Produkttour - Frontend Styles (shadcn-inspired) */

.mx-produkttour-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mx-produkttour-wrap *,
.mx-produkttour-wrap *:before,
.mx-produkttour-wrap *:after {
    box-sizing: border-box;
}

/* Layout */
.mx-pt-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.mx-pt-nav {
    width: 260px;
    flex-shrink: 0;
}

.mx-pt-player {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

/* ==========================================================================
   NAVIGATION – DARK MODE (default)
   ========================================================================== */

.mx-produkttour-wrap ul.player-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mx-produkttour-wrap ul.player-navigation > li {
    margin-bottom: 2px;
}

.mx-produkttour-wrap ul.player-navigation > li:last-child {
    margin-bottom: 0;
}

/* ---- Kapitel-Titel (1. Ebene) ---- */
.mx-produkttour-wrap ul.player-navigation > li > a {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 20px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
    background: none;
}

/* CSS Chevron */
.mx-produkttour-wrap ul.player-navigation > li > a::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.mx-produkttour-wrap ul.player-navigation > li > a:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.mx-produkttour-wrap ul.player-navigation > li > a.active {
    color: #fff;
    border-left-color: #00A65C;
    background: rgba(255, 255, 255, 0.06);
}

.mx-produkttour-wrap ul.player-navigation > li > a.active::before {
    transform: rotate(-45deg);
}

/* H-Tags innerhalb der Links resetten */
.mx-produkttour-wrap ul.player-navigation a h1,
.mx-produkttour-wrap ul.player-navigation a h2,
.mx-produkttour-wrap ul.player-navigation a h3,
.mx-produkttour-wrap ul.player-navigation a h4,
.mx-produkttour-wrap ul.player-navigation a h5,
.mx-produkttour-wrap ul.player-navigation a h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* ---- Submenu (aufklappbar) ---- */
.mx-produkttour-wrap ul.player-navigation li ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.mx-produkttour-wrap ul.player-navigation li ul.active {
    max-height: 500px;
    opacity: 1;
}

/* ---- Sub-Items (2. Ebene) ---- */
.mx-produkttour-wrap ul.player-navigation li ul li a {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 6px 14px 6px 42px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border-radius: 0 6px 6px 0;
    transition: all 0.15s ease;
    background: none;
}

/* kleiner Dot vor dem Text */
.mx-produkttour-wrap ul.player-navigation li ul li a::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    transition: all 0.15s ease;
}

.mx-produkttour-wrap ul.player-navigation li ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.mx-produkttour-wrap ul.player-navigation li ul li a:hover::before {
    opacity: 0.7;
}

.mx-produkttour-wrap ul.player-navigation li ul li a.active {
    color: #00A65C;
    border-left-color: #00A65C;
    background: rgba(0, 166, 92, 0.06);
}

.mx-produkttour-wrap ul.player-navigation li ul li a.active::before {
    background: #00A65C;
    opacity: 1;
    width: 6px;
    height: 6px;
    left: 21px;
}

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */

.mx-produkttour-wrap.mx-pt-light ul.player-navigation {
    border-left-color: rgba(0, 0, 0, 0.08);
}

/* Kapitel-Titel light */
.mx-produkttour-wrap.mx-pt-light ul.player-navigation > li > a {
    color: rgba(0, 0, 0, 0.4);
}

.mx-produkttour-wrap.mx-pt-light ul.player-navigation > li > a:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.03);
}

.mx-produkttour-wrap.mx-pt-light ul.player-navigation > li > a.active {
    color: #0f0f0f;
    border-left-color: #00A65C;
    background: rgba(0, 0, 0, 0.04);
}

/* Sub-Items light */
.mx-produkttour-wrap.mx-pt-light ul.player-navigation li ul li a {
    color: rgba(0, 0, 0, 0.4);
}

.mx-produkttour-wrap.mx-pt-light ul.player-navigation li ul li a:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.02);
}

.mx-produkttour-wrap.mx-pt-light ul.player-navigation li ul li a.active {
    color: #00A65C;
    border-left-color: #00A65C;
    background: rgba(0, 166, 92, 0.04);
}

/* ==========================================================================
   YouTube Player (16:9 responsive)
   ========================================================================== */

.mx-pt-yt-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.mx-pt-yt-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mx-pt-container {
        flex-direction: column;
        gap: 20px;
    }

    .mx-pt-nav {
        width: 100%;
        order: 2;
    }

    .mx-pt-player {
        width: 100%;
        order: 1;
    }
}
