/* Clear, image-adjacent disclosure on existing Galvanek visualizations. */
.g-hero-credit,
.pv26 .pv26-caption,
.tcp .tcp-hero-note,
.fd26-hero .fd26-bildnachweis,
.fd26-abschluss .fd26-bildnachweis,
.cs26-page .cs26-closing-credit {
  display: inline-block;
  max-width: min(90vw, 34rem);
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.9);
  color: #292d33;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-shadow: none;
}

/* The disclosure appears when the hero image first enters view. */
.g-home .v20-hero .g-hero-credit {
  top: auto !important;
  bottom: max(20px, calc(100% - 100svh + 20px)) !important;
  right: 24px !important;
  height: auto;
}

.pv26 .pv26-caption {
  top: auto;
  bottom: 18px;
}

.tcp .tcp-hero-note {
  top: auto;
  bottom: 18px;
}

.fd26-hero .fd26-bildnachweis {
  top: auto;
  bottom: 18px;
}

.cs26-page .cs26-closing-credit {
  top: auto;
  bottom: 18px;
}

@media (max-width: 760px) {
  .g-hero-credit,
  .pv26 .pv26-caption,
  .tcp .tcp-hero-note,
  .fd26-hero .fd26-bildnachweis,
  .fd26-abschluss .fd26-bildnachweis,
  .cs26-page .cs26-closing-credit {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .g-home .v20-hero .g-hero-credit {
    top: auto !important;
    right: 14px !important;
    bottom: max(18px, calc(100% - 100svh + 18px)) !important;
  }

  .pv26 .pv26-caption {
    top: auto;
    bottom: 16px;
    right: 16px;
  }

  .tcp .tcp-hero-note {
    position: absolute;
    top: auto;
    right: 16px;
    bottom: 16px;
    align-self: auto;
  }

  .fd26-hero .fd26-bildnachweis {
    top: auto;
    bottom: 16px;
  }
}

/* Since 28.09.2026 (evening): AI pictures that could pass for photos carry the EU AI icon + "KI-generiert" badge,
 * placed by src/components/site/aiBadges.ts on pictures that could pass for real photos. */
/* The EU badge is the only label; the old text notices ("KI-Visualisierung") stay silent. */
[data-ki],
.ki-legacy {
  display: none !important;
}
.ki-host {
  position: relative;
}
.ki-badge {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 15px;
  padding: 0 5px 0 2px;
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.48);
  color: rgba(255, 255, 255, 0.92);
  font: 500 8.5px/1 "Instrument Sans", Arial, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ki-badge[hidden] {
  display: none;
}
.ki-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.ki-badge-compact {
  padding: 2px;
}
.ki-badge-compact > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* The badge as it appears in running text on the Bildhinweise page. */
.ki-badge.ki-badge-inline {
  position: static;
  vertical-align: middle;
  height: 20px;
  padding: 0 8px 0 3px;
  font-size: 10.5px;
}
.ki-badge.ki-badge-inline svg {
  width: 15px;
  height: 15px;
}

/* 29.09.2026: the home hero shows the house, no people - no notice there (label rule: only AI people). */
.g-home .v20-hero .g-hero-credit {
  display: none !important;
}
