/* KREDA SafeCase – hochwertige Scroll-Erzählung (Home)
   Monochrom, ruhig, editorial. Kein Pill-, kein Template-Look. */

:root {
    --ex-bg: #ffffff;
    --ex-bg-soft: #f5f5f5;
    --ex-bg-deep: #000000;
    --ex-ink: #1d1d1f;
    --ex-ink-2: #424245;
    --ex-ink-muted: #6e6e73;
    --ex-line: #e5e5e5;
    --ex-line-strong: #d2d2d2;
    --ex-max: 1240px;
    --ex-rhythm: clamp(5rem, 12vh, 8rem);
}

.ex {
    position: relative;
    padding: var(--ex-rhythm) 0;
}

.ex--tight {
    padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.ex--dark {
    background: var(--ex-bg-deep);
    color: #ffffff;
}

.ex--soft {
    background: var(--ex-bg-soft);
}

.ex-wrap {
    width: 100%;
    max-width: var(--ex-max);
    margin: 0 auto;
    padding: 0 24px;
}

.ex-wrap--narrow {
    max-width: 880px;
}

.ex-eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--ex-ink-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.ex--dark .ex-eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.ex-h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--ex-ink);
}

.ex-h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--ex-ink);
}

.ex-h3 {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ex-ink);
}

.ex-lead {
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.45;
    color: var(--ex-ink-muted);
    max-width: 34em;
}

.ex--dark .ex-h1,
.ex--dark .ex-h2,
.ex--dark .ex-h3 {
    color: #ffffff;
}

.ex--dark .ex-lead {
    color: rgba(255, 255, 255, 0.72);
}

/* ——— HERO: scrollgeführte Buehne ——————————————————————— */
.ex-hero {
    position: relative;
    background: #ffffff;
    padding: clamp(5rem, 11vh, 8rem) 0 clamp(3rem, 7vh, 5rem);
    overflow: hidden;
}

.ex-hero__inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: var(--ex-max);
    margin: 0 auto;
    padding: 0 24px;
}

.ex-hero__kicker {
    color: var(--ex-ink-muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.ex-hero__title {
    margin: 0;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 1.0;
    letter-spacing: -0.045em;
    font-weight: 600;
    color: var(--ex-ink);
    max-width: 14ch;
}

.ex-hero__title .t-dim {
    color: #86868b;
}

.ex-hero__lead {
    margin: 1.5rem 0 2rem;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    line-height: 1.4;
    color: var(--ex-ink-2);
    max-width: 34em;
}

.ex-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ex-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    line-height: 1;
    cursor: pointer;
}

.ex-btn--primary {
    background: #1d1d1f;
    color: #ffffff;
}

.ex-btn--primary:hover {
    background: #000;
}

.ex-btn--ghost {
    background: transparent;
    color: #1d1d1f;
    border-color: #1d1d1f;
}

.ex-btn--ghost:hover {
    background: #1d1d1f;
    color: #ffffff;
}

.ex--dark .ex-btn--ghost {
    color: #ffffff;
    border-color: #ffffff;
}

.ex--dark .ex-btn--ghost:hover {
    background: #ffffff;
    color: #000;
}

.ex-btn .arrow {
    transition: transform 0.25s ease;
}

.ex-btn:hover .arrow {
    transform: translateX(3px);
}

/* Scroll-Hero-Stage: Bild unten, skaliert mit dem Scrollen sanft */
.ex-hero__stage {
    position: relative;
    margin: clamp(2rem, 5vw, 3.5rem) auto 0;
    max-width: 880px;
    padding: 0 24px;
}

.ex-hero__stage-inner {
    position: relative;
    border-radius: clamp(16px, 2vw, 24px);
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 2;
    max-height: 520px;
    transform: scale(var(--stage-scale, 0.96));
    transform-origin: 50% 60%;
    transition: transform 0.05s linear;
    border: 1px solid var(--ex-line);
}

.ex-hero__stage-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ex-hero__stage-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.ex-hero__stage-caption {
    position: absolute;
    left: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    z-index: 2;
    max-width: 28em;
    opacity: 0.92;
}

.ex-hero__scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    font-size: 13px;
    color: var(--ex-ink-muted);
    font-weight: 500;
}

.ex-hero__scroll span {
    width: 26px;
    height: 1px;
    background: currentColor;
    display: inline-block;
    opacity: 0.6;
}

/* ——— Wort-Morph / Statement ——— */
.ex-statement {
    padding: clamp(4rem, 11vh, 7.5rem) 0 clamp(4rem, 11vh, 7.5rem);
    text-align: left;
}

.ex-statement__body {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--ex-ink);
    max-width: 22ch;
}

.ex-statement__body .dim {
    color: #86868b;
    display: block;
}

.ex-statement__body .word-rotate {
    display: inline-block;
    min-width: 6ch;
    color: var(--ex-ink);
    border-bottom: 3px solid var(--ex-ink);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ex-statement__body .word-rotate.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

/* ——— BENTO-Grid ——— */
.ex-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 12px;
}

.ex-bento__cell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    padding: clamp(1.5rem, 2.2vw, 2.2rem);
    background: #f5f5f5;
    color: var(--ex-ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    isolation: isolate;
}

.ex-bento__cell.is-dark {
    background: #1d1d1f;
    color: #ffffff;
}

.ex-bento__cell.is-dark .ex-bento__eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.ex-bento__cell.is-image {
    padding: 0;
}

.ex-bento__cell.is-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.ex-bento__cell.is-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ex-bento__cell.is-image .ex-bento__body {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 2.2vw, 2.2rem);
    color: #ffffff;
    margin-top: auto;
}

.ex-bento__eyebrow {
    font-size: 12px;
    color: var(--ex-ink-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0;
}

.ex-bento__title {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin: 0;
    max-width: 22ch;
}

.ex-bento__cell.is-image .ex-bento__title {
    color: #fff;
}

.ex-bento__note {
    font-size: 14px;
    color: var(--ex-ink-muted);
    margin: 1rem 0 0;
    max-width: 36ch;
    line-height: 1.5;
}

.ex-bento__cell.is-dark .ex-bento__note {
    color: rgba(255, 255, 255, 0.72);
}

.ex-bento__cell.is-image .ex-bento__note {
    color: rgba(255, 255, 255, 0.85);
}

/* Layout der Zellen – asymmetrisch */
.ex-bento__cell.span-3 { grid-column: span 3; }
.ex-bento__cell.span-2 { grid-column: span 2; }
.ex-bento__cell.span-4 { grid-column: span 4; }
.ex-bento__cell.span-6 { grid-column: span 6; }
.ex-bento__cell.tall { grid-row: span 2; min-height: 520px; }

/* Große Ziffer in einer Bento-Zelle */
.ex-bento__figure {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--ex-ink);
    margin-bottom: 0.25rem;
}

.ex-bento__cell.is-dark .ex-bento__figure {
    color: #ffffff;
}

.ex-bento__figure-sub {
    font-size: 14px;
    color: var(--ex-ink-muted);
    max-width: 28ch;
    line-height: 1.5;
}

.ex-bento__cell.is-dark .ex-bento__figure-sub {
    color: rgba(255, 255, 255, 0.7);
}

/* ——— STICKY-STORY: Bild sticky, Text scrollt ——— */
.ex-sticky {
    position: relative;
}

.ex-sticky__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: flex-start;
}

.ex-sticky__media {
    position: sticky;
    top: 96px;
    height: calc(100vh - 120px);
    max-height: 720px;
    border-radius: 22px;
    overflow: hidden;
    background: #f5f5f5;
}

.ex-sticky__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(var(--sticky-scale, 1.04));
    transition: transform 0.6s ease;
}

.ex-sticky__steps {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 12vh, 8rem);
    padding-top: 5vh;
    padding-bottom: 30vh;
}

.ex-sticky__step {
    opacity: 0.28;
    transition: opacity 0.4s ease, transform 0.6s ease;
    transform: translateY(8px);
    max-width: 34em;
}

.ex-sticky__step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.ex-sticky__step .num {
    font-size: 13px;
    font-weight: 500;
    color: var(--ex-ink-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.ex-sticky__step h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ex-ink);
    font-weight: 600;
}

.ex-sticky__step p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ex-ink-2);
}

/* ——— NUMBERS: Counter-Band auf Schwarz ——— */
.ex-numbers {
    background: #000;
    color: #fff;
    padding: clamp(4.5rem, 10vh, 7rem) 0;
}

.ex-numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem) 2rem;
}

.ex-numbers__item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
}

.ex-numbers__value {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.ex-numbers__unit {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: rgba(255, 255, 255, 0.55);
    margin-left: 2px;
    font-weight: 500;
}

.ex-numbers__label {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.45;
    max-width: 20em;
}

.ex-numbers__title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2.5rem;
    max-width: 26ch;
}

/* ——— HORIZONTAL SNAP: Ablauf-Story ——— */
.ex-flow {
    padding: clamp(4rem, 10vh, 7rem) 0;
    background: #fafafa;
}

.ex-flow__head {
    max-width: var(--ex-max);
    margin: 0 auto 2rem;
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ex-flow__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(420px, 86vw);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 24px calc(env(safe-area-inset-bottom, 0) + 0.5rem);
    scrollbar-width: none;
}

.ex-flow__rail::-webkit-scrollbar {
    display: none;
}

.ex-flow__card {
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: 22px;
    padding: 1.75rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.ex-flow__step {
    font-size: 13px;
    color: var(--ex-ink-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.ex-flow__card h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.ex-flow__card p {
    color: var(--ex-ink-2);
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 30em;
}

.ex-flow__card .big-num {
    font-size: clamp(4rem, 8vw, 6rem);
    line-height: 1;
    margin-top: auto;
    color: var(--ex-line-strong);
    letter-spacing: -0.05em;
    font-weight: 600;
    align-self: flex-end;
}

/* ——— Quote ——— */
.ex-quote {
    padding: clamp(5rem, 12vh, 8rem) 0;
    background: #ffffff;
}

.ex-quote__body {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--ex-ink);
    max-width: 20ch;
    margin: 0 auto;
    text-align: center;
}

.ex-quote__attr {
    text-align: center;
    margin-top: 2rem;
    font-size: 14px;
    color: var(--ex-ink-muted);
    letter-spacing: 0;
}

/* ——— CTA final ——— */
.ex-final {
    padding: clamp(5rem, 12vh, 8rem) 0;
    background: #000;
    color: #fff;
    text-align: left;
}

.ex-final__wrap {
    max-width: var(--ex-max);
    margin: 0 auto;
    padding: 0 24px;
}

.ex-final__title {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: #fff;
    max-width: 16ch;
}

.ex-final__lead {
    margin: 1.25rem 0 2rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36em;
}

.ex-final .ex-btn--primary {
    background: #ffffff;
    color: #1d1d1f;
}

.ex-final .ex-btn--primary:hover {
    background: #e5e5e5;
}

.ex-final .ex-btn--ghost {
    color: #fff;
    border-color: #fff;
}

.ex-final .ex-btn--ghost:hover {
    background: #fff;
    color: #000;
}

/* Marquee (sanfter Zahlenticker) */
.ex-marquee {
    border-top: 1px solid var(--ex-line);
    border-bottom: 1px solid var(--ex-line);
    overflow: hidden;
    padding: 1rem 0;
    background: #fff;
}

.ex-marquee__track {
    display: flex;
    gap: 4rem;
    animation: ex-marquee 42s linear infinite;
    font-size: 15px;
    color: var(--ex-ink-muted);
    font-weight: 500;
    white-space: nowrap;
    width: max-content;
}

.ex-marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.ex-marquee__track span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1d1d1f;
    opacity: 0.35;
    display: inline-block;
}

@keyframes ex-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reveal-Animations – Pflichtbasis */
[data-ex-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-ex-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in für Hero-Text (Wort für Wort subtil) */
.ex-hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ex-hero__title .word.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Media-Queries */
@media (max-width: 960px) {
    .ex-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .ex-bento__cell.span-3,
    .ex-bento__cell.span-2,
    .ex-bento__cell.span-4,
    .ex-bento__cell.span-6,
    .ex-bento__cell.tall {
        grid-column: span 2;
        grid-row: auto;
        min-height: 240px;
    }

    .ex-bento__cell.tall {
        min-height: 360px;
    }

    .ex-sticky__grid {
        grid-template-columns: 1fr;
    }

    .ex-sticky__media {
        position: relative;
        top: auto;
        height: clamp(280px, 60vh, 520px);
        margin-bottom: 2rem;
    }

    .ex-sticky__steps {
        padding-top: 0;
        padding-bottom: 0;
        gap: 3rem;
    }

    .ex-sticky__step {
        opacity: 1;
        transform: none;
    }

    .ex-numbers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .ex-hero__title {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .ex-bento {
        grid-template-columns: 1fr;
    }

    .ex-bento__cell.span-3,
    .ex-bento__cell.span-2,
    .ex-bento__cell.span-4,
    .ex-bento__cell.span-6,
    .ex-bento__cell.tall {
        grid-column: span 1;
        min-height: 240px;
    }

    .ex-numbers__grid {
        grid-template-columns: 1fr;
    }

    .ex-flow__rail {
        grid-auto-columns: 86vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ex-hero__stage-inner {
        transform: none !important;
    }

    .ex-marquee__track {
        animation: none;
    }

    [data-ex-reveal] {
        opacity: 1;
        transform: none;
    }

    .ex-hero__title .word {
        opacity: 1;
        transform: none;
    }
}
