/* ============================================================
 * SW24 — Nachhaltigkeit
 * Flat layout matching the FAQ and Install pages.
 * Selectors match the BEM classes the PHP actually renders.
 * ============================================================ */

.sw24-sus {
	--c: var(--sw24-text, #111827);
	--m: var(--sw24-text-muted, #5f6673);
	--b: var(--sw24-border, #dfe3ea);
	--p: var(--sw24-primary, #2a4eeb);
	background: var(--sw24-bg, #fff);
	color: var(--c);
	padding: clamp(2rem, 5vw, 3.5rem) 1rem clamp(3rem, 6vw, 5rem);
}

.sw24-sus__inner {
	max-width: 72rem;
	margin: 0 auto;
}

/* ===== Header (centered, theme-override resistant) ===== */
.sw24-sus .sw24-sus__hero {
	text-align: center !important;
	margin-bottom: 2.5rem;
}
.sw24-sus .sw24-sus__eyebrow {
	margin: 0 0 .4rem;
	color: var(--p);
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sw24-sus .sw24-sus__title {
	margin: 0 0 .6rem;
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	line-height: 1.2;
	text-align: center !important;
}
.sw24-sus .sw24-sus__lead {
	max-width: 42rem;
	margin: 0 auto !important;
	color: var(--m);
	line-height: 1.6;
	text-align: center !important;
}

/* ===== Sections ===== */
.sw24-sus__section {
	margin: 0 0 2.5rem;
	scroll-margin-top: 5rem;
}
.sw24-sus__section h2 {
	margin: 0 0 .75rem;
	padding-bottom: .5rem;
	font-size: 1.3rem;
	line-height: 1.25;
	color: var(--c);
	border-bottom: 1px solid var(--b);
}
.sw24-sus__section > p {
	color: var(--m);
	line-height: 1.7;
	margin: 0 0 1rem;
}
.sw24-sus__section > p strong {
	color: var(--c);
}

/* ===== Pillar grid — flat, no card boxes ===== */
.sw24-sus__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 2.5rem;
	margin-top: 1.25rem;
}
.sw24-sus__card {
	margin: 0;
}
.sw24-sus__card h3 {
	margin: 0 0 .35rem;
	font-size: 1.05rem;
	color: var(--c);
}
.sw24-sus__card p {
	margin: 0 0 .6rem;
	color: var(--m);
	line-height: 1.65;
}
.sw24-sus__card p:last-child {
	margin-bottom: 0;
}

/* ===== Comparison table — flat ===== */
.sw24-sus__table-wrap {
	overflow-x: auto;
	margin: 1rem 0;
}
.sw24-sus__table {
	width: 100%;
	border-collapse: collapse;
	color: var(--c);
}
.sw24-sus__table th,
.sw24-sus__table td {
	padding: .7rem .9rem;
	text-align: left;
	vertical-align: top;
	line-height: 1.55;
	border-bottom: 1px solid var(--b);
}
.sw24-sus__table thead th {
	font-weight: 700;
	font-size: .95rem;
	border-bottom: 2px solid var(--b);
}
.sw24-sus__table tbody th[scope="row"] {
	font-weight: 600;
	color: var(--c);
	white-space: nowrap;
}
.sw24-sus__table tbody td {
	color: var(--m);
}
.sw24-sus__table tbody tr:last-child th,
.sw24-sus__table tbody tr:last-child td {
	border-bottom: 0;
}

/* ===== "Was wir tun" list — flat ===== */
.sw24-sus__list {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}
.sw24-sus__list li {
	padding: .85rem 0;
	border-bottom: 1px solid var(--b);
}
.sw24-sus__list li:last-child {
	border-bottom: 0;
}
.sw24-sus__list strong {
	display: block;
	margin-bottom: .2rem;
	color: var(--c);
}
.sw24-sus__list span {
	color: var(--m);
	line-height: 1.65;
}

/* ===== Honest limits — dash list (matches Install issues) ===== */
.sw24-sus__note .sw24-sus__plain-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}
.sw24-sus__plain-list li {
	position: relative;
	padding: .5rem 0 .5rem 1.4rem;
	color: var(--m);
	line-height: 1.65;
}
.sw24-sus__plain-list li::before {
	content: "–";
	position: absolute;
	left: 0;
	top: .5rem;
	color: var(--c);
	font-weight: 700;
}

/* ===== Policy links — inline row (matches FAQ/Install) ===== */
.sw24-sus__links {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .9rem;
	margin: 1rem 0 0;
	font-size: .95rem;
}
.sw24-sus__links a {
	color: var(--p);
	text-decoration: underline;
	text-underline-offset: .18em;
}

/* ===== FAQ accordion — minimal chevron divider ===== */
.sw24-sus__faq {
	display: block;
}
.sw24-sus__faq-item {
	border-bottom: 1px solid var(--b);
}
.sw24-sus__faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--c);
	cursor: pointer;
	list-style: none;
}
.sw24-sus__faq-item summary::-webkit-details-marker {
	display: none;
}
.sw24-sus__faq-item summary::after {
	content: "";
	width: .5rem;
	height: .5rem;
	flex: 0 0 auto;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: .55;
}
.sw24-sus__faq-item[open] > summary::after {
	transform: rotate(225deg);
}
.sw24-sus__faq-answer {
	padding: 0 0 .9rem;
	color: var(--m);
	line-height: 1.65;
}
.sw24-sus__faq-answer p {
	margin: 0 0 .6rem;
}
.sw24-sus__faq-answer p:last-child {
	margin-bottom: 0;
}

/* ===== Bottom CTA — matches "Noch Fragen?" block ===== */
.sw24-sus__cta {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--b);
	text-align: center;
}
.sw24-sus__cta h2 {
	margin: 0 0 .4rem;
	padding: 0;
	border: 0;
	font-size: 1.25rem;
	color: var(--c);
}
.sw24-sus__cta p {
	margin: 0 auto 1rem;
	max-width: 42rem;
	color: var(--m);
	line-height: 1.6;
}
.sw24-sus__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
}
.sw24-sus__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: .5rem 1.1rem;
	border: 1px solid var(--b);
	color: var(--c) !important;
	font-weight: 600;
	text-decoration: none;
}
.sw24-sus__btn--primary {
	border-color: var(--p);
	background: var(--p);
	color: #fff !important;
}

.sw24-sus a:focus-visible,
.sw24-sus summary:focus-visible {
	outline: 2px solid var(--p);
	outline-offset: 3px;
}
@media (hover: hover) {
	.sw24-sus__links a:hover,
	.sw24-sus__faq-item summary:hover {
		color: var(--p);
	}
}

/* ===== Mobile ===== */
@media (max-width: 42rem) {
	.sw24-sus {
		padding-inline: .875rem;
	}
	.sw24-sus__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	.sw24-sus__btn {
		width: 100%;
	}
}
