/* Bildnachweis – Wrapper für Bild-Elemente */
.bildnachweis-wrap {
  display: block;
  position: relative;
}

/* Overlay-Ebene über dem Bild */
.bildnachweis {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Geschlossen: © passt sich dem Bild an (hell/dunkel) */
.bildnachweis:not(.is-open) {
  mix-blend-mode: difference;
}

/* Dunkler Verlauf unten, nur wenn geöffnet */
.bildnachweis__shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Text «Foto: Name» */
.bildnachweis__text {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bildnachweis.is-open .bildnachweis__shade,
.bildnachweis.is-open .bildnachweis__text {
  opacity: 1;
}

/* ©-Knopf */
.bildnachweis__btn {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.bildnachweis__btn:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* Nur für Screenreader */
.bildnachweis__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
