/* ==========================================================
   09 · Text-Element (DCE "Text" / "Inhalt") & Editor-Inhalte (.rte)
   ========================================================== */

.ce-text__head { margin-bottom: 1rem; }
.ce-text__icon { width: 40px; margin-bottom: 1rem; }
.ce-text__lead { font-size: var(--step-1); color: var(--ink-soft); }

.rte > :last-child { margin-bottom: 0; }
.rte ol { padding-left: 1.3rem; }
.rte h2 + h3, .rte h3 + h4 { color: var(--ink-soft); }
.rte h4 + h3 { margin-top: 0; }
/* leere Absätze aus dem Editor ausblenden */
.rte p:empty, .rte p:has(> br:only-child) { display: none; }

/* --- Aufzählungen mit Häkchen (Farbe = var(--moss)) --- */
.rte ul { list-style: none; padding: 0; }
.rte ul li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.rte ul li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background-color: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Nummerierte Angebote: Text beginnt mit h4 ("Eins") + h3 (Titel) --- */
.rte h4:first-child {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage); margin-bottom: .3rem;
}
.rte h4:first-child + h3 { margin-top: 0; }

/* in Spalten als ruhige Liste mit Trennlinien (Seite "Kurse": Eins bis Zehn) */
.ext-container [class*="col-"] > .ce-text:has(> .rte > h4:first-child) {
  margin-top: 0;
  padding: 1.6rem 0 1.4rem;
  border-top: 1px solid var(--line);
}
.ext-container [class*="col-"] > .ce-text:has(> .rte > h4:first-child) h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.ext-container [class*="col-"] > .ce-text:has(> .rte > h4:first-child) p { color: var(--ink-soft); margin-bottom: 0; }
.ext-container .row:has(.ce-text > .rte > h4:first-child) { align-items: start; --bs-gutter-x: clamp(2rem, 5vw, 5rem); }
/* Überschrift über der Liste & Abschluss-Link darunter */
.ext-container .left-col > .ce-text:first-child:not(:has(h4:first-child)) h2 { margin-bottom: 1.5rem; }
.ext-container .right-col > .ce-text:last-child:not(:has(h4:first-child)) { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ext-container .right-col > .ce-text:last-child:not(:has(h4:first-child)) a { font-weight: 600; }
