/* 17.11.2026: Galerietitel unten in der großen Bildansicht */
.rbo-pswp-titel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px 16px;
  color: #fff;
  font: bold 15px/1.3 sans-serif;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  pointer-events: none;
}

/* 17.11.2026: PDF-Ansicht über der Seite (PDF.js) */
html.rbo-pdf-offen, html.rbo-pdf-offen body { overflow: hidden; }
.rbo-pdf {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .92);
}
.rbo-pdf-leiste {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: #0F7635;
  color: #fff;
  font: bold 15px/1.3 sans-serif;
}
.rbo-pdf-titel {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rbo-pdf-knopf {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: transparent;
  color: #fff !important;
  font: bold 15px/1 sans-serif;
  text-decoration: none !important;
  cursor: pointer;
}
.rbo-pdf-laden { background: #fff; color: #0F7635 !important; }
.rbo-pdf iframe { flex: 1 1 auto; width: 100%; border: 0; background: #525659; }
@media (max-width: 480px) {
  .rbo-pdf-leiste { font-size: 13px; padding-left: 10px; }
  .rbo-pdf-knopf { padding: 8px 10px; font-size: 14px; }
}

/* 17.11.2026: Teilen-Knöpfe als runde Symbole */
.rbo-teilen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.2em 0; }
.rbo-teilen-label { font-weight: bold; margin-right: 4px; }
.rbo-teilen-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #6b6b6b;
  color: #fff !important;
  cursor: pointer;
  text-decoration: none !important;
}
.rbo-teilen-knopf svg { width: 22px; height: 22px; fill: currentColor; }
.rbo-teilen-knopf:hover, .rbo-teilen-knopf:focus { filter: brightness(1.12); }
.rbo-teilen-knopf[hidden] { display: none; }
.rbo-teilen-system { background: #0F7635; }
.rbo-teilen-wa { background: #25d366; }
.rbo-teilen-fb { background: #1877f2; }
.rbo-teilen-mail { background: #555; }
.rbo-teilen-kopieren { background: #888; }
.rbo-teilen-meldung { font-size: .9em; color: #0F7635; font-weight: bold; }

/* 17.11.2026: Kalender-Knopf */
.rbo-kalender { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.2em 0; }
.rbo-kalender-google { font-weight: bold; }

/* 17.11.2026: „Nach oben“ */
.rbo-nach-oben {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #0F7635;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: bold 24px/1 sans-serif;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.rbo-nach-oben.sichtbar { opacity: .9; visibility: visible; transform: none; }
.rbo-nach-oben:hover { opacity: 1; }
html.rbo-pdf-offen .rbo-nach-oben { display: none; }
@media print { .rbo-nach-oben, .rbo-teilen, .rbo-kalender { display: none !important; } }

/* 18.11.2026: Vorschauleiste unten in der großen Bildansicht (nur bei mehr als 1 Bild) */
.rbo-pswp-leiste {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
  display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; justify-content: safe center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}
.rbo-pswp-leiste::-webkit-scrollbar { display: none; }
.rbo-pswp-leiste-bild {
  flex: none; height: 64px; min-width: 48px; padding: 0; border: 2px solid transparent; border-radius: 4px;
  overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s;
}
.rbo-pswp-leiste-bild img { height: 100%; width: auto; display: block; }
.rbo-pswp-leiste-bild:hover { opacity: .9; }
.rbo-pswp-leiste-bild.aktiv { opacity: 1; border-color: #3fbf6a; }
.rbo-mit-leiste .rbo-pswp-titel { bottom: 84px; padding-bottom: 6px; }
@media (max-width: 700px) {
  .rbo-pswp-leiste { height: 64px; padding: 8px; }
  .rbo-pswp-leiste-bild { height: 48px; min-width: 36px; }
  .rbo-mit-leiste .rbo-pswp-titel { bottom: 64px; }
}
