:root {
    --primary-teal: #0c8299;
    --light-teal: #50b3c6;
    --bg-light: #f7f9fb;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #eef2f5;
}

.btn-outline {
    border: 1px solid var(--primary-teal);
    background: transparent;
    color: var(--primary-teal);
    padding: 10px 20px;
    /*border-radius: 20px;*/
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.lang-select {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- MEGAMENU CONTAINER --- */
.megamenu-container {
    background: #ffffff;
    /*border-radius: 0 0 12px 12px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 22px;
    color: #95a5a6;
    cursor: pointer;
    z-index: 10;
}

.megamenu-main {
    display: grid;
    grid-template-columns: 320px 1fr;
}

/* --- SIDEBAR TABS --- */
.megamenu-sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 2px 25px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
}

.tab-num {
    width: 40px;
    height: 40px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-teal);
    margin-right: 15px;
    flex-shrink: 0;
}

.tab-text h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #1e272e;
}

.tab-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.arrow-indicator {
    display: none;
    margin-left: auto;
    color: var(--primary-teal);
    opacity: 100;
    transition: opacity 0.2s;
}

/* Aktiver Tab-Zustand (Wie im Bild) */
.tab-btn.active,
.tab-btn:hover {
    background-color: var(--light-teal);
    color: #ffffff;
}
.tab-btn.active .tab-num,
.tab-btn:hover .tab-num {
    background: #ffffff;
    border-color: #ffffff;
}
.tab-btn.active .tab-text h3,
.tab-btn.active .tab-text p,
.tab-btn:hover .tab-text h3,
.tab-btn:hover .tab-text p {
    color: #ffffff;
}
.tab-btn.active .arrow-indicator,
.tab-btn:hover .arrow-indicator {
    opacity: 1;
    color: #ffffff;
}

/* Der kleine optische Pfeil, der nach rechts in den Content zeigt */
.tab-btn.active::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--light-teal);
    z-index: 5;
}

/* --- CONTENT AREA --- */
.megamenu-content {
    padding: 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    width: 880px;
    height: 742px;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 0;
    width: 100%;
}
.tab-content.active {
    display: block;
}
.tab-content.visible {
    opacity: 1;
}

.content-header h2 {
    font-size: 24px;
    color: #1e272e;
    margin-bottom: 5px;
}
.content-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- SWIPER PRODUCT SLIDER --- */
.products-swiper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding: 3px 0 32px 0;
}

.products-swiper .swiper-pagination-bullet-active {
    background: var(--primary-teal);
}

.products-swiper .swiper-slide {
    height: auto;
}

.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next {
    --swiper-navigation-size: 14px;
    color: var(--primary-teal);
    background: #ffffff;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    top: 40%;
}
.products-swiper .swiper-button-prev::after,
.products-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}
.products-swiper .swiper-button-prev:hover,
.products-swiper .swiper-button-next:hover {
    background: var(--primary-teal);
    color: #ffffff;
}

.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    ::slotted(svg),
    svg {
        height: 50%;
        object-fit: contain;
        transform-origin: center;
        width: 50%;
        fill: currentColor;
        pointer-events: none;
    }
}

.products-swiper .swiper-pagination-horizontal.swiper-pagination-bullets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.products-swiper .swiper-pagination-bullet {
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: #256d85;
}

.products-status {
    min-height: 24px;
    margin-bottom: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    /*border-radius: 12px;*/
    padding: 25px 20px;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.product-card:hover {
    border-color: #d1d8e0;
    box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.product-img img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1e272e;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #57606f;
    margin-bottom: 25px;
    /* border-bottom: 1px dashed #d1d8e0; */
    padding-bottom: 15px;
    /* width: 100%; */
    position: absolute;
    flex-direction: column;
    right: 12px;
    top: 12px;
}
.product-specs i {
    color: var(--text-muted);
    margin-right: 5px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
    color: var(--primary-teal);
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #d1d8e0;
    padding: 10px 24px;
    /*border-radius: 20px;*/
    background: #ffffff;
    transition: all 0.2s;
}
.btn-more:hover {
    background: var(--primary-teal);
    color: #ffffff;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: var(--bg-light);
    /*border-radius: 12px;*/
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1em;
}
.cta-icon {
    width: 45px;
    height: 45px;
    background: #e6f4f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 20px;
}
.cta-info strong {
    font-size: 14px;
    color: #1e272e;
}
.cta-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.cta-banner .btn-primary {
    background: var(--primary-teal);
    color: #ffffff;
    border: none;
    padding: 14px 18px;
    /* border-radius: 25px; */
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-banner .btn-primary:hover {
    color: #fff;
    background-color: var(--light-teal);
}

/* --- FOOTER --- */
.megamenu-footer {
    display: none;
    /*display: flex;*/
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 25px 40px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    line-height: 1em;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 250px;
}
.feature-icon {
    font-size: 24px;
    color: var(--primary-teal);
    background: #ffffff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.footer-feature strong {
    font-size: 13px;
    color: #1e272e;
    display: block;
    margin-bottom: 2px;
}
.footer-feature p {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-all-models {
    color: var(--primary-teal);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- USER BADGES --- */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
    white-space: nowrap;
    background: #fff;
}

/* --- ATA BADGES --- */
.ata-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    /*font-size: 1rem;*/
    font-weight: normal;
    white-space: nowrap;
}
.ata-badge--xs {
    background: #e0f2f1;
    color: #00695c;
} /* ≤ 1.3 ATA */
.ata-badge--s {
    background: #e3f2fd;
    color: #1565c0;
} /* ≤ 1.4 ATA */
.ata-badge--m {
    background: #e8f5e9;
    color: #2e7d32;
} /* ≤ 1.5 ATA */
.ata-badge--l {
    background: #fff8e1;
    color: #f57f17;
} /* ≤ 1.75 ATA */
.ata-badge--xl {
    background: #fff3e0;
    color: #e65100;
} /* ≤ 2.0 ATA */
.ata-badge--xxl {
    background: #fce4ec;
    color: #b71c1c;
} /* ≤ 2.4 ATA */
.ata-badge--max {
    background: #f3e5f5;
    color: #6a1b9a;
} /* > 2.4 ATA */

/* --- DYNAMIC STATE STYLES --- */
.products-loading,
.products-empty,
.products-error {
    grid-column: 1 / -1;
    padding: 24px 0;
    color: #888;
    font-size: 0.9rem;
}
.products-loading i {
    margin-right: 6px;
}
.products-error {
    color: #c0392b;
}
.product-img-placeholder {
    width: 192px;
    aspect-ratio: 1;
    background: #eef0f3;
    border-radius: 8px;
}
.product-version {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin: 2px 0 6px;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1024px) {
    .megamenu-main {
        grid-template-columns: 1fr;
    }
    .tab-btn.active::after {
        display: none;
    }
    .products-swiper {
        padding: 0 32px;
    }
    .cta-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
