/* =============================================================
   Betonwerk Wernau – Hero Slider
   ============================================================= */

/* ── Basis ── */
.bw-hero-slider {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #1a3560;
    font-family: inherit;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Track ── */
.bw-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Single Slide ── */
.bw-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0s;
    pointer-events: none;
}

.bw-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ── Transition: Fade (default) ── */
.bw-effect-fade .bw-slide {
    transition: opacity 0.8s ease;
}

/* ── Transition: Slide ── */
.bw-effect-slide .bw-slides-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(.77,0,.18,1);
}

.bw-effect-slide .bw-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

.bw-effect-slide .bw-slide.active {
    z-index: auto;
}

/* ── Transition: Zoom ── */
.bw-effect-zoom .bw-slide {
    transition: opacity 0.8s ease;
}

.bw-effect-zoom .bw-slide.active .bw-slide-bg {
    animation: bwZoomIn 6s ease forwards;
}

@keyframes bwZoomIn {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ── Background ── */
.bw-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* ── Overlay ── */
.bw-slide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ── Content Wrapper ── */
.bw-slide-content-wrapper {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    padding: 0 max(20px, calc((100% - 1600px) / 2));
}

/* Position Variants */
.bw-pos-bottom-left   { align-items: flex-end;   justify-content: flex-start;  padding-bottom: 6%; }
.bw-pos-bottom-center { align-items: flex-end;   justify-content: center;      padding-bottom: 6%; }
.bw-pos-bottom-right  { align-items: flex-end;   justify-content: flex-end;    padding-bottom: 6%; }
.bw-pos-center-left   { align-items: center;     justify-content: flex-start;  }
.bw-pos-center-center { align-items: center;     justify-content: center;      text-align: center; }
.bw-pos-center-right  { align-items: center;     justify-content: flex-end;    }

/* ── Content Box ── */
.bw-slide-content {
    background-color: rgba(26, 53, 96, 0.90);
    padding: 40px 48px;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;

    /* Slide-in animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0s, transform 0s;
}

.bw-slide.active .bw-slide-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease 0.35s, transform 0.55s ease 0.35s;
}

/* ── Subtitle ── */
.bw-slide-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #F5C518;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* ── Heading ── */
.bw-slide-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 14px 0;
}

.bw-slide-heading strong {
    color: #F5C518;
}

/* ── Description ── */
.bw-slide-description {
    font-size: clamp(0.82rem, 1.3vw, 0.93rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin: 0 0 26px 0;
}

/* ── Button Wrap ── */
.bw-slide-btn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Button Base ── */
.bw-slide-btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
    white-space: nowrap;
}

.bw-slide-btn:hover {
    transform: translateY(-2px);
}

/* Primary – Gelb */
.bw-btn-primary {
    background-color: #F5C518;
    color: #1a1a2e;
    border-color: #F5C518;
}

.bw-btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #1a1a2e;
}

/* Secondary – Weiß */
.bw-btn-secondary {
    background-color: #ffffff;
    color: #1a3560;
    border-color: #ffffff;
}

.bw-btn-secondary:hover {
    background-color: #e8ecf2;
    border-color: #e8ecf2;
    color: #1a3560;
}

/* Outline */
.bw-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.bw-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ── Dots Navigation ── */
.bw-dots-nav {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.bw-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.50);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
    outline: none;
}

.bw-dot:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

.bw-dot.active {
    background-color: #ffffff;
    transform: scale(1.25);
}

.bw-dot:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.78);
}

/* ── Arrow Navigation ── */
.bw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, border-color 0.22s ease;
    outline: none;
}

.bw-arrow:hover {
    background: rgba(245, 197, 24, 0.85);
    border-color: #F5C518;
    color: #1a1a2e;
}

.bw-arrow:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

.bw-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bw-arrow-prev { left: 20px; }
.bw-arrow-next { right: 20px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bw-hero-slider {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .bw-hero-slider {
        height: 420px;
    }

    .bw-slide-content {
        padding: 28px 28px;
        max-width: 90%;
    }

    .bw-pos-bottom-left,
    .bw-pos-bottom-center,
    .bw-pos-bottom-right {
        padding-bottom: 50px;
        justify-content: flex-start;
    }

    .bw-slide-heading {
        font-size: 1.3rem;
    }

    .bw-slide-description {
        font-size: 0.82rem;
    }

    .bw-arrow {
        width: 36px;
        height: 36px;
    }

    .bw-arrow svg {
        width: 17px;
        height: 17px;
    }
}

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

    .bw-slide-content {
        padding: 22px 20px;
    }

    .bw-slide-btn {
        padding: 11px 20px;
        font-size: 0.82rem;
    }

    .bw-dots-nav {
        bottom: 14px;
    }
}
