/*
 * Karten — the List block style from inc/list-cards.php.
 *
 * Each item becomes a card, tinted yellow and teal in turn (see below), side by
 * side where there is room and stacked on a phone.
 * auto-fit collapses the empty tracks, so two cards share the full width
 * rather than sitting in the first two of four narrow columns.
 *
 * The items stay ordinary blocks, not flex containers. A flex item would turn
 * every inline element in the text — a word set in bold, a link — into a
 * separate stacked box, and editing a card's wording in the editor must never
 * be able to do that.
 */
.p-bar-text ul.is-style-karten,
.p-bar-text ol.is-style-karten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: clamp(14px, 1.8vw, 24px);
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.is-style-karten > li {
	min-width: 0;
	padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px);
	border: 1px solid;
	border-radius: 8px;
}

/*
 * Yellow, then teal — the customer's request for Beratung (September 2026). The
 * first card there is organisational development and the second ethics
 * consulting, so the tints are the colours the logo gives ORGANISATIONSENTWICKLUNG
 * and ETHIK. By position, so an editor never sets anything per card; a third
 * card would start the pair again.
 *
 * The same tint-and-border pairs as the Anfrage and Anmeldung boxes in
 * forms.css, at the cards' lighter 1px, so the page holds one yellow and one
 * teal rather than two of each.
 */
.is-style-karten > li:nth-child(odd) {
	background-color: #fffcec;
	border-color: var(--brand-yellow);
}

.is-style-karten > li:nth-child(even) {
	background-color: #f1f9f6;
	border-color: #a9dccd;
}

/* A little more air between a card's text and its button than the 14px the
   button keeps under running text. */
.is-style-karten > li > .ieo-more-link {
	margin-top: 18px;
}
