/* KiLa-Ini Fortbildungen – layout of the printed annual programme. */

.kf-program,
.kf-single {
	--kf-yellow: #fef0b9;
	--kf-yellow-text: #463801;
	--kf-text: #000;
	--kf-muted: #6d8085;
	--kf-rule: #6d8085;
	--kf-magenta: #e40350;
	--kf-font: inherit;
	--kf-when-width: 6.5em;
	font-family: var(--kf-font);
	color: var(--kf-text);
	line-height: 1.35;
}

/* Coloured stripe from the PDF: yellow, blue, grey, magenta, green, purple, ... */
.kf-stripe {
	height: 4px;
	margin-bottom: 1.25rem;
	background: linear-gradient(90deg,
		#fcc901 0 11.11%, #236ab1 0 22.22%, #6d8085 0 33.33%,
		#e40350 0 44.44%, #31c189 0 55.55%, #9646bc 0 66.66%,
		#fcc901 0 77.77%, #236ab1 0 88.88%, #6d8085 0 100%);
}

.kf-page + .kf-page {
	margin-top: 3rem;
}

/* Headings */
.kf-head {
	margin-bottom: 0.75rem;
	text-align: center;
}

.kf-head__title {
	margin: 0;
	font-family: var(--kf-font);
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--kf-text);
}

.kf-head--split {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.kf-head__range,
.kf-col__range {
	font-size: 1.15em;
	color: var(--kf-text);
}

.kf-col__range {
	display: none;
	margin: 0 0 0.5rem;
	font-weight: 700;
}

/* Two columns with a thin rule between them */
.kf-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.5rem;
}

.kf-cols > .kf-col + .kf-col {
	border-left: 1px solid var(--kf-rule);
	padding-left: 1.5rem;
}

/* Rows */
.kf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-row {
	margin: 0;
	padding: 0;
}

.kf-row:nth-child(odd) {
	background: var(--kf-yellow);
	color: var(--kf-yellow-text);
}

.kf-row__link {
	display: grid;
	grid-template-columns: var(--kf-when-width) 1fr;
	gap: 0.75rem;
	padding: 0.4rem 0.6rem;
	color: inherit !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.kf-row__link:hover,
.kf-row__link:focus-visible {
	box-shadow: inset 4px 0 0 var(--kf-magenta);
	background: rgba(0, 0, 0, 0.035);
}

.kf-row__link:focus-visible {
	outline: 2px solid var(--kf-magenta);
	outline-offset: -2px;
}

.kf-when,
.kf-what {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kf-when__label {
	font-weight: 700;
}

.kf-when__detail,
.kf-what__sub {
	font-weight: 400;
}

.kf-what__title strong {
	font-weight: 700;
}

.kf-nr {
	font-weight: 400;
}

.kf-fn {
	font-size: 0.8em;
	font-weight: 700;
	line-height: 0;
	margin-left: 0.1em;
}

.kf-block--inhouse .kf-row__link {
	--kf-when-width: 9em;
}

.kf-block--arbeitskreis .kf-row__link {
	--kf-when-width: 12em;
}

.kf-block + .kf-footnotes {
	margin-top: 1rem;
}

/* Footnotes and hint */
.kf-footnotes {
	margin-top: 1rem;
	font-size: 0.8em;
}

.kf-footnotes p {
	margin: 0 0 0.25rem;
}

.kf-footnotes sup {
	font-weight: 700;
	margin-right: 0.15em;
}

.kf-hint {
	margin-top: 1rem;
	font-weight: 700;
}

.kf-empty {
	padding: 0.6rem;
	color: var(--kf-muted);
}

/* Single view */
.kf-single {
	margin-bottom: 1.5rem;
}

.kf-single__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--kf-magenta);
}

.kf-single__card {
	display: grid;
	grid-template-columns: minmax(10em, auto) 1fr;
	gap: 1rem 1.5rem;
	align-items: start;
	padding: 1rem 1.25rem;
	background: var(--kf-yellow);
	color: var(--kf-yellow-text);
}

.kf-single__card .kf-when__label {
	font-size: 1.15em;
}

.kf-single__sub {
	margin: 0;
	font-size: 1.15em;
}

.kf-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
}

.kf-facts div {
	margin: 0;
}

.kf-facts dt {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--kf-muted);
}

.kf-facts dd {
	margin: 0;
}

.kf-single-foot {
	--kf-magenta: #e40350;
	margin-top: 1.5rem;
}

.kf-button {
	display: inline-block;
	padding: 0.65em 1.4em;
	background: var(--kf-magenta, #e40350);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 999px;
}

.kf-button:hover,
.kf-button:focus-visible {
	filter: brightness(0.85);
}

.kf-back a {
	font-weight: 700;
}

/* Mobile: single column, month range shown above each half */
@media (max-width: 767px) {
	.kf-cols {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.kf-cols > .kf-col + .kf-col {
		border-left: 0;
		padding-left: 0;
	}

	.kf-head--split {
		display: block;
	}

	.kf-head--split .kf-head__range {
		display: none;
	}

	.kf-col__range {
		display: block;
	}

	.kf-row__link,
	.kf-block--inhouse .kf-row__link,
	.kf-block--arbeitskreis .kf-row__link {
		--kf-when-width: 6.5em;
	}

	.kf-block--arbeitskreis .kf-row__link {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.kf-single__card {
		grid-template-columns: 1fr;
	}
}
