html, body {
    margin: 0;
    padding: 0;
    background: #040408;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.heart-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.heart-stage.visible {
    opacity: 1;
}

.heart-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.pt-content {
    position: relative;
    z-index: 2;
    padding: 9em clamp(2em, 8vw, 10em) 0;
}

.crm-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4em;
    flex-wrap: wrap;
}

.crm-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(3.5em, 9vw, 7em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    display: inline-block;
}

.crm-heading .heading-word {
    display: inline-block;
}

.crm-heading .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}

.crm-heading .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.6s ease-out;
    transition-delay: calc(var(--i) * 60ms);
}

.crm-heading.is-in .letter {
    transform: translateY(0);
    opacity: 1;
}

.crm-side {
    flex: 0 1 28em;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
}

.crm-side .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 0.045s);
}

.crm-side.is-in .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

.crm-explain {
    margin: 80vh 0 0;
    width: min(46%, 34em);
    max-width: 34em;
    box-sizing: border-box;
}

.crm-explain-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2em, 4vw, 3em);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    color: #fff;
    display: inline-block;
}

.split-word {
    display: inline-block;
    white-space: nowrap;
}

.crm-explain-title .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}

.crm-explain-title .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.6s ease-out;
    transition-delay: calc(var(--i) * 60ms);
}

.crm-explain-title.is-in .letter {
    transform: translateY(0);
    opacity: 1;
}

.crm-explain-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.crm-explain-text .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 0.035s);
}

.crm-explain-text.is-in .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

.crm-explain-text .crm-mark {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* CTA */
.cta-section {
    position: relative;
    z-index: 2;
    margin-top: clamp(1em, 3vh, 3em);
    padding: clamp(0.5em, 2vh, 1.5em) clamp(2em, 5vw, 5em) clamp(14em, 30vh, 22em);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}
.cta-section.visible { pointer-events: auto; }

.cta-inner {
    max-width: 50em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.4em;
    text-align: right;
    padding: 2.8em 3em 2.6em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2em;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}
.cta-section.visible .cta-inner { opacity: 1; }

.cta-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4em, 4.4vw, 4em);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}
.cta-heading .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}
.cta-heading .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 55ms);
}
.cta-section.visible .cta-heading .letter {
    transform: translateY(0);
    opacity: 1;
}

.cta-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.18em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 28em;
    visibility: hidden;
}
.cta-description[data-split] { visibility: visible; }
.cta-description .cta-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.045s + 0.35s);
}
.cta-section.visible .cta-description .cta-word {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.6em;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: #fff;
    background: #8a67ff;
    border: 1px solid #8a67ff;
    border-radius: 999px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(160px) scale(1);
    transform-origin: right center;
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s,
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s,
        background-color 0.25s ease,
        border-color 0.25s ease;
}
.cta-section.visible .cta-button {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.cta-button:hover {
    transform: translateX(0) scale(1.2);
    background: #0a0a0f;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.cta-button svg { transition: transform 0.25s ease; }
.cta-button:hover svg { transform: translate(2px, -2px); }

/* Line break inside the CTA heading only kicks in on mobile.
   Desktop keeps it one line via white-space: nowrap. */
.cta-heading-br { display: none; }

/* Desktop: CTA section hidden. Mobile shows it (see the query below). */
@media (min-width: 769px) {
    .cta-section { display: none !important; }
}

/* MOBILE: particle stage off. Each section becomes a simple stack in normal
   flow, same pattern as the websites page. No morph, no large vh gaps. */
@media (max-width: 768px) {
    .heart-stage {
        display: none !important;
    }
    .pt-content {
        padding: 7em 1.5em 0;
        min-height: 0;
    }

    .crm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2em;
    }
    .crm-heading {
        font-size: clamp(2.6em, 13vw, 4.6em);
        line-height: 1;
    }
    .crm-heading .heading-word {
        display: block;
    }
    .crm-heading .heading-space {
        display: none;
    }
    .crm-side {
        text-align: right;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 2.5em;
    }

    .crm-explain {
        width: 100%;
        max-width: 100%;
        margin-top: 18vh;
    }
    .crm-explain-title {
        margin-bottom: 0;
        cursor: pointer;
    }
    /* Tap affordance: a rotating caret shows the title is expandable.
       Using a pseudo-element so it survives the per-letter split the reveal
       animation applies. */
    .crm-explain-title::after {
        content: '';
        display: inline-block;
        width: 0.42em;
        height: 0.42em;
        margin-left: 0.55em;
        border-right: 0.12em solid #b89cff;
        border-bottom: 0.12em solid #b89cff;
        vertical-align: middle;
        transform: translateY(-0.16em) rotate(45deg);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .crm-explain.is-open .crm-explain-title::after {
        transform: translateY(0.02em) rotate(225deg);
    }
    .crm-explain-text {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        transition:
            max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            margin-top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .crm-explain.is-open .crm-explain-text {
        max-height: 50em;
        margin-top: 0.7em;
    }

    /* CTA: center-stacked card, full width, with the heading line break active. */
    .cta-section {
        margin-top: 16vh !important;
        padding: 0 1.4em 11em !important;
        pointer-events: auto !important;
        justify-content: center !important;
        align-items: stretch !important;
    }
    .cta-inner {
        width: 100% !important;
        max-width: none !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 1.4em 1.6em 1.6em !important;
        gap: 1em !important;
    }
    .cta-heading {
        font-size: clamp(2em, 7vw, 2.6em) !important;
        white-space: normal !important;
        text-align: center !important;
    }
    .cta-heading-br {
        display: inline !important;
    }
    .cta-description {
        max-width: 100% !important;
        text-align: center !important;
    }
    .cta-button {
        align-self: center !important;
    }
}

/* ------------------------------------------------------------------
   Twitch explainer: last block inside <main>, sits right above the
   footer. Reveals as one unit via .is-in (set by bots.js), children
   stagger through their own --i. No word splitting here, the note
   holds real links.
   ------------------------------------------------------------------ */
.crm-case {
    margin: 22vh 0 20vh;
    width: 100%;
    box-sizing: border-box;
}

.crm-case-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3em;
    flex-wrap: wrap;
    margin-bottom: 4.5em;
}

.crm-case-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2em, 4vw, 3em);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
    display: inline-block;
}
.crm-case-title .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}
.crm-case-title .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.6s ease-out;
    transition-delay: calc(var(--i) * 55ms);
}
.crm-case.is-in .crm-case-title .letter {
    transform: translateY(0);
    opacity: 1;
}

.crm-case-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em 0.9em;
}

.crm-case-demo {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9em, 1vw, 1em);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.crm-case.is-in .crm-case-demo {
    opacity: 1;
    transform: translateY(0);
}

.crm-case-lead {
    flex: 0 1 30em;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.4em;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.crm-case.is-in .crm-case-lead {
    opacity: 1;
    transform: translateY(0);
}

.crm-case-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2em, 4vw, 4em);
    flex-wrap: wrap;
    padding: 2.4em clamp(2em, 3vw, 3em);
    border: 1px solid rgba(184, 156, 255, 0.20);
    border-radius: 1.2em;
    background: rgba(184, 156, 255, 0.045);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}
.crm-case.is-in .crm-case-note {
    opacity: 1;
    transform: translateY(0);
}

.crm-case-note-text {
    flex: 1 1 26em;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.1vw, 1.1em);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 40em;
}

.crm-case-actions {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex-wrap: wrap;
}

.crm-case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.5em;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.98em;
    /* Matches the line-height the rolling label sets on the filled link, so
       both pills stay exactly the same height side by side. */
    line-height: 1.4;
    white-space: nowrap;
    color: #fff;
    background: #8a67ff;
    border: 1px solid #8a67ff;
    border-radius: 999px;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}
.crm-case-link:hover {
    transform: translateY(-2px);
    background: #0a0a0f;
    border-color: rgba(255, 255, 255, 0.28);
}
.crm-case-link svg { transition: transform 0.25s ease; }
.crm-case-link:hover svg { transform: translate(2px, -2px); }

/* Second action: the header's "Start your project" pill, same shape and same
   hover (the lilac circle grows out to fill the button). Kept in sync with the
   .header-cta rules injected by header.js. */
.crm-case-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.98em;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
    padding: 0.62em 0.62em 0.62em 1.7em;
    background: #ffffff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transform: translateZ(0) scale(1);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-case-cta:hover {
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 8px 24px -8px rgba(138, 92, 255, 0.45);
}

.crm-case-cta-text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.crm-case-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: linear-gradient(180deg, #b89cff 0%, #6a4aff 100%);
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    /* un-hover: fade the icon back in just before the shrink ends */
    transition: opacity 0.1s ease 0.45s;
}

/* Lilac fill growing out of the icon. The arrow rides along as the overlay's
   centered background-image, the icon underneath fades out in sync. */
.crm-case-cta::after {
    content: '';
    position: absolute;
    top: 0.62em;
    right: 0.62em;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M17 7H7M17 7v10'/></svg>") center / 16px 16px no-repeat,
        linear-gradient(180deg, #b89cff 0%, #6a4aff 100%);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    /* un-hover: shrink first, fade out only once the icon is fully back */
    transition:
        top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        right 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.1s ease 0.55s;
}

.crm-case-cta:hover .crm-case-cta-icon {
    opacity: 0;
    transition: opacity 0.1s ease 0.08s;
}

.crm-case-cta:hover::after {
    top: -1px;
    right: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 100px;
    opacity: 1;
    transition:
        top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        right 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.08s ease;
}

/* Rolling label on the filled link only: the original slides up while a clone
   follows it in from below. Same treatment the CTA buttons get. */
.crm-case-link-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.4;
}

.crm-case-link-row {
    display: block;
    white-space: nowrap;
}

.crm-case-link-row--clone {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.crm-case-link-char {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    transform: translateY(0);
}

.crm-case-link:hover .crm-case-link-char {
    transform: translateY(-100%);
}

/* MOBILE: single column, everything left aligned, no particle stage above. */
@media (max-width: 768px) {
    .crm-case {
        margin: 22vh 0 8vh;
    }
    .crm-case-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4em;
        margin-bottom: 2.6em;
    }
    .crm-case-title {
        font-size: clamp(1.9em, 8vw, 2.6em);
    }
    .crm-case-lead {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: left;
        margin: 0;
    }
    .crm-case-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6em;
        padding: 1.8em 1.6em;
    }
    /* Column flex: the desktop `flex: 1 1 26em` would become a 26em MIN HEIGHT
       here, so the basis has to go back to the content. */
    .crm-case-note-text {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .crm-case-actions {
        width: 100%;
        gap: 0.7em;
    }
    /* Vertical padding stays at the desktop value so this pill keeps the same
       height as the CTA next to it, only the side padding shrinks. */
    .crm-case-link {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.85em 1.2em;
    }
    /* Full width: label left, icon stays hard right where the ::after circle
       is anchored, so the growing fill still starts on the icon. */
    .crm-case-cta {
        flex: 1 1 auto;
        justify-content: space-between;
    }
}

/* ------------------------------------------------------------------
   Nur auf dieser Seite: Preisblock und der Praxis-Abschnitt mit dem
   Bildschirmfoto aus dem Steven Donke CRM.
   ------------------------------------------------------------------ */
.crm-price {
    margin: 0 0 18vh;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2em, 6vw, 6em);
    flex-wrap: wrap;
}

.crm-price-left {
    flex: 1 1 22em;
    max-width: 34em;
}

.crm-price-sum {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4em, 5vw, 4em);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #8a67ff;
    margin: 0 0 0.5em;
}

.crm-price-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 30em;
}

.crm-price-list {
    flex: 0 1 26em;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
}

.crm-price-list li {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9em, 1vw, 1em);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    padding-bottom: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-price-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.crm-case-media {
    display: block;
    margin: 0 0 clamp(2.5em, 5vw, 4em);
    border-radius: 1.2em;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a10;
    line-height: 0;
}

.crm-case-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-case-media:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .crm-price {
        flex-direction: column;
        margin-bottom: 12vh;
        gap: 2.5em;
    }
    .crm-price-left {
        flex: 0 0 auto;
    }
    .crm-price-list {
        flex: 0 0 auto;
        width: 100%;
    }
    .crm-case-media {
        border-radius: 0.9em;
    }
}

/* ------------------------------------------------------------------
   Einstieg: Erklaerung rechts, links die Partikel-Grafik (Hand mit Magnet,
   die drei Kunden anzieht), gleiche Partikel wie auf den anderen Seiten.
   ------------------------------------------------------------------ */
.crm-intro {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: clamp(3em, 6vw, 7em);
    margin: 30vh 0 0;
}

.crm-intro .crm-explain {
    margin: 0;
    width: auto;
    flex: 0 1 34em;
    text-align: right;
}

.crm-magnet {
    flex: 0 1 40em;
    min-width: 0;
    /* Die Hand kommt wie im Original vom linken Bildrand: die Grafik reicht
       bis an den Fensterrand, in den Seitenabstand hinein. */
    margin: 0 0 0 calc(-1 * clamp(2em, 8vw, 10em));
}

.crm-magnet-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Partikelflaeche ueber dem ganzen Fenster, wie auf den anderen Seiten.
   Die Form sitzt am Platzhalter .crm-magnet-stage und scrollt mit ihm. */
.crm-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.crm-stage.visible {
    opacity: 1;
}

.crm-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Wo Platz ist, steht die Ueberschrift in einer Zeile: die Textspalte bekommt
   eine feste Breite, die Grafik nimmt den Rest. */
@media (min-width: 1200px) {
    .crm-intro .crm-explain {
        flex: 0 0 42em;
        max-width: none;
    }
    .crm-intro {
        gap: clamp(1.5em, 3vw, 3em);
    }
    .crm-magnet {
        flex: 1 1 0;
        max-width: 52em;
    }
}

/* ------------------------------------------------------------------
   Praxis: Clips und Fotos aus dem Steven Donke CRM als kleines Raster.
   ------------------------------------------------------------------ */
.crm-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.8em, 1.4vw, 1.2em);
    margin: 0 0 clamp(1.6em, 2.4vw, 2.4em);
}

.crm-shot {
    position: relative;
    margin: 0;
    border-radius: 1.2em;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a10;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.1s + 0.15s);
}

.crm-case.is-in .crm-shot {
    opacity: 1;
    transform: translateY(0);
}

.crm-shot img,
.crm-shot video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-shot--a { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16 / 9; }
.crm-shot--b { grid-column: 3; grid-row: 1 / 3; }
.crm-shot--c { grid-column: 1; grid-row: 2; aspect-ratio: 16 / 9; }
.crm-shot--d { grid-column: 2; grid-row: 2; aspect-ratio: 16 / 9; }

.crm-shot--b img { object-position: center 70%; }
.crm-shot--c img { object-position: center 30%; }

@media (prefers-reduced-motion: reduce) {
    .crm-shot {
        transition: none;
    }
}

@media (max-width: 768px) {
    .crm-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 3em;
        margin-top: 16vh;
    }
    .crm-intro .crm-explain {
        margin-top: 0;
        flex: 0 0 auto;
    }
    .crm-magnet {
        flex: 0 0 auto;
        width: calc(100% + 1.5em);
        margin: 0 0 0 -1.5em;
    }

    .crm-gallery {
        grid-template-columns: 1fr;
    }
    .crm-shot--a,
    .crm-shot--b,
    .crm-shot--c,
    .crm-shot--d {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
    .crm-shot--b {
        aspect-ratio: 4 / 5;
    }
    .crm-shot {
        border-radius: 0.9em;
    }
}

/* ------------------------------------------------------------------
   Was unsere CRM-Systeme koennen: Slider zum Klicken. Reiter oben, Pfeile
   rechts, je Bereich eine Karte mit Text und einem Bild aus dem Steven CRM.
   Gleitet wie der Rundgang auf den Projektseiten.
   ------------------------------------------------------------------ */
.crm-slider {
    margin: 18vh 0 12vh;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-slider.is-in {
    opacity: 1;
    transform: translateY(0);
}

.crm-slider-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5em 3em;
    flex-wrap: wrap;
    margin-bottom: 1.8em;
}

.crm-slider-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2em, 4vw, 3em);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.crm-slider-intro {
    flex: 1 1 0;
    min-width: min(100%, 22em);
}

.crm-slider-tab:focus-visible {
    outline: 2px solid rgba(184, 156, 255, 0.9);
    outline-offset: 3px;
}

.crm-slider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.6em;
}

.crm-slider-tab {
    appearance: none;
    cursor: pointer;
    padding: 0.55em 1.15em;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.95em;
    line-height: 1.3;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.crm-slider-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.crm-slider-tab.is-active {
    background: #8a67ff;
    border-color: #8a67ff;
    color: #fff;
}

.crm-slider-viewport {
    overflow: hidden;
    border-radius: 1.2em;
}

.crm-slider-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.crm-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2em, 5vw, 6em);
    align-items: center;
    align-content: start;
    padding: clamp(1.8em, 3vw, 3em);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2em;
    background: rgba(255, 255, 255, 0.02);
}

.crm-slide-text {
    display: flex;
    justify-content: center;
    text-align: center;
    opacity: 0.25;
    transition: opacity 0.6s ease 0.25s;
}

.crm-slide.is-active .crm-slide-text {
    opacity: 1;
}

.crm-slide-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4em, 4.2vw, 3.6em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.crm-slide-list {
    list-style: none;
    margin: 0;
    padding: 0.4em 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9em 2.2em;
    opacity: 0.25;
    transition: opacity 0.6s ease 0.3s;
}

.crm-slide.is-active .crm-slide-list {
    opacity: 1;
}

.crm-slide-list li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.crm-slide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background: #b89cff;
}



/* Jeder Punkt im Slider oeffnet ein Fenster mit der genaueren Erklaerung. */
.crm-feat {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 0.9em 1.2em;
    border: 0;
    background: none;
    font: inherit;
    line-height: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.crm-feat:hover {
    color: #fff;
}

.crm-feat:focus-visible {
    outline: 2px solid rgba(184, 156, 255, 0.9);
    outline-offset: 3px;
    border-radius: 0.3em;
}

/* Fenster wie "Das System im Detail" auf /sdcrm, nur schmaler. */
.crm-modal {
    width: min(40em, 92vw);
    max-width: none;
    max-height: 90vh;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.3em;
    background: rgba(10, 10, 15, 0.96);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
    color: #fff;
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-modal.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.crm-modal::backdrop {
    background: rgba(4, 4, 8, 0.72);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.crm-modal.is-open::backdrop {
    opacity: 1;
}

html.crm-modal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.crm-modal-panel {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.crm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    flex: 0 0 auto;
    padding: clamp(1.5em, 2.4vw, 2.1em) clamp(1.4em, 2.6vw, 2.4em) 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-modal-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4em, 2.2vw, 1.8em);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.crm-modal-close {
    appearance: none;
    cursor: pointer;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.8em;
    height: 2.8em;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    line-height: 0;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.crm-modal-close svg {
    display: block;
    width: 1.3em;
    height: 1.3em;
}

.crm-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

.crm-modal-close:focus-visible {
    outline: 2px solid rgba(138, 103, 255, 0.9);
    outline-offset: 3px;
}

.crm-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1.4em, 2.4vw, 2em) clamp(1.4em, 2.6vw, 2.4em) clamp(1.8em, 2.8vw, 2.4em);
}

.crm-modal-body:focus,
.crm-modal-body:focus-visible {
    outline: none;
}

.crm-modal-text {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1em, 1.1vw, 1.1em);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .crm-slider,
    .crm-slider-track,
    .crm-slide-text,
    .crm-slide-list,
    .crm-feat,
    .crm-modal,
    .crm-modal::backdrop {
        transition: none;
    }
}

@media (max-width: 768px) {
    .crm-slider {
        margin: 14vh 0 10vh;
    }
    .crm-slider-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2em;
    }
    .crm-slider-title {
        font-size: clamp(1.9em, 8vw, 2.6em);
    }
    .crm-slider-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-right: -1.5em;
        padding-right: 1.5em;
    }
    .crm-slider-tabs::-webkit-scrollbar {
        display: none;
    }
    .crm-slide {
        grid-template-columns: 1fr;
        gap: 1.4em;
        padding: 1.4em;
    }
    .crm-slide-title {
        font-size: clamp(1.8em, 8vw, 2.4em);
    }
    .crm-slide-list {
        grid-template-columns: 1fr;
        gap: 0.7em;
    }
    .crm-feat {
        padding-bottom: 0.7em;
    }
    .crm-modal {
        width: 94vw;
        border-radius: 1em;
    }
}

/**
 * @INFO
 * Made by Cevio | https://www.cevio.at
 * @INFO
 */
