/* =========================================================
   MOTIVDETAIL /motive/{slug}
   Produktkarten kommen bewusst 1:1 aus /css/kategorie.css
========================================================= */

.motif-page{
    --motif-accent:var(--accent, #c62828);
    min-height:60vh;
    padding:0 0 72px;
    color:var(--text, #171a20);
}

.motif-wrap{
    width:min(var(--wrap, 1280px), calc(100% - 32px));
    margin:0 auto;
}

.motif-eyebrow{
    display:block;
    margin:0 0 9px;
    color:var(--motif-accent);
    font-size:12px;
    font-weight:900;
    letter-spacing:.11em;
    line-height:1.2;
    text-transform:uppercase;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.motif-hero{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:30px;
    margin-bottom:46px;
    padding:38px 40px;
    overflow:hidden;
    border:1px solid #e3e8ef;
    border-radius:28px;
    background:
        radial-gradient(
            circle at 96% 0%,
            rgba(198,40,40,.10) 0%,
            rgba(198,40,40,0) 38%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f9fc 100%
        );
    box-shadow:
        0 14px 34px rgba(20,22,28,.05),
        0 28px 70px rgba(20,22,28,.05);
}

.motif-hero.has-image{
    grid-template-columns:minmax(0,1fr) 250px;
    align-items:center;
}

.motif-hero::after{
    content:"";
    position:absolute;
    top:-72px;
    right:-70px;
    width:210px;
    height:210px;
    border:1px solid rgba(198,40,40,.10);
    border-radius:50%;
    box-shadow:
        0 0 0 32px rgba(198,40,40,.025),
        0 0 0 64px rgba(198,40,40,.018);
    pointer-events:none;
}

.motif-hero__content{
    position:relative;
    z-index:2;
    min-width:0;
}

.motif-hero h1{
    margin:0;
    color:#15171b;
    font-size:clamp(34px, 4.2vw, 58px);
    font-weight:900;
    letter-spacing:-.035em;
    line-height:1.02;
}

.motif-hero__lead{
    width:100%;
    max-width:900px;
    margin:16px 0 0;
    color:#5e6876;
    font-size:17px;
    line-height:1.72;
}

.motif-hero__meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:22px;
}

.motif-hero__meta-item{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:34px;
    padding:0 12px;
    border:1px solid #dfe5ec;
    border-radius:999px;
    background:rgba(255,255,255,.88);
    color:#626c79;
    font-size:12px;
    font-weight:750;
}

.motif-hero__meta-item strong{
    color:#1c2128;
    font-size:14px;
    font-weight:950;
}

.motif-hero__media{
    position:relative;
    z-index:2;
    width:250px;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border:1px solid #dfe5ec;
    border-radius:22px;
    background:
        linear-gradient(
            180deg,
            #f4f6f9 0%,
            #e7ecf2 100%
        );
    box-shadow:
        0 14px 28px rgba(20,22,28,.10);
}

.motif-hero__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
}

/* ---------------------------------------------------------
   Zugeordnete Themen
--------------------------------------------------------- */

.motif-topics{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:18px;
}

.motif-topics__label{
    color:#737d89;
    font-size:12px;
    font-weight:800;
}

.motif-topics__list{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.motif-topics__list a{
    display:inline-flex;
    align-items:center;
    min-height:31px;
    padding:0 11px;
    border:1px solid rgba(198,40,40,.16);
    border-radius:999px;
    background:#fff5f5;
    color:#8f1d1d;
    font-size:12px;
    font-weight:850;
    text-decoration:none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.motif-topics__list a:hover{
    transform:translateY(-1px);
    border-color:rgba(198,40,40,.28);
    background:#fff;
}

/* ---------------------------------------------------------
   Produktbereich
--------------------------------------------------------- */

.motif-products{
    padding-bottom:0;
}

.motif-products .product-grid{
    margin-bottom:42px;
}

/* ---------------------------------------------------------
   Langer sichtbarer Content
--------------------------------------------------------- */

.motif-content{
    position:relative;
    margin-top:58px;
    padding-top:42px;
    border-top:1px solid #e2e7ed;
}

.motif-content__head{
    width:100%;
    max-width:none;
    margin-bottom:26px;
}

.motif-content__head h2{
    margin:0;
    color:#171a1f;
    font-size:clamp(28px, 3vw, 38px);
    font-weight:900;
    line-height:1.12;
    letter-spacing:-.035em;
}

.motif-content__body{
    width:100%;
    max-width:none;
    color:#4f5966;
    font-size:16px;
    line-height:1.85;
}

.motif-content__body p{
    margin:0 0 22px;
}

.motif-content__body p:last-child{
    margin-bottom:0;
}

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

@media(max-width:900px){
    .motif-hero.has-image{
        grid-template-columns:minmax(0,1fr) 210px;
    }

    .motif-hero__media{
        width:210px;
    }
}

@media(max-width:700px){
    .motif-page{
        padding-bottom:48px;
    }

    .motif-wrap{
        width:min(var(--wrap, 1280px), calc(100% - 18px));
    }

    .motif-hero,
    .motif-hero.has-image{
        grid-template-columns:1fr;
        gap:22px;
        margin-bottom:34px;
        padding:24px 20px;
        border-radius:21px;
    }

    .motif-hero::after{
        opacity:.55;
    }

    .motif-hero h1{
        font-size:31px;
    }

    .motif-hero__lead{
        margin-top:12px;
        font-size:14px;
        line-height:1.7;
    }

    .motif-hero__meta{
        margin-top:17px;
    }

    .motif-hero__media{
        width:100%;
        max-width:330px;
        aspect-ratio:4 / 3;
        justify-self:start;
        border-radius:18px;
    }

    .motif-content{
        margin-top:40px;
        padding-top:30px;
    }

    .motif-content__head{
        margin-bottom:20px;
    }

    .motif-content__head h2{
        font-size:27px;
    }

    .motif-content__body{
        font-size:15px;
        line-height:1.8;
    }

    .motif-content__body p{
        margin-bottom:19px;
    }
}

@media(max-width:440px){
    .motif-hero,
    .motif-hero.has-image{
        padding:21px 17px;
    }

    .motif-hero h1{
        font-size:28px;
    }
}
