/* Peer-Vergleich (blind) – eigene Seite, gleiche Überlagerung wie Galerie und Analyse */
#peers { position: fixed; inset: 0; z-index: 100; background: var(--bg, var(--papier)); overflow-y: auto; padding: var(--a-4) var(--a-5); box-sizing: border-box; }
#peers[hidden] { display: none; }
#peers button, #peers select, #peers .pv-btn, #peers input[type="number"] { min-height: 44px; }
#peers label:has(> input[type="checkbox"]), #peers .pv-radio { min-height: 44px; display: inline-flex; align-items: center; gap: var(--a-2); }
#peers input[type="radio"] { width: 20px; height: 20px; }
#peers input[type="number"] { width: 90px; }
.pv-card { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-bedien); padding: var(--a-3) var(--a-4); margin: var(--a-3) 0; }
.pv-card > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pv-card h3 { margin: var(--a-1) var(--a-3) var(--a-1) 0; font-size: var(--t-2); }
.pv-row { display: flex; flex-wrap: wrap; gap: var(--a-2) var(--a-4); align-items: center; }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--a-4); border: 1px solid var(--linie); border-radius: var(--r-bedien); background: var(--flaeche); cursor: pointer; color: inherit; text-decoration: none; font: inherit; }
.pv-btn:hover { background: var(--papier-tief); }
.pv-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pv-primary { background: var(--tinte); color: var(--auf-tinte); border-color: var(--messing); }
.pv-primary:hover { background: var(--tinte); }
.pv-ok { color: var(--ok); font-weight: 600; }
.pv-mini { min-height: 44px; min-width: 44px; margin-top: var(--a-1); font-size: var(--t-1); padding: 0 var(--a-2); border: 1px solid var(--linie); border-radius: var(--r-bedien); background: var(--flaeche); cursor: pointer; display: block; }
#pvReason { width: 100%; box-sizing: border-box; margin: var(--a-2) 0; font: inherit; padding: var(--a-2); min-height: 60px; }
.pv-problems { background: var(--weich-hinweis); border: 1px solid var(--hinweis); border-radius: var(--r-bedien); padding: var(--a-2) var(--a-3); margin: var(--a-2) 0; font-size: var(--t-1); }
.pv-problems ul { margin: var(--a-1) 0 0; padding-left: var(--a-5); max-height: 240px; overflow-y: auto; }
.pv-disclaimer { font-weight: 600; color: var(--hinweis); background: var(--weich-hinweis); padding: var(--a-2) var(--a-3); border-radius: var(--r-bedien); display: inline-block; }
.pv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pv-table { border-collapse: separate; border-spacing: 0; font-size: var(--t-1); background: var(--flaeche); min-width: 100%; }
.pv-table th, .pv-table td { padding: var(--a-2) var(--a-3); border-bottom: 1px solid var(--linie); text-align: right; vertical-align: top; white-space: nowrap; }
.pv-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--flaeche); z-index: 1; white-space: normal; min-width: 150px; max-width: 220px; box-shadow: 1px 0 0 var(--linie); }
.pv-table thead th { background: var(--flaeche); font-size: var(--t-1); color: var(--untiefe); position: sticky; top: 0; }
.pv-table thead th:first-child { z-index: 2; background: var(--flaeche); }
.pv-target th, .pv-target td { background: var(--weich-messing); font-weight: 600; }
.pv-target th:first-child { background: var(--weich-messing); }
.pv-excl td, .pv-excl th { opacity: .5; }
.pv-foot th, .pv-foot td { background: var(--flaeche); }
.pv-foot th:first-child { background: var(--flaeche); }
.pv-table tfoot tr:first-child th, .pv-table tfoot tr:first-child td { border-top: 2px solid var(--linie); }
.pv-size { text-align: center !important; color: var(--untiefe); font-style: italic; }
.pv-na { color: var(--untiefe); }
.pv-na small, .pv-table small, .pv-wtext { display: block; font-size: var(--t-1); color: var(--untiefe); font-weight: 400; white-space: normal; max-width: 180px; margin-left: auto; }
.pv-table th:first-child small { margin-left: 0; }
.pv-good { color: var(--ok); }
.pv-bad { color: var(--gefahr); }
td.pv-good { background: var(--weich-ok) !important; }
td.pv-bad { background: var(--weich-gefahr) !important; }
.pv-warn { color: var(--hinweis); cursor: help; }
.pv-out { cursor: help; }
.pv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--a-3); }
.pv-mcard { border: 1px solid var(--linie); border-radius: var(--r-bedien); padding: var(--a-3) var(--a-3); line-height: 1.6; font-size: var(--t-2); border-left: 4px solid var(--linie); }
.pv-mcard.pv-good { border-left-color: var(--ok); color: inherit; }
.pv-mcard.pv-bad { border-left-color: var(--gefahr); color: inherit; }
.pv-mcard small { color: var(--untiefe); }
.pv-svg { background: var(--flaeche); max-width: 760px; display: block; }
@media (max-width: 800px) {
  #peers { padding: var(--a-3) var(--a-3) var(--a-6); padding-top: max(var(--a-3), env(safe-area-inset-top)); }
  .pv-card { padding: var(--a-2) var(--a-3); }
  .pv-table th:first-child { min-width: 110px; max-width: 140px; }
}
