/* helmar.live Leitsystem – Frontend v1.0.1 */

.hl-guide {
    --hl-border: #e8e2e4;
    --hl-text: #222228;
    --hl-muted: #6B6B7C;
    --hl-accent: #f64e6e;
    --hl-accent-dark: #7f2f40;
    --hl-accent-soft: #f7edf0;
    --hl-surface: #ffffff;
    --hl-background: #fbf9fa;
    --hl-shadow: 0 18px 55px rgba(34, 24, 28, .08);
    --hl-radius: 24px;

    color: var(--hl-text);
    margin: 20px;
}

.hl-guide *,
.hl-guide *::before,
.hl-guide *::after {
    box-sizing: border-box;
}

.hl-guide button,
.hl-guide a {
    font: inherit;
}

.hl-guide__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hl-guide__header {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.hl-guide__eyebrow,
.hl-guide__step-label,
.hl-guide__result-kicker {
    margin-bottom: 10px;
    color: var(--hl-accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hl-guide__header h2,
.hl-guide__question h3,
.hl-guide__result > h3 {
    margin: 0;
    color: var(--hl-text);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.hl-guide__header h2 {
   /* font-size: clamp(2rem, 4.8vw, 4rem); */
}

.hl-guide__header p {
    max-width: 720px;
    margin: 15px auto 0;
    color: var(--hl-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hl-guide__progress {
    width: min(860px, 100%);
    margin: 0 auto 24px;
}

.hl-guide__progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee9eb;
}

.hl-guide__progress-track span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: var(--hl-accent);
    transition: width .35s ease;
}

.hl-guide__crumbs {
    min-height: 22px;
    margin-top: 9px;
    color: var(--hl-muted);
    font-size: .82rem;
    text-align: center;
}

.hl-guide__crumbs span {
    margin: 0 7px;
    color: #b5aaae;
}

.hl-guide__stage {
    transition: opacity .12s ease, transform .12s ease;
}

.hl-guide__stage.is-leaving {
    opacity: 0;
    transform: translateY(5px);
}

.hl-guide__stage.is-entering {
    opacity: 0;
    transform: translateY(8px);
}

.hl-guide__question,
.hl-guide__result {
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    background: var(--hl-surface);
    box-shadow: var(--hl-shadow);
}

.hl-guide__question--start {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hl-guide__question > h3,
.hl-guide__result > h3 {
    max-width: 830px;
    margin-bottom: 24px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hl-guide__question--start > h3 {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hl-guide__help {
    max-width: 760px;
    margin: -12px 0 25px;
    color: var(--hl-muted);
    line-height: 1.55;
}

.hl-guide__choices {
    display: grid;
    gap: 12px;
}

.hl-guide__choices--hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.hl-guide__hero-card {
    position: relative;
    grid-column: span 2;
    min-height: 360px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--hl-border);
    border-radius: 24px;
    background: var(--hl-surface);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(34, 24, 28, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hl-guide__hero-card:nth-child(4),
.hl-guide__hero-card:nth-child(5) {
    grid-column: span 3;
    min-height: 320px;
}

.hl-guide__hero-card:hover,
.hl-guide__hero-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(157, 61, 80, .35);
    box-shadow: 0 22px 50px rgba(56, 35, 42, .13);
    outline: none;
}

.hl-guide__hero-image {
    position: absolute;
    inset: 0;
    display: block;
    background-position: center;
    background-size: cover;
    transition: transform .45s ease;
}

.hl-guide__hero-card:hover .hl-guide__hero-image {
    transform: scale(1.025);
}

.hl-guide__hero-image::after,
.hl-guide__product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 22%, rgba(22, 15, 18, .08) 55%, rgba(22, 15, 18, .7) 100%);
}

.hl-guide__visual--self,
.hl-guide__visual--guided,
.hl-guide__visual--generic {
    background:
        radial-gradient(circle at 23% 24%, rgba(255,255,255,.9) 0 7%, transparent 8%),
        radial-gradient(circle at 75% 36%, rgba(157,61,80,.42), transparent 31%),
        linear-gradient(135deg, #f8edef, #dfcbd1 48%, #7f4552);
}

.hl-guide__visual--mks {
    background:
        linear-gradient(135deg, rgba(255,255,255,.15), transparent),
        radial-gradient(circle at 70% 30%, #d8b8a5, transparent 29%),
        linear-gradient(145deg, #2d2528, #6f4f45 52%, #b78d72);
}

.hl-guide__visual--cardology {
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.68), transparent 18%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(157,61,80,.19) 23px 24px),
        linear-gradient(135deg, #f8f1f3, #e1cbd1);
}

.hl-guide__visual--personal {
    background:
        radial-gradient(circle at 56% 27%, rgba(255,255,255,.7), transparent 24%),
        linear-gradient(155deg, #c9b1b7, #76515c 58%, #362b2f);
}

.hl-guide__hero-content {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: end;
    color: #fff;
}

.hl-guide__hero-number {
    align-self: center;
    opacity: .78;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.hl-guide__hero-content strong {
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    line-height: 1.14;
}

.hl-guide__hero-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

.hl-guide__choice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    width: 100%;
    padding: 17px 18px;
    border: 1px solid var(--hl-border);
    border-radius: 16px;
    background: var(--hl-background);
    color: var(--hl-text);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hl-guide__choice:hover,
.hl-guide__choice:focus-visible {
    transform: translateX(3px);
    border-color: rgba(157,61,80,.38);
    background: var(--hl-accent-soft);
    outline: none;
}

.hl-guide__choice-index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hl-surface);
    color: var(--hl-accent);
    font-size: .8rem;
    font-weight: 800;
}

.hl-guide__choice-copy {
    font-weight: 650;
    line-height: 1.35;
}

.hl-guide__choice-arrow {
    color: var(--hl-accent);
    font-size: 1.15rem;
}

.hl-guide__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.hl-guide__back,
.hl-guide__restart {
    padding: 9px 12px;
    border: 0;
    background: transparent;
    color: var(--hl-muted);
    cursor: pointer;
    font-weight: 650;
}

.hl-guide__back:hover,
.hl-guide__restart:hover {
    color: var(--hl-accent);
}

.hl-guide__result-grid,
.hl-guide__mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.hl-guide__product {
    overflow: hidden;
    border: 1px solid var(--hl-border);
    border-radius: 19px;
    background: var(--hl-surface);
}

.hl-guide__product--primary {
    box-shadow: 0 15px 40px rgba(54, 35, 41, .08);
}

.hl-guide__product-image {
    position: relative;
    min-height: 210px;
    background-position: center;
    background-size: cover;
}

.hl-guide__badges {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hl-guide__badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--hl-accent-dark);
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(7px);
}

.hl-guide__badge--club {
    background: rgba(157,61,80,.91);
    color: #fff;
}

.hl-guide__product-body {
    padding: 18px;
}

.hl-guide__product-body h4 {
    margin: 0 0 7px;
    font-size: 1.14rem;
}

.hl-guide__product-body p {
    margin: 0 0 15px;
    color: var(--hl-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.hl-guide__cta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--hl-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: .88rem;
    font-weight: 750;
}

.hl-guide__cta:hover {
    background: var(--hl-accent-dark);
}

.hl-guide__cta--disabled {
    background: #ddd5d8;
    color: #756c70 !important;
    cursor: default;
}

.hl-guide__why {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--hl-border);
    border-radius: 16px;
    background: var(--hl-background);
}

.hl-guide__why summary {
    color: var(--hl-accent);
    cursor: pointer;
    font-weight: 750;
}

.hl-guide__why p {
    margin: 11px 0 0;
    line-height: 1.65;
}

.hl-guide__notice,
.hl-guide__next-step,
.hl-guide__included {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 4px solid var(--hl-accent);
    border-radius: 0 13px 13px 0;
    background: var(--hl-accent-soft);
    line-height: 1.55;
}

.hl-guide__included span {
    display: inline-flex;
    margin: 8px 6px 0 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--hl-accent);
    font-size: .82rem;
    font-weight: 700;
}

.hl-guide__secondary {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--hl-border);
}

.hl-guide__secondary > h4 {
    margin: 0 0 12px;
}

.hl-guide__mini-grid .hl-guide__product-image {
    min-height: 145px;
}

.hl-guide__result-actions {
    margin-top: 24px;
    text-align: center;
}

.hl-guide__restart--result {
    padding: 9px 15px;
    border: 1px solid var(--hl-border);
    border-radius: 999px;
    background: var(--hl-surface);
}

.hl-guide__loading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--hl-muted);
}

.hl-guide__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #e2d9dc;
    border-top-color: var(--hl-accent);
    border-radius: 50%;
    animation: hl-guide-spin .75s linear infinite;
}

@keyframes hl-guide-spin { to { transform: rotate(360deg); } }

.hl-guide__error {
    padding: 18px;
    border: 1px solid #d8a0aa;
    border-radius: 14px;
    background: #fff2f4;
    color: #7d2637;
}

@media (max-width: 900px) {
    .hl-guide__choices--hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hl-guide__hero-card,
    .hl-guide__hero-card:nth-child(4),
    .hl-guide__hero-card:nth-child(5) {
        grid-column: auto;
        min-height: 310px;
    }

    .hl-guide__hero-card:last-child {
        grid-column: 1 / -1;
        min-height: 270px;
    }
}

@media (max-width: 620px) {
    .hl-guide {
        margin: 10px 0;
    }

    .hl-guide__header {
        text-align: left;
    }

    .hl-guide__header h2 {
        font-size: 2.2rem;
    }

    .hl-guide__header p {
        font-size: .98rem;
    }

    .hl-guide__choices--hero {
        grid-template-columns: 1fr;
    }

    .hl-guide__hero-card,
    .hl-guide__hero-card:nth-child(4),
    .hl-guide__hero-card:nth-child(5),
    .hl-guide__hero-card:last-child {
        grid-column: auto;
        min-height: 250px;
    }

    .hl-guide__question,
    .hl-guide__result {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .hl-guide__choice {
        grid-template-columns: auto 1fr;
    }

    .hl-guide__choice-arrow {
        display: none;
    }

    .hl-guide__nav {
        position: sticky;
        z-index: 8;
        bottom: 8px;
        padding: 7px;
        border: 1px solid var(--hl-border);
        border-radius: 999px;
        background: rgba(255,255,255,.92);
        box-shadow: 0 10px 25px rgba(35,24,29,.1);
        backdrop-filter: blur(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-guide *,
    .hl-guide *::before,
    .hl-guide *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* Visual choices – image-led decisions deeper in the tree */
.hl-guide__choices--visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hl-guide__choice--visual {
    display: block;
    overflow: hidden;
    padding: 0;
    background: var(--hl-surface);
    transform: none;
}

.hl-guide__choice--visual:hover,
.hl-guide__choice--visual:focus-visible {
    transform: translateY(-3px);
}

.hl-guide__choice-visual {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    background-color: var(--hl-background);
    background-position: center;
    background-size: cover;
}

.hl-guide__choice-visual-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 17px 17px;
}

@media (max-width: 680px) {
    .hl-guide__choices--visual {
        grid-template-columns: 1fr;
    }

    .hl-guide__choice-visual {
        aspect-ratio: 16 / 8;
    }
}


/* Structured next-step product links */
.hl-guide__next-step-copy {
    margin-bottom: 12px;
}

.hl-guide__next-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hl-guide__next-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(151, 50, 72, .18);
    border-radius: 999px;
    background: rgba(151, 50, 72, .06);
    color: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.hl-guide__next-chip:hover,
.hl-guide__next-chip:focus-visible {
    transform: translateY(-1px);
    background: rgba(151, 50, 72, .11);
    border-color: rgba(151, 50, 72, .32);
}

.hl-guide__next-chip--disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 680px) {
    .hl-guide__next-chip {
        width: 100%;
        justify-content: space-between;
    }
}
