/*--------------------------------------------------------------
# Benz Digital – Hero Slider v0.7.0
# Struktur: flexible Textposition, Overlay, CTA, Video-Support
--------------------------------------------------------------*/
:root {
    --max-width: 1360px;
}

/* Divi Kompatibilität */
.et_builder_inner_content .et_pb_section.bdhs_slider_wrapper {
    margin: 0 auto;
    padding: unset;
}

.bdhs-slider {
    transform: translateY(-44px);
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    font-family: var(--primary_font, "Lato", sans-serif);
    color: #fff;
    background: #000;
}

/*--------------------------------------------------------------
# Slides
--------------------------------------------------------------*/
.bdhs-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bdhs-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 117, 86, 0) 0%, rgba(0, 117, 86, 0.6) 40%, #007556 100%);
    z-index: 1;
    pointer-events: none;
}

.bdhs-slide video.bdhs-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bdhs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bdhs-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5vw 0;
    display: flex;
    flex-direction: column;
}

/*--------------------------------------------------------------
# Textausrichtung (horizontal + vertikal)
--------------------------------------------------------------*/

/* horizontale Positionierung */
.bdhs-slide.align-left-top,
.bdhs-slide.align-left-middle,
.bdhs-slide.align-left-bottom {
    align-items: flex-start;
}

.bdhs-slide.align-center-top,
.bdhs-slide.align-center-middle,
.bdhs-slide.align-center-bottom {
    align-items: center;
}

.bdhs-slide.align-right-top,
.bdhs-slide.align-right-middle,
.bdhs-slide.align-right-bottom {
    align-items: flex-end;
}

/* vertikale Positionierung */
.bdhs-slide.align-left-top,
.bdhs-slide.align-center-top,
.bdhs-slide.align-right-top {
    justify-content: flex-start;
}

.bdhs-slide.align-left-middle,
.bdhs-slide.align-center-middle,
.bdhs-slide.align-right-middle {
    justify-content: center;
}

.bdhs-slide.align-left-bottom,
.bdhs-slide.align-center-bottom,
.bdhs-slide.align-right-bottom {
    justify-content: flex-end;
}

/*--------------------------------------------------------------
# Textblock
--------------------------------------------------------------*/
.bdhs-text {
    max-width: 720px;
    text-align: left;
}

.bdhs-slide.align-center-top .bdhs-text,
.bdhs-slide.align-center-middle .bdhs-text,
.bdhs-slide.align-center-bottom .bdhs-text {
    text-align: center;
}

.bdhs-slide.align-right-top .bdhs-text,
.bdhs-slide.align-right-middle .bdhs-text,
.bdhs-slide.align-right-bottom .bdhs-text {
    text-align: right;
}

/*--------------------------------------------------------------
# Inline-Struktur für Topline / Headline / Subline
--------------------------------------------------------------*/

.bdhs-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: inherit;
    line-height: 1.15;
}

.bdhs-slide.align-center-top .bdhs-headline,
.bdhs-slide.align-center-middle .bdhs-headline,
.bdhs-slide.align-center-bottom .bdhs-headline {
    align-items: center;
}

.bdhs-slide.align-right-top .bdhs-headline,
.bdhs-slide.align-right-middle .bdhs-headline,
.bdhs-slide.align-right-bottom .bdhs-headline {
    align-items: flex-end;
}

.bdhs-headline .bdhs-topline {
    order: -1;
    font-size: 0.6em;
    font-weight: 700;
    margin-bottom: 0.15em;
    letter-spacing: 0.03em;
}

.bdhs-headline .bdhs-headline-main {
    display: block;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 0.15em;
}

.bdhs-headline .bdhs-subline {
    order: 1;
    font-size: 0.7em;
    font-weight: 700;
    margin-top: 0.15em;
}


/*--------------------------------------------------------------
# Typografie
--------------------------------------------------------------*/

.bdhs-slider .bdhs-topline,
.bdhs-slider .bdhs-headline,
.bdhs-slider .bdhs-subline,
.bdhs-slider .bdhs-teaser,
.bdhs-slider .bdhs-teaser-mobile {
    color: var(--white, #fff);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.bdhs-slider .bdhs-topline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
}

.bdhs-slider .bdhs-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.6em 0;
}

.bdhs-slider .bdhs-subline {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 600;
    margin-top: 0.3em;
}

.bdhs-slider .bdhs-teaser,
.bdhs-slider .bdhs-teaser-mobile {
    font-weight: 400;
    opacity: 0.9;
    text-shadow: none;
}

.bdhs-teaser {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.bdhs-teaser-mobile {
    display: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

/* ============================================================
   CTAs – Buttons für den Hero Slider (v0.7.3)
   Anpassung: Secondary weiß mit grünem Text, kein Underline,
   Text generell bold.
   ============================================================ */

/* --------------------------
   Farb- und Radius-Variablen
   -------------------------- */
:root {
    --bdhs-btn-primary: #007d32;
    --bdhs-btn-primary-hover: #1aa94b;

    /* Textfarben */
    --bdhs-btn-text-on-dark: #ffffff;
    --bdhs-btn-text-primary: #007d32;

    /* Outline */
    --bdhs-btn-outline-color: #ffffff;

    /* Sekundär (weiß mit grünem Text) */
    --bdhs-btn-secondary-bg: #ffffff;
    --bdhs-btn-secondary-bg-hover: #f5f5f5;

    /* Schatten & Fokus */
    --bdhs-btn-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
    --bdhs-btn-shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.28);
    --bdhs-focus: 0 0 0 3px rgba(26, 169, 75, 0.45);

    /* Maße */
    --bdhs-btn-radius: 999px;
    --bdhs-btn-pad-y: 0.85rem;
    --bdhs-btn-pad-x: 1.6rem;
    --bdhs-btn-font: 900;
    --bdhs-btn-tr: 180ms;
}

/* --------------------------
   Button-Container
   -------------------------- */
.bdhs-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

/* --------------------------
   Grundbutton
   -------------------------- */
.bdhs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: var(--bdhs-btn-pad-y) var(--bdhs-btn-pad-x);
    border-radius: var(--bdhs-btn-radius);
    font-weight: var(--bdhs-btn-font);
    text-decoration: none;
    line-height: 1;
    border: 0;
    cursor: pointer;
    box-shadow: var(--bdhs-btn-shadow);
    backdrop-filter: saturate(120%) blur(2px);
    white-space: nowrap;
    transition:
        background-color var(--bdhs-btn-tr) ease,
        color var(--bdhs-btn-tr) ease,
        transform var(--bdhs-btn-tr) ease,
        box-shadow var(--bdhs-btn-tr) ease;
}

/* Kein Underline bei Hover/Fokus */
.bdhs-btn:hover,
.bdhs-btn:focus,
.bdhs-btn:active {
    text-decoration: none;
}

/* --------------------------
   Varianten
   -------------------------- */
.bdhs-btn-primary {
    background: var(--bdhs-btn-primary);
    color: var(--bdhs-btn-text-on-dark);
}

.bdhs-btn-primary:hover {
    background: var(--bdhs-btn-primary-hover);
    color: var(--bdhs-btn-text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--bdhs-btn-shadow-hover);
}

.bdhs-btn-secondary {
    background: var(--bdhs-btn-secondary-bg);
    color: var(--bdhs-btn-text-primary);
}

.bdhs-btn-secondary:hover {
    background: var(--bdhs-btn-secondary-bg-hover);
    color: var(--bdhs-btn-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--bdhs-btn-shadow-hover);
}

.bdhs-btn-outline {
    background: transparent;
    color: var(--bdhs-btn-text-on-dark);
    border: 2px solid var(--bdhs-btn-outline-color);
    box-shadow: none;
}

.bdhs-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------
   Größen (optional)
   -------------------------- */
.bdhs-btn-sm {
    padding: .55rem 1.1rem;
    font-size: .95rem;
}

.bdhs-btn-lg {
    padding: 1rem 1.9rem;
    font-size: 1.05rem;
}

/* --------------------------
   Fokus / Active / Disabled
   -------------------------- */
.bdhs-btn:focus {
    outline: none;
}

.bdhs-btn:focus-visible {
    outline: none;
    box-shadow: var(--bdhs-btn-shadow-hover), var(--bdhs-focus);
}

.bdhs-btn:active {
    transform: translateY(0);
    box-shadow: var(--bdhs-btn-shadow);
}

.bdhs-btn[aria-disabled="true"],
.bdhs-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Weniger Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .bdhs-btn {
        transition: none;
    }

    .bdhs-btn:hover,
    .bdhs-btn:active {
        transform: none;
    }
}



/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.anim-fadeIn .bdhs-text {
    animation: fadeIn 1s ease both;
}

.anim-slideUp .bdhs-text {
    animation: slideUp 1s ease both;
}

.anim-slideLeft .bdhs-text {
    animation: slideLeft 1s ease both;
}

.anim-zoomIn .bdhs-text {
    animation: zoomIn 1s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*--------------------------------------------------------------
# Swiper Controls
--------------------------------------------------------------*/
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.7;
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    transition: transform .25s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.25);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 980px) {
    .bdhs-slider {
        min-height: 500px;
    }

    .bdhs-headline {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .bdhs-subline {
        font-size: 1rem;
    }

    .bdhs-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.4rem;
    }
}

@media (max-width: 640px) {
        .bdhs-slider {
        min-height: 300px;
    }

    .bdhs-content {
        padding: 4em 0 2em 0;
    }

    .bdhs-teaser {
        display: none;
    }

    .bdhs-teaser-mobile {
        display: block;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}



.bdhs-slider .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}