/*
 * 5.6 Drei Wege #wege: Kreise wählen, darunter die Karte des gewählten Wegs.
 * Werte „Handy · Desktop“ aus DESIGN.md 5.6.
 */

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

.hk-wege > :is(h1, h2),
.hk-wege-links > :is(h1, h2) {
	margin-bottom: 28px;
	font-size: 32px;
	line-height: 1.18;
}

/* ---------- Kreise ---------- */

.hk-wege-kreise {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 24px;
}

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

.hk-weg-kreis {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 44px;
	cursor: pointer;
	transition: transform var(--wp--custom--dauer--lift) ease-out;
}

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

.hk-weg-kreis > p:first-child {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--paper);
	/* Ring nicht gewählt: 2 px pink außen, dann 4 px Luft in der Bandfarbe. */
	box-shadow:
		inset 0 0 0 2px var(--wp--preset--color--pink),
		inset 0 0 0 6px var(--wp--preset--color--creme);
	font-size: 36px;
	line-height: 1;
}

.hk-weg-kreis[aria-pressed="true"] > p:first-child {
	/* Ring gewählt: 5 px cobalt. */
	box-shadow:
		inset 0 0 0 5px var(--wp--preset--color--cobalt),
		inset 0 0 0 9px var(--wp--preset--color--creme);
}

.hk-weg-kreis > p + p {
	max-width: 100%;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-wrap: balance;
}

/* ---------- Karten ---------- */

/* Fortschritt oben in der Karte: bis zum gewählten Weg weiß, danach weiß 35 %. */
.hk-fortschritt {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
}

.hk-fortschritt span {
	flex: 1 1 0;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.35);
}

.hk-fortschritt span.is-voll {
	background-color: var(--wp--preset--color--white);
}

.hk-weg-karte {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 240px;
	padding: 18px 20px 26px;
	border-radius: var(--wp--custom--radius--karte);
}

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

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

.hk-weg-karte > p:first-of-type {
	font-size: 40px;
	line-height: 1.2;
}

.hk-weg-karte > :is(h3, h4) {
	margin: 16px 0 10px;
	font-size: 26px;
	line-height: 1.18;
	color: inherit;
}

.hk-weg-karte > p {
	font-size: 17px;
	line-height: 1.6;
}

.hk-weg-karte .wp-block-buttons {
	margin-top: 24px;
}

.hk-weg-karte .wp-block-button__link.wp-element-button {
	min-height: 46px;
	padding: 0 26px;
	font-size: 15px;
}

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

	.hk-fortschritt {
		margin-bottom: 36px;
	}

	.hk-wege > :is(h1, h2),
	.hk-wege-links > :is(h1, h2) {
		margin-bottom: 40px;
		font-size: 48px;
	}

	.hk-wege-kreise {
		gap: 24px;
	}

	.hk-weg-kreis {
		gap: 10px;
	}

	.hk-weg-kreis > p:first-child {
		width: 112px;
		height: 112px;
		box-shadow:
			inset 0 0 0 2px var(--wp--preset--color--pink),
			inset 0 0 0 7px var(--wp--preset--color--creme);
		font-size: 44px;
	}

	.hk-weg-kreis[aria-pressed="true"] > p:first-child {
		box-shadow:
			inset 0 0 0 6px var(--wp--preset--color--cobalt),
			inset 0 0 0 11px var(--wp--preset--color--creme);
	}

	.hk-weg-kreis > p + p {
		font-size: 15px;
		white-space: nowrap;
	}

	.hk-weg-karte {
		min-height: 380px;
		padding: 24px 32px 36px;
	}

	.hk-weg-karte > p:first-of-type {
		font-size: 52px;
	}

	.hk-weg-karte > :is(h3, h4) {
		margin: 20px 0 12px;
		font-size: 32px;
	}

	.hk-weg-karte > p {
		font-size: 18px;
	}

	.hk-weg-karte .wp-block-buttons {
		margin-top: auto;
		padding-top: 28px;
	}

	.hk-weg-karte .wp-block-button__link.wp-element-button {
		min-height: 50px;
		padding: 0 30px;
		font-size: 16px;
	}
}

/* Zweispaltig erst ab 861 px: links Überschrift und Kreise, rechts Karte. */
@media (min-width: 861px) {
	.hk-wege-raster {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 56px;
		align-items: center;
	}

	.hk-wege-kreise {
		margin-bottom: 0;
	}
}

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