/* Search-page details on the shared Prism/Human Navy palette. */
body.prism-site .theme8-search-page {
    --t8-bg: var(--prism-bg);
    --t8-surface: var(--prism-surface);
    --t8-soft: var(--prism-surface-2);
    --t8-text: var(--prism-text);
    --t8-muted: var(--prism-muted);
    --t8-border: var(--prism-line);
    --t8-border-strong: var(--prism-line-strong);
    --t8-primary: var(--prism-button);
    --t8-accent: var(--prism-accent);
    font-family: inherit;
}
body.prism-site .theme8-search-page .theme8-search-logo {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
body.prism-site .theme8-search-page .theme8-search-box {
    padding: 24px;
    border: 1px solid var(--prism-line);
    border-radius: 22px;
    margin-bottom: 24px;
}
body.prism-site .theme8-search-page .theme8-search-box form { margin: 0; }
body.prism-site .theme8-search-page .theme8-field { min-width: 0; }
body.prism-site .theme8-search-page .theme8-field :is(input, select):focus-visible {
    outline: 2px solid var(--prism-accent);
    outline-offset: 2px;
    box-shadow: none;
}
body.prism-site .theme8-search-page .theme8-btn {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 650;
}
body.prism-site .theme8-search-page .theme8-btn--dark {
    background: var(--prism-button) !important;
    color: var(--prism-button-text) !important;
    border-color: var(--prism-button) !important;
}
body.prism-site .theme8-search-page :is(.theme8-btn--light, .theme8-btn--ghost) {
    background: transparent !important;
    color: var(--prism-text) !important;
    border-color: var(--prism-line-strong) !important;
}
body.prism-site .theme8-search-page :is(.theme8-btn--light, .theme8-btn--ghost):hover {
    background: var(--prism-soft) !important;
    border-color: var(--prism-accent) !important;
}
body.prism-site .theme8-search-page :is(a, button):focus-visible {
    outline: 2px solid var(--prism-accent);
    outline-offset: 3px;
}
body.prism-site .theme8-search-page :is(.theme8-sidebar__stat, .theme8-empty, .theme8-contact-box, .theme8-contact-box--compact) {
    background: var(--prism-surface-2);
    border-color: var(--prism-line);
}
body.prism-site .theme8-search-page .theme8-rescue {
    background: var(--prism-surface);
    border-color: var(--prism-line);
    border-radius: 22px;
}
body.prism-site .theme8-search-page .theme8-empty > div:first-child {
    background: var(--prism-soft);
    color: var(--prism-accent);
}
body.prism-site .theme8-search-page .theme8-provider-code {
    background: var(--prism-soft);
    color: var(--prism-accent);
}
body.prism-site .theme8-search-page .theme8-provider-code span { color: var(--prism-muted); }
body.prism-site .theme8-search-page :is(.theme8-badge--info, .theme8-badge--scope) {
    background: var(--prism-soft);
    color: var(--prism-text);
    border-color: var(--prism-line);
}
body.prism-site .theme8-search-page .theme8-fav-btn:not(.is-fav):not(:hover) {
    background: var(--prism-surface-2);
    border-color: var(--prism-line);
    color: var(--prism-muted);
    box-shadow: none;
}
body.prism-site .theme8-search-page :is(.theme8-toolbar-chips a, .theme8-sort-group > a, .theme8-view-toggle) {
    background: var(--prism-surface-2);
    border-color: var(--prism-line);
    color: var(--prism-muted);
}
body.prism-site .theme8-search-page :is(.theme8-toolbar-chips a.is-active, .theme8-sort-group > a.is-active, .theme8-view-btn.is-active, .theme8-page-btn.is-active) {
    background: var(--prism-button);
    border-color: var(--prism-button);
    color: var(--prism-button-text);
    box-shadow: none;
}
body.prism-site .theme8-search-page :is(.theme8-page-btn:not(.is-active), .theme8-pagination__size a, .theme8-active-filters__chips a, .theme8-rescue__chip-count) {
    background: var(--prism-surface-2);
    border-color: var(--prism-line);
    color: var(--prism-accent);
}
body.prism-site .theme8-search-page :is(.theme8-rescue__relax-link, .theme8-rescue__chip):hover {
    background: var(--prism-soft);
    border-color: var(--prism-accent);
}
body.prism-site .theme8-search-page .theme8-pagination__size a.is-active { background: var(--prism-soft); }
body.prism-site .theme8-search-page .rfq-pick {
    background: var(--prism-surface-2);
    color: var(--prism-text);
    border-color: var(--prism-line);
    border-radius: 999px;
}
body.prism-site .theme8-search-page .rfq-pick input { accent-color: var(--prism-accent); }
body.prism-site #rfqBar {
    max-width: calc(100% - 32px);
    flex-wrap: wrap;
    justify-content: center;
    background: var(--prism-surface) !important;
    color: var(--prism-text) !important;
    border: 1px solid var(--prism-line-strong);
}
body.prism-site #rfqGo {
    background: var(--prism-button) !important;
    border-color: var(--prism-button) !important;
    color: var(--prism-button-text) !important;
}
body.prism-site .theme8-map-section :is(.leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-control-zoom a) {
    background: var(--prism-surface);
    color: var(--prism-text);
}
body.prism-site .theme8-map-section .leaflet-popup-close-button { color: var(--prism-muted); }
body.prism-site .theme8-map-section .search-map-popup { font-family: inherit; color: var(--prism-text); }
body.prism-site .theme8-map-section .leaflet-popup-content { font-family: inherit; }
body.prism-site .theme8-map-empty :is(pre, summary) { color: var(--prism-muted) !important; }
body.prism-site .theme8-map-empty pre { background: var(--prism-surface-2) !important; }
@media (max-width: 720px) {
    body.prism-site .theme8-search-page .theme8-search-box { padding: 18px; border-radius: 18px; }
    body.prism-site .theme8-search-page .theme8-rescue { padding: 24px 18px; border-radius: 18px; }
}

/* Matching approval evidence */
.theme8-filter-hint{font-size:12px;line-height:1.6;margin:0 0 16px;opacity:.85}.theme8-cert-evidence{margin:12px 0;max-width:100%;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.theme8-cert-evidence summary{cursor:pointer;font-weight:600}.theme8-cert-evidence p{margin:8px 0}.theme8-cert-proof{border-top:1px solid currentColor;padding:10px 0;margin-top:10px}.theme8-cert-proof a{text-decoration:underline}

/* Search workspace: four primary filters, optional detail filters, readable cards. */
body.prism-site .theme8-search-page {
    max-width: 1640px;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    padding-inline: 28px;
}
body.prism-site .theme8-search-page .theme8-main { min-width: 0; }
body.prism-site .theme8-search-page .theme8-sidebar { padding: 20px 22px 20px 0; }
body.prism-site .theme8-search-page .theme8-sidebar__intro h2 { font-size: 30px; line-height: 1.15; }
body.prism-site .theme8-search-page .theme8-sidebar__intro p { font-size: 14px; line-height: 1.7; }
body.prism-site .theme8-search-page .theme8-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.prism-site .theme8-search-page .theme8-advanced { margin-top: 18px; border-top: 1px solid var(--prism-line); padding-top: 16px; }
body.prism-site .theme8-search-page .theme8-advanced summary { cursor: pointer; font-weight: 650; color: var(--prism-accent); padding-block: 8px; }
body.prism-site .theme8-search-page .theme8-advanced summary:focus-visible { outline: 2px solid var(--prism-accent); outline-offset: 4px; border-radius: 5px; }
body.prism-site .theme8-search-page .theme8-filter-grid--advanced { margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prism-site .theme8-search-page .theme8-results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--prism-line);
    border-radius: 16px;
    background: var(--prism-surface);
}
.prism-site .theme8-search-page .theme8-results-heading h3 {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
}
.theme8-results-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.prism-site .theme8-search-page .theme8-toolbar-chips,
.prism-site .theme8-search-page .theme8-active-filters { grid-column: 1 / -1; }
.prism-site .theme8-search-page .theme8-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0 0;
    border-top: 1px solid var(--prism-line);
}
.theme8-active-filters__chips { min-width: 0; }
.theme8-active-filters__chips a { max-width: 100%; overflow-wrap: anywhere; }
.prism-site .theme8-search-page .theme8-active-filters:not(:has(a)) { display: none; }
body.prism-site .theme8-search-page .theme8-provider-row {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 28%);
    gap: 18px;
    padding: 18px;
}
body.prism-site .theme8-search-page .theme8-provider-main,
body.prism-site .theme8-search-page .theme8-provider-title,
body.prism-site .theme8-search-page .theme8-provider-side { min-width: 0; }
body.prism-site .theme8-search-page .theme8-provider-title-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
body.prism-site .theme8-search-page .theme8-provider-title-row--no-code { grid-template-columns: minmax(0, 1fr) auto; }
body.prism-site .theme8-search-page .theme8-provider-code {
    grid-template-columns: 1fr;
    place-items: center;
    align-content: center;
    width: 54px;
    min-height: 52px;
    padding: 6px;
    border-radius: 11px;
}
.theme8-provider-title-row .theme8-provider-code strong { font-size: 16px; }
.theme8-provider-title-row .theme8-provider-code span { margin: 4px 0 0; font-size: 10px; }
body.prism-site .theme8-search-page .theme8-provider-title-row .theme8-fav-btn {
    position: static;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
body.prism-site .theme8-search-page .theme8-provider-title h4 { overflow-wrap: anywhere; }
body.prism-site .theme8-search-page .theme8-provider-meta { margin-top: 4px; line-height: 1.45; flex-wrap: wrap; }
.theme8-provider-meta-code {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.prism-site .theme8-search-page .theme8-provider-meta span + span::before { content: none; }
.theme8-provider-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
body.prism-site .theme8-search-page .theme8-provider-status :is(.theme8-provider-badges, .theme8-provider-facts) {
    margin: 0;
    gap: 6px;
    justify-content: flex-start;
}
.theme8-provider-status:not(:has(.theme8-badge, .theme8-match-reason)),
.theme8-provider-status > :not(:has(span)) { display: none; }
body.prism-site .theme8-search-page .theme8-provider-status .theme8-match-reason { font-size: 12px; }
body.prism-site .theme8-search-page .theme8-provider-row .theme8-provider-main > p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
body.prism-site .theme8-search-page .theme8-provider-side {
    align-content: center;
    border-inline-start: 1px solid var(--prism-line);
    padding-inline-start: 16px;
}
body.prism-site .theme8-search-page .theme8-provider-actions { display: flex; flex-wrap: wrap; gap: 6px; }
body.prism-site .theme8-search-page .theme8-provider-actions > .theme8-btn {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding-inline: 10px;
    font-size: 12px;
    white-space: normal;
}
body.prism-site .theme8-search-page .theme8-provider-actions .rfq-pick {
    flex: 1 0 100%;
    min-height: 40px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.4;
}
body.prism-site .theme8-search-page .rfq-pick input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; margin: 0; }
body.prism-site .theme8-search-page .rfq-pick span { min-width: 0; }
body.prism-site .theme8-search-page .theme8-fav-btn[disabled] { opacity: .55; cursor: progress; }
body.prism-site .theme8-search-page .search-action-feedback:empty { display: none; }
body.prism-site .theme8-search-page .search-action-feedback,
body.prism-site .search-map-status { padding: 12px 16px; border: 1px solid var(--prism-line-strong); border-radius: 12px; background: var(--prism-surface-2); color: var(--prism-text); line-height: 1.6; }
body.prism-site .theme8-search-page .search-action-feedback.is-error { border-color: #d56868; }
body.prism-site .theme8-search-page .search-action-feedback:not(:empty) { position: sticky; top: calc(var(--aog-header-height, 70px) + 10px); z-index: 30; box-shadow: 0 8px 24px #0002; }
body.prism-site .theme8-search-page .theme8-map-section > .theme8-filter-hint { padding: 14px 16px; margin: 0; opacity: 1; }
body.prism-site .theme8-search-page .theme8-notice pre { white-space: pre-wrap; }
body.prism-site #rfqClear { background: transparent; color: var(--prism-text); border: 1px solid var(--prism-line-strong); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
@media (max-width: 1180px) {
    body.prism-site .theme8-search-page { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
    body.prism-site .theme8-search-page .theme8-provider-row { grid-template-columns: minmax(0, 1fr); }
    body.prism-site .theme8-search-page .theme8-provider-side {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        border-inline-start: 0;
        border-top: 1px solid var(--prism-line);
        padding: 12px 0 0;
    }
    body.prism-site .theme8-search-page .theme8-provider-side > * { flex: 1 1 230px; min-width: 0; }
    body.prism-site .theme8-search-page .theme8-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.prism-site .theme8-search-page { grid-template-columns: minmax(0, 1fr); padding-inline: 20px; }
    body.prism-site .theme8-search-page .theme8-sidebar { display: none; }
}
@media (max-width: 720px) {
    .prism-site .theme8-search-page .theme8-results-toolbar { grid-template-columns: minmax(0, 1fr); }
    .theme8-results-controls { justify-content: flex-start; }
}
@media (max-width: 600px) {
    body.prism-site .theme8-search-page { padding: 20px 14px 110px; }
    body.prism-site .theme8-search-page .theme8-search-box { padding: 16px; }
    body.prism-site .theme8-search-page .theme8-filter-grid { grid-template-columns: minmax(0, 1fr); }
    body.prism-site .theme8-search-page .theme8-field :is(input, select) {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
    body.prism-site .theme8-search-page .theme8-advanced summary {
        min-height: 44px;
        padding-block: 12px;
    }
    body.prism-site .theme8-search-page .theme8-provider-row { padding: 14px; gap: 12px; }
    body.prism-site .theme8-search-page .theme8-provider-title h4 { font-size: 19px; }
    body.prism-site .theme8-search-page .theme8-provider-meta { font-size: 12px; }
    body.prism-site .theme8-search-page .theme8-provider-side > * { flex-basis: 100%; }
    body.prism-site .theme8-search-page .theme8-provider-actions > .theme8-btn { flex-basis: 120px; }
    body.prism-site .theme8-search-page .theme8-provider-actions > .rfq-pick { width: 100%; }
    body.prism-site .theme8-search-page .theme8-provider-actions .theme8-access-note { flex-basis: 100%; }
    body.prism-site .theme8-search-page .theme8-page-header__actions,
    body.prism-site .theme8-search-page .theme8-provider-actions { width: 100%; }
    body.prism-site #rfqBar { bottom: 12px; gap: 10px !important; padding: 12px !important; width: calc(100% - 28px); }
}

/* Suche links, Treffer rechts – dieselben Suchparameter und dieselbe Gestaltung. */
body.prism-site .theme8-search-page--results { grid-template-columns: minmax(0, 1fr); }
body.prism-site .theme8-search-page .theme8-main { width: 100%; }
body.prism-site .theme8-search-page .theme8-search-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}
body.prism-site .theme8-search-page .theme8-search-filters,
body.prism-site .theme8-search-page .theme8-search-results { min-width: 0; }
body.prism-site .theme8-search-page .theme8-search-box { padding: 18px; }
body.prism-site .theme8-search-page .theme8-search-box > summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
}
body.prism-site .theme8-search-page .theme8-search-box:not([open]) > summary { margin-bottom: 0; }
body.prism-site .theme8-search-page--results .theme8-filter-grid,
body.prism-site .theme8-search-page--results .theme8-filter-grid--advanced { grid-template-columns: minmax(0, 1fr); }
body.prism-site .theme8-search-page .theme8-filter-hint { font-size: 12px; }
body.prism-site .theme8-search-page .theme8-form-actions > .theme8-btn { flex: 1 1 auto; }
body.prism-site .theme8-search-page .theme8-form-actions > span { flex-basis: 100%; }
body.prism-site .theme8-search-page .theme8-filter-flags {
    border: 0;
    border-top: 1px solid var(--prism-line);
    margin: 20px 0 0;
    padding: 14px 0 0;
    min-width: 0;
}
body.prism-site .theme8-search-page .theme8-filter-flags legend { font-size: 13px; font-weight: 800; padding-right: 8px; }
body.prism-site .theme8-search-page .theme8-filter-flags label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    font-size: 13px;
    line-height: 1.4;
}
body.prism-site .theme8-search-page .theme8-filter-flags input { accent-color: var(--prism-accent); width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) {
    body.prism-site .theme8-search-page .theme8-search-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    body.prism-site .theme8-search-page .theme8-search-box > summary { min-height: 24px; }
}

body.prism-site .theme8-search-page--start .theme8-search-layout { display: block; }
body.prism-site .theme8-search-page--start .theme8-search-box > summary { display: none; }
