/* [agwp_switch] – Reiter oben (Pillen), darunter zwei Boxen: Einleitung links, Liste rechts.
   Ohne JavaScript: Radio-Buttons + :has(). */

#top .agwp-switch__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 40px;
	padding: 5px;
	border-radius: var(--agwp-r-pill);
	background: var(--agwp-bg2);
	border: 1px solid var(--agwp-line);
}
#top .agwp-switch__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
#top .agwp-switch__tab {
	margin: 0;
	padding: 10px 22px;
	border-radius: var(--agwp-r-pill);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--agwp-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s;
	user-select: none;
}
#top .agwp-switch__tab:hover { background: var(--agwp-surf); }
#top .agwp-switch__input:checked + .agwp-switch__tab { background: var(--agwp-acc); color: var(--agwp-onacc); }
#top .agwp-switch__input:focus-visible + .agwp-switch__tab { outline: 3px solid color-mix(in oklab, var(--agwp-acc) 60%, transparent); outline-offset: 2px; }

/* Panels: nur das zum aktiven Reiter passende ist sichtbar */
#top .agwp-switch__panel { display: none; }
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(1):checked) .agwp-switch__panel:nth-child(1),
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(2):checked) .agwp-switch__panel:nth-child(2),
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(3):checked) .agwp-switch__panel:nth-child(3),
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(4):checked) .agwp-switch__panel:nth-child(4),
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(5):checked) .agwp-switch__panel:nth-child(5),
#top .agwp-switch:has(.agwp-switch__input:nth-of-type(6):checked) .agwp-switch__panel:nth-child(6) {
	display: grid;
	animation: agwp-switch-in .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes agwp-switch-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #top .agwp-switch__panel { animation: none !important; } }

#top .agwp-switch__panel {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}
#top .agwp-switch__intro {
	padding: clamp(28px, 3.4vw, 44px);
	border-radius: var(--agwp-r-xl);
	background: var(--agwp-bg2);
}
#top .agwp-switch__heading {
	margin: 0 0 14px;
	font-family: var(--agwp-font-head);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.025em;
	color: var(--agwp-ink);
}
#top .agwp-switch__text { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--agwp-ink2); }

#top .agwp-switch__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
#top .agwp-switch__item {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 14px;
	flex: 1 1 auto;
	margin: 0;
	padding: 20px 22px;
	border-radius: var(--agwp-r-md);
	background: var(--agwp-bg2);
	list-style: none;
}
#top .agwp-switch .agwp-switch__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--agwp-acc);
	color: var(--agwp-onacc);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1;
}
#top .agwp-switch__item-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--agwp-ink); }
#top .agwp-switch__item-text { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--agwp-ink2); }

@media (max-width: 767px) {
	#top .agwp-switch__panel { grid-template-columns: 1fr; }
	#top .agwp-switch__tabs { margin-bottom: 24px; }
	#top .agwp-switch__tab { padding: 9px 16px; }
}
