/* =============================================================
   KI-Transparenz — sichtbare Kennzeichnung KI-generierter Inhalte
   Rechtsgrundlage: Art. 50 KI-VO (Verordnung (EU) 2024/1689)
   Gilt für alle Bilder, Grafiken und Icons dieser Website.
   ============================================================= */

/* Wrapper wird von ki-badge.js dynamisch um jedes <img> gesetzt.
   Erhält Inline-Position, damit Layouts nicht brechen. */
.ki-img-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}
.ki-img-wrap.is-block { display: block; }
.ki-img-wrap > img,
.ki-img-wrap > picture,
.ki-img-wrap > picture > img { max-width: 100%; height: auto; display: inline-block; }

/* Der Badge selbst: schickes Pill in weinroter Marke */
.ki-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--as-brand, #631832);
  font-family: var(--font-display, 'Roboto Condensed', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(31, 26, 36, 0.18), 0 0 0 1px rgba(99, 24, 50, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
  white-space: nowrap;
}
.ki-badge:hover,
.ki-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 26, 36, 0.24), 0 0 0 1px rgba(99, 24, 50, 0.16);
  outline: none;
}
.ki-badge::before {
  content: "\2726"; /* ✦ Sparkle */
  font-size: 11px;
  line-height: 1;
  color: var(--as-brand, #631832);
}

/* Kompakter Modus für Mini-Bilder/Icons — nur Sparkle, kein Text */
.ki-img-wrap.is-compact .ki-badge {
  padding: 3px 5px;
  gap: 0;
  font-size: 0;
}
.ki-img-wrap.is-compact .ki-badge::before {
  font-size: 10px;
}

/* Hero-Sektionen mit background-image bekommen Badge über CSS-Pseudo-Element,
   weil hier kein <img> im DOM steht. */
.as-hero,
[class*="hero-image"],
[style*="background-image"] {
  position: relative;
}
.as-hero::after {
  content: "\2726  KI-generiert";
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 3;
  padding: 5px 13px 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--as-brand, #631832);
  font-family: var(--font-display, 'Roboto Condensed', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(31, 26, 36, 0.28), 0 0 0 1px rgba(99, 24, 50, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   Footer-Notice: einzeilige, immer sichtbare AI-Erklärung
   ───────────────────────────────────────────────────────────── */
.ki-notice {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.01em;
}
.ki-notice-icon {
  display: inline-block;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.ki-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.ki-notice a:hover { text-decoration-thickness: 2px; }

/* ─────────────────────────────────────────────────────────────
   Reduced Motion: keine Transitions/Blur
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ki-badge,
  .ki-badge:hover,
  .ki-badge:focus-visible { transition: none; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Print: Badges bleiben sichtbar, aber ohne Schatten
   ───────────────────────────────────────────────────────────── */
@media print {
  .ki-badge,
  .as-hero::after {
    background: #fff !important;
    box-shadow: 0 0 0 1px #000 !important;
    backdrop-filter: none !important;
  }
}
