/* NosatoMobileFirst 5c homeLayoutModern: moderner Aufbau der Startseite auf dem Handy */
@media (max-width: 767.98px) {
    .nmf-home-modern {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-top: .75rem;
        padding-bottom: 1.5rem;
    }
    .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 > .nmf-hb {
        padding-left: 10px;
        padding-right: 10px;
    }
    .nmf-home-modern > .cms-block > .cms-block-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .nmf-home-modern h2 {
        font-size: 1.125rem !important;
        font-weight: 700;
        text-align: left !important;
        margin: 0 0 .75rem;
    }

    /* Aktion: farbige Karte */
    .nmf-o-promo .nmf-hb-inner {
        background: var(--bs-primary, #2e7d32);
        color: #fff;
        border-radius: 16px;
        padding: 1rem 1.125rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }
    .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;
        min-height: 44px;
        padding: .625rem 1.25rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
    }

    /* Titelbild: abgerundet, Text und Button liegen auf dem Bild */
    .nmf-o-hero .cms-element-image {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
    }
    .nmf-o-hero .cms-image-container {
        aspect-ratio: 4 / 5;
        min-height: 0 !important;
        height: auto !important;
    }
    .nmf-o-hero .cms-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .nmf-o-hero .cms-image-link::after {
        content: "";
        position: absolute;
        inset: 45% 0 0 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
        pointer-events: none;
    }
    .nmf-o-hero .nmf-hero-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 1.25rem;
        z-index: 2;
        pointer-events: none;
    }
    .nmf-o-hero .nmf-hero-overlay div {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .nmf-o-hero .nmf-hero-overlay h2 {
        color: #fff !important;
        font-size: 1.75rem !important;
        text-align: center !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
        margin: 0 0 .75rem !important;
    }
    .nmf-o-hero .nmf-hero-overlay a {
        pointer-events: auto;
        background: #fff !important;
        color: #111 !important;
        border: 0 !important;
        border-radius: 999px;
        padding: .75rem 1.75rem !important;
        font-size: .875rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
    }

    /* Vorteile: 2x2 Kacheln */
    .nmf-o-trust .nmf-trust-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        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: 12px;
        padding: .625rem .75rem;
        font-size: .8125rem;
        line-height: 1.35;
        min-height: 3.5rem;
    }

    /* Ablauf: nummerierte Schritte */
    .nmf-o-steps ol {
        list-style: none;
        counter-reset: nmf-step;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        display: grid;
        gap: .5rem;
    }
    .nmf-o-steps ol li {
        counter-increment: nmf-step;
        display: flex;
        align-items: center;
        gap: .75rem;
        font-size: .875rem;
        line-height: 1.4;
    }
    .nmf-o-steps ol li::before {
        content: counter(nmf-step);
        flex: 0 0 2rem;
        height: 2rem;
        border-radius: 50%;
        background: var(--bs-primary, #2e7d32);
        color: #fff;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 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: .9375rem;
        padding: .875rem 2rem .875rem 0;
        position: relative;
        min-height: 44px;
    }
    .nmf-o-faq summary::-webkit-details-marker { display: none; }
    .nmf-o-faq summary::after {
        content: "+";
        position: absolute;
        right: .25rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.25rem;
        font-weight: 400;
    }
    .nmf-o-faq details[open] summary::after { content: "\2212"; }
    .nmf-o-faq .nmf-faq-item p {
        margin: 0 0 .875rem;
    }
}
