/* css/tc-objekt-suche.css - Geraete-/Material-Schnellsuche und Produktdokumente (20.10.2026),
   Logik js/tc-objekt-suche.js. Baut auf dem OTS-Modal (dialog.tc-modal) auf; Farben nur ueber die
   zentralen Variablen (hell/dunkel). */
dialog.tc-modal.tc-osuche, dialog.tc-modal.tc-odok { width: min(860px, 96vw); }
dialog.tc-modal.tc-osuche[open], dialog.tc-modal.tc-odok[open] { max-height: min(820px, 94vh); }
.tc-osuche-rumpf { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
/* Kinder nie stauchen (sonst laufen Treffer ueber Blaetterleiste und Fensterrand hinaus) - der Rumpf scrollt */
.tc-osuche-rumpf > * { flex-shrink: 0; }
.tc-osuche-suchzeile .tc-osuche-eingabe { width: 100%; box-sizing: border-box; font-size: 16px; padding: 9px 12px; }
.tc-osuche-filter { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.tc-osuche-filter:empty { display: none; }
.tc-osuche-filterfeld { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--color-text-muted); min-width: 150px; flex: 1 1 150px; }
.tc-osuche-filterfeld select { width: 100%; }
.tc-osuche-haken { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 36px; }
.tc-osuche-hinweis { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.tc-osuche-status { margin: 0; font-weight: 600; }
.tc-osuche-status:empty { display: none; }
.tc-osuche-liste { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.tc-osuche-treffer { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 8px; background-color: var(--color-surface); }
.tc-osuche-treffer:hover { border-color: var(--color-border-strong); }
.tc-osuche-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-osuche-titel { overflow-wrap: anywhere; }
.tc-osuche-neben { font-size: 13px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.tc-osuche-ort { color: var(--color-text); }
.tc-osuche-marke { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tc-osuche-marke--ok { background-color: var(--color-success); color: var(--color-text-on-dark); }
.tc-osuche-marke--aus { background-color: var(--color-warning-subtle); color: var(--color-warning-dark); }
.tc-osuche-info > .tc-osuche-marke, .tc-odok-info > .tc-osuche-marke { margin-left: 0; align-self: flex-start; }
.tc-osuche-waehlen, .tc-odok-knoepfe .button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.tc-osuche-waehlen { flex: 0 0 auto; white-space: nowrap; }
.tc-osuche-blaettern { display: flex; justify-content: center; align-items: center; gap: 12px; }
.tc-osuche-blaettern:empty { display: none; }
.tc-osuche-seite { font-size: 14px; color: var(--color-text-muted); }
/* Lupe neben Materialauswahllisten */
.tc-osuche-lupe { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 5px 10px; min-height: 32px; vertical-align: middle;
	border: 1px solid var(--color-border-strong); border-radius: 6px; background-color: var(--color-surface); color: var(--color-primary); font: inherit; font-size: 14px; cursor: pointer; }
.tc-osuche-lupe:hover, .tc-osuche-lupe:focus-visible { background-color: var(--color-info-subtle); color: var(--color-primary-dark); border-color: var(--color-primary); }
.tc-osuche-lupe svg, .tc-dok-knopf svg, .tc-odok-titel svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; flex: 0 0 auto; }
/* Dokumente-Symbol an Geraetetyp/Material */
.tc-dok-knopf { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--color-border-strong); border-radius: 6px;
	background-color: var(--color-surface); color: var(--color-primary); font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; vertical-align: middle; white-space: nowrap; }
.tc-dok-knopf:hover, .tc-dok-knopf:focus-visible { background-color: var(--color-info-subtle); color: var(--color-primary-dark); border-color: var(--color-primary); }
.tc-odok-liste { display: flex; flex-direction: column; gap: 8px; }
.tc-odok-eintrag { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; }
.tc-odok-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tc-odok-titel { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.tc-odok-beschreibung { font-size: 14px; white-space: pre-line; }
.tc-odok-knoepfe { display: flex; gap: 8px; flex: 0 0 auto; }
.tc-odok-vorschau { margin-top: 12px; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.tc-odok-vorschau-kopf { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background-color: var(--color-gruppe-titel-flaeche); }
.tc-odok-rahmen { display: block; width: 100%; height: min(70vh, 640px); border: 0; background-color: #FFFFFF; }
.tc-odok-bild { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }
@media (max-width: 760px) {
	.tc-osuche-treffer, .tc-odok-eintrag { flex-direction: column; align-items: stretch; }
	.tc-osuche-waehlen, .tc-odok-knoepfe .button { width: 100%; min-height: 44px; text-align: center; }
	.tc-odok-knoepfe { flex-direction: column; }
	.tc-osuche-filterfeld { flex-basis: 100%; }
	.tc-osuche-lupe .tc-osuche-lupe-text { display: none; }
	.tc-osuche-lupe { min-width: 44px; min-height: 44px; justify-content: center; }
	.tc-dok-knopf { min-height: 32px; padding: 3px 8px; }
}
@media print { .tc-osuche-lupe, .tc-dok-knopf { display: none !important; } }
.tc-odok-verwalten { display: inline-block; margin-top: 12px; font-weight: 600; }
.tc-pdok-eintrag { border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.tc-pdok-eintrag > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.tc-pdok-titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.tc-pdok-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tc-pdok-inline { display: inline; margin: 0; }
.tc-pdok-form { margin-top: 8px; }
.tc-pdok-neu { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--color-border); }
/* 22.10.2026 (Ergaenzungsauftrag 6): einheitliche Suche - Gruppenkoepfe und Typkennzeichnung */
.tc-osuche-gruppe { margin: 6px 0 0; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 14px; background-color: var(--color-gruppe-titel-flaeche); color: var(--color-text); }
.tc-osuche-marke--typ { margin-left: 0; margin-right: 4px; border: 1px solid var(--color-border-strong); background-color: var(--color-surface); color: var(--color-text); }
.tc-osuche-marke--geraet { border-color: var(--color-primary); color: var(--color-primary); }
.tc-osuche-marke--material { border-color: var(--color-success); color: var(--color-text); }
.tc-osuche-marke--dienstleistung { border-color: var(--color-accent); color: var(--color-accent); }
.tc-osuche-marke--geraetetyp { border-style: dashed; }
/* 24.11.2026 (Roman): Bezeichnung in den Trefferlisten groesser und besser lesbar - Nummer bleibt kompakt davor,
   die Bezeichnung (Material-/Artikelname, Geraetetyp, Leistung) ist die groesste Schrift der Zeile. */
.tc-osuche-titel { font-size: 15px; line-height: 1.35; }
.tc-osuche-trenner { color: var(--color-text-muted); }
.tc-osuche-name { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--color-text); letter-spacing: .005em; }
.tc-osuche-titel .tc-osuche-marke--typ { vertical-align: 3px; }
.tc-osuche-info { gap: 4px; }
body.tc-ret-touch .tc-osuche-name { font-size: 23px; }
@media (max-width: 760px) { .tc-osuche-name { font-size: 18px; } }
