/*
 * Mobilkorrektur fuer die KI-Bildhinweise.
 * Der Hinweis folgt jeweils als eigene Zeile unmittelbar auf das Bild.
 */
@media (max-width: 720px) {
  .ai-image-notice {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /*
   * Im mobilen Hero steht der Textkasten unterhalb des Fotos. Der sichtbare
   * Hinweis wird deshalb direkt in den Bildblock gesetzt; die bisherige
   * Außenkopie wird mobil ausgeblendet.
   */
  .hero-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .hero-visual > img {
    position: relative;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .hero-visual::after {
    position: relative;
    inset: auto;
    z-index: 1;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
  }

  .hero-visual::before {
    content: "Hinweis: Symbolbild. Dieses Bild wurde mithilfe künstlicher Intelligenz erstellt bzw. bearbeitet.";
    box-sizing: border-box;
    position: relative;
    z-index: 43;
    grid-area: 2 / 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 84px 11px 16px;
    color: #526974;
    background: #f7f9fa;
    border-bottom: 1px solid var(--line);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .ai-image-notice--hero {
    display: none;
  }

  .ai-image-notice--topic {
    position: relative;
    z-index: 43;
    min-height: 0;
    align-items: flex-start;
    padding: 12px 78px 12px 14px;
  }
}
