/* Placeholder for embeds that load on a press (kra2-embed-consent.php).
   Colours from the kra2_2026 tokens, with fallbacks for kra_2:
   white on ink 17.6:1, black on lime 17.9:1, lime on ink 15.3:1. */
.kra2-embed {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75em;
	width: 100%;
	margin: 0 0 1em;
	padding: 1em 1.25em;
	background: var(--color-ink, #10181a);
	color: #fff;
	font-size: 0.9375rem;
	line-height: 1.45;
	text-align: left;
}

.kra2-embed--youtube {
	aspect-ratio: 16 / 9;
}

.kra2-embed__notice {
	display: block;
}

/* !important: theme link rules (.entry-content a, #content a in kra_2) are
   more specific and would put blue on ink */
.kra2-embed a {
	color: #fff !important;
	text-decoration: underline !important;
}

.kra2-embed__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1.25em;
}

.kra2-embed__load {
	padding: 0.5em 1em;
	border: 0;
	border-radius: 0;
	background: var(--color-accent, #ccff33);
	color: #000;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
}

.kra2-embed__load[hidden],
.kra2-embed__all[hidden] {
	display: none;
}

/* opens the banner: looks like the links next to it */
.kra2-embed__all {
	padding: 0.25em 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.kra2-embed__load:hover,
.kra2-embed__load:focus-visible,
.kra2-embed__all:focus-visible,
.kra2-embed a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.kra2-embed__out {
	display: inline-block;
	padding: 0.25em 0;
}

/* Consent banner (#51): a modal tile like the On-Air tile of kra2_2026,
   for both themes (own colours and LED face, no theme tokens needed).
   white on ink 17.6:1, #c4d0d3 on ink 11.9:1, #8fa9b1 on ink 7.2:1,
   black on lime 17.9:1. */
@font-face {
	font-family: "kra2-consent-led";
	src: url("fonts/share-tech-mono-latin.woff2") format("woff2");
	font-display: swap;
}

.kra2-consent {
	box-sizing: border-box;
	width: min(34rem, calc(100% - 24px));
	max-height: calc(100% - 24px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 2px solid #10181a;
	background: #10181a;
	box-shadow: 6px 6px 0 #1394cd;
	color: #c4d0d3;
	font: 15px/1.5 Helvetica, Verdana, Arial, sans-serif;
	text-align: left;
}

.kra2-consent::backdrop {
	background: rgba(16, 24, 26, 0.6);
}

.kra2-consent *,
.kra2-consent *::before {
	box-sizing: border-box;
}

.kra2-consent__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 18px;
	border-bottom: 1px solid #2c3b40;
	font: 13px/1.3 "kra2-consent-led", ui-monospace, monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ccff33;
}

/* amber: something waits for a decision */
.kra2-consent__lamp {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ffb21a;
}

.kra2-consent__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px 18px;
}

.kra2-consent__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: bold 20px/1.3 Helvetica, Verdana, Arial, sans-serif;
	letter-spacing: normal;
	text-transform: none;
}

/* focused on opening so screen readers start here; not a control */
.kra2-consent__title:focus {
	outline: none;
}

.kra2-consent__text,
.kra2-consent__small {
	margin: 0;
}

.kra2-consent__small {
	font-size: 13px;
	color: #a9bdc1;
}

.kra2-consent .kra2-consent__small a {
	color: #8fd1ee;
	text-decoration: underline;
}

.kra2-consent__hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kra2-consent__services {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid #2c3b40;
}

/* one channel per service: number, name and purpose, switch */
.kra2-consent__service {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid #2c3b40;
	cursor: pointer;
}

.kra2-consent__ch {
	font: 12px/1.3 "kra2-consent-led", ui-monospace, monospace;
	letter-spacing: 0.12em;
	color: #8fa9b1;
}

.kra2-consent__name {
	color: #fff;
}

.kra2-consent__what {
	display: block;
	font-size: 13px;
	color: #8fa9b1;
}

/* the switch: a real checkbox, unlit off, lime on */
.kra2-consent__switch {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border: 2px solid #8fa9b1;
	background: #2c3b40;
	cursor: pointer;
}

.kra2-consent__switch::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: #8fa9b1;
}

.kra2-consent__switch:checked {
	border-color: #ccff33;
	background: #ccff33;
}

.kra2-consent__switch:checked::before {
	left: 22px;
	background: #10181a;
}

.kra2-consent__switch:focus-visible,
.kra2-consent__key:focus-visible,
.kra2-consent__small a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* "Alle ablehnen" and "Alle zulassen" look the same; "Auswahl speichern"
   is the quiet middle key */
.kra2-consent__keys {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 4px;
}

.kra2-consent__key {
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 2px solid #ccff33;
	border-radius: 0;
	background: #ccff33;
	color: #000;
	font: bold 15px/1.2 Helvetica, Verdana, Arial, sans-serif;
	text-transform: none;
	cursor: pointer;
}

.kra2-consent__key--save {
	background: #10181a;
	color: #ccff33;
}

.kra2-consent__key:hover {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 30rem) {
	.kra2-consent__keys {
		grid-template-columns: minmax(0, 1fr);
	}

	.kra2-consent__key--save {
		order: 3;
	}
}

@media print {
	.kra2-consent {
		display: none;
	}
}

@media print {
	.kra2-embed {
		background: none;
		color: #000;
		border: 1px solid #000;
		aspect-ratio: auto;
	}

	.kra2-embed a {
		color: #000 !important;
	}

	.kra2-embed__load,
	.kra2-embed__all {
		display: none;
	}
}
