/* Bilder groß ansehen und durchblättern (Session „Bilder/Daten", 30.11.2026) — static/bild_view.js.
   Rahmen wie die Akten-Ansicht (bilder-dialog): oben nichts, grauer Grund, unten feste Leiste zurück · Kreuz · vor. */
#bv-dialog { width: min(1100px, calc(100vw - 2rem)); height: calc(100vh - 2rem); overflow: hidden; }
#bv-flaeche { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 10px; border-radius: 10px; background: var(--grund); touch-action: none; user-select: none; -webkit-user-select: none; }
#bv-flaeche img { flex: none; box-sizing: border-box; border: 1px solid #c7c7cc; border-radius: 4px; cursor: zoom-in;
  -webkit-touch-callout: none; }
#bv-flaeche video { max-width: 100%; max-height: 100%; touch-action: auto; background: #000; border-radius: 4px; }
.bv-fuss { flex: none; display: flex; align-items: center; gap: .7rem; margin: .7rem -1.15rem -1rem;
  padding: .65rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--flaeche); border-top: .5px solid var(--rand2); }
.bv-fuss button { min-height: 0; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bv-fuss svg { width: 26px; height: 26px; }
.bv-fuss .bv-pfeil { flex: 1; height: 52px; border-radius: 99px; background: var(--akzent); color: #fff; }
.bv-fuss .bv-pfeil:hover:not(:disabled) { background: #0066d6; }
.bv-fuss .bv-pfeil:disabled { background: #b9d9ff; color: #fff; opacity: 1; cursor: default; }
.bv-fuss .bv-zu { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--rand); color: #e5484d; }
.bv-fuss .bv-zu:hover { background: var(--rand2); }
html:has(#bv-dialog[open]), html:has(#bv-dialog[open]) body { overflow: hidden; overscroll-behavior: none; }
@media (max-width: 640px) {
  #bv-dialog { width: 100vw; height: 100vh; }
  .bv-fuss { margin: .7rem -.8rem -.8rem; padding-inline: .75rem; }
}
