/* Elementor Tab Slider Styles */

.tabslider-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
    background: #f5f5f5;
}

/* Image Section (Left) */
.tabslider-image-section {
    width: 55%;
    display: flex;
    flex-direction: column;
}

.tabslider-image-container {
    flex: 1;
    position: relative;
    background: #1a3a5c;
    min-height: 300px;
}

/* Single Image */
.tabslider-single-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tabslider-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Slider */
.tabslider-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tabslider-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tabslider-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Navigation */
.tabslider-swiper .swiper-button-prev,
.tabslider-swiper .swiper-button-next {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 0;
    transition: background 0.3s ease;
}

.tabslider-swiper .swiper-button-prev:hover,
.tabslider-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.tabslider-swiper .swiper-button-prev::after,
.tabslider-swiper .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.tabslider-swiper .swiper-button-prev {
    left: 0;
}

.tabslider-swiper .swiper-button-next {
    right: 0;
}

/* Text Area Below Image */
.tabslider-image-text {
    background: #00a8e8;
    color: #ffffff;
    padding: 25px;
}

.tabslider-image-text-content {
    margin-bottom: 15px;
}

.tabslider-image-text-content p {
    margin: 0 0 10px 0;
}

.tabslider-image-text-content p:last-child {
    margin-bottom: 0;
}

.tabslider-image-text-content h1,
.tabslider-image-text-content h2,
.tabslider-image-text-content h3,
.tabslider-image-text-content h4,
.tabslider-image-text-content h5,
.tabslider-image-text-content h6 {
    color: #1a3a5c;
    margin: 0 0 10px 0;
}

.tabslider-image-link {
    display: inline-block;
    color: #1a3a5c;
    text-decoration: underline;
    font-style: italic;
    transition: color 0.3s ease;
}

.tabslider-image-link:hover {
    color: #ffffff;
}

/* Tabs Section (Right) - Accordion Style */
.tabslider-tabs-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow: visible;
}

.tabslider-tab {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.tabslider-tab-header {
    position: relative;
    padding: 15px 25px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid #00a8e8;
    transition: all 0.3s ease;
}

.tabslider-tab-header:hover {
    background: #e8f4fc;
}

.tabslider-tab.active .tabslider-tab-header {
    background: #00a8e8;
    color: #ffffff;
}

/* Pfeilspitze links am aktiven Tab (Farbe = Hintergrund des Titels via inherit) */
.tabslider-tab.active .tabslider-tab-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    transform: translateX(-100%);
    background: inherit;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    z-index: 1;
    pointer-events: none;
}

.tabslider-tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Tab Content - Accordion Style */
.tabslider-tab-content {
    display: none;
    padding: 20px 25px;
    background: #ffffff;
    color: #333333;
    font-size: 1rem;
    line-height: 1.7;
    border-bottom: 1px solid #e0e0e0;
}

.tabslider-tab.active .tabslider-tab-content {
    display: block;
}

.tabslider-tab-content p {
    margin: 0 0 10px 0;
}

.tabslider-tab-content p:last-child {
    margin-bottom: 0;
}

/* Bold labels in content */
.tabslider-tab-content strong {
    color: #00a8e8;
}

/* Responsive */
@media (max-width: 991px) {
    .tabslider-wrapper {
        flex-direction: column;
    }

    .tabslider-image-section {
        width: 100% !important;
    }

    .tabslider-image-container {
        min-height: 300px;
    }

    .tabslider-tabs-section {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .tabslider-image-container {
        min-height: 250px;
    }

    .tabslider-tab-header {
        padding: 12px 20px;
    }

    .tabslider-tab.active .tabslider-tab-header::before {
        width: 11px;
    }

    .tabslider-tab-title {
        font-size: 1rem;
    }

    .tabslider-tab-content {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .tabslider-image-text {
        padding: 20px;
    }

    .tabslider-swiper .swiper-button-prev,
    .tabslider-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .tabslider-swiper .swiper-button-prev::after,
    .tabslider-swiper .swiper-button-next::after {
        font-size: 16px;
    }
}
