/* NosatoMobileFirst 1a pdpCompact: kompaktere Produktseite auf dem Handy (< 768px).
   Galerie kleiner: im Erlebniswelten-Layout der Produktseite die Mindesthöhe der Galerie senken.
   Gilt nur auf der Produktdetailseite (Body-Klasse der Route). */
@media (max-width: 767.98px) {
    .is-active-route-frontend-detail-page .breadcrumb {
        font-size: .875rem;
        margin-bottom: .25rem;
    }
    .is-active-route-frontend-detail-page .cms-breadcrumb {
        margin-bottom: .25rem;
    }

    /* Galerie: Höhe bleibt wie im Layout eingestellt (Free Theme One positioniert das Bild absolut,
       die Höhe kommt aus der Mindesthöhe). Nur die Abstände werden reduziert. */
    .is-active-route-frontend-detail-page .cms-element-image-gallery .base-slider-dots {
        margin-top: .25rem;
        margin-bottom: 0;
    }
    .is-active-route-frontend-detail-page .cms-block-gallery-buybox .cms-element-image-gallery,
    .is-active-route-frontend-detail-page .cms-block-gallery-buybox .cms-block-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Free Theme One: Titel sitzt im Kaufbereich mit 40px Abstand oben */
    .is-active-route-frontend-detail-page .ft-product-detail-heading {
        margin-top: .5rem;
    }
    .is-active-route-frontend-detail-page .product-detail-media {
        padding-bottom: 0;
    }

    /* Titel und Preis */
    .is-active-route-frontend-detail-page .product-detail-name {
        font-size: 1.25rem;
        line-height: 1.3;
        margin: .5rem 0 .25rem;
    }
    .is-active-route-frontend-detail-page .product-detail-buy .product-detail-price {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    .is-active-route-frontend-detail-page .product-detail-price-container {
        margin-bottom: 0;
    }
    .is-active-route-frontend-detail-page .product-detail-buy .product-detail-tax-container,
    .is-active-route-frontend-detail-page .product-detail-buy .product-detail-tax {
        margin-bottom: .25rem;
        font-size: .8125rem;
    }
    .is-active-route-frontend-detail-page .product-detail-buy .regulation-price,
    .is-active-route-frontend-detail-page .product-detail-buy .product-detail-list-price-wrapper {
        font-size: .8125rem;
    }

    /* Variante und Zusatzfelder enger setzen */
    .is-active-route-frontend-detail-page .product-detail-configurator-container,
    .is-active-route-frontend-detail-page .product-detail-form-container .form-group,
    .is-active-route-frontend-detail-page .product-detail-form-container .mb-3 {
        margin-bottom: .5rem;
    }
    .is-active-route-frontend-detail-page .product-detail-buy .form-label,
    .is-active-route-frontend-detail-page .product-detail-buy label {
        font-size: .9375rem;
        margin-bottom: .25rem;
    }
    .is-active-route-frontend-detail-page .product-detail-buy .form-select,
    .is-active-route-frontend-detail-page .product-detail-buy select.form-control {
        min-height: 44px;
        padding-top: .5rem;
        padding-bottom: .5rem;
        font-size: 1rem; /* 16px verhindert Auto-Zoom in iOS */
    }

    /* Info-Boxen im Kaufbereich: zwei Zeilen, per Tipp aufklappbar (Klasse setzt pdp-compact.js) */
    .is-active-route-frontend-detail-page .nmf-clamp {
        font-size: .8125rem;
        padding: .5rem .75rem;
        margin-bottom: .5rem;
        cursor: pointer;
    }
    .is-active-route-frontend-detail-page .nmf-clamp .alert-content,
    .is-active-route-frontend-detail-page .nmf-clamp > :not(.alert-icon, .icon) {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .is-active-route-frontend-detail-page .nmf-clamp.is-open .alert-content,
    .is-active-route-frontend-detail-page .nmf-clamp.is-open > :not(.alert-icon, .icon) {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    .is-active-route-frontend-detail-page .nmf-clamp .icon {
        width: 1rem;
        height: 1rem;
    }

    /* Menge und Button */
    .is-active-route-frontend-detail-page .product-detail-form-container .btn-buy {
        min-height: 48px;
        font-size: 1.0625rem;
    }
    .is-active-route-frontend-detail-page .product-detail-ordernumber-container {
        font-size: .8125rem;
    }
}
