/* SPICE – HERO MIT KAPITELN */

.spice-hero-chapters-block {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.spice-hero-chapters__hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 76px 86px 72px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    box-shadow: 0 9px 30px rgba(0,0,0,.025);
    overflow: hidden;
    isolation: isolate;
}

.spice-hero-chapters__hero::after {
    content: "";
    position: absolute;
    right: -7%;
    top: 5%;
    width: 57%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,.028) 0%, rgba(0,0,0,.012) 34%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -2;
}

.spice-hero-chapters__accent {
    position: absolute;
    top: 0;
    left: 5%;
    width: 114px;
    height: 4px;
    background: #252525;
}

.spice-hero-chapters__content {
    position: relative;
    z-index: 2;
    width: min(68%, 940px);
    min-width: 0;
}

.spice-hero-chapters__eyebrow {
    display: block;
    margin: 0 0 30px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #929497;
}

.spice-hero-chapters__title {
    margin: 0;
    padding: 0;
    font-size: clamp(54px, 5.2vw, 92px);
    line-height: .99;
    font-weight: 500;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.spice-hero-chapters__title-primary,
.spice-hero-chapters__title-secondary {
    display: block;
}

.spice-hero-chapters__title-primary { color: #171717; }
.spice-hero-chapters__title-secondary { color: #929292; }

.spice-hero-chapters__text {
    max-width: 820px;
    margin: 38px 0 0;
    font-size: clamp(16px, 1.18vw, 20px);
    line-height: 1.75;
    color: #74777a;
}

.spice-hero-chapters__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.spice-hero-chapters__button {
    min-height: 64px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 17px 30px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.spice-hero-chapters__button--primary,
.spice-hero-chapters__button--tertiary {
    background: #242424;
    border: 1px solid #242424;
    color: #fff !important;
}

.spice-hero-chapters__button--secondary,
.spice-hero-chapters__button--quaternary {
    background: #fff;
    border: 1px solid #d1d1d1;
    color: #393939 !important;
}

.spice-hero-chapters__button-arrow {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    font-weight: 500;
    transform: translateX(0);
    transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}

.spice-hero-chapters__button {
    will-change: transform;
}


@media (hover:hover) and (pointer:fine) {
    .spice-hero-chapters__button:hover,
    .spice-hero-chapters__button:focus-visible {
        transform: translateY(-2px);
    }
    .spice-hero-chapters__button:hover .spice-hero-chapters__button-arrow,
    .spice-hero-chapters__button:focus-visible .spice-hero-chapters__button-arrow {
        transform: translateX(5px);
    }
    .spice-hero-chapters__button--primary:hover,
    .spice-hero-chapters__button--primary:focus-visible,
    .spice-hero-chapters__button--tertiary:hover,
    .spice-hero-chapters__button--tertiary:focus-visible {
        background:#151515;
        border-color:#151515;
        box-shadow:0 8px 20px rgba(0,0,0,.12);
    }
    .spice-hero-chapters__button--secondary:hover,
    .spice-hero-chapters__button--secondary:focus-visible,
    .spice-hero-chapters__button--quaternary:hover,
    .spice-hero-chapters__button--quaternary:focus-visible {
        background:#f6f6f6;
        border-color:#bdbdbd;
        box-shadow:0 7px 18px rgba(0,0,0,.055);
    }
}

.spice-hero-chapters__button:active {
    transform: translateY(0) scale(.985);
}

@media (prefers-reduced-motion: reduce) {
    .spice-hero-chapters__button,
    .spice-hero-chapters__button-arrow {
        transition:none !important;
    }
}

.spice-hero-chapters__number {
    position: absolute;
    z-index: -1;
    right: 4.5%;
    top: 50%;
    transform: translateY(-49%);
    margin: 0;
    max-width: 43%;
    font-size: clamp(190px, 25vw, 430px);
    line-height: .8;
    font-weight: 500;
    letter-spacing: -.11em;
    color: rgba(30,30,30,.035);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.spice-hero-chapters__grid {
    display: grid;
    /* 60 columns allow exact equal widths for 1, 2, 3, 4 or 5 cards per row. */
    grid-template-columns: repeat(60, minmax(0, 1fr));
    margin-top: 14px;
    border-top: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;
    background: #fff;
}

.spice-hero-chapters__chapter {
    grid-column: span 12;
    min-width: 0;
    box-sizing: border-box;
    padding: 28px 30px 30px;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    background: #fff;
}

/*
 * Max. five chapters per row. The final row always stretches its remaining
 * 1–4 cards evenly across the full width. This repeats for every 5-item group.
 */
.spice-hero-chapters__chapter:last-child:nth-child(5n + 1) { grid-column: span 60; }

.spice-hero-chapters__chapter:nth-last-child(2):nth-child(5n + 1),
.spice-hero-chapters__chapter:last-child:nth-child(5n + 2) { grid-column: span 30; }

.spice-hero-chapters__chapter:nth-last-child(3):nth-child(5n + 1),
.spice-hero-chapters__chapter:nth-last-child(2):nth-child(5n + 2),
.spice-hero-chapters__chapter:last-child:nth-child(5n + 3) { grid-column: span 20; }

.spice-hero-chapters__chapter:nth-last-child(4):nth-child(5n + 1),
.spice-hero-chapters__chapter:nth-last-child(3):nth-child(5n + 2),
.spice-hero-chapters__chapter:nth-last-child(2):nth-child(5n + 3),
.spice-hero-chapters__chapter:last-child:nth-child(5n + 4) { grid-column: span 15; }

/* Same interaction language as SPICE – Hero Sub-Kapitel. */
@media (hover:hover) and (pointer:fine) {
    .spice-hero-chapters__chapter {
        position: relative;
        z-index: 1;
        transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .spice-hero-chapters__chapter:hover {
        z-index: 2;
        transform: translateY(-2px);
        border-color: #bfc1c2;
        box-shadow: 0 11px 28px rgba(0,0,0,.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spice-hero-chapters__chapter {
        transition: none !important;
        transform: none !important;
    }
}

.spice-hero-chapters__chapter-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 17px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #92979a;
}

.spice-hero-chapters__chapter-number,
.spice-hero-chapters__chapter-separator {
    flex: 0 0 auto;
}

.spice-hero-chapters__chapter-label {
    min-width: 0;
}

.spice-hero-chapters__chapter-title {
    margin: 0;
    font-size: clamp(17px, 1.3vw, 22px);
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -.025em;
    color: #25282a;
}

.spice-hero-chapters__chapter-text {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.62;
    color: #7a8084;
}

.spice-hero-chapters__add-wrap {
    display: none;
}

@media (max-width:1100px) {
    .spice-hero-chapters__hero {
        min-height: 510px;
        padding: 66px 58px 62px;
    }
    .spice-hero-chapters__content { width:76%; }
    .spice-hero-chapters__number { right:2%; font-size:clamp(170px,28vw,340px); }
}

@media (max-width:760px) {
    .spice-hero-chapters__hero {
        min-height:0;
        display:block;
        padding:52px 30px 38px;
        border-radius:18px;
    }
    .spice-hero-chapters__accent { left:30px; width:72px; height:3px; }
    .spice-hero-chapters__content { width:100%; }
    .spice-hero-chapters__eyebrow { margin-bottom:20px; font-size:10px; }
    .spice-hero-chapters__title { font-size:clamp(39px,11vw,58px); line-height:1.01; }
    .spice-hero-chapters__text { margin-top:27px; font-size:15px; line-height:1.7; }
    .spice-hero-chapters__buttons { margin-top:30px; }
    .spice-hero-chapters__button { width:100%; min-height:57px; padding:15px 20px; }
    .spice-hero-chapters__number { right:2%; top:31%; max-width:none; font-size:180px; opacity:.72; }
    .spice-hero-chapters__hero::after { width:92%; right:-28%; top:2%; }
    .spice-hero-chapters__grid { grid-template-columns:1fr; }
    .spice-hero-chapters__chapter { grid-column:1 / -1; padding:24px 26px 26px; }
}


/* Optional continuation / CTA cards below the chapter overview. */
.spice-hero-chapters__cta-section {
    margin-top: 58px;
}

.spice-hero-chapters__cta-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.spice-hero-chapters__cta-section-label {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: #8d9295;
}

.spice-hero-chapters__cta-section-line {
    height: 1px;
    flex: 1 1 auto;
    background: #d9d9d9;
}

.spice-hero-chapters__cta-list {
    display: grid;
    gap: 16px;
}

.spice-hero-chapters__cta-card {
    position: relative;
    min-height: 250px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 48px 48px 44px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(0,0,0,.018);
    isolation: isolate;
}

.spice-hero-chapters__cta-accent {
    position: absolute;
    top: 0;
    left: 42px;
    width: 66px;
    height: 3px;
    background: #272727;
}

.spice-hero-chapters__cta-content {
    position: relative;
    z-index: 2;
    width: min(72%, 850px);
}

.spice-hero-chapters__cta-eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8c9295;
}

.spice-hero-chapters__cta-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
    color: #202326;
}

.spice-hero-chapters__cta-text {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #737b80;
}

.spice-hero-chapters__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: #353a3d !important;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.spice-hero-chapters__cta-link > span:last-child {
    font-size: 14px;
    transition: transform 160ms ease;
}

@media (hover:hover) and (pointer:fine) {
    .spice-hero-chapters__cta-card {
        transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .spice-hero-chapters__cta-card:hover,
    .spice-hero-chapters__cta-card:focus-within {
        transform: translateY(-2px);
        border-color: #bfc1c2;
        box-shadow: 0 11px 28px rgba(0,0,0,.045);
    }

    .spice-hero-chapters__cta-card:hover .spice-hero-chapters__cta-link,
    .spice-hero-chapters__cta-card:focus-within .spice-hero-chapters__cta-link {
        color: #202426 !important;
    }

    .spice-hero-chapters__cta-card:hover .spice-hero-chapters__cta-link > span:last-child,
    .spice-hero-chapters__cta-card:focus-within .spice-hero-chapters__cta-link > span:last-child {
        transform: translateX(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spice-hero-chapters__cta-card,
    .spice-hero-chapters__cta-link > span:last-child {
        transition: none !important;
        transform: none !important;
    }
}


/* v0.38.5: Die gesamte Weiterführungskarte ist klickbar, ohne die bisherige Text-CTA-Optik zu verändern. */
.spice-hero-chapters__cta-card .spice-hero-chapters__cta-link:not(.spice-hero-chapters__cta-link--editor)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    cursor: pointer;
}

.spice-hero-chapters__cta-card:has(.spice-hero-chapters__cta-link:not(.spice-hero-chapters__cta-link--editor)) {
    cursor: pointer;
}

.spice-hero-chapters__cta-card:focus-within {
    outline: none;
}

.spice-hero-chapters__cta-number {
    position: absolute;
    z-index: -1;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(130px, 15vw, 235px);
    line-height: .8;
    font-weight: 500;
    letter-spacing: -.10em;
    color: rgba(30,30,30,.035);
    pointer-events: none;
    user-select: none;
}

.spice-hero-chapters__cta-add-wrap,
.spice-hero-chapters__cta-editor-tools {
    display: none;
}

@media (max-width:760px) {
    .spice-hero-chapters__cta-section { margin-top: 42px; }
    .spice-hero-chapters__cta-section-head { margin-bottom: 18px; gap: 13px; }
    .spice-hero-chapters__cta-card { min-height: 0; padding: 38px 28px 34px; border-radius: 16px; }
    .spice-hero-chapters__cta-accent { left: 28px; width: 54px; }
    .spice-hero-chapters__cta-content { width: 100%; }
    .spice-hero-chapters__cta-title { font-size: clamp(27px, 8vw, 38px); }
    .spice-hero-chapters__cta-number { right: 2%; top: 38%; font-size: 135px; opacity: .75; }
}
