/* Vorschau-Betrachter (vorschau.js). Ergänzt hub.css, ändert nichts daran. */
body.vs-offen { overflow: hidden; }
.vs-ueber { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #1F2423; color: #fff; }
.vs-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 10px 16px; background: #fff; color: var(--text); border-bottom: 1px solid var(--rand); }
.vs-titel { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1 1 260px; }
.vs-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vs-gr { flex: none; color: var(--fuss); font-size: 13px; white-space: nowrap; }
.vs-aktionen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-nav { display: flex; align-items: center; gap: 4px; }
.vs-nav[hidden] { display: none; }
.vs-zaehler { min-width: 4.5em; text-align: center; font-size: 13px; color: var(--fuss); white-space: nowrap; }
.vs-knopf { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer;
  background: #fff; color: var(--dunkel); border: 1px solid var(--dunkel); border-radius: 6px; }
.vs-knopf:hover { background: var(--tint); }
.vs-knopf:focus-visible, .vs-bild:focus-visible, .vs-text:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.vs-knopf[disabled] { opacity: .4; cursor: default; }
.vs-pfeil { font-size: 22px; line-height: 1; padding: 0 10px; }
.vs-zu { background: var(--dunkel); color: #fff; }
.vs-zu:hover { background: #0F5A4F; }

.vs-buehne { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.vs-buehne.voll { display: block; }
.vs-bild { display: block; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.vs-buehne.voll .vs-bild { max-width: none; max-height: none; cursor: zoom-out; margin: 0 auto; }
.vs-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.vs-video { max-width: 100%; max-height: 100%; background: #000; }
.vs-audio { width: min(560px, 92%); }
.vs-buehne:has(.vs-text) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #fff; color: var(--text); }
.vs-text { flex: 1 1 auto; margin: 0; padding: 16px 20px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 13px/1.5 Consolas, "Courier New", monospace; color: var(--text); background: #fff; }
.vs-hinweis { flex: none; margin: 0; padding: 10px 20px; font-size: 13px; color: var(--grau); background: #FFF6E5; border-top: 1px solid var(--rand); }
.vs-fehler { text-align: center; padding: 24px; max-width: 420px; }
.vs-fehler-text { margin: 0 0 16px; font-size: 16px; }
.vs-lade { position: absolute; left: 0; right: 0; top: 50%; margin: 0; text-align: center; font-size: 14px; color: #D8E3E1; pointer-events: none; }
.vs-lade[hidden] { display: none; }
.vs-lade::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: vs-dreh .8s linear infinite; }
@keyframes vs-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vs-lade::before { animation: none; } }

@media (max-width: 760px) {
  .vs-kopf { padding: 8px 12px; gap: 6px; }
  .vs-titel { flex-basis: 100%; }
  .vs-aktionen { width: 100%; justify-content: space-between; gap: 6px; }
  .vs-knopf { padding: 0 10px; font-size: 13px; }
  .vs-pfeil { padding: 0 8px; }
  .vs-zaehler { min-width: 3.6em; }
}
