/* Herzog24 Mobil-Fix 1.0.1 – greift nur bis 900px Breite */
@media (max-width: 900px) {
  html, body { overflow-x: clip; }

  /* Hero: eine Spalte, Inhalte volle Breite */
  .h24m-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    gap: 1.5rem !important;
  }
  .h24m-hero > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .h24m-hero h1 {
    font-size: clamp(2rem, 9vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }
  .h24m-hero img, .h24m-hero svg { max-width: 100%; height: auto; }

  /* Deko-Pseudoelemente, die eine Grid-Zelle belegen */
  .h24m-deko-b::before,
  .h24m-deko-a::after { display: none !important; }

  /* Grids, deren Inhalte überlaufen: einspaltig */
  .h24m-grid1 { grid-template-columns: minmax(0, 1fr) !important; }
  .h24m-grid1 > * { grid-column: auto !important; min-width: 0 !important; }

  /* Lange deutsche Wörter */
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
}
