/* List Item / Text Default — SD-78
 * All-optional fields: label, title, contextual labels, text, CTA, image.
 * Mobile-first: S default, M ≥1024px, L ≥1280px
 */

.list-item-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--dk-space-04);      /* 16px → 18px → 20px */
  padding-bottom: var(--dk-space-04);
  width: 100%;
}

/* --- Heading group --- */
.list-item-text__heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--dk-space-01);      /* 8px */
}

.list-item-text__label {
  line-height: 1.2;
  color: var(--dk-color-black);
}

.list-item-text__title {
  margin: 0;
  line-height: 1.2;
  color: var(--dk-color-black);
}

/* Contextual label pills (ort / alter) */
.list-item-text__contextual-labels {
  display: flex;
  flex-direction: column;
  gap: var(--dk-space-01);      /* 8px */
}

/* --- Body text --- */
.list-item-text__text {
  line-height: 1.3;
  color: var(--dk-color-black);
}

/* Rich-text spacing — global reset zeroes p/ul margins and list-style */
.list-item-text__text > :first-child { margin-block-start: 0; }
.list-item-text__text > :last-child  { margin-block-end: 0; }
.list-item-text__text p {
  margin-block: var(--dk-space-04) 0;
}
.list-item-text__text ul,
.list-item-text__text ol {
  list-style: revert;
  margin-block: var(--dk-space-04) 0;
  padding-inline-start: 1.25em;
}
.list-item-text__text li {
  list-style: inherit;
}

/* --- Figure / image --- */
.list-item-text__figure {
  display: flex;
  flex-direction: column;
  gap: var(--dk-space-06);      /* 24px */
  margin: 0;
  width: 100%;
}

.list-item-text__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1238 / 702;
  object-fit: cover;
}

.list-item-text__caption {
  line-height: 1.3;
  color: var(--dk-color-black);
}
