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

.home-slider {
    position: relative;

    --slider-edge: max(
        28px,
        calc((100% - 1180px) / 2)
    );

    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
========================================================= */

.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;
}


.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%
    );
}


/* =========================================================
   TEXTE
========================================================= */

.home-slide-caption {
    position: absolute;
    z-index: 2;

    left: max(
        28px,
        calc((100% - 1180px) / 2)
    );

    bottom: clamp(78px, 8vw, 110px);

    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;
}


/* =========================================================
   BUTTON IM SLIDE
========================================================= */

.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);
}




/* =========================================================
   BOGENBAUBUCH – RUNDER STICKER LINKS OBEN
========================================================= */

.home-slider-book-sticker {
    position: absolute;
    z-index: 4;

    top: 18px;
    left: 18px;

    width: 112px;
    height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 10px;

    border: 2px solid rgba(216, 196, 125, 0.96);
    border-radius: 50%;

    background: rgba(245, 241, 232, 0.94);
    color: #223329;

    text-align: center;
    text-decoration: none;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.home-slider-book-sticker-cover {
    position: static;

    display: block;

    width: auto;
    height: 50px;
    max-width: 42px;

    margin: 0;

    object-fit: contain;

    box-shadow:
        0 3px 8px rgba(34, 51, 41, 0.20);
}


.home-slider-book-sticker-text {
    display: block;

    color: #223329;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
}


.home-slider-book-sticker:hover,
.home-slider-book-sticker:focus-visible {
    background: #f5f1e8;
    color: #223329;

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

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24);
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 900px) {

    .home-slider-book-sticker {
        top: 14px;
        left: 14px;

        width: 100px;
        height: 100px;

        padding: 9px;
    }

    .home-slider-book-sticker-cover {
        height: 44px;
        max-width: 38px;
    }

    .home-slider-book-sticker-text {
        font-size: 0.67rem;
    }

}


/* ---------------------------------------------------------
   HANDY
--------------------------------------------------------- */

@media (max-width: 720px) {

    .home-slider-book-sticker {
        top: 10px;
        left: 10px;

        width: 86px;
        height: 86px;

        gap: 3px;
        padding: 7px;

        border-width: 1.5px;

        box-shadow:
            0 5px 14px rgba(0, 0, 0, 0.18);
    }

    .home-slider-book-sticker-cover {
        height: 36px;
        max-width: 30px;
    }

    .home-slider-book-sticker-text {
        font-size: 0.59rem;
    }

}


/* ---------------------------------------------------------
   KLEINE HANDYS
--------------------------------------------------------- */

@media (max-width: 420px) {

    .home-slider-book-sticker {
        width: 78px;
        height: 78px;

        padding: 6px;
    }

    .home-slider-book-sticker-cover {
        height: 32px;
        max-width: 27px;
    }

    .home-slider-book-sticker-text {
        font-size: 0.54rem;
    }

}


/* ---------------------------------------------------------
   REDUZIERTE BEWEGUNG
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .home-slider-book-sticker {
        transition: none;
    }

}


/* =========================================================
   SLIDESHOW-PFEILE
   NEU: unten neben den Navigationspunkten
========================================================= */

.home-slider-control {
    position: absolute;
    z-index: 5;

    top: auto;
    bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 50%;

    background: rgba(20, 34, 26, 0.82);
    color: #ffffff;

    font: inherit;
    font-size: 1.25rem;
    line-height: 1;

    cursor: pointer;
    touch-action: manipulation;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.18);

    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: scale(1.06);

    outline: 2px solid #d8c47d;
    outline-offset: 2px;
}


/*
|--------------------------------------------------------------------------
| Pfeile rechts unten
|--------------------------------------------------------------------------
*/

.home-slider-next {
    left: auto;

    right: var(--slider-edge);
}


.home-slider-prev {
    left: auto;

    right: calc(
        var(--slider-edge) + 48px
    );
}


/* =========================================================
   SLIDESHOW-PUNKTE
   Gemeinsam mit den Pfeilen unten rechts
========================================================= */

.home-slider-dots {
    position: absolute;
    z-index: 5;

    right: calc(
        var(--slider-edge) + 104px
    );

    bottom: 27px;

    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;
}


/* =========================================================
   STATUS FÜR SCREENREADER
========================================================= */

.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;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .home-slider {
        --slider-edge: 20px;

        height: clamp(440px, 70vw, 560px);
        min-height: 440px;
    }


    .home-slide-caption {
        left: 48px;

        bottom: 82px;

        width: min(
            560px,
            calc(100% - 96px)
        );
    }


    .home-slide--product img {
        padding: 22px;

        object-position: 70% center;
    }


    /*
    |--------------------------------------------------------------------------
    | Steuerung unten
    |--------------------------------------------------------------------------
    */

    .home-slider-control {
        bottom: 14px;

        width: 38px;
        height: 38px;

        font-size: 1.2rem;
    }


    .home-slider-next {
        right: var(--slider-edge);
    }


    .home-slider-prev {
        right: calc(
            var(--slider-edge) + 48px
        );
    }


    .home-slider-dots {
        right: calc(
            var(--slider-edge) + 104px
        );

        bottom: 27px;
    }

}


/* =========================================================
   HANDY
========================================================= */

@media (max-width: 720px) {

    .home-slider {
        --slider-edge: 16px;

        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%
        );
    }


    /*
    |--------------------------------------------------------------------------
    | Textbereich
    |--------------------------------------------------------------------------
    |
    | Der Text endet deutlich oberhalb der Slideshow-Steuerung.
    |
    */

    .home-slide-caption {
        left: 24px;
        right: 24px;

        bottom: 88px;

        width: auto;
    }


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


    /*
    |--------------------------------------------------------------------------
    | Pfeile unten rechts
    |--------------------------------------------------------------------------
    */

    .home-slider-control {
        bottom: 14px;

        width: 36px;
        height: 36px;

        font-size: 1.15rem;
    }


    .home-slider-next {
        right: var(--slider-edge);
    }


    .home-slider-prev {
        right: calc(
            var(--slider-edge) + 44px
        );
    }


    /*
    |--------------------------------------------------------------------------
    | Navigationspunkte direkt links neben den Pfeilen
    |--------------------------------------------------------------------------
    */

    .home-slider-dots {
        right: calc(
            var(--slider-edge) + 96px
        );

        bottom: 26px;

        gap: 8px;
    }


    .home-slider-dot {
        width: 11px;
        height: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Produktbild
    |--------------------------------------------------------------------------
    */

    .home-slide--product img {
        padding: 18px;

        object-position: center 20%;
    }

}


/* =========================================================
   KLEINE HANDYS
========================================================= */

@media (max-width: 420px) {

    .home-slider {
        --slider-edge: 12px;

        height: 500px;
        min-height: 500px;
    }


    .home-slide-caption {
        left: 20px;
        right: 20px;

        bottom: 82px;
    }


    .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;
    }


    /*
    |--------------------------------------------------------------------------
    | Kompakte Steuerung unten
    |--------------------------------------------------------------------------
    */

    .home-slider-control {
        bottom: 12px;

        width: 34px;
        height: 34px;

        font-size: 1.05rem;
    }


    .home-slider-next {
        right: var(--slider-edge);
    }


    .home-slider-prev {
        right: calc(
            var(--slider-edge) + 41px
        );
    }


    .home-slider-dots {
        right: calc(
            var(--slider-edge) + 89px
        );

        bottom: 23px;

        gap: 7px;
    }


    .home-slider-dot {
        width: 10px;
        height: 10px;
    }


    .home-slide--product img {
        padding: 14px;

        object-position: center 18%;
    }

}


/* =========================================================
   SEHR SCHMALE HANDYS
========================================================= */

@media (max-width: 360px) {

    /*
    |--------------------------------------------------------------------------
    | Auf sehr schmalen Geräten rückt die gesamte Steuerung etwas zusammen.
    |--------------------------------------------------------------------------
    */

    .home-slider-control {
        width: 32px;
        height: 32px;

        font-size: 1rem;
    }


    .home-slider-prev {
        right: calc(
            var(--slider-edge) + 38px
        );
    }


    .home-slider-dots {
        right: calc(
            var(--slider-edge) + 82px
        );

        gap: 6px;
    }


    .home-slider-dot {
        width: 9px;
        height: 9px;
    }

}


/* =========================================================
   REDUZIERTE BEWEGUNG
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-slide,
    .home-slider-control,
    .home-slider-dot,
    .home-slide-button {
        transition: none;
    }

}