/* Hebammenpraxis Wundervoll – Kursplan
   Schriften kommen aus dem Theme (Salient: Libre Caslon Display / Alegreya Sans). */

.hw-kp,
.hw-kp-single {
	--hw-kp-text: #2b2b2b;
	--hw-kp-muted: #6b6b6b;
	--hw-kp-line: #e8e4e1;
	--hw-kp-surface: #fff;
	--hw-kp-tint: #faf6f4;
	--hw-kp-radius: 10px;
}

/* ---------- Wochenplan ---------- */

.hw-kp-wrap {
	container-type: inline-size;
}

.hw-kp,
.hw-kp *,
.hw-kp-single,
.hw-kp-single * {
	box-sizing: border-box;
}

.hw-kp {
	display: grid;
	grid-template-columns: repeat(var(--hw-kp-cols, 5), minmax(0, 1fr));
	gap: 18px;
	margin: 1.5em 0;
	color: var(--hw-kp-text);
}

.hw-kp-day {
	min-width: 0;
}

.hw-kp .hw-kp-day-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 .5em;
	margin: 0 0 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--hw-kp-line);
	font-size: 1.35em;
	line-height: 1.25;
	letter-spacing: 0;
}

.hw-kp-day-date {
	font-size: .7em;
	color: var(--hw-kp-muted);
	font-variant-numeric: tabular-nums;
}

.hw-kp-day.is-today .hw-kp-day-title {
	border-bottom: 2px solid #bf5087;
}

.hw-kp-today-badge {
	margin-left: auto;
	padding: 2px 9px;
	border-radius: 99px;
	background: #bf5087;
	color: #fff;
	font-family: inherit;
	font-size: .55em;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	align-self: center;
}

.hw-kp .hw-kp-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-kp .hw-kp-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-kp .hw-kp-item::before {
	content: none;
}

.hw-kp .hw-kp-link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	height: 100%;
	padding: 12px 14px 13px 18px;
	border: 1px solid var(--hw-kp-line);
	border-radius: var(--hw-kp-radius);
	background: var(--hw-kp-surface);
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.hw-kp .hw-kp-link::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--hw-kp-color, #bf5087);
}

.hw-kp .hw-kp-link:hover,
.hw-kp .hw-kp-link:focus-visible {
	border-color: var(--hw-kp-color, #bf5087);
	background: var(--hw-kp-tint);
	transform: translateY(-1px);
}

.hw-kp .hw-kp-link:focus-visible {
	outline: 2px solid var(--hw-kp-color, #bf5087);
	outline-offset: 2px;
}

.hw-kp-title {
	font-size: 1.08em;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hw-kp-text);
	overflow-wrap: break-word;
	hyphens: auto;
}

.hw-kp-meta {
	font-size: .92em;
	line-height: 1.4;
	color: var(--hw-kp-muted);
	overflow-wrap: break-word;
	hyphens: auto;
}

.hw-kp-time {
	color: var(--hw-kp-text);
	font-variant-numeric: tabular-nums;
}

.hw-kp-note {
	display: inline-block;
	align-self: flex-start;
	margin-top: 4px;
	padding: 1px 8px;
	border-radius: 99px;
	background: var(--hw-kp-tint);
	border: 1px solid var(--hw-kp-line);
	font-size: .82em;
	color: var(--hw-kp-text);
}

.hw-kp-empty {
	color: #6b6b6b;
}

@container (max-width: 900px) {
	.hw-kp {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 18px;
	}
}

@container (max-width: 520px) {
	.hw-kp {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hw-kp .hw-kp-link {
		transition: none;
	}
	.hw-kp .hw-kp-link:hover {
		transform: none;
	}
}

/* ---------- Kursseite ---------- */

.hw-kp-single {
	margin: 0 auto 4em;
	color: var(--hw-kp-text);
}

.hw-kp-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	margin: 0 0 2.5em;
	border-radius: var(--hw-kp-radius);
	overflow: hidden;
	background: var(--hw-kp-tint);
	border-left: 6px solid var(--hw-kp-color, #bf5087);
}

.hw-kp-hero.has-image {
	min-height: clamp(260px, 42vh, 460px);
	border-left: 0;
}

.hw-kp-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hw-kp-hero.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%);
}

.hw-kp-hero-text {
	position: relative;
	z-index: 1;
	padding: 28px clamp(20px, 4vw, 44px);
}

.hw-kp-single .hw-kp-eyebrow {
	margin: 0 0 6px;
	padding: 0;
	font-size: .85em;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hw-kp-single .hw-kp-eyebrow a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.hw-kp-hero.has-image .hw-kp-hero-text,
.hw-kp-hero.has-image .hw-kp-single-title {
	color: #fff;
}

.hw-kp-single .hw-kp-single-title {
	margin: 0;
	padding: 0;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.12;
}

.hw-kp-single-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	gap: clamp(28px, 4vw, 60px);
	align-items: start;
}

.hw-kp-single .hw-kp-section-title {
	margin: 0 0 .6em;
	font-size: 1.6em;
	line-height: 1.2;
}

.hw-kp-description {
	margin-bottom: 2em;
}

.hw-kp-single .hw-kp-dates {
	margin: 0 0 2em;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hw-kp-line);
}

.hw-kp-single .hw-kp-dates li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	border-bottom: 1px solid var(--hw-kp-line);
	font-variant-numeric: tabular-nums;
}

.hw-kp-single .hw-kp-dates li::before {
	content: none;
}

.hw-kp-more a {
	color: var(--hw-kp-color, #bf5087);
	font-weight: 600;
	text-decoration: none;
}

.hw-kp-more a:hover {
	text-decoration: underline;
}

.hw-kp-infobox {
	position: sticky;
	top: 120px;
	padding: 24px;
	border: 1px solid var(--hw-kp-line);
	border-top: 5px solid var(--hw-kp-color, #bf5087);
	border-radius: var(--hw-kp-radius);
	background: var(--hw-kp-surface);
}

.hw-kp-infobox dl {
	margin: 0 0 18px;
}

.hw-kp-infobox dt {
	margin: 0;
	font-size: .78em;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hw-kp-muted);
}

.hw-kp-infobox dd {
	margin: 2px 0 14px;
	padding: 0;
	line-height: 1.45;
}

.hw-kp-line {
	display: block;
}

.hw-kp-infobox .hw-kp-note {
	margin: 0 0 16px;
}

.hw-kp-single .hw-kp-button {
	display: block;
	padding: 13px 18px;
	border-radius: 99px;
	background: var(--hw-kp-color, #bf5087);
	background: color-mix(in srgb, var(--hw-kp-color, #bf5087) 82%, #000);
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s ease;
}

.hw-kp-single .hw-kp-button:hover,
.hw-kp-single .hw-kp-button:focus-visible {
	background: color-mix(in srgb, var(--hw-kp-color, #bf5087) 65%, #000);
	color: #fff;
}

.hw-kp-single .hw-kp-button:focus-visible {
	outline: 2px solid var(--hw-kp-color, #bf5087);
	outline-offset: 3px;
}

.hw-kp-single .hw-kp-contact {
	margin: 14px 0 0;
	padding: 0;
	font-size: .92em;
	line-height: 1.6;
	color: var(--hw-kp-muted);
	text-align: center;
}

.hw-kp-single .hw-kp-contact a {
	color: var(--hw-kp-text);
}

.hw-kp-ended {
	padding: 14px 18px;
	border-radius: var(--hw-kp-radius);
	background: var(--hw-kp-tint);
}

@media (max-width: 860px) {
	.hw-kp-single-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.hw-kp-infobox {
		position: static;
		order: -1;
	}
}
