/* Öffentlicher Kursplan für [bfkp_plan] — unabhängig vom Theme. */

.bfkp-page {
	background: transparent;
	padding: 12px 16px 24px;
	padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
	min-height: 40vh;
}

.bfkp-embed {
	--bf-red: #e30613;
	--bf-white: #ffffff;
	--bf-muted: #8d8d8d;
	--bf-icon-col: 18px;
	--bf-grid-line: #3a3a3a;
	--bf-today-line: rgba(227, 6, 19, 0.55);
	--cal-hour-h: 72px;
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 20px 12px 28px;
	background: #000;
	color: #fff;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	border-radius: 10px;
	overflow-x: clip;
}

.bfkp-embed *,
.bfkp-embed *::before,
.bfkp-embed *::after {
	box-sizing: border-box;
}

.bfkp-embed p {
	margin: 0;
}

/* Kundenthema Winner: Inhaltsspalte (Canvas 87 %), Sidebar aus */
body.bfkp-has-plan .page_body .main_column {
	width: 100%;
	float: none;
}

body.bfkp-has-plan .page_body .side_column {
	display: none;
}

.bfkp-embed .bf-plan__week-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	padding: 0;
	color: #c8c8c8;
	font-size: 0.82rem;
	line-height: 1.4;
}

.bfkp-embed .bf-plan__week-today {
	min-width: 0;
	font-weight: 700;
	color: #fff;
	text-align: left;
}

.bfkp-embed .bf-plan__week-kw {
	flex: 0 0 auto;
	margin-left: auto;
	font-weight: 400;
	color: #c8c8c8;
	text-align: right;
	white-space: nowrap;
}

.bfkp-embed .bf-plan-week {
	position: relative;
}

.bfkp-embed .bf-plan-week__scroll {
	overflow: visible;
	margin: 0;
	padding: 0;
}

.bfkp-embed .bf-plan-cal__grid {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__body,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__foot {
	display: grid !important;
	grid-template-columns: var(--bf-week-cols, repeat(7, minmax(0, 1fr)));
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__grid {
	border: 1px solid var(--bf-grid-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head {
	margin: 0;
	border-bottom: 2px solid var(--bf-red);
	align-items: stretch;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head-day {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0;
	text-align: center;
	border-right: 1px solid var(--bf-grid-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head-day:last-child {
	border-right: 0;
}

.bfkp-embed .bf-plan-week__head {
	display: block;
	padding: 4px 3px;
	background: var(--bf-red);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bfkp-embed .bf-plan__today {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1.15em;
	margin: 0;
	padding: 3px 2px;
	color: var(--bf-red);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
}

.bfkp-embed .bf-plan-cal__head-day.is-today .bf-plan__today {
	background: var(--bf-red);
	color: #000;
}

.bfkp-embed .bf-plan__today:empty {
	visibility: hidden;
}

.bfkp-embed .bf-plan-week__day-short {
	display: none;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__body {
	height: auto;
	align-items: stretch;
	row-gap: 0;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__foot-day {
	height: 3px;
	background: transparent;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__foot-day.is-today {
	background: var(--bf-red);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot-row {
	display: contents;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-start;
	gap: 2px;
	position: relative;
	min-height: 62px;
	padding: 1px;
	border-right: 1px solid var(--bf-grid-line);
	border-bottom: 1px solid var(--bf-grid-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot-row .bf-plan-cal__slot:last-child {
	border-right: 0;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot-row:last-child .bf-plan-cal__slot {
	border-bottom: 0;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-1,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-3,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-5,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-7 {
	background: rgba(255, 255, 255, 0.07);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-2,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-4,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-col-6 {
	background: #000;
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot.is-today,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot:has(+ .is-today) {
	border-right-color: var(--bf-today-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head-day.is-today,
.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head-day:has(+ .is-today) {
	border-right-color: var(--bf-today-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__grid:has(.is-col-1.is-today) {
	border-left-color: var(--bf-today-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__grid:has(.is-col-7.is-today) {
	border-right-color: var(--bf-today-line);
}

.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__break {
	grid-column: 1 / -1;
	height: 6px;
	margin: 0;
	border-top: 0;
	border-bottom: 1px solid var(--bf-grid-line);
}

.bfkp-embed .bf-plan__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	min-height: 62px;
	container-type: inline-size;
	container-name: bf-card;
	--bf-card-w: calc((100% - (var(--bf-day-span, 1) - 1) * 2px) / var(--bf-day-span, 1));
	width: var(--bf-card-w);
	flex: 0 0 var(--bf-card-w);
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
	padding: 0;
	overflow: hidden;
	background: #d6d6d6;
	color: #111;
	text-align: center;
	border: 1px solid #b0b0b0;
	border-top-color: #ececec;
	border-left-color: #e4e4e4;
	border-bottom-color: #7a7a7a;
	border-right-color: #8d8d8d;
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 2px rgba(0, 0, 0, 0.32);
}

.bfkp-embed .bf-plan__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	flex-shrink: 0;
	background: #b8b8b8;
	border-bottom: 1px solid #9a9a9a;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bfkp-embed .bf-plan__when {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	padding: 3px 5px 2px 2px;
	background: transparent;
	font-size: clamp(0.58rem, 0.5rem + 0.28vw, 0.76rem);
	font-size: clamp(0.58rem, 10cqi, 0.76rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: center;
	color: #222;
	overflow: hidden;
}

.bfkp-embed .bf-plan__when-range {
	display: block;
}

.bfkp-embed .bf-plan__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(18px, 16cqi, 24px);
	min-height: 0;
	padding: 2px 4px;
	color: var(--bf-red);
}

.bfkp-embed .bf-plan__icon svg {
	display: block;
	width: clamp(12px, 1.2vw, 16px);
	width: clamp(12px, 13cqi, 16px);
	height: clamp(12px, 1.2vw, 16px);
	height: clamp(12px, 13cqi, 16px);
	margin: 0 auto;
	flex-shrink: 0;
}

.bfkp-embed .bf-plan__card.is-live .bf-plan__icon {
	border-radius: 4px;
	animation: bfkp-live-glow 2.8s ease-in-out infinite;
}

@keyframes bfkp-live-glow {
	0%,
	100% {
		background: rgba(227, 6, 19, 0);
		filter: brightness(1);
	}
	50% {
		background: rgba(227, 6, 19, calc(var(--bf-live-glow, 0.45) * 0.28));
		filter: brightness(1.18);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfkp-embed .bf-plan__card.is-live .bf-plan__icon {
		animation: none;
		background: rgba(227, 6, 19, calc(var(--bf-live-glow, 0.45) * 0.18));
		filter: brightness(1.08);
	}
}

.bfkp-embed .bf-plan__kurs {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	align-self: stretch;
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	flex: 1 1 auto;
	min-height: calc(1.2em * 2 + 6px);
	padding: 5px 6px;
	font-size: clamp(0.74rem, 0.62rem + 0.4vw, 1rem);
	font-size: clamp(0.74rem, 13cqi, 1rem);
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	text-align: center;
}

.bfkp-embed .bf-plan__kurs-text {
	display: block;
	width: 100%;
	text-align: center;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: manual;
	-webkit-hyphens: manual;
}

.bfkp-embed .bf-plan__card.is-cancelled .bf-plan__kurs {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	color: #555;
}

.bfkp-embed .bf-plan__card.is-cancelled .bf-plan__head {
	background: #c9b4b4;
	border-bottom-color: #b08989;
}

.bfkp-embed .bf-plan__cancel-label {
	display: block;
	color: #e30613;
	font-size: clamp(0.55rem, 0.48rem + 0.2vw, 0.65rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-transform: uppercase;
	text-align: center;
}

.bfkp-embed .bf-plan__empty {
	margin: 0;
	color: #c8c8c8;
}

.bfkp-embed .bf-plan__note {
	margin: 20px 0 0;
	color: #8d8d8d;
	font-size: 0.82rem;
}

@media (max-width: 719px) {
	.bfkp-page {
		padding: 10px 12px 20px;
		padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
	}

	.bfkp-embed {
		padding: 16px 12px 22px;
		border-radius: 8px;
	}

	.bfkp-embed .bf-plan__week-meta {
		font-size: 0.74rem;
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.bfkp-embed .bf-plan__today {
		font-size: 0.5rem;
		letter-spacing: 0.04em;
		padding: 2px 0 3px;
	}

	.bfkp-embed .bf-plan-week__day-full {
		display: none;
	}

	.bfkp-embed .bf-plan-week__day-short {
		display: inline;
	}

	.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__head,
	.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__body,
	.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__foot {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.bfkp-embed .bf-plan-cal.is-slots {
		--bf-icon-col: 16px;
	}

	.bfkp-embed .bf-plan-cal__grid {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.bfkp-embed .bf-plan-cal.is-slots .bf-plan-cal__slot {
		flex-direction: column;
		min-height: 62px;
	}

	.bfkp-embed .bf-plan__card {
		min-height: 62px;
		width: 100%;
		flex: 1 1 auto;
		max-width: none;
	}

	.bfkp-embed .bf-plan__when {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0;
		padding: 3px 2px 2px;
		font-size: 0.58rem;
		white-space: normal;
		line-height: 1.15;
	}

	.bfkp-embed .bf-plan__when-range {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bfkp-embed .bf-plan__dash {
		display: none;
	}

	.bfkp-embed .bf-plan__icon {
		width: 16px;
		padding: 2px 3px;
	}

	.bfkp-embed .bf-plan__kurs {
		padding: 6px 4px;
		font-size: 0.74rem;
		font-weight: 700;
	}

	.bfkp-embed .bf-plan__icon svg {
		width: 12px;
		height: 12px;
	}
}
