/*
 * 5.9 Über mich #ueber mit Highlights, Stationskarten und Hela-Karte #hela.
 * Werte „Handy · Desktop“ aus DESIGN.md.
 */

.hk-ueber {
	padding: 56px 16px 64px;
}

.hk-ueber-raster {
	display: flex;
	flex-direction: column;
}

.hk-ueber-bild {
	margin: 0;
}

/* [Bau] 4:5 statt fester Höhe. */
.hk-ueber-bild img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 40%;
	border-radius: var(--wp--custom--radius--karte);
}

.hk-ueber-einstieg {
	margin: 20px 0 12px;
	font-size: 17px;
	line-height: 1.6;
}

.hk-ueber-erfahrung {
	margin-bottom: 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

/* ---------- Highlights ---------- */

.hk-station-kreise {
	display: flex;
	justify-content: space-between;
	margin-bottom: 16px;
}

/* Ohne JavaScript stehen alle Karten untereinander; Kreise braucht es dann nicht. */
html:not(.hk-js) .hk-station-kreise {
	display: none;
}

/* Die Hintergrundfarbe des Absatzes füllt nur den Kreis, nicht den ganzen Button. */
.hk-ueber .hk-station-kreis.has-background {
	background-color: transparent !important;
}

.hk-ueber .hk-station-kreis {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	width: 64px;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: transform var(--wp--custom--dauer--lift) ease-out;
	--hk-kreis: 62px;
	--hk-icon-groesse: 28px;
}

.hk-station-kreis:hover {
	transform: translateY(-2px);
}

/* Kreis: Füllung aus der Hintergrundfarbe des Absatzes, Ring nicht gewählt 2 px pink. */
.hk-station-kreis::before {
	content: "";
	box-sizing: border-box;
	width: var(--hk-kreis);
	height: var(--hk-kreis);
	border-radius: 50%;
	background-color: var(--hk-fuellung, var(--wp--preset--color--paper));
	box-shadow:
		inset 0 0 0 2px var(--wp--preset--color--pink),
		inset 0 0 0 5px var(--wp--preset--color--paper);
}

.hk-station-kreis[aria-pressed="true"]::before {
	box-shadow:
		inset 0 0 0 3px var(--wp--preset--color--cobalt),
		inset 0 0 0 6px var(--wp--preset--color--paper);
}

/* Icon in der Mitte des Kreises, Farbe passend zur Füllung. */
.hk-station-kreis::after {
	content: "";
	position: absolute;
	top: calc((var(--hk-kreis) - var(--hk-icon-groesse)) / 2);
	left: 50%;
	width: var(--hk-icon-groesse);
	height: var(--hk-icon-groesse);
	transform: translateX(-50%);
	background-color: var(--hk-icon-farbe, var(--wp--preset--color--cobalt));
	-webkit-mask: var(--hk-maske) center / contain no-repeat;
	mask: var(--hk-maske) center / contain no-repeat;
}

.hk-station-kreis.has-paper-background-color {
	--hk-fuellung: var(--wp--preset--color--paper);
	--hk-icon-farbe: var(--wp--preset--color--cobalt);
}

.hk-station-kreis.has-pink-background-color {
	--hk-fuellung: var(--wp--preset--color--pink);
	--hk-icon-farbe: var(--wp--preset--color--ink);
}

.hk-station-kreis.has-cobalt-background-color {
	--hk-fuellung: var(--wp--preset--color--cobalt);
	--hk-icon-farbe: var(--wp--preset--color--white);
}

.hk-station-kreis.has-blush-background-color {
	--hk-fuellung: var(--wp--preset--color--blush);
	--hk-icon-farbe: var(--wp--preset--color--cobalt);
}

.hk-station-kreis.has-creme-background-color {
	--hk-fuellung: var(--wp--preset--color--creme);
	--hk-icon-farbe: var(--wp--preset--color--cobalt);
}

.hk-icon-rakete {
	--hk-maske: url("../icons/icon_rakete.svg");
}

.hk-icon-megafon {
	--hk-maske: url("../icons/icon_megafon.svg");
}

.hk-icon-hochhaus {
	--hk-maske: url("../icons/icon_hochhaus.svg");
}

.hk-ueber .hk-icon-doktorhut {
	--hk-maske: url("../icons/icon_doktorhut.svg");
	--hk-icon-groesse: 26px;
}

/* „Jetzt“: Avatar statt Icon, füllt den Kreis innen. */
.hk-icon-avatar::after {
	top: 6px;
	width: calc(var(--hk-kreis) - 12px);
	height: calc(var(--hk-kreis) - 12px);
	border-radius: 50%;
	background: url("../16.svg") center / cover no-repeat;
	-webkit-mask: none;
	mask: none;
}

.hk-station-kreis[aria-pressed="true"].hk-icon-avatar::after {
	top: 6px;
}

/* ---------- Stationskarten ---------- */

.hk-station-karte {
	padding: 18px 20px 20px;
	border-radius: var(--wp--custom--radius--karte);
}

.hk-js .hk-station-karte:not(.is-aktiv) {
	display: none;
}

html:not(.hk-js) .hk-station-karte + .hk-station-karte {
	margin-top: 12px;
}

.hk-station-balken {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
}

.hk-station-balken span {
	flex: 1 1 0;
	height: 3px;
	background-color: var(--wp--preset--color--white);
}

.hk-karten-kopf {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.hk-station {
	padding: 12px 0 4px;
}

.hk-station + .hk-station {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.hk-station > :is(h3, h4) {
	margin: 0;
	color: inherit;
	font-size: 22px;
	line-height: 1.25;
}

.hk-station-zeit {
	margin: 4px 0 6px;
	font-size: 13px;
	font-weight: 700;
}

.hk-station > p:not(.hk-station-zeit) {
	font-size: 16px;
	line-height: 1.55;
}

/* ---------- Hela-Karte ---------- */

.hk-hela-karte {
	margin-top: 16px;
	padding: 20px 20px 8px;
	border-radius: var(--wp--custom--radius--karte);
	background-color: var(--wp--preset--color--creme);
	color: var(--wp--preset--color--ink);
}

.hk-hela > summary {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: 0.08em;
	list-style: none;
	cursor: pointer;
}

.hk-hela > summary::-webkit-details-marker {
	display: none;
}

.hk-hela > summary:focus-visible {
	border-radius: 8px;
	outline-offset: 4px;
}

.hk-hela > summary br {
	display: none;
}

/* Titel (im Editor fett) und Unterzeile (im Editor kursiv). */
.hk-hela > summary strong {
	display: block;
	margin: 4px 0 2px;
	color: var(--wp--preset--color--cobalt);
	font-family: var(--wp--preset--font-family--tan-nimbus);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
}

.hk-hela > summary em {
	display: block;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

/* Umschalter: „Aufklappen“ / „Zuklappen“ per CSS (DESIGN.md 5.9), Pfeil dreht sich. */
.hk-hela-umschalter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--wp--preset--color--cobalt);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

.hk-hela-umschalter::before {
	content: "Aufklappen";
}

.hk-hela[open] .hk-hela-umschalter::before {
	content: "Zuklappen";
}

.hk-hela-umschalter::after {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("../icons/icon_chevron.svg") center / contain no-repeat;
	mask: url("../icons/icon_chevron.svg") center / contain no-repeat;
	transition: transform var(--wp--custom--dauer--pfeil) ease-out;
}

.hk-hela[open] .hk-hela-umschalter::after {
	transform: rotate(180deg);
}

.hk-hela-begriff {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.4;
}

.hk-hela-wert {
	margin: 2px 0 12px;
	font-size: 16px;
	line-height: 1.55;
}

.hk-hela-wert:has(+ .hk-hela-link) {
	margin-bottom: 4px;
}

.hk-hela-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.hk-station-kreis:hover {
		transform: none;
	}
}

/* ---------- Desktop ab 700 px ---------- */

@media (min-width: 700px) {
	.hk-ueber {
		padding: 96px max(24px, calc((100% - 1152px) / 2));
	}

	.hk-ueber-einstieg {
		margin: 20px 0 16px;
		font-size: 19px;
	}

	.hk-ueber-erfahrung {
		margin-bottom: 28px;
		font-size: 17px;
	}

	.hk-station-kreise {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 20px;
		margin-bottom: 20px;
	}

	.hk-ueber .hk-station-kreis {
		width: 76px;
		font-size: 13px;
		--hk-kreis: 74px;
		--hk-icon-groesse: 32px;
	}

	.hk-ueber .hk-icon-doktorhut {
		--hk-icon-groesse: 30px;
	}

	.hk-station-karte {
		padding: 22px 28px 24px;
	}

	.hk-station-balken {
		margin-bottom: 16px;
	}

	.hk-station {
		padding: 14px 0 6px;
	}

	.hk-station > :is(h3, h4) {
		font-size: 26px;
	}

	.hk-station-zeit {
		font-size: 14px;
	}

	.hk-station > p:not(.hk-station-zeit) {
		font-size: 17px;
	}

	.hk-hela-karte {
		padding: 22px 28px 10px;
	}

	.hk-hela > summary strong {
		font-size: 30px;
	}

	.hk-hela > summary em {
		font-size: 14px;
	}

	.hk-hela-umschalter {
		font-size: 15px;
	}

	.hk-hela-wert {
		font-size: 17px;
	}

	.hk-hela-link a {
		font-size: 15px;
	}
}

/* Zweispaltig erst ab 861 px: Foto links und mitlaufend. */
@media (min-width: 861px) {
	.hk-ueber-raster {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 64px;
		align-items: start;
	}

	.hk-ueber-bild {
		position: sticky;
		top: 24px;
	}

	.hk-ueber-einstieg {
		margin-top: 0;
	}
}
