﻿/* eazyFind modal styles extracted from legacy runtime. Dynamic values are provided via CSS variables on #zhz-search-modal. */
/* Modal Base */
        .zhz-modal { display: none; position: fixed; inset: 0; z-index: var(--zhz-modal-z-index, 9999); align-items: flex-start; justify-content: center; padding: 0; }
        .zhz-modal.active { display: flex; }
        .zhz-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
        .zhz-modal-content { position: relative; background: white; width: 100%; max-width: 100%; height: 100vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: modalSlideIn 0.3s ease-out; }
        body.zhz-admin-test-mode input[name="qs"], body.zhz-admin-test-mode #search-header, body.zhz-admin-test-mode .search-field, body.zhz-admin-test-mode input[name="search"] { pointer-events: auto !important; opacity: 1 !important; }
        @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

        /* Header */
        .zhz-modal-header { background: var(--zhz-modal-header-bg, #111827); color: white; padding: 12px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; position: relative; }
        .zhz-desktop-only { display: none; } /* Mobile: Desktop-Header verstecken */
        .zhz-header-top { display: none; } /* Mobile: Header-Text komplett ausblenden */
        .zhz-modal-title { display: none; } /* Mobile: Titel komplett weg */
        .zhz-modal-title h2 { margin: 0 0 4px 0; font-size: 20px; font-weight: 700; }
        .zhz-subtitle { margin: 0; font-size: 12px; opacity: 0.9; color: #d1d5db; }

        /* Search Inside Header */
        .zhz-modal-search { padding: 4px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px; background: white; box-shadow: 0 1px 2px rgba(0,0,0,0.05); flex: 1; }

        /* Close Button - gleiche Höhe wie das weiße Suchfeld */
        .zhz-modal-close { background: rgba(255, 255, 255, 0.15); border: none; padding: 0; color: white; cursor: pointer; transition: all 0.2s; border-radius: 6px; align-self: stretch; width: 29px; min-width: 29px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .zhz-modal-close:hover { background: rgba(255, 255, 255, 0.3); }
        .zhz-modal-close svg { width: 18px; height: 18px; }

        /* Mobile: Desktop-Button verstecken, Mobile-Button zeigen */
        .zhz-close-desktop { display: none; }
        .zhz-close-mobile { display: flex; }

        /* Mobile: Suchfeld + X nebeneinander */
        .zhz-search-row { display: flex; align-items: center; gap: 8px; }

        .zhz-search-icon { color: #9ca3af; flex-shrink: 0; width: 14px; height: 14px; }
        .zhz-input-wrapper { position: relative; flex: 1; display: inline-block; font-size: 14px; line-height: 1.5; font-family: inherit; }
        .zhz-modal-search-input { position: relative; width: 100%; border: none; outline: none; font: inherit; padding: 0; background: transparent; color: #111827; caret-color: #111827; }
        #zhz-suggestions-dropdown { position: absolute; top: 100%; left: 0; right: auto; width: min(var(--zhz-suggestions-width, 400px), calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: var(--zhz-suggestions-max-height, 176px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin-top: 6px; z-index: 1001; background: rgba(255,255,255,.82); backdrop-filter: blur(8px) saturate(115%); -webkit-backdrop-filter: blur(8px) saturate(115%); border: 1px solid rgba(226,232,240,.45); border-radius: 12px; box-shadow: 0 12px 34px rgba(15,23,42,.10); }
        #zhz-suggestions-dropdown::-webkit-scrollbar { width: 0; height: 0; display: none; }
        .zhz-suggestion-item { padding: 12px 16px 12px 44px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background-color .15s, color .15s; border-bottom: 0; }
        .zhz-suggestion-item:hover, .zhz-suggestion-item.active { background: rgba(248,250,252,.78); }
        .zhz-suggestion-icon { font-size: 14px; color: #9ca3af; width: 20px; text-align: center; flex: 0 0 auto; }
        .zhz-suggestion-text { flex: 1; font-size: 14px; color: #374151; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .zhz-modal-min-length-message { text-align: center; padding: 40px; color: #999; }
        .zhz-sidebar-empty { padding: 16px; color: #6b7280; font-size: 12px; }
        .zhz-spinner { width: 16px; height: 16px; border: 2px solid #e5e7eb; border-top-color: #111827; border-radius: 50%; animation: spin 0.6s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .zhz-clear-btn, .zhz-filter-btn { background: transparent; border: none; padding: 6px; border-radius: 6px; cursor: pointer; color: #6b7280; transition: all 0.15s; flex-shrink: 0; }
        .zhz-clear-btn:hover, .zhz-filter-btn:hover { background: #f3f4f6; }
        .zhz-filter-btn.active { background: #e5e7eb; color: #3b82f6; }
        .zhz-filter-btn svg { animation: pulse 1.5s ease-in-out infinite; }
        .zhz-filter-btn.active svg { animation: pulse-fast 0.8s ease-in-out infinite; }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); color: #6b7280; }
            50% { opacity: 0.5; transform: scale(1.15); color: #3b82f6; }
        }
        @keyframes pulse-fast {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.2); }
        }

        /* Voice Search Button */
        .zhz-voice-btn { background: none; border: none; padding: 6px; cursor: pointer; color: #6b7280; border-radius: 6px; transition: all 0.2s ease; flex-shrink: 0; display: none; position: relative; -webkit-tap-highlight-color: transparent; }
        .zhz-voice-btn:hover { background: #f3f4f6; color: #111827; }
        .zhz-voice-btn:active { transform: scale(0.95); }
        .zhz-voice-btn.zhz-voice-active { background: #dc2626; color: white; animation: zhz-voice-pulse-btn 1.5s ease-in-out infinite; }
        .zhz-voice-btn.zhz-voice-error { background: #fca5a5; color: #991b1b; }
        .zhz-voice-pulse { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 6px; background: #dc2626; opacity: 0.4; }
        .zhz-voice-btn.zhz-voice-active .zhz-voice-pulse { display: block; animation: zhz-voice-pulse-ring 1.5s ease-in-out infinite; }
        @keyframes zhz-voice-pulse-btn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
        @keyframes zhz-voice-pulse-ring { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; } 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
        @media (max-width: 767px) { .zhz-voice-btn { padding: 10px; min-width: 44px; min-height: 44px; } }
        @media (min-width: 768px) { .zhz-voice-btn { display: none !important; } }

        /* Voice Consent Dialog */
        .zhz-voice-consent { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000000; display: flex; align-items: center; justify-content: center; }
        .zhz-voice-consent-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
        .zhz-voice-consent-dialog { position: relative; background: white; border-radius: 12px; max-width: 400px; width: 90%; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); animation: zhz-consent-slide-up 0.3s ease-out; }
        .zhz-voice-consent-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .zhz-voice-consent-header svg { color: #2563eb; flex-shrink: 0; }
        .zhz-voice-consent-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #111827; }
        .zhz-voice-consent-body { margin-bottom: 24px; }
        .zhz-voice-consent-body p { margin: 0 0 12px 0; font-size: 14px; line-height: 1.5; color: #4b5563; }
        .zhz-voice-consent-body strong { color: #111827; font-weight: 600; }
        .zhz-voice-consent-info { font-size: 13px; color: #6b7280; }
        .zhz-voice-consent-info a { color: #2563eb; text-decoration: underline; }
        .zhz-voice-consent-actions { display: flex; gap: 12px; justify-content: flex-end; }
        .zhz-voice-consent-cancel, .zhz-voice-consent-accept { padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border: none; }
        .zhz-voice-consent-cancel { background: #f3f4f6; color: #374151; }
        .zhz-voice-consent-cancel:hover { background: #e5e7eb; }
        .zhz-voice-consent-accept { background: #2563eb; color: white; }
        .zhz-voice-consent-accept:hover { background: #1d4ed8; }
        @keyframes zhz-consent-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        @media (max-width: 767px) { .zhz-voice-consent-dialog { max-width: 90%; padding: 20px; } .zhz-voice-consent-actions { flex-direction: column-reverse; } .zhz-voice-consent-cancel, .zhz-voice-consent-accept { width: 100%; padding: 12px; } }

        /* Filters - Mobile: Als Modal/Overlay */
        .zhz-filters { position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; background: white; display: none; flex-direction: column; }
        .zhz-filters[style*="display: block"], .zhz-filters[style*="display:block"] { display: flex !important; }
        .zhz-filter-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: white; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
        .zhz-filter-tabs { display: flex; border-bottom: 2px solid #e5e7eb; flex: 1; }
        .zhz-filter-tab { background: transparent; border: none; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s; display: flex; align-items: center; gap: 6px; }
        .zhz-filter-tab.active { color: #2563eb !important; border-bottom-color: #2563eb !important; }
        .zhz-filter-badge { background: #2563eb; color: white; font-size: 10px; padding: 2px 6px; border-radius: 999px; }
        .zhz-filter-close { background: #ef4444; border: none; padding: 6px; border-radius: 6px; color: white; cursor: pointer; margin-left: 12px; flex-shrink: 0; transition: background 0.15s; }
        .zhz-filter-close:hover { background: #dc2626; }
        .zhz-filter-content { padding: 12px 16px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; background: white; }
        .zhz-filter-content::-webkit-scrollbar { width: 6px; }
        .zhz-filter-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        .zhz-filter-panel { display: none; background: white; }
        .zhz-filter-panel.active { display: block; }
        #zhz-attribute-filters { background: white; }
        #zhz-category-filters { background: white; }
        .zhz-filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; background: white; }
        .zhz-filter-group { background: white; }
        .zhz-filter-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #6b7280; }
        .zhz-filter-title svg { flex-shrink: 0; }
        .zhz-filter-title h4 { margin: 0; font-size: 12px; font-weight: 600; color: #111827; }
        .zhz-filter-count { background: #111827; color: white; font-size: 10px; padding: 2px 6px; border-radius: 999px; margin-left: auto; }
        .zhz-price-range { font-size: 12px; color: #6b7280; font-weight: 500; margin-left: auto; }
        .zhz-filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
        .zhz-filter-option { padding: 4px 10px; background: white; border: 1px solid #9ca3af; border-radius: 6px; font-size: 12px; color: #111827; cursor: pointer; transition: all 0.15s; font-weight: 500; }
        .zhz-filter-option:hover { border-color: #6b7280; background: #f9fafb; }
        .zhz-filter-option.active { padding: 4px 10px !important; font-size: 12px !important; background: #2563eb !important; color: white !important; border-color: #2563eb !important; font-weight: 600 !important; }
        .zhz-attribute-group { margin-bottom: 16px; background: white; }
        .zhz-attribute-title { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 8px; }
        .zhz-attribute-values { display: flex; flex-wrap: wrap; gap: 6px; background: white; }
        .zhz-price-sliders { display: flex; flex-direction: column; gap: 8px; }
        .zhz-slider-group { display: flex; align-items: center; gap: 8px; }
        .zhz-slider-label { font-size: 11px; color: #6b7280; width: 32px; }
        .zhz-range-slider { flex: 1; }
        .zhz-filter-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
        .zhz-reset-btn { font-size: 13px; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; cursor: pointer; padding: 6px 12px; font-weight: 500; transition: all 0.15s; }
        .zhz-reset-btn:hover { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }
        .zhz-apply-btn { font-size: 13px; color: #fff; background: #2563eb; border: 1px solid #1d4ed8; border-radius: 6px; cursor: pointer; padding: 6px 14px; font-weight: 500; transition: all 0.15s; }
        .zhz-apply-btn:hover { background: #1d4ed8; border-color: #1e40af; }
        .zhz-no-filters { font-size: 12px; color: #6b7280; text-align: center; padding: 16px 0; margin: 0; }

        /* Results */
        .zhz-modal-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0; background: var(--zhz-modal-body-bg, #ffffff); scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #e5e7eb transparent; }
        .zhz-modal-body::-webkit-scrollbar { width: 8px; }
        .zhz-modal-body::-webkit-scrollbar-track { background: transparent; }
        .zhz-modal-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
        .zhz-modal-body::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

        /* Footer */
        .zhz-modal-footer { padding: 12px 20px; border-top: 1px solid #e5e7eb; background: #f9fafb; text-align: center; }
        .zhz-copyright { font-size: 11px; color: #6b7280; }
        .zhz-copyright a { color: #2563eb; text-decoration: none; font-weight: 600; }
        .zhz-copyright a:hover { text-decoration: underline; }

        .zhz-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 12px 12px 0; color: #6b7280; }
        .zhz-section-title svg { flex-shrink: 0; width: 16px; height: 16px; }
        .zhz-section-title h3 { margin: 0; font-size: 13px; font-weight: 600; color: #111827; }
        .zhz-popular-searches { margin-bottom: 0; padding: 0 12px 12px; }
        .zhz-search-banner { margin: 12px; border-radius: 8px; overflow: hidden; }
        .zhz-banner-link { display: block; text-decoration: none; }
        .zhz-banner-image { width: 100%; height: auto; display: block; }
        .zhz-top-products { margin-bottom: 0; padding: 0 12px 12px; }
        .zhz-popular-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .zhz-tag { padding: 6px 12px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 11px; color: #374151; cursor: pointer; transition: background 0.15s; }
        .zhz-tag:hover { background: #e5e7eb; }
        .zhz-results-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; margin: 0; }
        .zhz-results-title { font-size: 13px; font-weight: 600; color: #111827; margin: 0; }
        .zhz-results-meta { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7280; }
        .zhz-results-meta svg { width: 12px; height: 12px; color: #10b981; }
        /* Mobile: Ergebnisse als schmale Lines */
        .zhz-results-grid { display: flex; flex-direction: column; gap: 0; }
        .zhz-result-card { background: white; border-bottom: 1px solid #e5e7eb; padding: 10px 12px; cursor: pointer; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 10px; transition: background 0.15s; overflow: hidden; min-width: 0; }
        .zhz-result-card:hover { background: #f9fafb; }
        .zhz-result-image-container { display: contents; }
        .zhz-result-image-wrapper { width: 50px; height: 50px; flex-shrink: 0; background: #f3f4f6; border-radius: 4px; overflow: hidden; padding: 0; }
        .zhz-result-image { width: 100%; height: 100%; object-fit: contain; position: static; }
        /* Mobile: Content Container mit voller Breite */
        .zhz-result-content { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; width: 100%; }
        /* Mobile: Titel 3-zeilig, linksbuendig, volle Breite */
        .zhz-result-name { font-weight: 600; font-size: 13px; color: #111827; margin: 0 0 6px 0; line-height: 1.3; width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .zhz-result-name mark { background: #fef08a; color: #111827; font-weight: inherit; line-height: inherit; padding: 0; border-radius: 2px; }
        /* Meta: Ampel, Kategorie, Preis in einer Zeile */
        .zhz-result-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; column-gap: 6px; row-gap: 0; align-items: center; width: 100%; min-width: 0; }
        .zhz-result-meta > .zhz-result-stock { grid-column: 1; grid-row: 1; }
        .zhz-result-category { grid-column: 2; grid-row: 1; padding: 0; background: transparent; border-radius: 0; font-size: 10px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; text-align: left; width: 100%; box-sizing: border-box; }
        .zhz-result-category-placeholder { grid-column: 2; grid-row: 1; min-height: 14px; }
        .zhz-result-price-wrap { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; margin-left: auto; text-align: right; }
        .zhz-result-price { font-size: 15px; font-weight: 800; color: #111827; white-space: nowrap; }
        .zhz-result-article-numbers { display: flex; flex-wrap: wrap; gap: 4px; font-size: 9px; color: #6b7280; margin-top: 4px; }
        .zhz-result-mobile-details { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; margin-top: 0; }
        .zhz-result-mobile-details .zhz-result-stock { flex-shrink: 0; }
        .zhz-result-mobile-details .zhz-result-article-numbers { margin-top: 0; min-width: 0; flex: 1; }
        .zhz-article-number { padding: 1px 4px; background: #f9fafb; border-radius: 2px; white-space: nowrap; }
        .zhz-article-number-label { font-weight: 600; color: #9ca3af; }
        .zhz-article-number-value { color: #374151; }
        .zhz-article-number-value mark { background: #fef08a; color: #111827; font-weight: inherit; line-height: inherit; padding: 0; border-radius: 2px; }
        .zhz-article-number-highlight { background: #fef08a; color: #111827; font-weight: inherit; line-height: inherit; padding: 0; border-radius: 2px; }
        .zhz-price-sale { color: #ef4444 !important; }

        /* Badges - Mobile: Vertikal rechts, Teil des Layouts */
        .zhz-badges-desktop { display: none; }
        .zhz-badges-mobile { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
        .zhz-badge { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); padding: 6px 2px; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; border-radius: 2px; }
        .zhz-badge-exact { background: linear-gradient(180deg, #10b981 0%, #059669 100%); color: white; font-size: 6px; }
        .zhz-badge-new { background: linear-gradient(180deg, #10b981 0%, #059669 100%); color: white; }
        .zhz-badge-sale { background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%); color: white; }
        .zhz-badge-top { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: white; }

        /* Exakter Treffer Styling */
        .zhz-exact-match {
            border: 2px solid #10b981 !important;
            background: linear-gradient(to right, #f0fdf4 0%, #ffffff 100%) !important;
            box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
        }

        /* Stock Status Styling (JTL Lageranzeige) - Kompakte Ampel */
        /* Mobile: Nur Ampel-Punkt anzeigen, Text ausblenden */
        .zhz-result-stock { display: inline-flex; align-items: center; gap: 0; font-size: 0; }
        .zhz-stock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
        .zhz-result-stock.in-stock .zhz-stock-dot { background: #10b981; }
        .zhz-result-stock.limited-stock .zhz-stock-dot { background: #f59e0b; }
        .zhz-result-stock.out-of-stock .zhz-stock-dot { background: #ef4444; }

        /* Page Result Styles */
        .zhz-result-page { display: flex; align-items: center; gap: 8px; padding: 7px 12px; min-height: 38px; }
        .zhz-result-page-icon { flex-shrink: 0; width: 24px; height: 24px; background: #e0f2fe; color: #0369a1; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
        .zhz-result-page-icon svg { width: 14px; height: 14px; }
        .zhz-result-page-content { flex: 1; min-width: 0; }
        .zhz-result-page .zhz-result-name { margin: 0; font-size: 12px; line-height: 1.2; -webkit-line-clamp: 1; }
        .zhz-result-page-desc { display: none; }
        .zhz-result-page-desc mark { background: #fef08a; color: #111827; font-weight: inherit; line-height: inherit; padding: 0; border-radius: 2px; }
        .zhz-result-page-badge { flex-shrink: 0; display: inline-block; margin: 0; padding: 2px 6px; background: #eef2ff; color: #4338ca; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }

        .zhz-no-results { text-align: center; padding: 32px 16px; }
        .zhz-no-results svg { width: 48px; height: 48px; color: #d1d5db; margin: 0 auto 12px; }
        .zhz-no-results h3 { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px 0; }
        .zhz-no-results p { font-size: 14px; color: #6b7280; margin: 0 0 16px 0; }

        /* Category Group Header (v2.0.10) */
        .zhz-category-group-header {
            width: 100%;
            padding: 8px 12px;
            background: linear-gradient(to right, #f8fafc, #f1f5f9);
            border-bottom: 1px solid #e2e8f0;
            border-top: 1px solid #e2e8f0;
            margin-top: 4px;
        }
        .zhz-category-group-header:first-child { margin-top: 0; border-top: none; }
        .zhz-category-group-name {
            font-size: 12px;
            font-weight: 600;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .zhz-category-group-count {
            font-size: 10px;
            font-weight: 600;
            color: white;
            background: #64748b;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
        }

        /* Mobile/Desktop helpers */
        .zhz-desktop-text { display: none; }
        .zhz-mobile-text { display: inline; }

        /* Desktop Styles */
        @media (min-width: 768px) {
            .zhz-desktop-text { display: inline; }
            .zhz-mobile-text { display: none; }
            .zhz-modal { padding: 80px 20px 20px; }
            .zhz-modal-content { border-radius: var(--zhz-modal-radius-tl, 16px) var(--zhz-modal-radius-tr, 16px) var(--zhz-modal-radius-br, 16px) var(--zhz-modal-radius-bl, 16px); max-width: var(--zhz-modal-max-width, 1200px); height: auto; max-height: calc(100vh - 120px); }

            /* Desktop: Header mit Titel/Subtitle - 2 Zeilen Layout */
            .zhz-modal-header {
                padding: 24px;
                border-radius: var(--zhz-modal-radius-tl, 16px) var(--zhz-modal-radius-tr, 16px) 0 0;
                flex-direction: column;
                gap: 16px;
            }

            /* Desktop: Titel-Zeile anzeigen */
            .zhz-desktop-only { display: block !important; }
            .zhz-header-top {
                display: block !important;
                padding: 0;
                margin: 0;
            }
            .zhz-modal-title { display: block !important; }
            .zhz-modal-title h2 {
                font-size: 24px;
                margin: 0 0 4px 0;
                color: white;
            }
            .zhz-subtitle {
                font-size: 14px;
                margin: 0;
                color: rgba(255, 255, 255, 0.9);
            }

            /* Desktop: Suchfeld-Row (Wrapper für Suchfeld + X) */
            .zhz-search-row {
                display: flex;
                gap: 12px;
                align-items: center;
            }

            /* Desktop: Weisses Suchfeld */
            .zhz-modal-search {
                padding: 16px 20px;
                background: white;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                display: flex;
                gap: 12px;
                align-items: center;
                flex: 1;
            }
            .zhz-search-icon { color: #9ca3af; width: 20px; height: 20px; }
            .zhz-modal-search-input { font-size: 16px; color: #111827; }

            /* Desktop: X-Button außerhalb des weißen Suchfelds */
            .zhz-close-desktop {
                display: flex !important;
                align-items: center;
                justify-content: center;
                align-self: stretch;
                background: rgba(255, 255, 255, 0.15);
                min-width: 52px;
                border-radius: 8px;
                flex-shrink: 0;
                padding: 0 16px;
            }
            .zhz-close-desktop:hover { background: rgba(255, 255, 255, 0.25); }
            .zhz-close-desktop svg { width: 20px; height: 20px; }
            .zhz-close-mobile { display: none !important; }
            .zhz-search-icon { width: 20px; height: 20px; }
            .zhz-modal-search-input { font-size: 16px; }
            .zhz-spinner { width: 20px; height: 20px; }
            .zhz-clear-btn svg, .zhz-filter-btn svg { width: 20px; height: 20px; }
            .zhz-hint-content { font-size: 14px; }

            /* Desktop: Filter auch als Fullscreen Overlay (wie Mobile) */
            .zhz-filters {
                /* Overlay bleibt - nur Styling-Anpassungen für Desktop */
                border: 1px solid #e5e7eb;
                border-radius: 12px;
                box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            }
            .zhz-filter-header { padding: 16px 24px; background: white; border-bottom: 1px solid #e5e7eb; border-radius: 12px 12px 0 0; }
            .zhz-filter-tab { padding: 10px 16px; font-size: 14px; }
            .zhz-filter-content { padding: 20px 24px; max-height: none; }
            .zhz-filter-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
            .zhz-filter-title h4 { font-size: 14px; }
            .zhz-filter-option { padding: 6px 12px; font-size: 14px; }
            .zhz-filter-option.active { padding: 6px 12px !important; font-size: 14px !important; }

            /* Desktop: Padding und Text-Größen */
            .zhz-modal-body { padding: var(--zhz-modal-padding-desktop, 24px); }

            /* Desktop: Body untere Border-Radius (wenn kein Footer vorhanden) */
            .zhz-modal-body:last-child {
                border-bottom-left-radius: var(--zhz-modal-radius-bl, 16px);
                border-bottom-right-radius: var(--zhz-modal-radius-br, 16px);
            }

            /* Desktop: Footer untere Border-Radius (wenn Footer vorhanden) */
            .zhz-modal-footer {
                border-bottom-left-radius: var(--zhz-modal-radius-bl, 16px);
                border-bottom-right-radius: var(--zhz-modal-radius-br, 16px);
            }
            .zhz-section-title svg { width: 20px; height: 20px; }
            .zhz-section-title h3 { font-size: 16px; }
            .zhz-tag { padding: 8px 16px; font-size: 14px; }
            .zhz-results-title { font-size: 16px; }
            .zhz-results-meta { font-size: 14px; }

            /* Desktop: Ergebnisse als Grid (Kacheln) - KOMPAKT für 2 Reihen */
            .zhz-results-grid { display: grid; grid-template-columns: var(--zhz-modal-grid-columns, repeat(4, minmax(0, 1fr))); gap: 12px; }
            .zhz-result-card { display: flex; flex-direction: column; padding: 12px; border-radius: 8px; border: 1px solid #e5e7eb; height: 100%; overflow: hidden; min-width: 0; }
            .zhz-result-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
            .zhz-result-page { flex-direction: row; align-items: center; padding: 8px 14px; min-height: 40px; height: auto; border-radius: 6px; }
            .zhz-result-page .zhz-result-name { height: auto; font-size: 13px; line-height: 1.2; -webkit-line-clamp: 1; }
            .zhz-result-image-container { width: 100%; }
            .zhz-result-image-wrapper { width: 100%; height: 0; padding-top: 75%; position: relative; border-radius: 6px; background: #f9fafb; flex-shrink: 0; }
            .zhz-result-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
            .zhz-result-content { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }

            /* Desktop: Badges - Zeile 1 (immer gleich hoch, horizontal, zentriert) */
            .zhz-badges-mobile { display: none; }
            .zhz-badges-desktop { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; min-height: 20px; align-items: flex-start; justify-content: center; }
            .zhz-badge { padding: 3px 8px; font-size: 9px; font-weight: 700; border-radius: 3px; writing-mode: horizontal-tb; text-orientation: initial; transform: none; }
            .zhz-badge-exact { font-size: 8px; padding: 3px 6px; }

            /* Desktop: Produktname - Zeile 2-4 (immer 3 Zeilen) */
            .zhz-result-name { font-size: 13px; margin: 0; line-height: 1.4; height: calc(1.4em * 3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

            /* Desktop: Meta umbauen - Stock + Preis horizontal, Kategorie volle Breite darunter */
            .zhz-result-meta { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px; align-items: center; min-width: 0; width: 100%; }
            .zhz-result-stock { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; }
            .zhz-result-price-wrap { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; text-align: right; white-space: nowrap; }
            .zhz-result-price { font-size: 16px; font-weight: 800; text-align: right; }
            .zhz-result-category { grid-column: 1 / -1; grid-row: 2; font-size: 10px; padding: 4px 8px; background: #f3f4f6; border-radius: 3px; color: #6b7280; text-align: center; min-height: 24px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; width: 100%; box-sizing: border-box; }
            .zhz-result-category-placeholder { grid-column: 1 / -1; grid-row: 2; min-height: 24px; }

            /* Desktop: Category Group Header spans full grid width */
            .zhz-category-group-header {
                grid-column: 1 / -1;
                padding: 12px 16px;
                margin: 8px 0 4px 0;
                border-radius: 6px;
                background: linear-gradient(to right, #f1f5f9, #e2e8f0);
                border: 1px solid #cbd5e1;
            }
            .zhz-category-group-header:first-child { margin-top: 0; }
            .zhz-category-group-name { font-size: 13px; }
        }

        /* "Weitere X laden" Button Styles */
        .zhz-load-more-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 24px 16px;
            margin-top: 16px;
        }
        .zhz-load-more-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            background: #f3f4f6;
            color: #374151;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: none;
            min-width: 180px;
        }
        .zhz-load-more-btn:hover:not([disabled]) {
            background: #e5e7eb;
            border-color: #d1d5db;
        }
        .zhz-load-more-btn:active:not([disabled]) {
            background: #d1d5db;
        }
        .zhz-load-more-btn[disabled] {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .zhz-load-more-btn svg {
            flex-shrink: 0;
        }
        .zhz-spinner {
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Filter Sidebar (Desktop only) */
        .zhz-modal-body-wrapper { display: flex; flex: 1; overflow: hidden; }
        .zhz-modal-body-wrapper.zhz-sidebar-left { flex-direction: row-reverse; }
        .zhz-modal-body-wrapper .zhz-modal-body { flex: 1; }
        .zhz-assistant-sidebar {
            display: none;
            width: 320px;
            flex: 0 0 320px;
            overflow-y: auto;
            border-right: 1px solid #e5e7eb;
            background: #ffffff;
            padding: 14px;
        }
        .zhz-assistant-sidebar:empty { display: none; }
        .zhz-side-tabs { display: none; }
        .zhz-filter-sidebar { display: none; } /* Hidden on mobile */
        @media (min-width: 768px) {
            .zhz-filter-sidebar {
                display: flex;
                flex-direction: column;
                background: #f9fafb;
                border-left: 1px solid #e5e7eb;
                overflow-y: auto;
                flex-shrink: 0;
            }
            .zhz-filter-sidebar-header {
                padding: 16px;
                background: #f3f4f6;
                border-bottom: 1px solid #e5e7eb;
                font-size: 14px;
                font-weight: 600;
                color: #374151;
                display: flex;
                align-items: center;
                gap: 8px;
            }
            .zhz-filter-sidebar-content {
                flex: 1;
                overflow-y: auto;
            }
            /* Accordion Styles */
            .zhz-accordion-item {
                border-bottom: 1px solid #e5e7eb;
            }
            .zhz-accordion-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 12px 16px;
                background: white;
                cursor: pointer;
                font-size: 13px;
                font-weight: 600;
                color: #374151;
                transition: background 0.15s ease;
            }
            .zhz-accordion-header:hover {
                background: #f9fafb;
            }
            .zhz-accordion-icon {
                width: 16px;
                height: 16px;
                transition: transform 0.2s ease;
            }
            .zhz-accordion-item.open .zhz-accordion-icon {
                transform: rotate(180deg);
            }
            .zhz-accordion-content {
                display: none;
                padding: 0 16px 16px 16px;
                background: white;
            }
            .zhz-accordion-item.open .zhz-accordion-content {
                display: block;
            }
            /* Sidebar Filter Buttons */
            .zhz-sidebar-filter-options {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }
            .zhz-sidebar-filter-btn {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 8px 12px;
                background: #f9fafb;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                font-size: 12px;
                color: #374151;
                cursor: pointer;
                transition: all 0.15s ease;
            }
            .zhz-sidebar-filter-btn:hover {
                background: #f3f4f6;
                border-color: #d1d5db;
            }
            .zhz-sidebar-filter-btn.active {
                background: #111827;
                border-color: #111827;
                color: white;
            }
            .zhz-sidebar-filter-count {
                font-size: 10px;
                padding: 2px 6px;
                background: #e5e7eb;
                border-radius: 10px;
                color: #6b7280;
            }
            .zhz-sidebar-filter-btn.active .zhz-sidebar-filter-count {
                background: rgba(255,255,255,0.2);
                color: rgba(255,255,255,0.9);
            }
            /* Price Range Slider in Sidebar */
            .zhz-sidebar-price-container {
                padding: 8px 0;
            }
            .zhz-sidebar-price-display {
                display: flex;
                justify-content: space-between;
                margin-bottom: 12px;
                font-size: 13px;
                color: #374151;
            }
            .zhz-sidebar-price-display span {
                font-weight: 500;
            }
            .zhz-sidebar-range-container {
                position: relative;
                height: 24px;
                margin: 8px 0;
            }
            .zhz-sidebar-range-track {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 100%;
                height: 4px;
                background: #e5e7eb;
                border-radius: 2px;
            }
            .zhz-sidebar-range-progress {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                height: 4px;
                background: #111827;
                border-radius: 2px;
            }
            .zhz-sidebar-range-input {
                position: absolute;
                top: 0;
                width: 100%;
                height: 24px;
                -webkit-appearance: none;
                appearance: none;
                background: transparent;
                pointer-events: none;
                margin: 0;
            }
            .zhz-sidebar-range-input::-webkit-slider-thumb {
                -webkit-appearance: none;
                appearance: none;
                width: 18px;
                height: 18px;
                background: #111827;
                border-radius: 50%;
                cursor: pointer;
                pointer-events: auto;
                border: 2px solid white;
                box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            }
            .zhz-sidebar-range-input::-moz-range-thumb {
                width: 18px;
                height: 18px;
                background: #111827;
                border-radius: 50%;
                cursor: pointer;
                pointer-events: auto;
                border: 2px solid white;
                box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            }
            /* Special Filters in Sidebar */
            .zhz-sidebar-special-filters {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            .zhz-sidebar-checkbox-label {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 12px;
                color: #374151;
                cursor: pointer;
                padding: 6px 0;
            }
            .zhz-sidebar-checkbox-label input[type="checkbox"] {
                width: 16px;
                height: 16px;
                accent-color: #111827;
            }
            /* Reset Button */
            .zhz-sidebar-reset-btn {
                margin: 16px;
                padding: 10px 16px;
                background: white;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                font-size: 12px;
                font-weight: 500;
                color: #6b7280;
                cursor: pointer;
                transition: all 0.15s ease;
                text-align: center;
            }
            .zhz-sidebar-reset-btn:hover {
                background: #f9fafb;
                border-color: #d1d5db;
                color: #374151;
            }
        }

        /* Skeleton Loading Animation */
        .zhz-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s ease-in-out infinite;
            border-radius: 4px;
        }
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* AI Assistant / Top-docked search */
        .zhz-modal.zhz-modal-top-docked { padding: 0; }
        html:has(.zhz-modal-top-docked.active),
        body:has(.zhz-modal-top-docked.active) { overflow: hidden !important; }
        .zhz-modal-top-docked .zhz-modal-backdrop { background: #ffffff; backdrop-filter: none; }
        .zhz-modal-top-docked .zhz-modal-content { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; margin-top: 0; border-radius: 0; box-shadow: none; overflow-x: hidden; overflow-y: auto; }
        .zhz-modal-top-docked .zhz-modal-header { background: #ffffff; color: #111827; border-bottom: 1px solid #0f766e; padding: 14px 24px 0; border-radius: 0; position: sticky; top: 0; z-index: 4; }
        .zhz-modal-top-docked .zhz-header-top { display: none !important; }
        .zhz-modal-top-docked .zhz-search-row { width: 100%; max-width: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 14px; align-items: center; }
        .zhz-modal-top-docked .zhz-modal-search { box-shadow: none; border-radius: 0; padding: 4px 0 13px; border: 0; min-height: 56px; }
        .zhz-modal-top-docked .zhz-modal-search-input { font-size: 17px; }
        .zhz-modal-top-docked .zhz-filter-btn,
        .zhz-modal-top-docked .zhz-voice-btn { display: none !important; }
        .zhz-modal-top-docked .zhz-close-desktop,
        .zhz-modal-top-docked .zhz-close-mobile { background: transparent; color: #6b7280; }
        .zhz-modal-top-docked .zhz-close-desktop svg,
        .zhz-modal-top-docked .zhz-close-mobile svg { width: 30px; height: 30px; }
        .zhz-modal-top-docked .zhz-modal-body-wrapper { max-width: none; width: 100%; gap: 0; background: #ffffff; flex: 0 0 auto; min-height: auto; overflow: visible; overscroll-behavior: auto; }
        .zhz-modal-top-docked .zhz-modal-body { padding: 38px 28px 48px; overflow: visible; min-height: 0; }
        .zhz-modal-top-docked .zhz-modal-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
        .zhz-modal-top-docked .zhz-modal-body { scrollbar-width: none; }
        .zhz-modal-top-docked .zhz-assistant-sidebar {
            display: block;
            width: 300px;
            flex: 0 0 300px;
            padding: 38px 22px 22px;
            border-right: 0;
        }
        @media (min-width: 768px) {
            .zhz-modal-top-docked .zhz-modal-body-wrapper,
            .zhz-modal-top-docked .zhz-modal-body-wrapper.zhz-sidebar-left {
                display: grid;
                grid-template-columns: clamp(340px, 23vw, 430px) minmax(0, 1fr);
                grid-template-rows: auto minmax(0, 1fr);
                flex-direction: unset;
                align-items: start;
            }
            .zhz-modal-top-docked .zhz-side-tabs {
                display: none;
                grid-column: 1;
                grid-row: 1;
                align-items: flex-end;
                gap: 26px;
                padding: 38px 22px 0;
                border-right: 1px solid #e5e7eb;
                background: #ffffff;
                position: sticky;
                top: 0;
                z-index: 2;
            }
            .zhz-modal-top-docked.zhz-has-query .zhz-side-tabs {
                display: flex;
            }
            .zhz-modal-top-docked .zhz-side-tab {
                border: 0;
                border-bottom: 3px solid transparent;
                background: transparent;
                color: #6b7280;
                padding: 0 0 13px;
                font-size: 17px;
                font-weight: 700;
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                white-space: nowrap;
            }
            .zhz-modal-top-docked .zhz-side-tab.active {
                color: #111827;
                border-bottom-color: #1473e6;
            }
            .zhz-modal-top-docked .zhz-side-tab span {
                padding: 3px 6px;
                border-radius: 4px;
                background: #1473e6;
                color: #ffffff;
                font-size: 10px;
                text-transform: uppercase;
            }
            .zhz-modal-top-docked .zhz-modal-body-wrapper .zhz-assistant-sidebar {
                grid-column: 1;
                grid-row: 1 / span 2;
                order: unset;
                width: auto;
                min-width: 0;
                position: sticky;
                top: 0;
                max-height: none;
            }
            .zhz-modal-top-docked.zhz-has-query .zhz-modal-body-wrapper .zhz-assistant-sidebar {
                grid-row: 2;
                padding-top: 28px;
                border-right: 1px solid #e5e7eb;
            }
            .zhz-modal-top-docked.zhz-has-query.zhz-side-filter-active .zhz-modal-body-wrapper .zhz-assistant-sidebar {
                display: none;
            }
            .zhz-modal-top-docked.zhz-has-query.zhz-side-assistant-active .zhz-modal-body-wrapper .zhz-filter-sidebar {
                display: none;
            }
            .zhz-modal-top-docked .zhz-modal-body-wrapper .zhz-filter-sidebar {
                grid-column: 1;
                grid-row: 2;
                order: unset;
            }
            .zhz-modal-top-docked:not(.zhz-has-query) .zhz-modal-body-wrapper .zhz-filter-sidebar {
                display: none;
            }
            .zhz-modal-top-docked .zhz-modal-body-wrapper .zhz-modal-body {
                grid-column: 2;
                grid-row: 1 / span 2;
                order: unset;
                min-width: 0;
            }
            .zhz-modal-top-docked .zhz-filter-sidebar {
                width: auto !important;
                flex: unset;
                background: #ffffff;
                border-left: 0;
                border-right: 1px solid #e5e7eb;
                padding-top: 24px;
                overflow: visible;
                position: sticky;
                top: 86px;
                max-height: calc(100dvh - 104px);
            }
            .zhz-modal-top-docked .zhz-filter-sidebar-header {
                display: none;
            }
            .zhz-modal-top-docked .zhz-filter-sidebar-content {
                padding: 0 20px 20px;
            }
            .zhz-modal-top-docked .zhz-accordion-header {
                padding: 14px 0;
                background: #ffffff;
                font-size: 16px;
            }
            .zhz-modal-top-docked .zhz-accordion-content {
                padding-left: 0;
                padding-right: 0;
            }
        }

        .zhz-ai-start-layout,
        .zhz-ai-workspace {
            display: grid;
            grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
            gap: 28px;
            min-height: 100%;
        }
        .zhz-ai-start-sidebar,
        .zhz-ai-chat {
            min-width: 0;
        }
        .zhz-ai-start-main,
        .zhz-ai-results {
            min-width: 0;
        }
        .zhz-ai-start-panel {
            padding: 12px 0;
        }
        .zhz-assistant-sidebar .zhz-ai-start-panel {
            padding: 0;
        }
        .zhz-ai-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }
        .zhz-ai-title-row h3 {
            margin: 0;
            font-size: 20px;
            line-height: 1.2;
            color: #111827;
        }
        .zhz-ai-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: #1473e6;
            color: #ffffff;
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
        }
        .zhz-ai-form {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 36px;
            gap: 8px;
            align-items: center;
            border: 1px solid #d1d5db;
            border-radius: 18px;
            padding: 8px 10px 8px 14px;
            background: #ffffff;
            margin: 12px 0 0;
        }
        .zhz-ai-input {
            border: 0;
            outline: 0;
            min-width: 0;
            font-size: 14px;
            color: #111827;
            background: transparent;
        }
        .zhz-ai-submit {
            width: 32px;
            height: 32px;
            border: 0;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #6b7280;
            cursor: pointer;
        }
        .zhz-ai-submit:hover { background: #f3f4f6; color: #111827; }
        .zhz-ai-example-list,
        .zhz-ai-suggestion-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .zhz-ai-intro {
            margin: 0 0 16px;
            color: #374151;
            font-size: 14px;
            line-height: 1.5;
        }
        .zhz-ai-example,
        .zhz-ai-suggestion {
            border: 1px solid #0f76a8;
            color: #075985;
            background: #ffffff;
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 12px;
            line-height: 1.2;
            cursor: pointer;
        }
        .zhz-ai-example:hover,
        .zhz-ai-suggestion:hover {
            background: #eff6ff;
        }
        .zhz-ai-tabs {
            display: none;
            gap: 18px;
            align-items: center;
            margin-bottom: 24px;
        }
        .zhz-ai-tab {
            border: 0;
            background: transparent;
            padding: 0 0 10px;
            color: #6b7280;
            font-weight: 700;
            cursor: default;
        }
        .zhz-ai-tab.active {
            color: #111827;
            border-bottom: 3px solid #1473e6;
        }
        .zhz-ai-tab span {
            margin-left: 6px;
            padding: 2px 6px;
            border-radius: 4px;
            background: #1473e6;
            color: #ffffff;
            font-size: 10px;
        }
        .zhz-ai-reset {
            border: 0;
            background: transparent;
            color: #075985;
            font-weight: 700;
            margin: 8px 0 18px auto;
            display: block;
            cursor: pointer;
        }
        .zhz-ai-thread {
            border: 1px solid #d1d5db;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 0;
            background: #ffffff;
            max-height: 420px;
            overflow-y: auto;
        }
        .zhz-ai-example-title {
            margin-bottom: 10px;
            color: #6b7280;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
        }
        .zhz-ai-user-message {
            margin: 0 10px 18px auto;
            width: fit-content;
            max-width: 85%;
            padding: 10px 18px;
            border-radius: 999px;
            background: #f3f4f6;
            color: #374151;
            font-size: 14px;
        }
        .zhz-ai-answer-row {
            display: grid;
            grid-template-columns: 28px minmax(0, 1fr);
            gap: 14px;
            align-items: flex-start;
            color: #374151;
            font-size: 14px;
            line-height: 1.55;
        }
        .zhz-ai-answer-row p {
            margin: 0 0 14px;
        }
        .zhz-ai-dots {
            display: inline-flex;
            gap: 4px;
            align-items: center;
        }
        .zhz-ai-dots span {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #9ca3af;
        }
        .zhz-ai-result-label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 18px;
            color: #374151;
            font-size: 15px;
        }
        .zhz-ai-result-label span {
            color: #1473e6;
            font-weight: 800;
        }
        .zhz-ai-loading {
            padding: 48px 16px;
            text-align: center;
            color: #6b7280;
        }
        .zhz-related-searches {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin: -18px 0 28px;
            color: #6b7280;
            font-size: 13px;
        }
        .zhz-modal-top-docked .zhz-clear-btn {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            color: #6b7280;
            margin-right: 4px;
        }
        .zhz-modal-top-docked .zhz-clear-btn:hover {
            background: #f3f4f6;
            color: #111827;
        }
        .zhz-modal-top-docked .zhz-modal-close {
            align-self: center;
            width: 44px;
            min-width: 44px;
            height: 44px;
            border-radius: 999px;
        }
        .zhz-modal-top-docked .zhz-related-searches > span { display: none; }
        .zhz-related-searches > div {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .zhz-related-search {
            border: 1px solid #d1d5db;
            border-radius: 999px;
            background: #ffffff;
            color: #374151;
            padding: 8px 14px;
            font-size: 14px;
            cursor: pointer;
        }
        .zhz-related-search:hover {
            border-color: #1473e6;
            color: #075985;
        }
        .zhz-related-search mark {
            background: transparent;
            color: inherit;
            font-weight: inherit;
            line-height: inherit;
            padding: 0;
        }
        @media (min-width: 768px) {
            .zhz-ai-results .zhz-results-grid,
            .zhz-ai-start-main .zhz-results-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
            .zhz-ai-results .zhz-result-card {
                min-height: 332px;
            }
            .zhz-ai-results .zhz-result-card:first-child {
                border-color: #1473e6;
                box-shadow: inset 0 0 0 1px #1473e6;
            }
        }
        @media (max-width: 767px) {
            .zhz-modal-top-docked .zhz-modal-body-wrapper {
                flex-direction: column;
            }
            .zhz-modal-top-docked .zhz-assistant-sidebar {
                width: 100%;
                flex: 0 0 auto;
                max-height: 42vh;
                border-right: 0;
                border-bottom: 1px solid #e5e7eb;
            }
            .zhz-ai-start-layout,
            .zhz-ai-workspace {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .zhz-ai-chat {
                order: 1;
            }
            .zhz-ai-results {
                order: 2;
            }
            .zhz-ai-title-row h3 {
                font-size: 20px;
            }
            .zhz-ai-reset {
                margin: 8px 0 16px auto;
            }
        }
        .zhz-skeleton-card {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .zhz-skeleton-image {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
        }
        .zhz-skeleton-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .zhz-skeleton-title {
            height: 16px;
            width: 80%;
        }
        .zhz-skeleton-price {
            height: 14px;
            width: 40%;
        }
        @media (min-width: 768px) {
            .zhz-skeleton-card {
                flex-direction: column;
                padding: 12px;
                border-radius: 8px;
                border: 1px solid #e5e7eb;
            }
            .zhz-skeleton-image {
                width: 100%;
                height: 120px;
            }
            .zhz-skeleton-content {
                width: 100%;
            }
        }

        /* ========================================
           CONTEXTUAL RECOMMENDATIONS SLIDER (v2.0.8)
           ======================================== */
        .zhz-contextual-slider {
            margin-bottom: 0;
            padding: 0 12px 12px;
        }
        .zhz-slider-wrapper {
            position: relative;
            margin-top: 12px;
        }
        .zhz-slider-container {
            overflow: hidden;
            width: 100%;
        }
        .zhz-slider-track {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
            padding: 4px 0; /* Space for focus outline */
        }
        .zhz-slider-track::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }
        .zhz-slider-item {
            flex: 0 0 auto;
            width: 280px; /* Desktop: Fixed width */
        }
        .zhz-slider-item .zhz-result-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .zhz-slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: white;
            border: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .zhz-slider-arrow:hover {
            background: #f9fafb;
            border-color: #d1d5db;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .zhz-slider-arrow:active {
            transform: translateY(-50%) scale(0.95);
        }
        .zhz-slider-arrow-left {
            left: -16px;
        }
        .zhz-slider-arrow-right {
            right: -16px;
        }
        .zhz-slider-arrow svg {
            color: #6b7280;
        }

        /* Mobile Optimierung - Kompakt 4er Layout, zentriert */
        @media (max-width: 767px) {
            .zhz-slider-item {
                width: calc(25% - 12px); /* Mobile: 4 kompakte Items nebeneinander */
                min-width: 75px;
            }
            .zhz-slider-item .zhz-result-card {
                padding: 6px;
                text-align: center;
            }
            .zhz-slider-item .zhz-result-image-container {
                margin-bottom: 4px;
            }
            .zhz-slider-item .zhz-result-content {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            .zhz-slider-item .zhz-result-name {
                font-size: 10px;
                line-height: 1.2;
                min-height: 2.4em; /* Feste Höhe für 2 Zeilen */
                max-height: 2.4em;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                margin-bottom: 2px;
                width: 100%;
                text-align: center;
            }
            .zhz-slider-item .zhz-result-price {
                font-size: 11px;
                font-weight: 600;
                margin-top: 2px;
                text-align: center;
                width: 100%;
            }
            .zhz-slider-arrow {
                width: 28px;
                height: 28px;
            }
            .zhz-slider-arrow-left {
                left: -8px;
            }
            .zhz-slider-arrow-right {
                right: -8px;
            }
            .zhz-contextual-slider {
                margin-bottom: 0;
                padding: 0 12px 8px;
            }
        }

        /* Tablet Optimierung */
        @media (min-width: 768px) and (max-width: 1023px) {
            .zhz-slider-item {
                width: 240px;
            }
        }

        /* Touch-Optimierung */
        @media (pointer: coarse) {
            .zhz-slider-track {
                scroll-snap-type: x proximity;
                -webkit-overflow-scrolling: touch;
            }
            .zhz-slider-item {
                scroll-snap-align: start;
            }
        }

