/*
 * Almind Auto – Hero-slider
 * Kun styling til forsidens slider.
 */

.aa-hero-slider {
    position: relative;
}

.aa-hero-slider .aa-hero-slide {
    width: 100%;
}

.aa-hero-slider-navigation {
    position: absolute;
    left: 50%;
    bottom: 17px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aa-hero-slider-navigation[hidden] {
    display: none !important;
}

.aa-hero-slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.aa-hero-slider-dot.is-active {
    background: #f04450;
    border-color: #f04450;
    transform: scale(1.15);
}

.aa-hero-slider-dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.aa-hero-offer-title {
    margin: 18px 0;
    font-size: clamp(36px,4.3vw,60px);
    line-height: 1.08;
    letter-spacing: -2px;
    color: #fff;
}

.aa-hero-offer-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 25px;
}

.aa-hero-offer-prices del {
    color: #aeb7c3;
    font-size: 20px;
}

.aa-hero-offer-prices strong {
    color: #fff;
    font-size: clamp(30px,4vw,48px);
    line-height: 1.1;
}

.aa-hero-offer-saving {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 6px;
    background: #c31925;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.aa-hero-offer-visual {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: #222831;
}

.aa-hero-offer-visual > img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.aa-hero-offer-fallback {
    display: grid;
    place-items: center;
    min-height: 350px;
    padding: 40px;
}

.aa-hero-offer-fallback img {
    max-width: 220px;
    max-height: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 800px) {
    .aa-hero-offer-title {
        font-size: clamp(34px,8vw,48px);
        letter-spacing: -1.5px;
    }

    .aa-hero-offer-visual > img {
        height: 260px;
    }

    .aa-hero-offer-fallback {
        min-height: 260px;
    }

    .aa-hero-slider .aa-home-hero-grid {
        padding-bottom: 65px;
    }
}

/* ==================================================
   HERO SLIDER – CROSSFADE
   To slides deler samme layoutområde.
   ================================================== */

.aa-hero-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.aa-hero-slider > .aa-hero-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.aa-hero-slider > .aa-hero-slide[hidden] {
    display: block !important;
}

.aa-hero-slider > .aa-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aa-hero-slider.aa-hero-slider-ready > .aa-hero-slide {
    transition:
        opacity .7s ease,
        visibility 0s linear .7s;
}

.aa-hero-slider.aa-hero-slider-ready > .aa-hero-slide.is-active {
    transition:
        opacity .7s ease,
        visibility 0s linear 0s;
}

.aa-hero-slider > .aa-hero-slider-navigation {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
}

@media (prefers-reduced-motion: reduce) {
    .aa-hero-slider.aa-hero-slider-ready > .aa-hero-slide,
    .aa-hero-slider-dot {
        transition: none !important;
    }
}
