/* ==================================================
   Hero Slider
================================================== */

.hegau-slider{
    position:relative;
    width:100%;
    height:620px;
    overflow:hidden;
    border-radius:24px;
    background:#111;
}

.hegau-slider__image{
    position:absolute;
    inset:0;
}

.hegau-slider__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hegau-slider__overlay{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.05) 0%,
            rgba(0,0,0,.25) 40%,
            rgba(0,0,0,.75) 100%
        );
}

.hegau-slider__content{

    position:absolute;

    left:60px;
    bottom:60px;

    width:60%;
    z-index:5;

    color:#fff;

}

.hegau-slider__badge{

    display:inline-block;

    padding:9px 18px;

    background:transparent;

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

    border-radius:8px;

    color:#fff;

    font-size:15px;

    line-height:1.2;

    font-weight:700;

    letter-spacing:0.2px;

    margin-bottom:20px;

    box-shadow:0 2px 8px rgba(0, 0, 0, 0.18);

}

.hegau-slider__title{

    margin:0;

    font-size:52px;

    line-height:1.08;

    font-weight:800;

}

.hegau-slider__text{

    margin:24px 0 32px;

    font-size:20px;

    line-height:1.6;

    opacity:.95;

}

.hegau-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:16px 30px;

    border-radius:999px;

    background:#0B67D0;

    color:#fff;

    text-decoration:none;

    font-weight:700;

    transition:.25s;

}

.hegau-btn:hover{

    background:#0955aa;

}

.hegau-slider__prev,
.hegau-slider__next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.25);

    backdrop-filter:blur(8px);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    transition:.2s;

    z-index:6;

}

.hegau-slider__prev:hover,
.hegau-slider__next:hover{

    background:#fff;

    color:#111;

}

.hegau-slider__prev{

    left:25px;

}

.hegau-slider__next{

    right:25px;

}

.hegau-slider__pagination{

    position:absolute;

    left:50%;

    bottom:25px;

    transform:translateX(-50%);

    display:flex;

    gap:10px;

    z-index:6;

}

.hegau-slider__pagination span{

    width:11px;

    height:11px;

    border-radius:50%;

    background:rgba(255,255,255,.35);

}

.hegau-slider__pagination span.active{

    background:#fff;

}

@media(max-width:1200px){

.hegau-slider{
height:520px;
}

.hegau-slider__content{
left:35px;
right:35px;
width:auto;
bottom:35px;
}

.hegau-slider__title{
font-size:38px;
}

.hegau-slider__text{
font-size:17px;
}

}
/* ==================================================
   Desktop: elegant slider arrows + readable hero text
   ================================================== */

@media (min-width: 1201px) {

    /* Keep hero text safely away from the left arrow. */
    .hegau-slider__content {
        left: 95px;
        width: 57%;
    }

    /* Strong, clean text over photographic backgrounds. */
    .hegau-slider__title,
    .hegau-slider__text {
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    }

    /* Minimal chevron arrows — no circle, no background. */
    .hegau-slider__prev,
    .hegau-slider__next {
        width: 42px;
        height: 64px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        color: transparent;
        font-size: 0;
        opacity: .9;
        transition: opacity .2s, transform .2s;
    }

    .hegau-slider__prev::before,
    .hegau-slider__next::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 25px;
        border-style: solid;
        border-color: rgba(255, 255, 255, .95);
        border-width: 0 4px 4px 0;
    }

    .hegau-slider__prev::before {
        transform: translate(-35%, -50%) rotate(135deg);
    }

    .hegau-slider__next::before {
        transform: translate(-65%, -50%) rotate(-45deg);
    }

    .hegau-slider__prev {
        left: 25px;
    }

    .hegau-slider__next {
        right: 25px;
    }

    .hegau-slider__prev:hover,
    .hegau-slider__next:hover {
        background: transparent;
        color: transparent;
        opacity: 1;
    }

    .hegau-slider__prev:hover {
        transform: translateY(-50%) translateX(-2px);
    }

    .hegau-slider__next:hover {
        transform: translateY(-50%) translateX(2px);
    }
}

/* ==========================================================
   HEGAU24 — DYNAMIC HERO SLIDES
   ========================================================== */

/* Each slide occupies the entire hero area. */

.hegau-slider__slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .45s ease,
        visibility .45s ease;

    z-index: 1;
}

.hegau-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Keep the image and overlay inside every slide. */

.hegau-slider__slide .hegau-slider__image {
    position: absolute;
    inset: 0;
}

/* Content belongs above the image. */

.hegau-slider__slide .hegau-slider__content {
    z-index: 5;
}

/* Navigation buttons remain above the slides. */

.hegau-slider__prev,
.hegau-slider__next {
    z-index: 10;
}

/* Pagination buttons. */

.hegau-slider__pagination {
    z-index: 10;
}

.hegau-slider__pagination button {
    appearance: none;

    width: 11px;
    height: 11px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .35);

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.hegau-slider__pagination button.active {
    background: #fff;
    transform: scale(1.12);
}

.hegau-slider__pagination button:hover {
    background: rgba(255, 255, 255, .8);
}

.hegau-slider__pagination button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Prevent the article element from affecting the hero layout. */

.hegau-slider__slide h2,
.hegau-slider__slide p {
    position: relative;
}

/* Mobile adjustments for dynamic slides. */

@media (max-width: 760px) {

    .hegau-slider__slide .hegau-slider__content {
        left: 35px;
        right: 35px;
        width: auto;
    }
}

@media (max-width: 480px) {

    .hegau-slider__slide .hegau-slider__content {
        left: 22px;
        right: 22px;
        bottom: 28px;
    }

    .hegau-slider__pagination {
        bottom: 18px;
    }
}
