html.is-iframe-embedded,
body.is-iframe-embedded {
    padding: 34px 48px 0 48px !important;
}

body.is-iframe-embedded {
    padding: 20px 8px 34px 8px !important;
}

body.is-iframe-embedded * {
    box-sizing: border-box;
}

body.is-iframe-embedded img,
body.is-iframe-embedded picture,
body.is-iframe-embedded video {
    max-width: 100%;
}

body.is-iframe-embedded .container {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto !important;
}

body.is-iframe-embedded .hero,
body.is-iframe-embedded .card,
body.is-iframe-embedded .package-list,
body.is-iframe-embedded .product-grid,
body.is-iframe-embedded .selection-grid {
    max-width: 100%;
    overflow-x: hidden;
}

body.is-iframe-embedded .product-card,
body.is-iframe-embedded .package-card {
    overflow: hidden;
}

body.is-iframe-embedded .product-card img,
body.is-iframe-embedded .package-card img,
body.is-iframe-embedded .product-image img,
body.is-iframe-embedded .package-image img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

body.is-iframe-embedded .sticky-price,
body.is-iframe-embedded .price-box,
body.is-iframe-embedded [class*="sticky"] {
    max-width: 100%;
}


@media (max-width: 768px) {
    body.is-iframe-embedded {
        padding: 12px 8px 24px 8px !important;
    }

    body.is-iframe-embedded .container {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    body.is-iframe-embedded .hero,
    body.is-iframe-embedded .card {
        max-width: 100%;
    }

    
}

/* Preisbox immer über Powered By */


/* iFrame: Kundenlogo größer darstellen */
body.is-iframe-embedded .logo {
    width: calc(var(--logo-width) * 2) !important;
    max-width: 100% !important;
    height: auto !important;
}


/* FINAL mobile iframe spacing hard override */
@media (max-width: 768px) {
    html.is-iframe-embedded,
    body.is-iframe-embedded {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    body.is-iframe-embedded .container,
    body.is-iframe-embedded .container-wide,
    body.is-iframe-embedded main.container,
    body.is-iframe-embedded main.container-wide {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.is-iframe-embedded .hero,
    body.is-iframe-embedded .wizard,
    body.is-iframe-embedded .wizard-card,
    body.is-iframe-embedded .card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Danke-Seite im iFrame stabil halten */
body.is-iframe-embedded:has(.thank-you),
body.is-iframe-embedded:has(.thank-you-card) {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
}


/* FINAL Danke-Seite iFrame Fix */
html.is-thank-you-iframe,
body.is-thank-you-iframe {
    min-height: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    padding-bottom: 0 !important;
}

body.is-thank-you-iframe main,
body.is-thank-you-iframe .container,
body.is-thank-you-iframe .hero,
body.is-thank-you-iframe .thank-you,
body.is-thank-you-iframe .thank-you-card,
body.is-thank-you-iframe .card {
    min-height: 0 !important;
    height: auto !important;
}
