/**
 * EU AI Act – dezente Bildkennzeichnung nur auf Detail-Großbildern
 * (.main-image / .gallery-main / .lightbox-content)
 */

.ai-img-host {
  position: relative;
}

.ai-img-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  max-width: calc(100% - 10px);
  padding: 0.22em 0.45em;
  border-radius: 4px;
  background: rgba(8, 12, 22, 0.52);
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.ai-img-badge::before {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.85);
  flex-shrink: 0;
}

/* Detail-Galerien: Bildzähler „1 / 2“ sitzt unten rechts → Badge darüber */
.main-image:has(.image-counter) > .ai-img-badge,
.gallery-main:has(.gallery-counter) > .ai-img-badge {
  bottom: 3.15rem;
  right: 1rem;
}

html[data-theme="light"] .ai-img-badge {
  background: rgba(15, 23, 42, 0.48);
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .ai-img-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Listen / Mall / Karten: nie anzeigen (Fallback falls altes JS gecacht) */
.mall-card .ai-img-badge,
.mall-card-banner .ai-img-badge,
.mall-card-logo .ai-img-badge,
.product-card .ai-img-badge,
.product-card-image .ai-img-badge,
.product-card-merchant-logo .ai-img-badge,
.thumbnail .ai-img-badge,
.gallery-thumb .ai-img-badge,
.lightbox-thumb .ai-img-badge,
.seller-card .ai-img-badge,
.shop-header-bg .ai-img-badge,
.partner-hero .ai-img-badge,
[data-no-ai-label] .ai-img-badge,
.ai-label-skip .ai-img-badge {
  display: none !important;
}
