/* ============================================================
   Rotating Cards — Inline Styles
   (replaces the iframe-loaded rotating_cards.html CSS)
   ============================================================ */

/* Animation state selectors */
[class^='mdw-rotating-image-effect'] .elementor-widget-image,
[class*='mdw-rotating-image-effect'] .elementor-widget-image {
    transition: none !important;
}

[class^='mdw-rotating-image-effect'] .mdw-rotating-images,
[class*='mdw-rotating-image-effect'] .mdw-rotating-images {
    perspective: 1000px;
    transition: none !important;
}

[class^='mdw-rotating-image-effect'] .elementor-widget-image img,
[class*='mdw-rotating-image-effect'] .elementor-widget-image img,
[class^='mdw-rotating-image-effect'] .elementor-widget-image a,
[class*='mdw-rotating-image-effect'] .elementor-widget-image a {
    max-width: unset;
}

[class^='mdw-rotating-image-effect'] .mdw-rotating-image-content,
[class*='mdw-rotating-image-effect'] .mdw-rotating-image-content,
[class^='mdw-rotating-image-effect'] .mdw-rotating-images,
[class*='mdw-rotating-image-effect'] .mdw-rotating-images {
    opacity: 0;
}

[class^='mdw-rotating-image-effect'].init .mdw-rotating-image-content,
[class*='mdw-rotating-image-effect'].init .mdw-rotating-image-content,
[class^='mdw-rotating-image-effect'].init .mdw-rotating-images,
[class*='mdw-rotating-image-effect'].init .mdw-rotating-images {
    opacity: 1;
}

/* Fonts */
@font-face {
    font-family: "Satoshi";
    src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/TTX2Z3BF3P6Y5BQT3IV2VNOK6FL22KUT/7QYRJOI3JIMYHGY6CH7SOIFRQLZOLNJ6/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY.woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Satoshi";
    src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/P2LQKHE6KA6ZP4AAGN72KDWMHH6ZH3TA/ZC32TK2P7FPS5GFTL46EU6KQJA24ZYDB/7AHDUZ4A7LFLVFUIFSARGIWCRQJHISQP.woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

/* ============================================================
   Desktop layout (default)
   ============================================================ */

/* Wrapper that fills .rotating-cards-frame and centers the section */
.rc-demo-stage {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
}

.mdw-rotating-image-effect {
    width: min(92vw, 840px);
    display: grid;
    gap: 24px;
    place-items: center;
}

.mdw-rotating-image-content {
    text-align: center;
}

.mdw-rotating-image-content h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 48px);
}

.mdw-rotating-image-content p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.mdw-rotating-images-wrap {
    position: relative;
    width: 100%;
    height: 900px;
}

.mdw-rotating-images {
    position: relative;
    width: 900px;
    height: 900px;
    z-index: 2;
}

.center-video {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 550px;
    height: 550px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    opacity: 0;
}

.elementor-widget-image {
    position: absolute;
    left: calc(50% - 206.5px);
    top: calc(50% - 69px);
    width: 413px;
    height: 138px;
    border-radius: 24px;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    z-index: 2;
}

.elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Headings — positioned absolutely in desktop (relative to .rc-demo-stage) */
.rc-section-heading {
    position: absolute;
    text-align: center;
    max-width: 30%;
    font-family: "Inter Tight", sans-serif;
    font-size: 4rem;
    line-height: 1;
    font-weight: 600;
}

#first-heading {
    left: 17%;
    top: 7%;
    --problem-progress: 0;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image:
        radial-gradient(
            circle at 100% 110%,
            rgba(255, 255, 255, var(--problem-progress)) 5%,
            rgba(255, 255, 255, var(--problem-progress)) 20%,
            rgba(255, 255, 255, var(--problem-progress)) 44%
        ),
        radial-gradient(
            circle at 100% 110%,
            #b57cf64d 5%,
            #99fdff8c 20%,
            #fff 44%
        );
}

#second-heading {
    left: 15%;
    top: 10%;
    --solution-white: 1;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image:
        radial-gradient(
            circle at 90% 100%,
            rgba(255, 255, 255, var(--solution-white)) 5%,
            rgba(255, 255, 255, var(--solution-white)) 20%,
            rgba(255, 255, 255, var(--solution-white)) 44%
        ),
        radial-gradient(
            circle at 90% 100%,
            #b57cf64d 10%,
            #99fdff8c 31%,
            #fff 44%
        );
}

#third-heading {
    --solution-white: 1;
    right: 10%;
    bottom: 10%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image:
        radial-gradient(
            circle at 10% 0,
            rgba(255, 255, 255, var(--solution-white)) 1%,
            rgba(255, 255, 255, var(--solution-white)) 40%,
            rgba(255, 255, 255, var(--solution-white)) 54%
        ),
        radial-gradient(
            circle at 10% 0%,
            #b57cf64d 1%,
            #99fdff8c 40%,
            #fff 54%
        );
}

#first-heading,
#second-heading,
#third-heading {
    opacity: 0;
}

/* Glass card inside inspo text elements */
.inspo-text-element .glass-card {
    z-index: 1;
    flex-flow: row;
    flex: none;
    place-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 370px;
    height: min-content;
    padding: 10px 17px;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: 24px;
    --section-grad-x: 50%;
    --section-grad-y: 50%;
    background: rgba(19, 23, 32, 0.9);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 0 42px rgba(255, 255, 255, 0.04);
}

.inspo-text-element .glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background-image: radial-gradient(
        circle at var(--section-grad-x) var(--section-grad-y),
        rgba(255, 255, 255, 0.24) 0%,
        rgba(153, 253, 255, 0.20) 28%,
        rgba(181, 124, 246, 0.050) 52%,
        rgba(255, 255, 255, 0) 76%
    );
    mix-blend-mode: screen;
}

.inspo-text-element .content-row {
    flex-flow: row;
    flex: none;
    place-content: center flex-start;
    align-items: center;
    gap: 18px;
    width: 374px;
    height: min-content;
    padding: 0;
    display: flex;
    position: relative;
    overflow: visible;
    z-index: 3;
}

.inspo-text-element .icon-stack {
    flex-flow: row;
    flex: none;
    place-content: center;
    align-items: center;
    gap: 10px;
    width: min-content;
    height: min-content;
    padding: 0;
    display: flex;
    position: relative;
    overflow: visible;
    transform: scale(0.9);
}

.inspo-text-element .icon-shape {
    z-index: 2;
    flex: none;
    width: 54px;
    height: 78px;
    position: relative;
    image-rendering: pixelated;
    flex-shrink: 0;
    background-size: 100% 100%;
    background-image: none;
}

.inspo-text-element .icon-glass-layer {
    z-index: 1;
    flex: none;
    position: absolute;
    inset: 0;
}

.inspo-text-element .divider-line {
    flex: none;
    width: 3px;
    height: 50px;
    position: relative;
    image-rendering: pixelated;
    flex-shrink: 0;
    fill: rgba(0, 0, 0, 1);
    color: rgba(0, 0, 0, 1);
}

.inspo-text-element .text-column {
    flex-flow: column;
    flex: 1 0 0;
    place-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    width: 1px;
    height: min-content;
    padding: 0;
    display: flex;
    position: relative;
    overflow: visible;
}

.inspo-text-element .richtext-block {
    --framer-paragraph-spacing: 0px;
    white-space: pre-wrap;
    word-break: break-word;
    word-wrap: break-word;
    flex: none;
    width: 300px;
    height: auto;
    position: relative;
    transform: none;
}

.inspo-text-element .card-glass-layer {
    z-index: 0;
    flex: none;
    position: absolute;
    inset: 0;
}

/* Framer rich-text */
[data-framer-component-type="RichTextContainer"] {
    outline: none;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: flex-start;
    display: flex;
}

:is(p, div, figure, h1, h2, h3, h4, h5, h6, ol, ul).framer-text {
    margin: 0;
    padding: 0;
}

:is(p, div, h1, h2, h3, h4, h5, h6, li, ol, ul, mark).framer-text,
span.framer-text:not([data-text-fill]) {
    font-family: var(--framer-font-family-preview, var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
    font-style: var(--framer-font-style-preview, var(--framer-blockquote-font-style, var(--framer-font-style, normal)));
    font-weight: var(--framer-font-weight-preview, var(--framer-blockquote-font-weight, var(--framer-font-weight, 400)));
    color: var(--framer-blockquote-text-color, var(--framer-text-color, #000));
    font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
    letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
    text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none));
    -webkit-text-decoration-line: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, initial));
    text-decoration-line: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, initial));
    -webkit-text-decoration-style: var(--framer-blockquote-text-decoration-style, var(--framer-text-decoration-style, initial));
    text-decoration-style: var(--framer-blockquote-text-decoration-style, var(--framer-text-decoration-style, initial));
    -webkit-text-decoration-color: var(--framer-blockquote-text-decoration-color, var(--framer-text-decoration-color, initial));
    text-decoration-color: var(--framer-blockquote-text-decoration-color, var(--framer-text-decoration-color, initial));
    text-decoration-thickness: var(--framer-blockquote-text-decoration-thickness, var(--framer-text-decoration-thickness, initial));
    text-decoration-skip-ink: var(--framer-blockquote-text-decoration-skip-ink, var(--framer-text-decoration-skip-ink, initial));
    text-underline-offset: var(--framer-blockquote-text-decoration-offset, var(--framer-text-decoration-offset, initial));
    line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em));
    text-align: var(--framer-blockquote-text-alignment, var(--framer-text-alignment, start));
    -webkit-text-stroke-width: var(--framer-text-stroke-width, initial);
    -webkit-text-stroke-color: var(--framer-text-stroke-color, initial);
    -moz-font-feature-settings: var(--framer-font-open-type-features, initial);
    -webkit-font-feature-settings: var(--framer-font-open-type-features, initial);
    font-feature-settings: var(--framer-font-open-type-features, initial);
    font-variation-settings: var(--framer-font-variation-axes-preview, var(--framer-font-variation-axes, normal));
    text-wrap: var(--framer-text-wrap-override, var(--framer-text-wrap));
}

/* Utility */
.fill-parent-relative {
    width: 100%;
    height: 100%;
    position: relative;
}

.glass-fill {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: absolute;
    z-index: 1;
    background: linear-gradient(180deg, rgba(42, 47, 59, 0.6), rgba(28, 32, 42, 0.72));
}

.glass-fill-strong {
    background: linear-gradient(180deg, rgba(52, 58, 72, 0.74), rgba(32, 37, 48, 0.84));
}

.glass-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(315deg, rgb(255, 255, 255) 0%, rgba(120, 120, 120, 0) 30%, rgba(120, 120, 120, 0) 70%, rgb(255, 255, 255) 100%) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    border: 1px solid transparent;
}

.svg-container-fill {
    width: 100%;
    height: 100%;
    aspect-ratio: inherit;
}

.svg-fill {
    width: 100%;
    height: 100%;
}

.intro-text {
    --font-selector: RlM7U2F0b3NoaS1yZWd1bGFy;
    --framer-font-family: "Satoshi", "Satoshi Placeholder", sans-serif;
    --framer-font-size: 20px;
    --framer-text-color: rgb(255, 255, 255);
    --framer-text-transform: none;
}

.intro-text-strong {
    --font-selector: RlM7U2F0b3NoaS1tZWRpdW0=;
    --framer-font-weight: 500;
}

/* ============================================================
   Mobile overrides — static stacked layout
   ============================================================ */
@media (max-width: 768px) {
    #rotating-cards-embed {
        margin-bottom: 6rem;
    }

    #rotating-cards-embed.is-mobile-second-stage {
        margin-top: -200px;
    }

    .rc-demo-stage {
        width: 100%;
        height: auto;
        min-height: unset;
        display: block;
        position: relative;
    }

    .rc-section-heading {
        position: static;
        width: 100%;
        max-width: none;
        margin: 0;
        z-index: 999;
    }

    /* Flex column so we can reorder third-heading below the cards.
       Use attribute selector because the class name includes config suffixes. */
    [class^='mdw-rotating-image-effect'],
    [class*=' mdw-rotating-image-effect'] {
        width: 100%;
        min-height: unset;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 24px 16px 32px;
        box-sizing: border-box;
        overflow-x: hidden;
        place-items: unset;
    }

    /* First/second headings: natural order (0) → stay at top */

    /* Cards wrap: middle (after headings, before third heading) */
    .mdw-rotating-images-wrap {
        order: 5;
        position: relative;
        width: 100%;
        margin-left: 0;
        margin-top: -20px;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow-x: hidden;
    }

    /* Third heading: pushed to bottom of the stack */
    #third-heading {
        order: 10;
        right: auto;
        bottom: auto;
        max-width: none;
        padding-top: 8px;
    }

    /* Thin separator line above "Das Ergebnis:" */
    #third-heading::before {
        content: '';
        display: block;
        width: 52px;
        height: 2px;
        margin: 0 auto 20px;
        background: linear-gradient(90deg, transparent, rgba(99, 253, 255, 0.55), transparent);
    }

    .mdw-rotating-images {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 2;
    }

    .center-video {
        position: relative;
        left: auto;
        top: auto;
        width: 72vw;
        max-width: 340px;
        aspect-ratio: 1 / 1;
        height: auto;
        transform: none;
        align-self: center;
        margin: 0 auto;
        border-radius: 999px;
        object-fit: cover;
        object-position: center 65%;
        z-index: 0;
        pointer-events: none;
        opacity: 1;
    }

    .elementor-widget-image {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        border-radius: 24px;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        z-index: 2;
        transform: none !important;
    }

    .inspo-text-element .glass-card {
        width: 100%;
        max-width: 100%;
        height: min-content;
        padding: 10px 16px;
        box-sizing: border-box;
        position: relative;
        bottom: auto;
        left: auto;
    }

    .inspo-text-element .content-row {
        gap: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .inspo-text-element .icon-stack {
        transform: scale(1);
        flex-shrink: 0;
    }

    .inspo-text-element .icon-shape {
        width: 44px;
        height: 60px;
    }

    .inspo-text-element .divider-line {
        height: 44px;
        flex-shrink: 0;
    }

    .inspo-text-element .text-column {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        gap: 0;
    }

    .inspo-text-element .richtext-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .framer-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .intro-text {
        --framer-font-size: 18px;
        line-height: 1.25;
    }

    #first-heading h2,
    #second-heading h2,
    #third-heading h2 {
        margin: 0;
        width: 100%;
        font-size: clamp(1.85rem, 8vw, 2.6rem);
        line-height: 1.05;
        letter-spacing: -0.03em;
        text-wrap: balance;
    }

    #first-heading {
        opacity: 1;
        padding-top: 0;
        left: auto;
        top: auto;
        background-image:
            radial-gradient(
                circle at 50% 110%,
                rgba(255, 255, 255, var(--problem-progress)) 5%,
                rgba(255, 255, 255, var(--problem-progress)) 20%,
                rgba(255, 255, 255, var(--problem-progress)) 44%
            ),
            radial-gradient(
                circle at 50% 130%,
                #c57cf64d 5%,
                #99fdff8c 20%,
                #fff 44%
            );
    }

    #second-heading {
        opacity: 0;
        padding-top: 6px;
        visibility: hidden;
        left: auto;
        top: auto;
        max-width: none;
        background-image:
            radial-gradient(
                circle at 50% 150%,
                rgba(255, 255, 255, var(--solution-white)) 5%,
                rgba(255, 255, 255, var(--solution-white)) 20%,
                rgba(255, 255, 255, var(--solution-white)) 44%
            ),
            radial-gradient(
                circle at 50% 150%,
                #b57cf64d 10%,
                #99fdff8c 31%,
                #fff 44%
            );
    }

    #third-heading {
        text-align: center;
        background-image:
            radial-gradient(
                circle at 50% 0%,
                rgba(255, 255, 255, var(--solution-white)) 1%,
                rgba(255, 255, 255, var(--solution-white)) 40%,
                rgba(255, 255, 255, var(--solution-white)) 54%
            ),
            radial-gradient(
                circle at 50% 0%,
                #b57cf64d 1%,
                #99fdff8c 40%,
                #fff 54%
            );
    }
}
