/* MTC Suche – im Stil der Website: Roboto, Dunkelblau #171151, Markenblau #0F64FF, Radius 6/8 px */
.mtc-suche, .mtc-ergebnis-kopf, .mtc-leer, .mtc-erweitert {
	--mtc-navy: #171151; --mtc-blue: #0f64ff; --mtc-blue-dark: #0a4fd1; --mtc-text: #364151;
	--mtc-muted: #5d6676; --mtc-line: #e3e6ee; --mtc-soft: #f4f6fb;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}
.mtc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suchfeld */
.mtc-suche { position: relative; width: 100%; margin: 0 0 16px; }
.mtc-suche-feld { display: flex; align-items: center; background: #fff; border: 1px solid var(--mtc-line); border-radius: 6px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.mtc-suche-feld:focus-within { border-color: var(--mtc-blue); box-shadow: 0 0 0 3px rgba(15,100,255,.15); }
.mtc-suche-icon { flex: none; margin-left: 12px; color: var(--mtc-muted); }
.mtc-suche input[type=search] { flex: 1; min-width: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 15px; color: var(--mtc-text); padding: 12px 10px !important; margin: 0; height: auto; border-radius: 0; }
.mtc-suche input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.mtc-suche-los { flex: none; border: 0; border-radius: 0; background: var(--mtc-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 0 16px; align-self: stretch; cursor: pointer; }
.mtc-suche-los:hover { background: var(--mtc-blue-dark); }
.mtc-suche.ist-laden .mtc-suche-icon { animation: mtc-puls 0.9s ease-in-out infinite; }
@keyframes mtc-puls { 50% { opacity: .35; } }

/* Vorschlagsfenster */
.mtc-vorschlaege { position: absolute; z-index: 9999; top: calc(100% + 6px); left: 0; width: max(100%, 420px); max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--mtc-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(23,17,81,.14); padding: 8px; text-align: left; }
.mtc-vorschlaege[hidden] { display: none; }
.mtc-v-hinweis, .mtc-v-leer { margin: 8px 10px; font-size: 14px; color: var(--mtc-muted); }
.mtc-v-hinweis strong { color: var(--mtc-navy); }
.mtc-v-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; border-bottom: 1px solid var(--mtc-line); margin-bottom: 6px; }
.mtc-v-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: var(--mtc-soft); color: var(--mtc-navy) !important; font-size: 13px; font-weight: 500; text-decoration: none !important; }
.mtc-v-chip span { color: var(--mtc-muted); font-weight: 400; }
.mtc-v-chip:hover, .mtc-v-chip.ist-aktiv { background: #e6edff; }
.mtc-v-liste { list-style: none; margin: 0; padding: 0; }
.mtc-v-liste li { margin: 0; padding: 0; }
.mtc-v-produkt { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; color: var(--mtc-text) !important; text-decoration: none !important; }
.mtc-v-produkt:hover, .mtc-v-produkt.ist-aktiv { background: var(--mtc-soft); }
.mtc-v-produkt img, .mtc-v-ohnebild { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--mtc-soft); }
.mtc-v-text { display: flex; flex-direction: column; min-width: 0; }
.mtc-v-titel { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--mtc-navy); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mtc-v-meta { font-size: 12px; color: var(--mtc-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtc-vorschlaege mark { background: none; color: var(--mtc-blue); font-weight: 600; padding: 0; }
.mtc-v-alle { display: block; margin-top: 6px; padding: 12px; border-radius: 6px; background: var(--mtc-blue); color: #fff !important; text-align: center; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.mtc-v-alle:hover, .mtc-v-alle.ist-aktiv { background: var(--mtc-blue-dark); }

/* Ergebnisseite: Kopf und Filter */
.mtc-ergebnis-kopf { margin: 0 0 28px; }
.mtc-ergebnis-titel { font-size: 26px !important; line-height: 1.25 !important; font-weight: 600 !important; color: var(--mtc-navy) !important; margin: 0 0 8px !important; }
.mtc-korrektur { font-size: 15px; color: var(--mtc-muted); margin: 0 0 12px; }
.mtc-korrektur strong { color: var(--mtc-navy); }
.mtc-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end; margin-top: 16px; padding: 18px; background: var(--mtc-soft); border: 1px solid var(--mtc-line); border-radius: 8px; }
.mtc-filter-q { grid-column: span 2; }
.mtc-filter-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtc-filter-feld label { font-size: 13px; font-weight: 500; color: var(--mtc-navy); }
.mtc-filter input[type=search], .mtc-filter input[type=text], .mtc-filter select { width: 100%; height: 44px; border: 1px solid var(--mtc-line) !important; border-radius: 6px !important; background: #fff !important; font: inherit; font-size: 15px; color: var(--mtc-text); padding: 0 12px !important; box-shadow: none !important; margin: 0; }
.mtc-filter input:focus, .mtc-filter select:focus { border-color: var(--mtc-blue) !important; outline: none; box-shadow: 0 0 0 3px rgba(15,100,255,.15) !important; }
.mtc-filter-check { justify-content: center; min-height: 44px; }
.mtc-filter-check label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; color: var(--mtc-text); cursor: pointer; }
.mtc-filter-check input { width: 18px; height: 18px; accent-color: var(--mtc-blue); margin: 0; }
.mtc-filter-aktion { display: flex; align-items: center; gap: 16px; }
.mtc-btn { height: 44px; border: 0; border-radius: 6px; background: var(--mtc-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 0 22px; cursor: pointer; }
.mtc-btn:hover { background: var(--mtc-blue-dark); }
.mtc-link { font-size: 14px; color: var(--mtc-blue); }
.mtc-leer { padding: 24px; border: 1px solid var(--mtc-line); border-radius: 8px; background: var(--mtc-soft); color: var(--mtc-text); font-size: 16px; }
.mtc-leer p { margin: 0 0 6px; }
.mtc-leer strong { color: var(--mtc-navy); }

/* Erweiterte Suche (Seitenleiste) */
.mtc-erweitert, .mtc-erweitert * { box-sizing: border-box; }
.mtc-erweitert { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.mtc-e-mehr { margin: 0; }
.mtc-e-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; padding: 11px 14px; border: 1px solid var(--mtc-line); border-radius: 6px; background: var(--mtc-soft); color: var(--mtc-navy); font-size: 15px; font-weight: 500; user-select: none; }
.mtc-e-toggle::-webkit-details-marker { display: none; }
.mtc-e-toggle::marker { content: ''; }
.mtc-e-toggle:hover { background: #e6edff; }
.mtc-e-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15,100,255,.25); }
.mtc-e-toggle svg { flex: none; }
.mtc-e-mehr.mtc-bereit > .mtc-e-toggle svg { transition: transform .2s ease; }
.mtc-e-mehr[open] > .mtc-e-toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mtc-e-mehr[open] > .mtc-e-toggle svg { transform: rotate(180deg); }
.mtc-e-inhalt { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--mtc-line); border-top: 0; border-radius: 0 0 8px 8px; }
.mtc-e-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mtc-e-feld > label, .mtc-e-feld legend { font-size: 13px; font-weight: 500; color: var(--mtc-navy); padding: 0; margin: 0 0 6px; }
.mtc-erweitert input[type=text], .mtc-erweitert select { width: 100%; height: 44px; border: 1px solid var(--mtc-line) !important; border-radius: 6px !important; background: #fff !important; font: inherit; font-size: 15px; color: var(--mtc-text); padding: 0 12px !important; box-shadow: none !important; margin: 0; }
.mtc-erweitert input[type=text]:focus, .mtc-erweitert select:focus { border-color: var(--mtc-blue) !important; outline: none; box-shadow: 0 0 0 3px rgba(15,100,255,.15) !important; }
.mtc-suche-panel { margin: 0; }
.mtc-suche-panel input[type=search] { padding: 11px 10px !important; }
/* Suche + Filter in der linken Spalte (Computer/Tablet immer offen, Handy einklappbar) */
.mtc-leiste { gap: 12px; padding: 16px; background: var(--mtc-soft); border: 1px solid var(--mtc-line); border-radius: 8px; margin: 0 0 24px; }
.mtc-leiste .mtc-suche-panel input[type=search] { padding: 12px 8px !important; }
.mtc-leiste .mtc-suche-panel .mtc-suche-icon { display: none; }
.mtc-leiste .mtc-suche-panel input[type=search] { padding-left: 12px !important; }
.mtc-leiste .mtc-suche-los-icon { display: flex; align-items: center; justify-content: center; width: 48px; padding: 0; }
.mtc-leiste .mtc-e-mehr > .mtc-e-toggle { display: none; }
.mtc-leiste .mtc-e-inhalt { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 0; background: none; border: 0; border-radius: 0; }
.mtc-leiste .mtc-e-aktion { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; text-align: center; }
.mtc-leiste .mtc-e-los { width: 100%; }
.mtc-leiste .mtc-e-reset { font-size: 14px; }
.mtc-e-zahl { color: var(--mtc-blue); }
@media (max-width: 767px) {
	.mtc-leiste { padding: 14px; }
	.mtc-leiste .mtc-e-mehr > .mtc-e-toggle { display: flex; background: #fff; }
	.mtc-leiste .mtc-e-inhalt { padding: 16px; background: #fff; border: 1px solid var(--mtc-line); border-top: 0; border-radius: 0 0 8px 8px; }
}

/* durchsuchbare Auswahl */
.mtc-aw { position: relative; }
.mtc-aw-original { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.mtc-erweitert input.mtc-aw-feld { padding-right: 34px !important; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6676' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important; }
.mtc-erweitert input.mtc-aw-feld:focus { cursor: text; }
.mtc-aw-liste { position: absolute; z-index: 9999; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--mtc-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(23,17,81,.14); }
.mtc-aw-liste[hidden] { display: none; }
.mtc-aw-liste li { margin: 0; padding: 8px 12px; border-radius: 6px; font-size: 14px; line-height: 1.35; color: var(--mtc-text); cursor: pointer; }
.mtc-aw-liste li.ist-aktiv { background: var(--mtc-soft); }
.mtc-aw-liste li.ist-gewaehlt { color: var(--mtc-blue); font-weight: 500; }
.mtc-aw-liste li.mtc-aw-leer { color: var(--mtc-muted); cursor: default; }
.mtc-e-zeile { display: flex; align-items: center; gap: 8px; }
.mtc-e-zeile input { flex: 1; min-width: 0; }
.mtc-e-zeile span { color: var(--mtc-muted); }
.mtc-e-hinweis { margin: 4px 0 0 !important; font-size: 12px; line-height: 1.4; color: var(--mtc-muted); }
.mtc-e-checks label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mtc-text); cursor: pointer; margin: 0 0 8px; }
.mtc-e-checks input { width: 18px; height: 18px; accent-color: var(--mtc-blue); margin: 0; flex: none; }
.mtc-e-los { width: 100%; }
.mtc-e-reset { align-self: center; }
.mtc-aktiv { margin: 8px 0 0; font-size: 14px; color: var(--mtc-text); }
.mtc-aktiv span { color: var(--mtc-muted); }
.mtc-aktiv .mtc-link { margin-left: 8px; }

@media (max-width: 1024px) { .mtc-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mtc-filter-q { grid-column: 1 / -1; } }
@media (max-width: 600px) {
	.mtc-filter { grid-template-columns: 1fr; padding: 14px; }
	.mtc-ergebnis-titel { font-size: 22px !important; }
	.mtc-vorschlaege { width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) { .mtc-suche.ist-laden .mtc-suche-icon { animation: none; } .mtc-e-toggle svg { transition: none; } }
