/* =============================================================
   HERO SLIDER – hero-slider.css
   Ablegen unter: child-theme/assets/hero-slider.css
   ============================================================= */

/* Volle Breite – Theme-Container aufbrechen */
.tvs-hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: #1a1a1a;
    height: 500px;
}

/* Track */
.tvs-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Einzelner Slide */
.tvs-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

/* Hintergrundbild – kein Overlay */
.tvs-slide__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

/* Overlay deaktiviert */
.tvs-slide__overlay {
    display: none;
}

/* Kapsel-Box für Titel/Untertitel */
.tvs-slide__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 75%;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 18px 40px;
}

.tvs-slide__title {
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.2em;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tvs-slide__subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Overlay-Bilder */
.tvs-overlay-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tvs-overlay-images--one {
    justify-content: center;
}

.tvs-overlay-images--two {
    justify-content: center;
}

.tvs-overlay-img {
    display: block;
    max-height: 110px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Wenn nur Text vorhanden (keine Bilder), kein margin oben nötig */
.tvs-slide__title:first-child {
    margin-top: 0;
}

/* ---- Zweifarbiger Balken ---- */
.tvs-slide__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    overflow: hidden;
    z-index: 5;
    display: flex;
    background: #d0102e; /* Rot als Hintergrund – füllt den Spalt nach der Schräge */
}

/* SVG nicht mehr gebraucht */
.tvs-slide__bar svg.tvs-bar__svg {
    display: none;
}

/* Linker blauer Bereich – Schräge via clip-path mit fixen px */
.tvs-bar__left {
    flex: 1;
    background: #1e56b0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 2;
    /* 2px oben/unten über Container → verhindert Sub-Pixel-Blitzer */
    margin-top: -1px;
    margin-bottom: -1px;
    /* clip-path angepasst: 54px statt 52px wegen 2px extra Höhe */
    clip-path: polygon(0 0, 100% 0, calc(100% - 54px) 100%, 0 100%);
    margin-right: -26px;
}

.tvs-bar__left-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Rechter roter Bereich */
.tvs-bar__right {
    flex: 1;
    background: #d0102e;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 1;
}

/* Pill-Button rechts */
.tvs-bar__btn {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.tvs-bar__btn:hover {
    background: rgba(255,255,255,0.30);
    color: #fff;
}

.tvs-bar__right-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}


/* ---- Split-Ansicht: zwei Bilder nebeneinander ---- */
.tvs-slide__split {
    position: absolute;
    inset: 0;
    display: flex;
}

.tvs-slide__bg--left,
.tvs-slide__bg--right {
    width: 50% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
}
/* Pfeil-Navigation */
.tvs-slider-nav {
    position: absolute;
    top: calc(50% - 26px); /* Pfeil mittig im Bild, nicht im Balken */
    transform: translateY(-50%);
    background: rgba(0,0,0,0.30);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tvs-slider-nav:hover {
    background: rgba(0,0,0,0.60);
}

.tvs-slider-nav--prev { left: 16px; }
.tvs-slider-nav--next { right: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .tvs-hero-slider {
        height: 320px;
    }

    .tvs-slide__content {
        max-width: 85%;
        padding: 14px 24px;
        border-radius: 28px;
    }

    .tvs-slider-nav {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .tvs-hero-slider {
        height: 260px;
    }

    .tvs-slide__content {
        max-width: 90%;
        padding: 10px 18px;
        border-radius: 20px;
    }

    /* Mobile: zwei Balken übereinander, keine Schräge */
    .tvs-slide__bar {
        flex-direction: column;
        height: auto;
    }

    .tvs-bar__left {
        clip-path: none;
        margin-right: 0;
        height: 46px;
        padding: 0 16px;
        flex: none;
    }

    .tvs-bar__right {
        height: 46px;
        padding: 0 16px;
        flex: none;
        justify-content: flex-end;
    }
}
