/* BILDZOOM-0211 (02.11.2026) – Vollbild-Betrachter für Fotos (public/js/bildzoom.js). Keine externen Schriften/Dienste.
   Der Betrachter ist immer dunkel (Foto-Ansicht); alle Texte/Knöpfe weiß bzw. hell auf fast Schwarz (Kontrast > 12:1),
   Regeln gelten gleich für data-theme hell/dunkel und System-Dunkel. */
html.spbz-an, html.spbz-an body { overflow: hidden !important; overscroll-behavior: none; }
.spbz { position: fixed; inset: 0; z-index: 2147483000; background: #000; color: #fff; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.spbz[hidden] { display: none !important; }
.spbz-buehne { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.spbz.gezoomt .spbz-buehne { cursor: grab; }
.spbz-bild { display: block; max-width: none; max-height: none; flex: none; transform-origin: 50% 50%; will-change: transform; touch-action: none;
  -webkit-user-drag: none; user-select: none; pointer-events: none; background: transparent; border-radius: 0; margin: 0; }
.spbz-kopf { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none; }
.spbz-zahl { pointer-events: none; min-width: 3em; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: 16px; }
.spbz-zahl:empty { visibility: hidden; }
.spbz-zu { pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; background: #111; color: #fff; font-size: 36px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 4px; box-shadow: 0 2px 10px rgba(0,0,0,.6); }
.spbz-zu:focus-visible, .spbz-pfeil:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.spbz-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: 12px; background: rgba(17,17,17,.78);
  color: #fff; font-size: 40px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 6px; }
.spbz-li { left: max(8px, env(safe-area-inset-left)); }
.spbz-re { right: max(8px, env(safe-area-inset-right)); }
.spbz-pfeil[hidden] { display: none; }
.spbz-pfeil:disabled { opacity: .35; cursor: default; }
@media (hover: none) and (pointer: coarse) { .spbz-pfeil { width: 44px; height: 60px; font-size: 32px; background: rgba(17,17,17,.6); } }
.spbz-hinweis { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.82); color: #fff; font-size: 14px; text-align: center; pointer-events: none;
  transition: opacity .6s ease; opacity: 1; }
.spbz-hinweis.weg { opacity: 0; }
.spbz-fehler { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 16px; border-radius: 12px; background: #1f1f1f; color: #fff;
  border: 1px solid #fca5a5; max-width: 80%; text-align: center; }
.spbz-fehler[hidden] { display: none; }
/* Vorschaubilder auf den Seiten: als antippbar erkennbar */
.spbz-vorschau, [data-bildzoom] img { cursor: zoom-in; }
/* Hinweis „Zum Vergrößern antippen" auf den Seiten (hell / dunkel) */
.bz-tipp { font-size: .9rem; margin: 4px 0 0; color: #374151; }
[data-theme="dark"] .bz-tipp { color: #d1d5db; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bz-tipp { color: #d1d5db; } }
/* Erledigt-Hinweis (MA-Ansichten, Fotoseite): grün, ausgegraut – Kontrast ≥ 4.5:1 hell und dunkel */
.bz-erledigt { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #059669; border-inline-start: 4px solid #059669; color: #065f46; }
.bz-erledigt b, .bz-erledigt h2, .bz-erledigt h3 { color: #065f46; }
.bz-erledigt ul { margin: 6px 0 0; padding-inline-start: 20px; }
.bz-erledigt li { color: #4b5563; margin: 3px 0; }
.bz-erledigt small { color: #4b5563; }
[data-theme="dark"] .bz-erledigt { background: #052e1f; border-color: #34d399; color: #a7f3d0; }
[data-theme="dark"] .bz-erledigt b, [data-theme="dark"] .bz-erledigt h2, [data-theme="dark"] .bz-erledigt h3 { color: #a7f3d0; }
[data-theme="dark"] .bz-erledigt li, [data-theme="dark"] .bz-erledigt small { color: #cbd5e1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bz-erledigt { background: #052e1f; border-color: #34d399; color: #a7f3d0; }
  :root:not([data-theme="light"]) .bz-erledigt b, :root:not([data-theme="light"]) .bz-erledigt h2, :root:not([data-theme="light"]) .bz-erledigt h3 { color: #a7f3d0; }
  :root:not([data-theme="light"]) .bz-erledigt li, :root:not([data-theme="light"]) .bz-erledigt small { color: #cbd5e1; }
}
