/* =====================================================================
 * BSH Subpage Hero � Styles
 * Bento-Grid Collage: 4 Bilder aussen, Hero mit Text in der Mitte.
 *
 * Autor: Luca Petersen | Com&Sons  |  https://comandsons.com
 * ===================================================================== */

/* -- Variables ---------------------------------------- */

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

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

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

/* -- Grid --------------------------------------------- */

.sph-wrap {
    width: 100%;
    height: calc(var(--sph-vh) - (var(--sph-gap) * 2));
    margin: 0;
    display: grid;
    gap: var(--sph-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;
}

/* -- Tiles (Image) ------------------------------------ */

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

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

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

/* -- Hero (Mitte) ------------------------------------- */

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

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

.sph-hero__bg::after,
.sph-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;
}

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

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

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

/* -- CTAs --------------------------------------------- */

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

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

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

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

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

/* -- Responsive --------------------------------------- */

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

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

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

    .sph-hero {
        min-height: 340px;
    }

    .sph-tile {
        min-height: 120px;
    }

    .sph-hero__content {
        padding: clamp(20px, 5vw, 36px);
    }

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

    .sph-hero__sub {
        color: #000;
    }
}

@media (max-width: 600px) {
    .sph-collage { padding: 8px; }

    .sph-wrap {
        gap: 8px !important;
    }

    .sph-hero {
        min-height: 280px;
    }

    .sph-tile {
        min-height: 90px;
    }

    .sph-hero__title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .sph-hero__sub {
        font-size: 14px;
    }

    .sph-btn {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

}

/* -- Reduced motion ----------------------------------- */

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