/*
 * Ausgebucht (inc/ausgebucht.php): the label beside a booked-out offering —
 * under its page's heading, in its book on Bildung, in Aktuelles — and the
 * notice on the page.
 *
 * The CI yellow as a fill, with near-black type on it (13:1). As text on white
 * the yellow would be 1.3:1. Its darker rule gives the pill an edge on white,
 * which the yellow alone barely has.
 */
.ieo-ausgebucht-marke {
	display: inline-block;
	padding: 1px 9px;
	border: 1px solid var(--brand-yellow-rule);
	border-radius: 999px;
	background-color: var(--brand-yellow);
	color: #1f1c0c;
	font-family: 'Open Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

/* --- On the page ---------------------------------------------------------
 * Between the subtitle and the title's rule, so it is read with the name of
 * the Lehrgang, before any of the text about it. */
.ieo-ausgebucht {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 2px 0 16px;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.4;
	color: #222;
}

.ieo-ausgebucht .ieo-ausgebucht-marke {
	padding: 3px 12px;
	font-size: 13px;
}

/* --- In the book on Bildung ----------------------------------------------
 * Its own line under the entry, sized with the book (--pu-u). */
.pu-product-list .ieo-ausgebucht-marke {
	margin-top: calc(5 * var(--pu-u));
	padding: 0 calc(8 * var(--pu-u));
	font-size: calc(10 * var(--pu-u));
}

/* --- In Aktuelles ---------------------------------------------------------
 * On the date's line: the items have a fixed height (aktuelles.css), so the
 * label must not add one. */
.aktuelles-date-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin-bottom: 2px;
}

.aktuelles-date-row .aktuelles-date {
	margin-bottom: 0;
}

.aktuelles-date-row .ieo-ausgebucht-marke {
	font-size: 10px;
	line-height: 1.4;
}
