/* =========================================================
   BOGNEREI – STARTSEITEN-SLIDESHOW
   Datei: /bognerei-neu/css/slideshow.css
========================================================= */

.home-slider {
    position: relative;
    width: 100%;
    height: clamp(380px, 46vw, 640px);
    min-height: 380px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #18271f;
    border-bottom: 1px solid #b19956;
}

.home-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 700ms ease,
        visibility 700ms ease;
}

.home-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.home-slide-link {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #18271f;
    color: #ffffff;
    text-decoration: none;
}

.home-slide img {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    visibility: visible;
}

/* Grüner Schleier für alle Slides */

.home-slide-link::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(
        90deg,
        rgba(16, 27, 21, 0.96) 0%,
        rgba(20, 34, 26, 0.88) 28%,
        rgba(24, 39, 31, 0.62) 50%,
        rgba(24, 39, 31, 0.28) 72%,
        rgba(24, 39, 31, 0.14) 100%
    );
    pointer-events: none;
}

/* Freigestelltes Produktbild */

.home-slide--product,
.home-slide--product .home-slide-link {
    background: #e8eee9;
}

.home-slide--product img {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 2.8vw, 44px);
    object-fit: contain;
    object-position: 74% center;
    background: transparent;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
}

/* Derselbe grüne Schleier wie bei den anderen Bildern */

.home-slide--product .home-slide-link::after {
    background: linear-gradient(
        90deg,
        rgba(16, 27, 21, 0.96) 0%,
        rgba(20, 34, 26, 0.88) 28%,
        rgba(24, 39, 31, 0.62) 50%,
        rgba(24, 39, 31, 0.28) 72%,
        rgba(24, 39, 31, 0.14) 100%
    );
}

.home-slide-caption {
    position: absolute;
    z-index: 2;
    left: max(28px, calc((100% - 1180px) / 2));
    bottom: clamp(64px, 8vw, 104px);
    width: min(600px, calc(100% - 140px));
}

.home-slide-kicker {
    margin: 0 0 10px;
    color: #dec778;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-slide-caption h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4.8vw, 4.25rem);
    line-height: 1.04;
    text-wrap: balance;
}

.home-slide-caption p:not(.home-slide-kicker) {
    max-width: 530px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.98rem, 1.5vw, 1.13rem);
    line-height: 1.58;
}

.home-slide-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 11px 19px;
    border: 1px solid #d8c47d;
    border-radius: 3px;
    background: rgba(34, 51, 41, 0.88);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.home-slide-link:hover .home-slide-button,
.home-slide-link:focus-visible .home-slide-button {
    background: #d8c47d;
    color: #223329;
    transform: translateY(-2px);
}

.home-slider-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(20, 34, 26, 0.78);
    color: #ffffff;
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-slider-control:hover,
.home-slider-control:focus-visible {
    border-color: #d8c47d;
    background: #223329;
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.home-slider-prev {
    left: 18px;
}

.home-slider-next {
    right: 18px;
}

.home-slider-dots {
    position: absolute;
    z-index: 4;
    right: max(28px, calc((100% - 1180px) / 2));
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.home-slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-slider-dot:hover,
.home-slider-dot:focus-visible {
    border-color: #d8c47d;
    transform: scale(1.2);
    outline: none;
}

.home-slider-dot[aria-current="true"] {
    border-color: #d8c47d;
    background: #d8c47d;
}

.home-slider-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .home-slider {
        height: clamp(440px, 70vw, 560px);
        min-height: 440px;
    }

    .home-slide-caption {
        left: 70px;
        bottom: 70px;
        width: min(560px, calc(100% - 140px));
    }

    .home-slide--product img {
        padding: 22px;
        object-position: 70% center;
    }
}

@media (max-width: 720px) {
    .home-slider {
        height: 520px;
        min-height: 520px;
    }

    .home-slide-link::after,
    .home-slide--product .home-slide-link::after {
        background: linear-gradient(
            0deg,
            rgba(16, 27, 21, 0.98) 0%,
            rgba(16, 27, 21, 0.88) 38%,
            rgba(16, 27, 21, 0.48) 64%,
            rgba(16, 27, 21, 0.14) 100%
        );
    }

    .home-slide-caption {
        left: 24px;
        bottom: 72px;
        width: calc(100% - 48px);
    }

    .home-slide-caption h2 {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    .home-slider-control {
        top: 40%;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .home-slider-prev {
        left: 10px;
    }

    .home-slider-next {
        right: 10px;
    }

    .home-slider-dots {
        right: auto;
        left: 24px;
        bottom: 24px;
    }

    .home-slide--product img {
        padding: 18px;
        object-position: center 20%;
    }
}

@media (max-width: 420px) {
    .home-slider {
        height: 500px;
        min-height: 500px;
    }

    .home-slide-caption {
        bottom: 66px;
    }

    .home-slide-caption p:not(.home-slide-kicker) {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .home-slide-button {
        min-height: 42px;
        margin-top: 17px;
        padding: 9px 15px;
        font-size: 0.92rem;
    }

    .home-slide--product img {
        padding: 14px;
        object-position: center 18%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-slide,
    .home-slider-control,
    .home-slider-dot,
    .home-slide-button {
        transition: none;
    }
}