/* =========================================================
   THEMENÜBERSICHT /themen
   Optisch abgestimmt auf /themen/{slug}
========================================================= */

.themes-page{
    --themes-accent:var(--accent, #b91c1c);
    --themes-text:var(--text, #17191f);
    --themes-muted:var(--text-3, #667085);
    min-height:60vh;
    padding:0 0 72px;
    color:var(--themes-text);
}

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

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

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

.themes-hero-panel{
    position:relative;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;
    margin-bottom:46px;
    padding:38px 40px;
    overflow:hidden;
    border:1px solid #e3e8ef;
    border-radius:28px;
    background:
        radial-gradient(
            circle at 96% 0%,
            rgba(185,28,28,.10) 0%,
            rgba(185,28,28,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);
}

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

.themes-hero-panel__content{
    position:relative;
    z-index:1;
    width:100%;
    max-width:none;
}

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

.themes-hero-panel__lead{
    width:100%;
    max-width:none;
    margin:16px 0 0;
    color:#5e6876;
    font-size:17px;
    line-height:1.72;
}

.themes-hero-panel__meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:22px;
}

.themes-hero-panel__meta-item{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:32px;
    padding:0 12px;
    border:1px solid #dfe5ec;
    border-radius:999px;
    background:rgba(255,255,255,.86);
    color:#697381;
    font-size:12px;
    font-weight:700;
}

.themes-hero-panel__meta-item strong{
    color:#242931;
    font-size:13px;
}

/* ---------------------------------------------------------
   Abschnitt
--------------------------------------------------------- */

.themes-overview{
    margin-bottom:46px;
}

.themes-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:18px;
}

.themes-section-head h2{
    margin:0;
    color:#191c21;
    font-size:clamp(25px, 2.6vw, 34px);
    font-weight:900;
    letter-spacing:-.025em;
    line-height:1.08;
}

.themes-section-head p{
    max-width:680px;
    margin:9px 0 0;
    color:#697381;
    font-size:14px;
    line-height:1.65;
}

.themes-section-count{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:0 11px;
    border:1px solid #e0e5eb;
    border-radius:999px;
    background:#fff;
    color:#697381;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}

/* ---------------------------------------------------------
   Themenkarten
--------------------------------------------------------- */

.themes-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:22px;
    margin-top:8px;
}

.themes-card{
    position:relative;
    display:flex;
    min-width:0;
    min-height:100%;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #e1e7ef;
    border-radius:26px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    box-shadow:
        0 12px 28px rgba(20,22,28,.06),
        0 24px 56px rgba(20,22,28,.07);
    transition:
        transform .28s var(--ease, ease),
        box-shadow .28s var(--ease, ease),
        border-color .28s var(--ease, ease);
}

.themes-card:hover{
    transform:translateY(-7px);
    border-color:#cbd4df;
    box-shadow:
        0 20px 42px rgba(20,22,28,.10),
        0 36px 76px rgba(20,22,28,.10);
}

.themes-card__media{
    position:relative;
    height:245px;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,0) 40%
        ),
        linear-gradient(
            180deg,
            #f4f6f9 0%,
            #e7ecf2 100%
        );
}

.themes-card__media img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center top;
    transform:scale(1.04);
    transition:
        transform .36s var(--ease, ease),
        filter .36s var(--ease, ease);
}

.themes-card:hover .themes-card__media img{
    transform:scale(1.10);
    filter:brightness(1.03);
}

.themes-card__media.is-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(198,40,40,.10) 0%,
            rgba(198,40,40,0) 45%
        ),
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #e9eef4 100%
        );
}

.themes-card__placeholder{
    width:92px;
    height:92px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #dce3ec;
    border-radius:26px;
    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #eef2f6 100%
    );
    color:#8f1d1d;
    box-shadow:0 18px 34px rgba(20,22,28,.10);
    font-size:42px;
    font-weight:900;
}

.themes-card__floating-count{
    position:absolute;
    right:14px;
    bottom:14px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 13px;
    border:1px solid rgba(220,225,232,.95);
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#20252c;
    box-shadow:0 12px 24px rgba(20,22,28,.13);
    font-size:12px;
    font-weight:900;
    backdrop-filter:blur(10px);
}

.themes-card__content{
    position:relative;
    z-index:1;
    display:flex;
    min-height:238px;
    flex:1 1 auto;
    flex-direction:column;
    padding:20px;
}

.themes-card__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}

.themes-card__badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 11px;
    border:1px solid rgba(198,40,40,.18);
    border-radius:999px;
    background:linear-gradient(
        180deg,
        #fff5f5 0%,
        #fef0f0 100%
    );
    color:#8f1d1d;
    box-shadow:0 6px 14px rgba(20,22,28,.04);
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
}

.themes-card h3{
    margin:0 0 12px;
    color:#15181d;
    font-size:22px;
    font-weight:900;
    letter-spacing:-.45px;
    line-height:1.12;
}

/* Die wichtigste Info der Karte */
.themes-card__availability{
    position:relative;
    display:flex;
    align-items:center;
    gap:5px;
    width:100%;
    box-sizing:border-box;
    margin:0 0 16px !important;
    padding:13px 15px 13px 18px;
    overflow:hidden;
    border:1px solid #e0e5eb;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        #f8f9fb 0%,
        #f1f4f7 100%
    );
    color:#505965;
    box-shadow:0 7px 18px rgba(20,22,28,.045);
    font-size:14px;
    font-weight:750;
    line-height:1.35;
}

.themes-card__availability::before{
    content:"";
    position:absolute;
    top:9px;
    bottom:9px;
    left:0;
    width:4px;
    border-radius:0 4px 4px 0;
    background:var(--themes-accent);
}

.themes-card__availability strong{
    flex:0 0 auto;
    color:#171a1f;
    font-size:19px;
    font-weight:950;
    letter-spacing:-.02em;
}

.themes-card__availability span{
    min-width:0;
}

.themes-card__description{
    display:-webkit-box;
    margin:0 0 18px !important;
    overflow:hidden;
    color:var(--text-2, #525a66);
    font-size:14px;
    line-height:1.65;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

.themes-card__bottom{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    margin-top:auto;
}

.themes-card__button{
    width:100%;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 15px;
    border:0;
    border-radius:14px;
    background:linear-gradient(
        180deg,
        #5a5e66 0%,
        #31353c 100%
    );
    color:#fff;
    box-shadow:0 12px 22px rgba(45,49,56,.14);
    font-size:13px;
    font-weight:800;
    transition:
        transform .22s var(--ease, ease),
        box-shadow .22s var(--ease, ease),
        background .22s var(--ease, ease);
}

.themes-card__button::after{
    content:"→";
    margin-left:8px;
    font-size:12px;
}

.themes-card:hover .themes-card__button{
    background:linear-gradient(
        180deg,
        #626771 0%,
        #2f333a 100%
    );
    box-shadow:0 18px 28px rgba(45,49,56,.18);
}

/* ---------------------------------------------------------
   Leerzustand
--------------------------------------------------------- */

.themes-empty{
    padding:52px 24px;
    border:1px dashed #d9e0e8;
    border-radius:22px;
    background:#fafbfd;
    text-align:center;
}

.themes-empty__icon{
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 13px;
    border-radius:16px;
    background:#eef1f5;
    color:#aeb7c2;
    font-size:28px;
}

.themes-empty h2{
    margin:0;
    color:#1d2025;
    font-size:22px;
}

.themes-empty p{
    max-width:540px;
    margin:8px auto 0;
    color:#697482;
    font-size:14px;
    line-height:1.65;
}

/* ---------------------------------------------------------
   SEO
--------------------------------------------------------- */

.themes-seo{
    margin-top:12px;
    padding-top:4px;
}

.themes-seo__box{
    width:100%;
    max-width:none;
    box-sizing:border-box;
    padding:30px 32px;
    border:1px solid #e2e7ed;
    border-radius:22px;
    background:#f8fafc;
}
.themes-seo h2{
    margin:0;
    color:#1d2025;
    font-size:25px;
    font-weight:900;
    letter-spacing:-.02em;
}

.themes-seo__text{
    margin-top:14px;
    color:#5f6976;
    font-size:14px;
    line-height:1.85;
}

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

@media (max-width:1250px){
    .themes-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:900px){
    .themes-hero-panel{
        padding:30px;
    }
}

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

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

    .themes-hero-panel{
        margin-bottom:34px;
        padding:24px 20px;
        border-radius:21px;
    }

    .themes-hero-panel::after{
        opacity:.55;
    }

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

    .themes-hero-panel__lead{
        margin-top:12px;
        font-size:14px;
        line-height:1.7;
    }

    .themes-hero-panel__meta{
        margin-top:17px;
    }

    .themes-section-head{
        align-items:flex-start;
    }

    .themes-section-head h2{
        font-size:25px;
    }

    .themes-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .themes-card{
        border-radius:22px;
    }

    .themes-card__media{
        height:230px;
    }

    .themes-card__content{
        min-height:0;
        padding:18px;
    }

    .themes-card h3{
        font-size:20px;
    }

    .themes-seo__box{
        padding:23px 20px;
        border-radius:18px;
    }

    .themes-seo h2{
        font-size:22px;
    }
}

@media (max-width:420px){
    .themes-hero-panel{
        padding:21px 17px;
    }

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

    .themes-card__media{
        height:205px;
    }

    .themes-card__placeholder{
        width:76px;
        height:76px;
        border-radius:22px;
        font-size:34px;
    }

    .themes-card__availability{
        padding:12px 12px 12px 16px;
        font-size:13px;
    }

    .themes-card__availability strong{
        font-size:18px;
    }
}
