/* Nur der Prüfbereich. Alles Gemeinsame steht in base.css. */

.wrap { max-width: 1180px; }

/* Sechs Reiter passen auf einem Telefon nicht nebeneinander. Sie dürfen
   umbrechen — die Seite selbst darf nie seitlich scrollen. */
.tabs {
  display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface-3);
  padding: 3px; border-radius: var(--r-md); max-width: 100%;
}
.tabs button {
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  color: var(--muted);
}
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type="text"] { width: 220px; max-width: 100%; }
@media (max-width: 560px) {
  .toolbar input[type="text"] { width: 100%; }
  .toolbar .spacer { display: none; }
}

/* Nichts darf breiter sein als der Bildschirm; lange Zeichenketten ohne
   Trennstelle (Referenzen, Links) brechen um statt zu schieben. */
.linkbox code, .linkbox .linkcode, .facts dd, .audit div { overflow-wrap: anywhere; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 550; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: 0 12px 8px; white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .strong { font-weight: 600; }
.tbl .dim { color: var(--muted); }
.tblwrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 6px 6px; }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 7px; }

.linkbox {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px;
}
/* Auf schmalen Geräten würde der Zugangslink als zwölfzeilige Säule stehen.
   Niemand liest ihn dort ab — man öffnet oder kopiert ihn. Also weg damit,
   die Knöpfe bleiben. (Kein nowrap mit Auslassung: eine nicht umbrechbare
   Zeile sprengt in einem Flex-Vorfahr die Seitenbreite.) */
@media (max-width: 560px) {
  .linkbox { flex-direction: column; align-items: stretch; }
  .linkbox code, .linkbox .linkcode { display: none; }
  .linkbox .btn { width: 100%; }
}
.linkbox code, .linkbox .linkcode {
  font-family: var(--font-mono); font-size: 11.5px; word-break: break-all;
  flex: 1; min-width: 0; color: var(--ink-2); text-decoration: none;
}
.linkbox .linkcode:hover { color: var(--ink); text-decoration: underline; }

.chip {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12.5px; background: var(--surface); color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* -------------------------------------------------------------- Detailfläche */

.drawer-back { position: fixed; inset: 0; background: rgba(9,9,11,.4); z-index: 40; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%);
  background: var(--ground); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); z-index: 41; overflow-y: auto;
}
.drawer-head {
  position: sticky; top: 0; background: var(--ground); border-bottom: 1px solid var(--line);
  padding: 16px 22px; display: flex; align-items: flex-start; gap: 14px; z-index: 2;
}
.drawer-body { padding: 20px 22px 60px; }
.drawer h2 { font-size: 19px; }

.facts { display: grid; grid-template-columns: 150px 1fr; gap: 7px 16px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.ev {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column;
}
.ev .thumb {
  height: 104px; background: var(--surface-3); display: grid; place-items: center;
  color: var(--muted); font-size: 11px; overflow: hidden;
}
.ev .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev .info { padding: 8px 10px; font-size: 12px; }
.ev .info .n { font-weight: 550; word-break: break-all; line-height: 1.35; }
.ev .info .m { color: var(--muted); margin-top: 3px; }
.ev .acts { display: flex; border-top: 1px solid var(--line); }
.ev .acts a, .ev .acts button {
  flex: 1; text-align: center; padding: 7px 4px; font-size: 12px; color: var(--ink-2);
  text-decoration: none; font-weight: 500;
}
.ev .acts a:hover, .ev .acts button:hover { background: var(--surface-3); color: var(--ink); }
.ev .acts > * + * { border-left: 1px solid var(--line); }

.audit { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.audit div { padding: 4px 0; border-top: 1px dashed var(--line); word-break: break-word; }
.audit b { color: var(--ink); font-weight: 600; }

.sect-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 550; color: var(--muted); margin: 26px 0 10px;
}
.sect-title:first-child { margin-top: 0; }
.sect-title .btn { text-transform: none; letter-spacing: 0; }

.lightbox {
  position: fixed; inset: 0; background: rgba(9,9,11,.92); z-index: 70;
  display: grid; place-items: center; padding: 24px;
}
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 6px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 14px; }
