/*
Layer: 05-blocks
Datei: carousel-slider.css
*/

/* ============================================================
   🎠 ADIUMENTO – Carousel Slider
   PREMIUM FLEX VERSION (v3 FINAL)
   ============================================================ */

/* ============================================================
   0) Plugin-Fixes (Inline-Styles & Sichtbarkeit)
   ============================================================ */

.carousel-slider-hero__cell__inner[style] {
    padding: 3.8rem 4.5rem !important;
}

.carousel-slider-hero__cell__content[style] {
    max-width: none !important;
    display: block !important;
}

/* Plugin: hidden/animated überschreiben */
.carousel-slider-hero__cell__content.hidden {
    display: block !important;
    opacity: 1 !important;
}

.carousel-slider-hero__cell__content.animated {
    animation: none !important;
}

/* ============================================================
   1) Grundstruktur (Flex + zentrale 85%-Breite)
   ============================================================ */

.carousel-slider-outer-hero-banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-slider-hero__cell {
    position: relative;
    width: 100%;
    height: var(--cell-height, 480px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Zentrale flexible Breite */
.carousel-slider-hero__cell__inner {
    width: 100%;
    max-width: min(1200px, 85%);
    margin: 0 auto;

    padding: 3.8rem 4.5rem;

    display: flex;
    align-items: center;

    font-family: var(--font-body);
    position: relative;
    z-index: 5;
}

/* Content-Block */
.carousel-slider-hero__cell__content {
    max-width: 650px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

/* Aktiv */
.owl-item.active .carousel-slider-hero__cell__content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   2) Background & Overlay
   ============================================================ */

.carousel-slider-hero__cell__background {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(0.78) contrast(1.05);
    z-index: 1;
}

.carousel-slider-hero__cell__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,25,45,0.55),
        rgba(10,25,45,0.35)
    );
    z-index: 2;
}

/* ============================================================
   3) Alignment – left / right / center
   ============================================================ */

/* LEFT */
.carousel-slider--text-left .carousel-slider-hero__cell__inner {
    justify-content: flex-start;
}

.carousel-slider--text-left .carousel-slider-hero__cell__content {
    text-align: left;
    margin-right: auto;
}

/* RIGHT */
.carousel-slider--text-right .carousel-slider-hero__cell__inner {
    justify-content: flex-end;
}

.carousel-slider--text-right .carousel-slider-hero__cell__content {
    text-align: right;
    margin-left: auto;
}

/* CENTER */
.carousel-slider--text-center .carousel-slider-hero__cell__inner {
    justify-content: center;
}

.carousel-slider--text-center .carousel-slider-hero__cell__content {
    text-align: center;
    margin: 0 auto;
}

/* Button-Ausrichtung */
.carousel-slider--text-left .carousel-slider-hero__cell__buttons {
    display: flex;
    justify-content: flex-start;
}

.carousel-slider--text-right .carousel-slider-hero__cell__buttons {
    display: flex;
    justify-content: flex-end;
}

.carousel-slider--text-center .carousel-slider-hero__cell__buttons {
    display: flex;
    justify-content: center;
}

/* ============================================================
   4) Typografie – Premium
   ============================================================ */

.carousel-slider-hero__cell__heading {
    font-size: var(--cs-heading-font-size, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--color-white);
    margin-bottom: 18px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.carousel-slider-hero__cell__description {
    font-size: var(--cs-description-font-size, 22px);
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ============================================================
   5) CTA BUTTONS – PREMIUM GLASSMORPHISM (v3 FINAL)
   ============================================================ */

.carousel-slider-hero__cell__buttons a.button,
.carousel-slider-hero__cell__buttons a.cs-hero-button {
    all: unset;
    display: inline-block;
}

.carousel-slider-hero__cell__buttons a {
    padding: 14px 42px;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: var(--color-white) !important;

    /* === Glassmorphism Core === */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);

    border: 1px solid rgba(255,255,255,0.35);

    /* Premium Edge Shine + Depth */
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.25),
        inset 0 -1px 1px rgba(0,0,0,0.12),
        0 6px 16px rgba(0,0,0,0.35);

    text-decoration: none !important;
    cursor: pointer;
    transition: all .35s ease;
}

/* Hover */
.carousel-slider-hero__cell__buttons a:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255,255,255,0.55);

    transform: translateY(-3px) scale(1.03);

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.45),
        inset 0 -1px 1px rgba(0,0,0,0.12),
        0 10px 22px rgba(0,0,0,0.45),
        0 0 20px var(--color-accent);
}

/* ============================================================
   6) Navigation Arrows
   ============================================================ */

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-slider-nav-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-white);
}

/* ============================================================
   7) Pagination Dots
   ============================================================ */

.owl-dots {
    position: absolute;
    bottom: 32px;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    transition: .3s ease;
}

.owl-dot.active span {
    background: var(--color-accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ============================================================
   8) Responsive
   ============================================================ */

@media (max-width: 992px) {

    .carousel-slider-hero__cell {
        --cell-height: 380px;
    }

    .carousel-slider-hero__cell__inner,
    .carousel-slider-hero__cell__inner[style] {
        padding: 2rem 1.75rem !important;
        justify-content: center !important;
    }

    .carousel-slider-hero__cell__content {
        margin: 0 auto !important;
        text-align: center !important;
    }

    .carousel-slider-hero__cell__buttons {
        justify-content: center !important;
    }

    .carousel-slider-hero__cell__heading {
        font-size: clamp(1.75rem, 4.2vw, 2.375rem);
        line-height: 1.2;
    }

    .carousel-slider-hero__cell__description {
        font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
        line-height: 1.58;
        max-width: 36em;
    }
}

@media (max-width: 576px) {

    .carousel-slider-hero__cell {
        --cell-height: 34rem;
        height: 34rem !important;
        min-height: 34rem;
        overflow: hidden;
        align-items: flex-start;
    }

    .carousel-slider-hero__cell__inner,
    .carousel-slider-hero__cell__inner[style] {
        position: relative !important;
        inset: auto !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.25rem 1rem 2.75rem !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-slider-hero__cell__content {
        max-width: 100%;
    }

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

    /* Plugin-frontend.css setzt auf schmalen Viewports kleinere Werte – nach Theme geladen. */
    .carousel-slider-hero__cell__heading,
    .carousel-slider-hero__cell__heading[style] {
        --cs-heading-font-size: clamp(1.625rem, 5.2vw, 1.875rem);
        font-size: clamp(1.625rem, 5.2vw, 1.875rem) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em;
        margin-bottom: 0.65rem;
    }

    .carousel-slider-hero__cell__description,
    .carousel-slider-hero__cell__description[style] {
        --cs-description-font-size: var(--adi-font-large);
        font-size: var(--adi-font-large) !important;
        line-height: 1.62 !important;
        margin-bottom: 0.9rem;
        max-width: none;
    }

    .carousel-slider-hero__cell__buttons a {
        min-width: 0;
        width: 100%;
        max-width: 20rem;
        padding: 0.7rem 1.25rem !important;
        font-size: var(--adi-font-small);
    }

    .owl-dots {
        bottom: 16px;
    }
}

/* ============================================================
   FIX: Plugin-Button-Spans überschreiben (zwingend!)
   ============================================================ */

/* Plugin-Hülle um <a>: nur Link stylen, kein zweiter Kasten (v. a. Button 2) */
.carousel-slider-hero__cell__button__one,
.carousel-slider-hero__cell__button__two,
.carousel-slider-hero__cell__button__one[style],
.carousel-slider-hero__cell__button__two[style] {
    all: unset !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.carousel-slider-hero__cell__buttons .button.cs-hero-button,
.carousel-slider-hero__cell__buttons .button.cs-hero-button.cs-hero-button-stroke {
    background: transparent !important;
    border: none !important;
}

.carousel-slider-hero__cell__buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

/* ============================================================
   FIX: Der <a>-Tag wird zum "echten" Button
   ============================================================ */

.carousel-slider-hero__cell__buttons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 48px;
    padding: 12px 32px !important;

    border-radius: 12px !important;

    /* Glass-Kern */
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;

    color: var(--color-white) !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;

    text-decoration: none !important;
    cursor: pointer;

    /* Glass Shine */
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.35),
        0 6px 14px rgba(0,0,0,0.35),
        0 0 14px rgba(255,255,255,0.15);

    transition: all .32s ease !important;
}

/* ============================================================
   Hover – volle Glassmorphism Schönheit
   ============================================================ */

.carousel-slider-hero__cell__buttons a:hover {
    background: rgba(255,255,255,0.30) !important;
    border-color: rgba(255,255,255,0.65) !important;

    transform: translateY(-3px) scale(1.03) !important;

    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.55),
        0 10px 24px rgba(0,0,0,0.55),
        0 0 26px var(--color-accent);
}

/* ============================================================
   FIX: Rechte Ausrichtung korrekt gruppieren
   ============================================================ */

/* Container rechtsbündig, aber nicht auseinandergezogen */
.carousel-slider--text-right .carousel-slider-hero__cell__inner {
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Contentblock gemeinsam nach rechts */
.carousel-slider--text-right .carousel-slider-hero__cell__content {
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

/* Buttons unter dem Text rechtsbündig */
.carousel-slider--text-right .carousel-slider-hero__cell__buttons {
    width: 100%;
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 10px;
}

