/* Klemmshop universeller Kategorie-/Hersteller-Hub
   Greift nur auf Seiten, die noch keinen eigenen Spezial-Hub besitzen. */

.ks-universal-hub,
.ks-universal-hub__content {
    --ksu-green: #236c45;
    --ksu-green-2: #2f8b59;
    --ksu-dark: #18251f;
    --ksu-ink: #18211d;
    --ksu-muted: #637069;
    --ksu-soft: #f3f7f4;
    --ksu-border: #e2e8e4;
    --ksu-card: #ffffff;
    --ksu-radius: 22px;
    color: var(--ksu-ink);
}

.ks-universal-hub {
    margin: 0 0 38px;
}

.ks-universal-hub__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    gap: 42px;
    min-height: 520px;
    padding: 54px 56px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 72% 10%, rgba(255,255,255,.11), transparent 32%),
        linear-gradient(135deg, #17261f 0%, #1f6341 58%, #2d8556 100%);
    box-shadow: 0 22px 60px rgba(24,37,31,.13);
}

.ks-universal-hub--tech .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 78% 8%, rgba(255,255,255,.12), transparent 31%),
        linear-gradient(135deg, #17242a 0%, #274f47 53%, #2f7d54 100%);
}

.ks-universal-hub--build .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 78% 8%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #202822 0%, #53644d 48%, #2c7a50 100%);
}

.ks-universal-hub--nature .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 80% 8%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #183225 0%, #397b4c 55%, #72a85b 100%);
}

.ks-universal-hub--sky .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 80% 8%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #1c2d35 0%, #315d68 53%, #3c8468 100%);
}

.ks-universal-hub--brand .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 80% 8%, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, #20242a 0%, #3a4e47 52%, #28714b 100%);
}

.ks-universal-hub--print .ks-universal-hub__hero {
    background:
        radial-gradient(circle at 80% 8%, rgba(255,255,255,.14), transparent 30%),
        linear-gradient(135deg, #153c29 0%, #267449 52%, #43a66b 100%);
}

.ks-universal-hub__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 690px;
}

.ks-universal-hub__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #2b754d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.ks-universal-hub__hero .ks-universal-hub__kicker {
    color: #ccebd8;
}

.ks-universal-hub__copy h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-family: Montserrat, "Open Sans", Arial, sans-serif;
    font-size: clamp(2.15rem, 4.2vw, 4.2rem);
    line-height: 1.02;
    font-weight: 750;
    letter-spacing: -.035em;
}

.ks-universal-hub__copy > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ks-universal-hub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.ks-universal-hub__button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.ks-universal-hub__button:hover,
.ks-universal-hub__button:focus {
    transform: translateY(-2px);
}

.ks-universal-hub__button--primary {
    color: #173722 !important;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.14);
}

.ks-universal-hub__button--secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
}

.ks-universal-hub__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.ks-universal-hub__trust span {
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.ks-universal-hub__trust b,
.ks-universal-hub__trust small {
    display: block;
}

.ks-universal-hub__trust b {
    color: #fff;
    font-size: .8rem;
}

.ks-universal-hub__trust small {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
    font-size: .68rem;
    line-height: 1.35;
}

.ks-universal-hub__visual {
    position: relative;
    min-height: 410px;
    align-self: center;
}

.ks-universal-hub__product-card {
    position: absolute;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ksu-ink) !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0,0,0,.20);
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease;
}

.ks-universal-hub__product-card:hover,
.ks-universal-hub__product-card:focus {
    transform: translateY(-4px) rotate(0deg) !important;
    box-shadow: 0 28px 56px rgba(0,0,0,.25);
}

.ks-universal-hub__product-card--main {
    z-index: 3;
    left: 4%;
    top: 5%;
    width: 61%;
    height: 82%;
    transform: rotate(-1.3deg);
}

.ks-universal-hub__product-card--side {
    right: 1%;
    width: 37%;
    height: 45%;
    border-radius: 17px;
}

.ks-universal-hub__product-card--side-top {
    z-index: 2;
    top: 0;
    transform: rotate(2.1deg);
}

.ks-universal-hub__product-card--side-bottom {
    z-index: 4;
    bottom: 0;
    transform: rotate(-2deg);
}

.ks-universal-hub__product-label {
    position: absolute;
    z-index: 4;
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(24,37,31,.88);
    backdrop-filter: blur(5px);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .035em;
}

.ks-universal-hub__product-image {
    min-height: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 22px 12px;
    background: linear-gradient(145deg, #fff, #f5f7f5);
}

.ks-universal-hub__product-card--side .ks-universal-hub__product-image {
    padding: 25px 13px 6px;
}

.ks-universal-hub__product-image img {
    width: 100%;
    height: 100%;
    max-height: 310px;
    object-fit: contain;
}

.ks-universal-hub__product-name {
    display: block;
    padding: 11px 15px 14px;
    color: #26312b;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-universal-hub__product-card--side .ks-universal-hub__product-name {
    padding: 8px 11px 10px;
    font-size: .62rem;
}

.ks-universal-hub__visual--empty::before {
    content: "Produkte entdecken";
    position: absolute;
    inset: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255,255,255,.35);
    border-radius: 26px;
    color: rgba(255,255,255,.72);
    font-size: 1.1rem;
    font-weight: 700;
}

.ks-universal-hub__visual--empty .ks-universal-hub__product-card {
    display: none;
}

.ks-universal-hub__content {
    margin: 0 0 34px;
}

.ks-universal-hub__section {
    margin: 0 0 28px;
    padding: 31px;
    border: 1px solid var(--ksu-border);
    border-radius: var(--ksu-radius);
    background: #fff;
    box-shadow: 0 9px 30px rgba(23,27,36,.04);
}

.ks-universal-hub__section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.ks-universal-hub__section-head h2,
.ks-universal-hub__products-intro h2 {
    margin: 0;
    color: var(--ksu-ink);
    font-family: Montserrat, "Open Sans", Arial, sans-serif;
    font-size: clamp(1.55rem, 2.7vw, 2.3rem);
    line-height: 1.12;
    font-weight: 730;
    letter-spacing: -.025em;
}

.ks-universal-hub__section-head p,
.ks-universal-hub__products-intro p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--ksu-muted);
    line-height: 1.62;
}

.ks-universal-hub__subgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.ks-universal-hub__subcard {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ksu-border);
    border-radius: 17px;
    color: var(--ksu-ink) !important;
    background: #f9fbf9;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ks-universal-hub__subcard:hover,
.ks-universal-hub__subcard:focus {
    transform: translateY(-3px);
    border-color: #cbd9d0;
    box-shadow: 0 15px 30px rgba(23,27,36,.08);
}

.ks-universal-hub__subcopy {
    position: relative;
    z-index: 2;
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 12px 20px 20px;
    background: linear-gradient(90deg, #f9fbf9 68%, rgba(249,251,249,.82) 90%, transparent 100%);
}

.ks-universal-hub__subcopy strong,
.ks-universal-hub__subcopy span,
.ks-universal-hub__subcopy b {
    display: block;
}

.ks-universal-hub__subcopy strong {
    font-family: Montserrat, "Open Sans", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.2;
}

.ks-universal-hub__subcopy span {
    margin-top: 6px;
    color: var(--ksu-muted);
    font-size: .75rem;
    line-height: 1.42;
}

.ks-universal-hub__subcopy b {
    margin-top: 12px;
    color: var(--ksu-green);
    font-size: .72rem;
}

.ks-universal-hub__subcopy i {
    font-style: normal;
}

.ks-universal-hub__subimage {
    position: absolute;
    inset: 0 0 0 auto;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.ks-universal-hub__subimage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ks-universal-hub__subplaceholder {
    position: absolute;
    right: 18px;
    top: 19px;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #4f8764;
    background: #e2efe6;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
}

.ks-universal-hub__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin: 0 0 24px;
}

.ks-universal-hub__benefits article {
    min-height: 92px;
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--ksu-border);
    border-radius: 15px;
    background: var(--ksu-soft);
}

.ks-universal-hub__benefits article > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ksu-green);
    font-weight: 800;
}

.ks-universal-hub__benefits strong,
.ks-universal-hub__benefits small {
    display: block;
}

.ks-universal-hub__benefits strong {
    font-size: .84rem;
}

.ks-universal-hub__benefits small {
    margin-top: 3px;
    color: var(--ksu-muted);
    font-size: .7rem;
    line-height: 1.4;
}

.ks-universal-hub__seo {
    margin: 0 0 25px;
    border: 1px solid var(--ksu-border);
    border-radius: 14px;
    background: #fff;
}

.ks-universal-hub__seo summary {
    position: relative;
    cursor: pointer;
    padding: 15px 46px 15px 18px;
    color: #34433b;
    font-size: .8rem;
    font-weight: 750;
    list-style: none;
}

.ks-universal-hub__seo summary::-webkit-details-marker { display: none; }

.ks-universal-hub__seo summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ksu-green);
    font-size: 1.2rem;
}

.ks-universal-hub__seo[open] summary::after { content: "–"; }

.ks-universal-hub__seo > div {
    padding: 0 18px 17px;
    color: var(--ksu-muted);
    font-size: .8rem;
    line-height: 1.68;
}

.ks-universal-hub__seo p { margin: 0; }

.ks-universal-hub__products-intro {
    margin: 0 0 18px;
    padding: 26px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f1f7f3, #f9fbfa);
    border: 1px solid #dde9e0;
}

@media (max-width: 1199px) {
    .ks-universal-hub__hero {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
        gap: 28px;
        padding: 46px 40px;
    }
    .ks-universal-hub__subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .ks-universal-hub__hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 40px 34px 34px;
    }
    .ks-universal-hub__visual {
        width: min(640px, 100%);
        min-height: 360px;
        margin: 0 auto;
    }
    .ks-universal-hub__trust { max-width: 650px; }
    .ks-universal-hub__benefits { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ks-universal-hub { margin-bottom: 24px; }
    .ks-universal-hub__hero {
        padding: 30px 20px 24px;
        border-radius: 20px;
    }
    .ks-universal-hub__copy h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .ks-universal-hub__copy > p { font-size: .92rem; line-height: 1.6; }
    .ks-universal-hub__actions { display: grid; grid-template-columns: 1fr; }
    .ks-universal-hub__button { width: 100%; }
    .ks-universal-hub__trust { grid-template-columns: 1fr; gap: 6px; }
    .ks-universal-hub__trust span { padding-top: 8px; }
    .ks-universal-hub__visual { min-height: 315px; }
    .ks-universal-hub__product-card--main { left: 0; width: 66%; height: 78%; }
    .ks-universal-hub__product-card--side { right: 0; width: 40%; height: 43%; }
    .ks-universal-hub__product-name { font-size: .64rem; }
    .ks-universal-hub__section { padding: 22px 16px; border-radius: 18px; }
    .ks-universal-hub__subgrid { grid-template-columns: 1fr; }
    .ks-universal-hub__subcard { min-height: 180px; }
    .ks-universal-hub__products-intro { padding: 21px 18px; }
}

@media (max-width: 480px) {
    .ks-universal-hub__visual { min-height: 270px; }
    .ks-universal-hub__product-card--main { width: 72%; height: 78%; }
    .ks-universal-hub__product-card--side { width: 37%; height: 41%; }
    .ks-universal-hub__product-label { font-size: .52rem; padding: 5px 7px; }
    .ks-universal-hub__subcopy { width: 67%; padding: 16px 8px 16px 16px; }
    .ks-universal-hub__subimage { width: 47%; }
}

@media (prefers-reduced-motion: reduce) {
    .ks-universal-hub__product-card,
    .ks-universal-hub__button,
    .ks-universal-hub__subcard { transition: none; }
}
