/* =========================
   8. Responsive
   ========================= */
@media (max-width: 860px) {
        .site-sidebar::before {
            background: var(--yamaha-color-surface-warm);
            border-right: 1px solid var(--yamaha-color-border);
        }

        html.sidebar-state-open .site-main,
        .site-shell:has(.site-sidebar.is-open) .site-main {
            width: 100%;
            margin-left: 0;
        }

        html.sidebar-state-open .product-back-link,
        body:has(.site-sidebar.is-open) .product-back-link {
            left: min(calc(280px + 1rem), calc(100vw - 3.75rem));
        }

        html.sidebar-state-open .hero-scroll-indicator,
        body:has(.site-sidebar.is-open) .hero-scroll-indicator {
            left: 0;
        }

        .product-detail-actions {
            grid-template-columns: 1fr;
            align-items: start;
        }

        .sortiment-filter {
            grid-template-columns: 1fr;
        }

        .technology-facts,
        .technology-process ol {
            grid-template-columns: 1fr;
        }

        .technology-process li {
            min-height: auto;
            border-right: 0;
            border-bottom: 1px solid var(--yamaha-color-border-strong);
        }

        .technology-process li:last-child {
            border-bottom: 0;
        }

        .product-detail-overview {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .product-detail-overview p:nth-child(2) {
            border-right: 0;
        }

        .product-detail-overview p:nth-child(-n + 2) {
            border-bottom: 1px solid var(--yamaha-color-border-strong);
        }

        .product-detail-overview p:last-child {
            grid-column: 1 / -1;
        }

        .product-configuration-panel {
            grid-template-columns: 1fr;
        }

        .product-configuration-panel p + p {
            border-top: 1px solid var(--yamaha-color-border-strong);
            border-left: 0;
        }

        .product-variant-summary {
            border-top: 1px solid var(--yamaha-color-border-strong);
            border-left: 0;
        }

        .instrument-landing-page > .wp-block-group ul {
            grid-template-columns: 1fr;
        }

        .instrument-landing-page > .wp-block-group li {
            border-right: 0;
            border-bottom: 1px solid var(--yamaha-color-border-strong);
        }

        .instrument-landing-page > .wp-block-group li:last-child {
            border-bottom: 0;
        }

        .tech-card {
            flex-direction: column;
        }

        .tech-card > .wp-block-column {
            width: 100%;
            flex-basis: auto !important;
        }

        .contact-methods {
            grid-template-columns: 1fr !important;
        }

        .contact-visit {
            grid-template-columns: 1fr !important;
        }

        .contact-map,
        .contact-map iframe {
            min-height: 26rem;
        }
   }

   @media (max-width: 520px) {
        .admin-bar .instrument-selector-modal { top: 46px; }

        .instrument-selector-modal { padding: 0.5rem; }

        .instrument-selector-modal-dialog {
            padding: 1rem;
            border-radius: 0.75rem;
        }

        .instrument-selector-modal .instrument-selector-step legend {
            font-size: clamp(1.75rem, 9vw, 2.5rem);
        }

        .instrument-selector-modal .instrument-selector-options label,
        .instrument-selector-modal .instrument-selector-options label > span { min-height: 5rem; }

        .instrument-selector-modal .instrument-selector-options {
            grid-template-columns: minmax(0, 1fr);
        }

        .instrument-selector-modal .instrument-selector-options label {
            flex-basis: auto;
        }

        .sortiment-catalog-toolbar {
            align-items: flex-start;
            flex-direction: column;
        }

        .sortiment-selector-link {
            margin-left: 0;
        }
   }

   @media (prefers-reduced-motion: reduce) {
        .instrument-selector-modal-backdrop,
        .instrument-selector-modal-dialog { animation: none; }
   }
