/* =====================================================================
 * BSH Subpage Hero 2 - Styles
 * Slider-Variante des Unterseiten-Heros.
 * ===================================================================== */

.sph2-collage {
    --sph2-vh: 50svh;
    --sph2-ink: #000;
    --sph2-gap: 18px;

    width: 100%;
    background: #fff;
    padding: var(--sph2-gap);
    overflow-x: clip;
}

.sph2-collage,
.sph2-collage *,
.sph2-collage *::before,
.sph2-collage *::after { box-sizing: border-box; }

.sph2-slider {
    position: relative;
    width: 100%;
    height: calc(var(--sph2-vh) - (var(--sph2-gap) * 2));
}

.sph2-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 520ms ease, visibility 520ms ease;
}

.sph2-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.sph2-wrap {
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    gap: var(--sph2-gap);
    grid-template-columns: 1.05fr 1.9fr 1.05fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "lt hero rt"
        "lb hero rb";
    align-items: stretch;
}

.sph2-tile {
    border-radius: 0;
    overflow: hidden;
    background: #f3f6fb;
    position: relative;
    background-size: cover;
    background-position: center;
}

.sph2-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.06));
    pointer-events: none;
    z-index: 2;
}

.sph2-tile__btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.82);
    color: var(--sph2-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    backdrop-filter: blur(8px);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sph2-tile__btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.sph2-lt { grid-area: lt; }
.sph2-lb { grid-area: lb; }
.sph2-rt { grid-area: rt; }
.sph2-rb { grid-area: rb; }

.sph2-hero {
    grid-area: hero;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: #f3f6fb;
    min-height: 100%;
}

.sph2-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sph2-hero__bg::after,
.sph2-hero__gradient {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(900px 600px at 35% 55%, rgba(255,255,255,.88), rgba(255,255,255,.35) 55%, rgba(255,255,255,.10) 100%),
        linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 42%, rgba(255,255,255,.08) 75%);
    pointer-events: none;
}

.sph2-hero__content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: clamp(20px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.sph2-hero__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--sph2-ink);
    font-weight: 750;
    text-wrap: balance;
}

.sph2-hero__sub {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(0,0,0,.62);
    max-width: 50ch;
}

.sph2-hero__cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sph2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    border: 1px solid rgba(15,27,45,.14);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sph2-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.sph2-btn--primary {
    background: var(--sph2-ink);
    border-color: rgba(15,27,45,.18);
    color: #fff;
}

.sph2-btn--primary:hover { background: #0b1626; color: #fff; }

.sph2-btn--ghost {
    background: rgba(255,255,255,.72);
    color: var(--sph2-ink);
}

.sph2-btn--ghost:hover { background: rgba(255,255,255,.88); }

.sph2-nav {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
}

.sph2-arrow,
.sph2-dot {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sph2-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    color: var(--sph2-ink);
}

.sph2-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sph2-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15,27,45,.22);
}

.sph2-dot.is-active {
    background: #eb6a05;
}

@media (max-width: 1180px) {
    .sph2-wrap { grid-template-columns: 1fr 1.5fr 1fr; }
}

@media (max-width: 980px) {
    .sph2-collage { padding: 10px; }

    .sph2-slider {
        height: auto;
        min-height: 0;
    }

    .sph2-slide {
        position: absolute;
    }

    .sph2-slide.is-active {
        position: relative;
    }

    .sph2-wrap {
        height: auto !important;
        min-height: auto !important;
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "hero hero hero hero"
            "lt lb rt rb" !important;
        gap: 10px !important;
    }

    .sph2-hero { min-height: 340px; }
    .sph2-tile { min-height: 120px; }
    .sph2-tile__btn {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
    }
    .sph2-hero__content { padding: clamp(20px, 5vw, 36px); }

    .sph2-hero__bg::after,
    .sph2-hero__gradient {
        background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.45) 60%, rgba(255,255,255,.46) 100%);
    }

    .sph2-hero__sub { color: #000; }
    .sph2-nav { bottom: 12px; }
}

@media (max-width: 600px) {
    .sph2-collage { padding: 8px; }
    .sph2-wrap { gap: 8px !important; }
    .sph2-hero { min-height: 280px; }
    .sph2-tile { min-height: 90px; }
    .sph2-tile__btn {
        min-height: 34px;
        font-size: 12px;
        padding: 0 12px;
    }
    .sph2-hero__title { font-size: clamp(22px, 6vw, 32px); }
    .sph2-hero__sub { font-size: 14px; }
    .sph2-btn { height: 38px; padding: 0 16px; font-size: 13px; }
    .sph2-nav { width: calc(100% - 16px); justify-content: center; }

}

@media (prefers-reduced-motion: reduce) {
    .sph2-slide,
    .sph2-btn { transition: none !important; }
}
