/* Variante A, live seit 22.11.2026 (Webdesign-Seite). Siehe auswahl.js. */

/* 1) Liste + Feld */
.hs-auswahl {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: var(--hs-abstand-l, 48px);
	align-items: start;
}

.entry-content ol.hs-auswahl__liste {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hs-linie);
}

.hs-auswahl__liste li {
	margin: 0;
	border-bottom: 1px solid var(--hs-linie);
}

.hs-auswahl__knopf {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: baseline;
	gap: 20px;
	width: 100%;
	padding: 18px 4px;
	cursor: pointer;
	color: var(--ast-global-color-7);
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.25s ease, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hs-auswahl .hs-auswahl__knopf,
.hs-auswahl .hs-auswahl__knopf:hover,
.hs-auswahl .hs-auswahl__knopf:focus {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.hs-mit-reitern .hs-reiter__knopf:not([aria-selected="true"]),
.hs-mit-reitern .hs-reiter__knopf:not([aria-selected="true"]):hover,
.hs-mit-reitern .hs-reiter__knopf:not([aria-selected="true"]):focus {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.hs-auswahl__knr {
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
	transition: color 0.25s ease, opacity 0.25s ease;
}

.hs-auswahl__ktitel {
	flex: 1;
}

.hs-auswahl__knopf:focus-visible {
	outline: 2px solid var(--hs-akzent);
	outline-offset: 2px;
	border-radius: 6px;
}

.hs-auswahl__liste li.ist-aktiv .hs-auswahl__knopf,
.hs-auswahl__knopf:hover {
	color: var(--ast-global-color-4, #fff);
}

.hs-auswahl__liste li.ist-aktiv .hs-auswahl__knopf {
	padding-left: 14px;
}

.hs-auswahl__liste li.ist-aktiv .hs-auswahl__knr {
	color: var(--hs-akzent);
	opacity: 1;
}

.hs-auswahl__auf,
.hs-auswahl__plus {
	display: none;
}

.hs-auswahl__feld {
	position: sticky;
	top: 140px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 340px;
	padding: 48px;
}

.hs-auswahl__nr {
	font-size: clamp(56px, 6vw, 96px);
	font-weight: 700;
	line-height: 1;
	color: var(--hs-akzent);
	font-variant-numeric: tabular-nums;
}

.entry-content .hs-auswahl__titel {
	margin: 8px 0 0;
}

.entry-content .hs-auswahl__text {
	margin: 0;
	max-width: 46ch;
	color: var(--ast-global-color-7);
	font-size: var(--hs-groesse-gross);
	line-height: 1.6;
}

.hs-auswahl__zaehler {
	margin-top: auto;
	font-size: var(--hs-groesse-klein);
	letter-spacing: 0.08em;
	color: var(--ast-global-color-7);
	opacity: 0.8; /* Kontrast mind. 4,5:1 (Audit 23.11.) */
}

.hs-auswahl__feld.ist-neu :is(.hs-auswahl__nr, .hs-auswahl__titel, .hs-auswahl__text) {
	animation: hs-auswahl-rein 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hs-auswahl__feld.ist-neu .hs-auswahl__titel {
	animation-delay: 0.04s;
}

.hs-auswahl__feld.ist-neu .hs-auswahl__text {
	animation-delay: 0.08s;
}

@keyframes hs-auswahl-rein {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Mobil: Akkordeon, Feld entfällt */
@media (max-width: 781px) {
	.hs-auswahl {
		display: block;
	}

	.hs-auswahl__feld {
		display: none;
	}

	.hs-auswahl__knopf {
		align-items: center;
		gap: 14px;
		padding: 16px 0;
		color: var(--ast-global-color-4, #fff);
	}

	.hs-auswahl__liste li.ist-aktiv .hs-auswahl__knopf {
		padding-left: 0;
	}

	.hs-auswahl__liste li.ist-aktiv .hs-auswahl__knr {
		color: inherit;
		opacity: 0.75;
	}

	.hs-auswahl__liste li.ist-offen .hs-auswahl__knr {
		color: var(--hs-akzent);
		opacity: 1;
	}

	.hs-auswahl__plus {
		display: block;
		position: relative;
		width: 14px;
		height: 14px;
		flex: none;
	}

	.hs-auswahl__plus::before,
	.hs-auswahl__plus::after {
		content: "";
		position: absolute;
		left: 0;
		top: 6px;
		width: 14px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.hs-auswahl__plus::after {
		transform: rotate(90deg);
	}

	.ist-offen .hs-auswahl__plus::after {
		transform: rotate(0deg);
	}

	.hs-auswahl__auf {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.ist-offen .hs-auswahl__auf {
		grid-template-rows: 1fr;
	}

	.hs-auswahl__auf > p {
		overflow: hidden;
		margin: 0;
		padding-left: 34px;
		color: var(--ast-global-color-7);
	}

	.ist-offen .hs-auswahl__auf > p {
		padding-bottom: 18px;
	}
}

/* 2) Immer inklusive */
.hs-reiter {
	display: flex;
	gap: 6px;
	padding: 4px;
	margin-bottom: 8px;
	border: 1px solid var(--hs-linie);
	border-radius: 999px;
}

.hs-reiter__knopf {
	all: unset;
	box-sizing: border-box;
	flex: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	cursor: pointer;
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	color: var(--ast-global-color-7);
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.hs-reiter__knopf:hover {
	color: var(--ast-global-color-4, #fff);
}

.hs-mit-reitern .hs-reiter__knopf[aria-selected="true"] {
	background: var(--hs-akzent) !important;
	color: #1c1614;
}

.hs-reiter__knopf:focus-visible,
.hs-reiter__kopf:focus-visible {
	outline: 2px solid var(--hs-akzent);
	outline-offset: 2px;
}

.hs-reiter__anzahl {
	font-size: 12px;
	opacity: 0.65;
}

.hs-mit-reitern .hs-reiter__kopf {
	display: none;
}

.entry-content .hs-mit-reitern ul.hs-reiter__inhalt {
	display: none;
}

.entry-content .hs-mit-reitern ul.hs-reiter__inhalt.ist-aktiv {
	display: block;
	animation: hs-auswahl-rein 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 781px) {
	.hs-reiter {
		display: none;
	}

	.hs-mit-reitern .hs-reiter__kopf {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 14px 0;
		cursor: pointer;
		border-bottom: 1px solid var(--hs-linie);
	}

	.entry-content .hs-mit-reitern ul.hs-reiter__inhalt,
	.entry-content .hs-mit-reitern ul.hs-reiter__inhalt.ist-aktiv {
		display: none;
		animation: none;
	}

	.entry-content .hs-mit-reitern .hs-reiter__kopf.ist-offen + ul.hs-reiter__inhalt {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-auswahl *,
	.hs-auswahl__feld.ist-neu *,
	.hs-mit-reitern * {
		animation: none !important;
		transition: none !important;
	}
}

/* Seit 23.11.2026 (Heinrich): „Immer inklusive“ mobil im gleichen Stil wie „Worauf es ankommt“
   (weiße Titel in normaler Schreibweise, gleiches Plus, kein Glasrahmen). */
@media (max-width: 781px) {
	.hs-mit-reitern.hs-glas {
		padding: 0 !important;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.hs-mit-reitern .hs-reiter__kopf {
		gap: 14px;
		padding: 16px 0;
		font-size: var(--hs-groesse-gross);
		font-weight: 600;
		line-height: 1.3;
		letter-spacing: normal;
		text-transform: none;
		color: var(--ast-global-color-4, #fff);
	}

	.hs-mit-reitern .hs-reiter__kopf:first-of-type {
		border-top: 1px solid var(--hs-linie);
	}

	.hs-reiter__kopf .hs-reiter__anzahl {
		font-size: var(--hs-groesse-klein);
		font-variant-numeric: tabular-nums;
		opacity: 0.75;
	}

	.hs-reiter__kopf.ist-offen .hs-reiter__anzahl {
		color: var(--hs-akzent);
		opacity: 1;
	}

	.hs-reiter__kopf .hs-auswahl__plus {
		margin-left: auto;
	}

	.entry-content .hs-mit-reitern .hs-reiter__kopf.ist-offen + ul.hs-reiter__inhalt {
		margin-bottom: 8px;
		border-bottom: 1px solid var(--hs-linie);
	}

	.entry-content .hs-mit-reitern ul.hs-reiter__inhalt li {
		color: var(--ast-global-color-7);
	}
}

/* 3) Über uns, „Woher wir kommen“: mobil aufklappbar (Heinrich 23.11.) */
.hs-woher__knopf {
	display: none;
}

@media (max-width: 781px) {
	.hs-woher__kopf {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
	}

	.hs-woher .hs-woher__knopf,
	.hs-woher .hs-woher__knopf:hover,
	.hs-woher .hs-woher__knopf:focus {
		all: unset;
		box-sizing: border-box;
		display: grid;
		place-items: center;
		flex: none;
		width: 44px;
		height: 44px;
		margin: -10px -12px -10px 0;
		cursor: pointer;
		color: var(--ast-global-color-4, #fff);
	}

	.hs-woher__knopf:focus-visible {
		outline: 2px solid var(--hs-akzent);
		outline-offset: 2px;
		border-radius: 999px;
	}

	.hs-woher .hs-kachel:not(.ist-offen) .hs-woher__rest {
		display: none;
	}
}

/* 4) Referenzen: mobil aufklappbar (Heinrich 23.11.) */
.hs-ref-knopf {
	display: none;
}

@media (max-width: 781px) {
	.hs-kachel:not(.ist-offen) .hs-ref-rest {
		display: none !important;
	}

	.hs-kachel .hs-ref-knopf,
	.hs-kachel .hs-ref-knopf:hover,
	.hs-kachel .hs-ref-knopf:focus {
		all: unset;
		box-sizing: border-box;
		position: relative;
		z-index: 3;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		width: 100%;
		min-height: 44px;
		margin-top: var(--hs-abstand-xs);
		padding: 10px 0;
		border-top: 1px solid var(--hs-linie);
		cursor: pointer;
		color: var(--ast-global-color-4, #fff);
		font-size: var(--hs-groesse-klein);
		font-weight: 600;
	}

	.hs-ref-knopf:focus-visible {
		outline: 2px solid var(--hs-akzent);
		outline-offset: 2px;
	}
}
