.spice-content-hub {
    --spice-hub-bg: #f4f5f5;
    --spice-hub-surface: #ffffff;
    --spice-hub-border: #dedede;
    --spice-hub-text: #171717;
    --spice-hub-secondary: #777a7c;
    --spice-hub-muted: #96999b;
    --spice-hub-card-min-height: 265px;
    --spice-hub-category-gap: 95px;
    --spice-hub-page-top: 80px;
    --spice-hub-page-bottom: 105px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: var(--spice-hub-page-top) 28px var(--spice-hub-page-bottom);
    background:
        radial-gradient(circle at 50% 0%, #ffffff 0%, rgba(255,255,255,.82) 18%, transparent 46%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f4f4 100%);
    color: var(--spice-hub-text);
    font-family: inherit;
    overflow: hidden;
    counter-reset: spice-hub-category;
}

.spice-content-hub--compact {
    --spice-hub-card-min-height: 225px;
    --spice-hub-category-gap: 72px;
    --spice-hub-page-top: 62px;
    --spice-hub-page-bottom: 82px;
}

.spice-content-hub--spacious {
    --spice-hub-card-min-height: 300px;
    --spice-hub-category-gap: 118px;
    --spice-hub-page-top: 96px;
    --spice-hub-page-bottom: 125px;
}

.spice-content-hub::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20,20,20,.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,20,20,.016) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 75%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 75%);
}

.spice-content-hub::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.018) 100%);
}

.spice-content-hub__inner {
    position: relative;
    z-index: 2;
    width: min(1360px, 100%);
    margin: 0 auto;
}

.spice-content-hub__header {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.spice-content-hub__eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--spice-hub-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.spice-content-hub__title {
    margin: 0;
    color: var(--spice-hub-text);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.spice-content-hub__intro {
    max-width: 760px;
    margin: 21px auto 0;
    color: var(--spice-hub-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.spice-content-hub-category {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    counter-increment: spice-hub-category;
    container-type: inline-size;
}

.spice-content-hub-category + .spice-content-hub-category {
    margin-top: var(--spice-hub-category-gap);
}

.spice-content-hub-category__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.spice-content-hub-category__heading {
    max-width: 800px;
}

.spice-content-hub-category__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #9b9d9f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.spice-content-hub-category__eyebrow::after {
    content: " " counter(spice-hub-category, decimal-leading-zero);
}

.spice-content-hub-category__title {
    margin: 0;
    color: #202020;
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.spice-content-hub-category__description {
    max-width: 730px;
    margin: 15px 0 0;
    color: #7c7e80;
    font-size: 14px;
    line-height: 1.65;
}

.spice-content-hub-category__visual-number {
    flex: 0 0 auto;
    color: rgba(0,0,0,.045);
    font-size: clamp(105px, 10.5vw, 170px);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .8;
    user-select: none;
}

.spice-content-hub-category__visual-number::before {
    content: counter(spice-hub-category, decimal-leading-zero);
}

.spice-content-hub-category__divider {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 26px;
}

.spice-content-hub-category__divider-label {
    flex: 0 0 auto;
    color: #999b9d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.spice-content-hub-category__divider-line {
    display: none;
}

.spice-content-hub .spice-content-hub-category__cards {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    border-top: 0;
    border-left: 1px solid var(--spice-hub-border);
    background: rgba(255,255,255,.22);
    counter-reset: spice-hub-card;
    grid-auto-flow: row;
    align-items: stretch;
    justify-items: stretch;
}

.spice-content-hub--cols-2 .spice-content-hub-category__cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.spice-content-hub--cols-3 .spice-content-hub-category__cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.spice-content-hub--cols-4 .spice-content-hub-category__cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.spice-content-hub--cols-5 .spice-content-hub-category__cards { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

/*
 * Theme/Gutenberg hardening: a parent layout may inject a percentage width on
 * child blocks. Inside our CSS grid every card must always fill exactly one
 * grid track; otherwise a 20% width would collapse a 5-column card to 20% of
 * its already calculated grid cell.
 */
.spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
.spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
.spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: none !important;
}

.spice-content-hub-card {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: var(--spice-hub-card-min-height);
    box-sizing: border-box;
    display: flex;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: none !important;
    padding: 29px 27px;
    border-right: 1px solid var(--spice-hub-border);
    border-bottom: 1px solid var(--spice-hub-border);
    background: rgba(255,255,255,.48);
    color: inherit !important;
    text-decoration: none !important;
    overflow: hidden;
    counter-increment: spice-hub-card;
    transition: background .32s ease, box-shadow .32s ease, transform .32s ease;
}

.spice-content-hub-card::before {
    content: counter(spice-hub-card, decimal-leading-zero);
    position: absolute;
    right: 13px;
    top: 8px;
    color: rgba(0,0,0,.025);
    font-size: 82px;
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: 1;
    pointer-events: none;
    transition: color .35s ease, transform .35s ease;
}

.spice-content-hub-card::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 0;
    width: 0;
    height: 2px;
    background: #383838;
    transition: width .35s ease;
}

.spice-content-hub-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.spice-content-hub-card__label {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    margin-bottom: 25px;
    color: #a1a3a4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.2;
    text-transform: uppercase;
}

.spice-content-hub-card__label::after {
    content: " · " counter(spice-hub-card, decimal-leading-zero);
}

.spice-content-hub-card__title {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    max-width: 240px;
    margin: 0;
    color: #444648;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.22;
    transition: color .3s ease;
}

.spice-content-hub-card__text {
    display: block;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    max-width: 255px;
    margin: 12px 0 0;
    color: #949698;
    font-size: 12px;
    line-height: 1.6;
    transition: color .3s ease;
}

.spice-content-hub-card__action {
    display: flex;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 28px;
    color: #aaa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .3s ease;
}

.spice-content-hub-card__arrow {
    display: inline-block;
    transition: transform .3s ease;
}

.spice-content-hub-card:hover,
.spice-content-hub-card:focus-visible {
    background: #f2f3f3;
    box-shadow: inset 0 0 35px rgba(0,0,0,.018);
    transform: translateY(-2px);
}

.spice-content-hub-card:hover::before,
.spice-content-hub-card:focus-visible::before {
    color: rgba(0,0,0,.045);
    transform: translateX(-4px);
}

.spice-content-hub-card:hover::after,
.spice-content-hub-card:focus-visible::after {
    width: 54px;
}

.spice-content-hub-card:hover .spice-content-hub-card__title,
.spice-content-hub-card:focus-visible .spice-content-hub-card__title {
    color: #111111;
}

.spice-content-hub-card:hover .spice-content-hub-card__text,
.spice-content-hub-card:focus-visible .spice-content-hub-card__text {
    color: #686a6b;
}

.spice-content-hub-card:hover .spice-content-hub-card__action,
.spice-content-hub-card:focus-visible .spice-content-hub-card__action {
    color: #555;
}

.spice-content-hub-card:hover .spice-content-hub-card__arrow,
.spice-content-hub-card:focus-visible .spice-content-hub-card__arrow {
    transform: translateX(4px);
}

.spice-content-hub-card:focus-visible {
    outline: 2px solid #555;
    outline-offset: -3px;
}

/* Container-aware layout: responds to the actual block width, not just the browser viewport. */
@container (max-width: 860px) {
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@container (max-width: 610px) {
    .spice-content-hub .spice-content-hub-category__cards,
    .spice-content-hub--cols-2 .spice-content-hub-category__cards,
    .spice-content-hub--cols-3 .spice-content-hub-category__cards,
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@container (max-width: 390px) {
    .spice-content-hub .spice-content-hub-category__cards,
    .spice-content-hub--cols-2 .spice-content-hub-category__cards,
    .spice-content-hub--cols-3 .spice-content-hub-category__cards,
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 850px) {
    .spice-content-hub {
        padding: 65px 22px 80px;
    }

    .spice-content-hub-category__cards,
    .spice-content-hub--cols-2 .spice-content-hub-category__cards,
    .spice-content-hub--cols-3 .spice-content-hub-category__cards,
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .spice-content-hub-category__visual-number {
        display: none;
    }
}

@media (max-width: 580px) {
    .spice-content-hub {
        padding: 50px 16px 65px;
    }

    .spice-content-hub__header {
        margin-bottom: 60px;
    }

    .spice-content-hub__title {
        font-size: 36px;
    }

    .spice-content-hub-category + .spice-content-hub-category {
        margin-top: 70px;
    }

    .spice-content-hub-category__title {
        font-size: 30px;
    }

    .spice-content-hub-category__cards,
    .spice-content-hub--cols-2 .spice-content-hub-category__cards,
    .spice-content-hub--cols-3 .spice-content-hub-category__cards,
    .spice-content-hub--cols-4 .spice-content-hub-category__cards,
    .spice-content-hub--cols-5 .spice-content-hub-category__cards {
        grid-template-columns: 1fr !important;
    }

    .spice-content-hub-card {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spice-content-hub-card,
    .spice-content-hub-card::before,
    .spice-content-hub-card::after,
    .spice-content-hub-card__title,
    .spice-content-hub-card__text,
    .spice-content-hub-card__action,
    .spice-content-hub-card__arrow {
        transition: none !important;
    }
}


/* v0.33.4 – automatisches 1–5-Karten-Raster.
 * Flexbox sorgt dafür, dass jede angebrochene Reihe ihre vorhandenen Karten
 * wieder gleichmäßig über die komplette Breite verteilt. */
.spice-content-hub .spice-content-hub-category__cards {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
}

.spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
.spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
.spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
    flex: 1 1 20% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Maximal 3 Karten pro Reihe auf mittleren Blockbreiten. */
@container (max-width: 860px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 33.333333% !important;
    }
}

/* Maximal 2 Karten pro Reihe auf schmaleren Blockbreiten. */
@container (max-width: 610px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 50% !important;
    }
}

@container (max-width: 390px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 100% !important;
    }
}

/* Fallback, falls Container Queries im Theme nicht greifen. */
@media (max-width: 900px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 33.333333% !important;
    }
}

@media (max-width: 850px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 50% !important;
    }
}

@media (max-width: 580px) {
    .spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-card,
    .spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-card"] {
        flex-basis: 100% !important;
    }
}


/* v0.33.5 – manueller Zeilenumbruch in der Inhaltsübersicht.
 * Der unsichtbare Break belegt eine komplette Flex-Zeile. Dadurch wächst die
 * vorangehende Reihe automatisch auf volle Breite und die nächste Reihe startet
 * wieder mit derselben flexiblen 1–5-Verteilung. */
.spice-content-hub .spice-content-hub-category__cards > .spice-content-hub-row-break,
.spice-content-hub .spice-content-hub-category__cards > .wp-block-spice-content-hub-row-break,
.spice-content-hub .spice-content-hub-category__cards > [class*="wp-block-spice-content-hub-row-break"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
