/* NosatoMobileFirst 5e homeLayoutDesktop: moderner Aufbau der Startseite ab 768 px (Tablet und Desktop) */
@media (min-width: 768px) {
    .nmf-home-modern {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        /* Theme setzt in der ersten Sektion max-width: none und padding 0 */
        max-width: 1280px !important;
        margin: 0 auto;
        padding: 2rem 1.5rem 3.5rem !important;
    }
    /* gleiche Kante wie die Erlebniswelten-Bloecke (Block 10 px + Spalte 10 px) */
    .nmf-home-modern > .nmf-hb {
        padding-left: 20px;
        padding-right: 20px;
    }
    .nmf-home-modern > .cms-block { order: 50; }
    .nmf-home-modern > .nmf-o-promo { order: 1; }
    .nmf-home-modern > .nmf-o-hero { order: 2; }
    .nmf-home-modern > .nmf-o-slider { order: 3; }
    .nmf-home-modern > .nmf-o-trust { order: 4; }
    .nmf-home-modern > .nmf-o-steps { order: 5; }
    .nmf-home-modern > .nmf-o-faq { order: 6; }
    .nmf-home-modern .nmf-hidden { display: none !important; }
    .nmf-home-modern > .cms-block > .cms-block-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .nmf-home-modern h2 {
        font-size: 1.5rem !important;
        font-weight: 700;
        text-align: left !important;
        margin: 0 0 1.25rem;
    }

    /* Aktion: Banner, Text links, Button rechts */
    .nmf-o-promo .nmf-hb-inner {
        background: var(--bs-primary, #2e7d32);
        color: #fff;
        border-radius: 16px;
        padding: 1.25rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
    .nmf-o-promo h2,
    .nmf-o-promo p {
        color: #fff;
        margin: 0 !important;
    }
    .nmf-o-promo .btn {
        background: #fff;
        border-color: #fff;
        color: var(--bs-primary, #2e7d32);
        border-radius: 999px;
        padding: .75rem 1.75rem;
        font-weight: 700;
        white-space: nowrap;
    }
    .nmf-o-promo .btn:hover {
        background: rgba(255, 255, 255, .9);
    }

    /* Titelbild: Text links, Bild rechts (Bild ist quadratisch, daher kein Vollbreiten-Banner) */
    .nmf-home-modern > .nmf-o-hero {
        display: block !important; /* im Layout nur fuer Handys freigegeben */
    }
    .nmf-o-hero .cms-element-image {
        display: grid !important;
        grid-template-columns: 1fr 1.25fr;
        align-items: stretch;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(255, 255, 255, .55);
    }
    .nmf-o-hero .cms-element-alignment {
        align-self: stretch !important;
        width: 100%;
    }
    .nmf-o-hero .cms-image-container {
        aspect-ratio: 4 / 3;
        height: 100% !important;
        min-height: 0 !important;
    }
    .nmf-o-hero .cms-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }
    .nmf-o-hero .cms-image-link:hover img {
        transform: scale(1.03);
    }
    .nmf-o-hero .nmf-hero-overlay {
        order: -1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(1.5rem, 4vw, 3rem);
    }
    .nmf-o-hero .nmf-hero-overlay div {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: left !important;
    }
    .nmf-o-hero .nmf-hero-overlay h2 {
        font-size: clamp(1.5rem, 3.2vw, 3rem) !important;
        line-height: 1.1;
        color: #222 !important;
        margin: 0 0 1.5rem !important;
    }
    .nmf-o-hero .nmf-hero-overlay a {
        background: #111 !important;
        color: #fff !important;
        border: 0 !important;
        border-radius: 999px;
        padding: .875rem 2rem !important;
        font-size: .9375rem;
        white-space: nowrap;
        box-shadow: none !important;
    }
    .nmf-o-hero .nmf-hero-overlay a:hover {
        background: #333 !important;
    }

    /* Produkt-Slider: Ueberschrift wie die anderen, kompaktere Karten */
    /* Ueberschrift buendig mit den anderen Bloecken (Theme ruckt den Slider fuer die Pfeile 25 px ein) */
    .nmf-o-slider .has-nav-outside .cms-element-title {
        margin-left: -25px;
    }
    .nmf-o-slider .cms-element-title-paragraph {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    .nmf-o-slider .product-description {
        display: none;
    }
    /* gleich hohe Produktbilder */
    /* Theme: height/min/max 300 px und flex: 1 0 180px, dadurch unterschiedlich hoch */
    .nmf-o-slider .product-box .product-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        margin-bottom: .75rem;
    }
    .nmf-o-slider .product-image-wrapper > a,
    .nmf-o-slider .product-image-link {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .nmf-o-slider .product-rating:not(:has(*)) {
        display: none;
    }
    .nmf-o-slider .product-image-wrapper img,
    .nmf-o-slider .product-image {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .nmf-o-slider .product-box {
        border-radius: 12px;
        transition: box-shadow .2s ease, transform .2s ease;
    }
    .nmf-o-slider .product-box:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
        transform: translateY(-2px);
    }

    /* Vorteile: Kacheln in einer Reihe */
    .nmf-o-trust .nmf-trust-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .nmf-o-trust .nmf-trust-grid > span {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, .6);
        border-radius: 14px;
        padding: 1.125rem 1.25rem;
        font-size: .9375rem;
        font-weight: 600;
        line-height: 1.35;
    }

    /* Ablauf: drei Karten nebeneinander */
    .nmf-o-steps .nmf-hb-inner {
        text-align: left;
    }
    .nmf-o-steps ol {
        list-style: none;
        counter-reset: nmf-step;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        font-size: .9375rem !important;
    }
    .nmf-o-steps ol li {
        counter-increment: nmf-step;
        background: rgba(255, 255, 255, .6);
        border-radius: 14px;
        padding: 1.25rem;
        line-height: 1.45;
    }
    .nmf-o-steps ol li::before {
        content: counter(nmf-step);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: var(--bs-primary, #2e7d32);
        color: #fff;
        font-weight: 700;
        margin-bottom: .75rem;
    }

    /* FAQ zum Aufklappen */
    .nmf-o-faq .nmf-faq-item {
        border-bottom: 1px solid rgba(0, 0, 0, .15);
    }
    .nmf-o-faq .nmf-faq-item:first-of-type {
        border-top: 1px solid rgba(0, 0, 0, .15);
    }
    .nmf-o-faq summary {
        list-style: none;
        cursor: pointer;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 2.5rem 1rem 0;
        position: relative;
    }
    .nmf-o-faq summary::-webkit-details-marker { display: none; }
    .nmf-o-faq summary::after {
        content: "+";
        position: absolute;
        right: .5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.375rem;
        font-weight: 400;
    }
    .nmf-o-faq details[open] summary::after { content: "\2212"; }
    .nmf-o-faq .nmf-faq-item p {
        margin: 0 0 1rem;
        font-size: .9375rem !important;
        max-width: 70ch;
    }
}

@media (min-width: 992px) {
    .nmf-o-trust .nmf-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* FAQ: Ueberschrift links, Fragen rechts */
    .nmf-o-faq .cms-element-html {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 3rem;
        align-items: start;
    }
    .nmf-o-faq .cms-element-html > h2 {
        grid-column: 1;
        grid-row: 1 / span 20;
    }
    .nmf-o-faq .cms-element-html > :not(h2) {
        grid-column: 2;
    }
}
