/* lueftungstool.com: Galerie der PDF-Beispiele. Gegenstueck: assets/galerie.js.
   Dunkle Ueberlagerung ueber die ganze Seite, grosses Bild in der Mitte, oben Name und Zaehler mit „Schliessen“, Pfeile links
   und rechts (am Handy unten). Knoepfe mindestens 44 px (WCAG 2.2, 2.5.8), sichtbarer Fokus. Ohne Bewegung bei
   „reduzierter Bewegung“. html.lb-offen sperrt das Scrollen der Seite; die Scrollleiste bleibt reserviert
   (app.css: scrollbar-gutter:stable), deshalb verschiebt sich nichts. */
.lb[hidden]{display:none!important;}
html.lb-offen{overflow:hidden;}
.lb{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:auto minmax(0,1fr);background:rgba(6,19,28,.94);
  color:#fff;animation:lb-ein .18s ease both;}
.lb__kopf{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px 8px 24px;}
.lb__info{margin:0;min-width:0;font-size:15px;line-height:1.35;}
.lb__titel{font-weight:600;}
.lb__zaehler{margin-left:10px;color:rgba(255,255,255,.72);font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.lb__buehne{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:4px 88px 24px;
  touch-action:pan-y pinch-zoom;}
.lb__bild{display:block;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:4px;background:#fff;
  box-shadow:0 24px 64px -12px rgba(0,0,0,.6);user-select:none;-webkit-user-select:none;}
.lb--laedt .lb__bild{opacity:.35;}
.lb__lade{position:absolute;top:50%;left:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;
  border:3px solid rgba(255,255,255,.25);border-top-color:#fff;opacity:0;pointer-events:none;}
.lb--laedt .lb__lade{opacity:1;animation:lb-dreh .8s linear infinite;}
.lb button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.28);
  border-radius:50%;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;}
.lb button:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5);}
.lb button:focus-visible{outline:3px solid var(--brand,#00B4D8);outline-offset:2px;}
.lb button:disabled{opacity:.3;cursor:default;background:transparent;}
.lb button .i{width:22px;height:22px;stroke-width:2;}
.lb__zu{flex:none;}
.lb__zurueck,.lb__weiter{position:absolute;top:50%;margin-top:-4px;}
.lb__zurueck{left:20px;}
.lb__weiter{right:20px;}
.lb__zurueck .i{transform:scaleX(-1);}
.lb__ansage{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;}
.blaetter[data-galerie] .blatt a{cursor:zoom-in;}
@keyframes lb-ein{from{opacity:0;}to{opacity:1;}}
@keyframes lb-dreh{to{transform:rotate(360deg);}}
/* Handy und Tablet hoch: Pfeile unten neben der Mitte, Bild nutzt die ganze Breite */
@media (max-width:760px){
  .lb{grid-template-rows:auto minmax(0,1fr) auto;}
  .lb__kopf{padding:10px 10px 6px 16px;}
  .lb__info{font-size:14px;}
  .lb__buehne{padding:4px 12px 8px;}
  .lb__zurueck,.lb__weiter{position:static;margin:0;}
  .lb__zurueck{grid-row:3;grid-column:1;justify-self:start;margin:4px 0 16px 16px;}
  .lb__weiter{grid-row:3;grid-column:1;justify-self:end;margin:4px 16px 16px 0;}
}
@media (prefers-reduced-motion:reduce){
  .lb{animation:none;}
  .lb button{transition:none;}
  .lb--laedt .lb__lade{animation:none;}
}
@media print{.lb{display:none!important;}}
