/* Created by Content Blocks */

/* Issue #59: the heading is a two-column grid. The icon box sits in the first
   column; the kicker and the headline share the second, so the kicker starts
   where the headline starts. The icon is centred on the headline's row only,
   so it stays centred when the headline wraps. `minmax(0, 1fr)` lets a long
   headline wrap instead of pushing the icon. */
.lead__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
}

.lead__icon {
  grid-column: 1;
}

.lead__kicker,
.lead__headline {
  grid-column: 2;
}

/* Without bodytext the heading is the lead's last child; its `pb-6` would
   only add space before the next element. */
.lead__heading:last-child {
  padding-bottom: 0;
}

/* A bare lead (no bodytext, default "Abstand danach") is a section heading
   and should sit close to what it introduces. Its negative bottom margin
   collapses with the next element's rhythm margin-top (2rem / 3rem / 4rem,
   Resources/Public/Css/tailwind.css), leaving a 1.5rem gap at every
   breakpoint. An explicit "Abstand danach" drops `lead--bare` in the
   template, so the editor's choice still wins. */
.lead--bare {
  padding-bottom: 0;
  margin-bottom: -0.5rem;
}

@media (min-width: 768px) {
  .lead--bare {
    margin-bottom: -1.5rem;
  }
}

@media (min-width: 1024px) {
  .lead--bare {
    margin-bottom: -2.5rem;
  }
}
