/* Katalog-Ausgabe: nur im Embed-Container, nicht auf html/body der Empfängerseite. */

.bd-fragmente-inhalt,
.editor-styles-wrapper {
	--swk-gruen: #319b11;
	--swk-gruen-dunkel: #236f0c;
	--swk-dunkelblau: #173d6f;
	--swk-blau: #295c84;
	--swk-hellblau: #91d3f9;
	--swk-flaeche: #f2f6f9;
	--swk-linie: #dde3e8;
	--swk-banner: linear-gradient(180deg, #6fd84f 0%, #7bd5fd 100%);
	--swk-karte: linear-gradient(180deg, #ffffff 0%, rgba(55, 185, 252, 0.16) 100%);
	--swk-rang: #656363;
	--swk-rang-hell: #abb8c3;
	--swk-gruen-text: #2b7c0f;
	--swk-muted: #5d5d5d;
	--swk-max: var(--wp--style--global--wide-size, 1340px);
	--swk-fs-klein: 16px;
	--swk-fs-normal: 19px;
	--swk-fs-gross: 23px;
	--swk-fs-titel: 36px;
	font-family: 'axia', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: var(--swk-fs-normal);
	line-height: 1.5;
	color: #1f2328;
	background: #fff;
	box-sizing: border-box;
	font-weight: 400;
}

main.bd-fragmente-inhalt {
	padding-left: var(--wp--style--root--padding-left, var(--container__side, 20px)) !important;
    padding-right: var(--wp--style--root--padding-right, var(--container__side, 20px)) !important;
}
div.bd-fragmente-inhalt {
	max-width: var(--swk-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.bd-fragmente-inhalt,
.editor-styles-wrapper {

	.wp-block-swk-katalog,
	.wp-block-swk-konfigurator,
	.wp-block-post-content,
	main.wp-block-group > * {
		max-width: var(--swk-max) !important;
		width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box;
	}
	.swk-katalog,
	.swk-konfigurator,
	.swk-hero,
	.swk-dossier-sek {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
	.swk-katalog { padding-top: 22px; padding-bottom: 60px; }
	.wp-block-post-title {
		padding-top: 22px;
		font-size: var(--swk-fs-titel);
		line-height: 1.2;
		font-weight: 700;
		color: var(--swk-dunkelblau);
	}
	.wp-block-post-content { padding-bottom: 60px; }

	/* theme.json: klein 16 / normal 19 / gross 23 / titel 36. Zielseite setzt sonst alle hn auf defaulttitle. */
	h1, h2, h3, h4, h5, h6,
	.wp-block-heading {
		font-family: inherit;
		font-weight: 700;
		line-height: 1.25;
		letter-spacing: normal;
		text-transform: none;
		color: var(--swk-dunkelblau);
		margin: 0 0 0.4em;
	}
	h1, h1.wp-block-heading {
		font-size: var(--swk-fs-titel) !important;
		line-height: 1.2;
	}
	h2, h2.wp-block-heading {
		font-size: var(--swk-fs-gross) !important;
		color: var(--swk-gruen-dunkel);
	}
	h3, h3.wp-block-heading {
		font-size: var(--swk-fs-normal) !important;
	}
	h4, h4.wp-block-heading,
	h5, h5.wp-block-heading,
	h6, h6.wp-block-heading {
		font-size: var(--swk-fs-klein) !important;
	}

	/* Zielseite: jedes Flow-Kind bekommt 3rem margin-block-start (block-gap). Mockup: hn 0 0 .4em. */
	.wp-block-heading {
		margin-top: 0 !important;
		margin-bottom: 0.4em !important;
		margin-block-start: 0 !important;
		margin-block-end: 0.4em !important;
	}
	h2.wp-block-heading {
		margin-top: 28px !important;
		margin-bottom: 8px !important;
		margin-block-start: 28px !important;
		margin-block-end: 8px !important;
	}
	h3.wp-block-heading {
		margin-top: 22px !important;
		margin-bottom: 7px !important;
		margin-block-start: 22px !important;
		margin-block-end: 7px !important;
	}
	h4.wp-block-heading,
	h5.wp-block-heading,
	h6.wp-block-heading {
		margin-top: 18px !important;
		margin-bottom: 6px !important;
		margin-block-start: 18px !important;
		margin-block-end: 6px !important;
	}
	:is( .swk-intro-slot, .swk-teil-inhalt, .wp-block-post-content ) > .wp-block-heading:first-child {
		margin-top: 0 !important;
		margin-block-start: 0 !important;
	}

	.swk-k-titel,
	.swk-auswahl-sek h3 {
		font-size: 21.6px !important;
		line-height: 1.25;
		font-weight: 700;
		margin: 0 0 0.3em !important;
		color: var(--swk-dunkelblau);
	}
	.swk-katalog p.swk-intro {
		display: block !important;
		font-size: 19px;
		line-height: 1.5;
		max-width: 820px;
		margin: 0 0 1.2em;
	}

	/* ---------- Reset gegen sponge-city / Core-Button-Styles ---------- */
	.swk-kicker,
	.swk-modi a,
	.swk-modi button,
	.swk-ivz button,
	.swk-katalog a,
	.swk-katalog button,
	.swk-konfigurator button,
	.swk-konfigurator label,
	.swk-k-standort button,
	.swk-info-knopf {
		font-family: inherit;
		font-size: inherit;
		line-height: inherit;
		font-weight: inherit;
		letter-spacing: inherit;
		text-transform: none;
		text-decoration: none !important;
		border-radius: 0 !important;
		box-shadow: none;
		appearance: none;
		-webkit-appearance: none;
	}
	.swk-katalog *,
	.swk-konfigurator *,
	.swk-k-standort *,
	.swk-modi *,
	.swk-ivz * { box-sizing: border-box; }

	/* ---------- Kicker + Tab-Leiste ---------- */
	.swk-kicker {
		max-width: var(--swk-max);
		margin: 0 auto;
		padding: 14px 20px 12px;
		font-size: 14.04px;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase !important;
		color: var(--swk-gruen) !important;
	}
	nav.swk-modi {
		display: flex;
		width: 100%;
		background: #fff;
		box-shadow: inset 0 -1px 0 var(--swk-linie);
	}
	nav.swk-modi .swk-modi-innen {
		display: flex;
		gap: 4px;
		max-width: var(--swk-max);
		margin: 0 auto;
		padding: 0 20px;
		width: 100%;
		align-items: flex-end;
	}
	nav.swk-modi a,
	nav.swk-modi button.swk-modi-anleitung {
		display: inline-block;
		background: #eef1f0 !important;
		color: var(--swk-muted) !important;
		padding: 11px 20px 10px;
		font-weight: 600;
		border: 0;
		border-top: 3px solid transparent;
		position: relative;
		top: 1px;
	}
	nav.swk-modi a:hover,
	nav.swk-modi button.swk-modi-anleitung:hover { color: var(--swk-dunkelblau) !important; }
	/* Quelle: Textlink. Ziel: grauer Reiter, rechts. */
	nav.swk-modi a.swk-modi-anleitung {
		margin-left: auto;
		background: none !important;
		font-weight: 500;
		padding-left: 10px;
		padding-right: 0;
	}
	nav.swk-modi button.swk-modi-anleitung {
		margin-left: auto;
		cursor: pointer;
		font: inherit;
		font-weight: 600;
	}
	nav.swk-modi a[aria-current="page"] {
		color: var(--swk-dunkelblau) !important;
		background: #fff !important;
		border-top-color: var(--swk-gruen);
		box-shadow: 1px 0 0 var(--swk-linie), -1px 0 0 var(--swk-linie), 0 -1px 0 var(--swk-linie);
	}

	/* ---------- Inhaltsverzeichnis ---------- */
	.swk-ivz { position: fixed; right: 0; top: 30vh; z-index: 30; display: flex; align-items: flex-start; max-height: calc(70vh - 24px); }
	.swk-ivz-griff {
		border: 0;
		background: var(--swk-dunkelblau) !important;
		color: #fff !important;
		font-size: 12.96px;
		font-weight: 600;
		letter-spacing: 0.06em;
		padding: 12px 7px;
		cursor: pointer;
		writing-mode: vertical-rl;
		text-orientation: mixed;
		white-space: nowrap;
	}
	.swk-ivz-griff:hover { background: var(--swk-gruen-dunkel) !important; }
	.swk-ivz-box { width: 264px; background: #fff; box-shadow: 0 0 0 1px var(--swk-linie); overflow-y: auto; max-height: calc(70vh - 24px); padding: 14px 16px 16px; }
	.swk-ivz.zu .swk-ivz-box { display: none; }
	.swk-ivz-box h4 { margin: 0 0 8px; font-size: 12.96px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--swk-muted); font-weight: 700; }
	.swk-ivz-box button { display: block; width: 100%; text-align: left; border: 0; background: none !important; color: inherit !important; padding: 5px 0; cursor: pointer; font-size: 14.76px; line-height: 1.35; }
	.swk-ivz-box button:hover { color: var(--swk-gruen-dunkel) !important; }
	.swk-ivz-box button.stufe2 { padding-left: 12px; font-size: 14.04px; color: var(--swk-muted) !important; }
	.swk-ivz-box .leer { font-size: 14.04px; color: var(--swk-muted); }
	@media ( max-width: 1100px ) { .swk-ivz { display: none; } }

	/* ---------- Explorer ---------- */
	.swk-katalog { color: var(--swk-dunkelblau); }
	.swk-modus { display: none; }
	.swk-modus.aktiv { display: block; }
	.swk-block { padding: 20px 0; margin: 0; scroll-margin-top: 14px; }
	.swk-block > h2:first-child { color: var(--swk-gruen-dunkel); font-weight: 700; margin: 0 0 0.4em; }
	.swk-intro { max-width: 820px; margin: 0 0 1.2em; }
	.swk-minihint { font-size: 14.94px; color: var(--swk-dunkelblau); background: var(--swk-hellblau); padding: 9px 13px; margin: 0 0 12px; }

	.swk-schicht { border-left: 4px solid var(--bf, #295c84); background: linear-gradient(to right, var(--bs, #e9eef2), rgba(255, 255, 255, 0) 58%); padding: 14px 16px 8px; margin: 0 0 20px; }
	.swk-bereich-kopf { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bf); font-size: 14.4px; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 2px; }
	.swk-bereich-kopf svg { width: 20px; height: 20px; fill: var(--bf); flex-shrink: 0; }
	.swk-bk-sub { font-size: 13.32px; color: var(--swk-muted); font-weight: 500; margin: 0 0 10px 28px; }
	.swk-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; margin: 6px 0 12px; }
	.swk-katalog a.swk-kachel {
		display: flex !important;
		flex-direction: column;
		border: 0;
		border-top: 3px solid var(--bf);
		background: var(--swk-karte) !important;
		color: inherit !important;
		overflow: hidden;
		padding: 0;
		text-align: left;
		transition: box-shadow 0.15s;
	}
	.swk-katalog a.swk-kachel:hover { box-shadow: 0 2px 10px rgba(49, 155, 17, 0.18); color: inherit !important; }
	.swk-kachel img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: center; display: block; }
	.swk-imgph { color: var(--swk-muted); font-size: 13.32px; padding: 10px; text-align: center; display: flex; align-items: flex-end; justify-content: center; min-height: 170px; background: #f4f6f8; }
	.swk-kachel .swk-imgph { aspect-ratio: 16 / 10; min-height: 0; }
	.swk-kb { padding: 11px 13px; }
	.swk-kb b { display: block; font-size: 17.1px; color: var(--swk-dunkelblau); }
	.swk-kb p { margin: 0.3em 0 0; font-size: 14.4px; color: var(--swk-muted); }

	.swk-anlass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
	.swk-hf-gruppe h4 { margin: 2px 0 8px; font-size: 14.04px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--swk-muted); }
	.swk-katalog button.swk-anlass {
		display: block;
		width: 100%;
		margin: 0 0 8px;
		border: 0;
		background: var(--swk-banner) !important;
		padding: 13px 15px;
		text-align: left;
		cursor: pointer;
		color: var(--swk-dunkelblau) !important;
	}
	.swk-katalog button.swk-anlass:hover,
	.swk-katalog button.swk-anlass:focus-visible {
		filter: saturate(1.25) brightness(1.04);
		box-shadow: 0 2px 10px rgba(23, 61, 111, 0.28);
	}
	.swk-anlass b { display: block; margin-bottom: 0.2em; font-weight: 700; }
	.swk-hf-code { display: block; font-size: 12.6px; opacity: 0.75; margin-top: 2px; }

	.swk-spider-paar { display: flex; flex-wrap: wrap; gap: 2px 30px; justify-content: center; }
	.swk-spider-wrap { flex: 1 1 420px; max-width: 580px; min-width: 240px; }
	.swk-spider-titel { font-size: 18.36px; font-weight: 700; text-align: center; min-height: 2.4em; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
	.swk-ziel-svg { width: 100%; height: auto; overflow: visible; touch-action: none; display: block; margin: 0 auto; max-width: calc( 580px - 180px * var(--swk-p, 0) ); }
	.swk-axis-hit { stroke: transparent; stroke-width: 24; cursor: pointer; }
	.swk-handle-hit { cursor: grab; pointer-events: all; }
	.swk-handle { cursor: grab; }
	.swk-handle:active { cursor: grabbing; }
	.swk-hval { font-size: 11px; font-weight: 700; fill: var(--swk-gruen); pointer-events: none; }
	.swk-spider-sticky { position: sticky; top: 0; z-index: 6; background: #fff; padding: 12px 20px 4px; margin: 0 -20px; }
	/* «klebt» ändert nur noch Optik, nie Masse – Layoutsprünge am Andockpunkt erzeugen Zittern. */
	.swk-spider-sticky.klebt { box-shadow: 0 12px 16px -12px rgba(25, 45, 45, 0.35); }
	/* Scroll-Verankerung des Browsers kämpft sonst gegen die scrollgekoppelte Höhenänderung. */
	&:has( .swk-spider-sticky ) { overflow-anchor: none; }
	@media ( max-width: 780px ) { .swk-spider-sticky { position: static; box-shadow: none; border-bottom: 0; } }
	.swk-rang-legende { margin: 16px 0 10px; }
	.swk-l-rang { background: var(--swk-rang); }
	.swk-l-potenzial { background: var(--swk-rang-hell); }

	.swk-rangliste { display: flex; flex-direction: column; gap: 9px; }
	.swk-katalog a.swk-rang-karte {
		display: grid !important;
		grid-template-columns: 46px 1fr 200px;
		gap: 14px;
		align-items: center;
		padding: 11px 13px;
		background: var(--swk-karte) !important;
		color: inherit !important;
		cursor: pointer;
		transition: background 0.15s, box-shadow 0.15s;
	}
	.swk-katalog a.swk-rang-karte:hover,
	.swk-katalog a.swk-rang-karte:focus-visible {
		background: linear-gradient(180deg, rgba(55, 185, 252, 0.30), rgba(55, 185, 252, 0.52)) !important;
		box-shadow: 0 2px 10px rgba(41, 92, 132, 0.18);
		color: inherit !important;
	}
	.swk-katalog a.swk-rang-karte.top { box-shadow: 0 0 0 2px rgba(101, 99, 99, 0.35), 0 2px 10px rgba(101, 99, 99, 0.14); }
	.swk-rang-nr { width: 46px; height: 46px; background: var(--swk-gruen); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19.8px; }
	.swk-rang-main h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 2px; font-size: 21.24px; line-height: 1.25; color: var(--swk-dunkelblau); }
	.swk-rang-main h3 svg { width: 21px; height: 21px; flex-shrink: 0; }
	.swk-rang-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
	.swk-rang-chip { font-size: 12.24px; background: #eaf5e7; color: var(--swk-gruen-text); padding: 1px 6px; font-weight: 600; }
	.swk-rang-chip.stumm { background: #eef1f0; color: var(--swk-muted); font-weight: 500; }
	.swk-rang-match { text-align: right; }
	.swk-rang-pct { font-size: 22.5px; font-weight: 700; color: var(--swk-rang); line-height: 1; }
	.swk-rang-pct small { font-size: 12.24px; color: var(--swk-muted); font-weight: 600; }
	.swk-rang-pot { font-size: 12.96px; color: var(--swk-rang); margin-top: 2px; }
	.swk-rang-balken { height: 8px; background: var(--swk-linie); margin-top: 6px; overflow: hidden; position: relative; }
	.swk-rang-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--swk-rang); transition: width 0.3s ease; }
	.swk-rang-potb { position: absolute; left: 0; top: 0; bottom: 0; background: var(--swk-rang-hell); transition: width 0.3s ease; }
	@media ( max-width: 720px ) {
		.swk-katalog a.swk-rang-karte { grid-template-columns: 40px 1fr; }
		.swk-rang-match { grid-column: 1 / -1; text-align: left; }
	}

	/* ---------- Dossier-Teile ---------- */
	details.swk-teil { margin: 0 0 16px; background: #fff; }
	details.swk-teil[hidden] { display: none !important; }
	.swk-teil > summary {
		list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
		padding: 14px 18px; font-weight: 700; font-size: 1.05em;
		background: var(--swk-banner); color: var(--swk-dunkelblau);
		transition: background 0.15s, color 0.15s;
	}
	.swk-teil > summary::-webkit-details-marker { display: none; }
	.swk-teil > summary::after { content: '›'; margin-left: auto; font-size: 1.3em; transition: transform 0.18s; }
	.swk-teil[open] > summary::after { transform: rotate(90deg); }
	.swk-teil > summary:hover { background: var(--swk-dunkelblau); color: #fff; }
	.swk-teil-nr {
		width: 27px; height: 27px; background: var(--swk-dunkelblau); color: #fff;
		display: inline-flex; align-items: center; justify-content: center; font-size: 0.88em; flex-shrink: 0;
	}
	.swk-teil > summary:hover .swk-teil-nr { background: #fff; color: var(--swk-dunkelblau); }
	.swk-teil-inhalt { padding: 14px 0; }

	.swk-aufklapper { margin: 0 0 10px; }
	.swk-aufklapper > summary {
		list-style: none; cursor: pointer; padding: 10px 14px; font-weight: 700;
		background: var(--swk-hellblau); color: var(--swk-dunkelblau);
		display: flex; align-items: center; gap: 10px;
	}
	.swk-aufklapper > summary::-webkit-details-marker { display: none; }
	.swk-aufklapper > summary::after { content: '›'; margin-left: auto; font-size: 23.4px; line-height: 1; transition: transform 0.18s; }
	.swk-aufklapper[open] > summary::after { transform: rotate(90deg); }
	.swk-aufklapper-inhalt { padding: 12px 14px; border: 1px solid var(--swk-linie); border-top: 0; }

	.swk-verweisbox { background: var(--swk-flaeche); padding: 12px 14px; margin: 10px 0; }
	.swk-verweisbox-rubrik {
		display: block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.05em;
		text-transform: uppercase; color: var(--swk-blau); margin-bottom: 4px;
	}
	/* Quelle: theme.json setzt Links auf Dunkelblau und unterstrichen. Die Zielseite färbt jedes a grün und zieht den Zeilenabstand zusammen. */
	:is( .swk-teil-inhalt, .swk-intro-slot, .swk-aufklapper-inhalt, .swk-verweisbox, .wp-block-post-content, .swk-opt-text, .swk-komb-text ) a {
		color: var(--swk-dunkelblau) !important;
		text-decoration: underline !important;
		text-underline-offset: 0.12em;
		font-weight: inherit;
		display: inline;
		margin: 0;
		padding: 0;
		background: none !important;
		border: 0;
		box-shadow: none;
	}
	:is( .swk-teil-inhalt, .swk-intro-slot, .swk-aufklapper-inhalt, .swk-verweisbox, .wp-block-post-content, .swk-opt-text ) :is( p, .wp-block-paragraph ) {
		margin: 0 0 0.75em !important;
		margin-block-start: 0 !important;
		margin-block-end: 0.75em !important;
	}
	:is( .swk-teil-inhalt, .swk-intro-slot, .swk-aufklapper-inhalt, .swk-verweisbox, .wp-block-post-content ) :is( ul, ol ) {
		margin: 0 0 0.75em;
		padding-left: 1.25em;
	}
	:is( .swk-teil-inhalt, .swk-intro-slot, .swk-aufklapper-inhalt, .swk-verweisbox, .wp-block-post-content ) li {
		margin: 0.2em 0;
	}
	:is( .swk-teil-inhalt, .swk-intro-slot, .swk-aufklapper-inhalt, .swk-verweisbox, .wp-block-post-content ) :is( p, ul, ol ):last-child {
		margin-bottom: 0 !important;
		margin-block-end: 0 !important;
	}

	/* ---------- Konfigurator ---------- */
	.swk-konfigurator { margin: 0 0 26px; }
	.swk-k-titel span { font-weight: 400; font-size: 0.75em; color: #667; margin-left: 8px; }
	/* Abstand zur Tab-Leiste: Flächen starten auf der Blocklinie (22px), Text-Köpfe auf der Textlinie (42px) der Ansichten 1 und 2. */
	.swk-kopfbild { position: relative; margin: 22px 0 18px; overflow: hidden; background: #e8eeea; }
	.swk-kopfbild img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
	.swk-kb-text {
		position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 18px; color: #fff;
		background: linear-gradient(to top, rgba(15, 30, 26, 0.78) 0%, rgba(15, 30, 26, 0.45) 45%, rgba(15, 30, 26, 0) 100%);
	}
	.swk-kicker-el { font-size: 13.32px; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; color: var(--swk-muted); }
	.swk-kb-text .swk-kicker-el { color: #fff; opacity: 0.85; margin-bottom: 2px; }
	.swk-kb-text h1 { margin: 0; font-size: 28.8px; line-height: 1.25; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); text-wrap: balance; }
	.swk-kb-quelle {
		position: absolute; top: 12px; left: 12px; background: rgba(15, 30, 26, 0.55); color: #fff;
		font-size: 11.88px; padding: 3px 8px;
	}
	.swk-konfig-kopf { margin: 42px 0 16px; }
	.swk-konfig-kopf h1 { margin: 0; font-size: 28.8px; line-height: 1.25; color: var(--swk-dunkelblau); text-wrap: balance; }
	@media ( max-width: 760px ) {
		.swk-kopfbild { background: none; }
		.swk-kopfbild img { aspect-ratio: 16 / 9; }
		.swk-kb-text { position: static; padding: 10px 0 0; background: none; color: inherit; }
		.swk-kb-text h1 { font-size: 21.6px; color: var(--swk-dunkelblau); text-shadow: none; }
		.swk-kb-text .swk-kicker-el { color: var(--swk-muted); opacity: 1; }
		.swk-kb-quelle { position: static; display: block; margin-top: 4px; padding: 0; background: none; color: var(--swk-muted); }
	}

	.swk-hero { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 22px; align-items: start; margin: 6px 0 16px; }
	.swk-hero img { width: 100%; height: auto; display: block; cursor: zoom-in; }
	.swk-hero figcaption, .swk-info-zeile figcaption, .swk-opt-inhalt figcaption,
	.swk-teil-inhalt .wp-block-image figcaption, .swk-intro-slot .wp-block-image figcaption { font-size: 12.96px; color: var(--swk-muted); margin-top: 4px; }
	.swk-bild-quelle { display: block; }
	figcaption .swk-bild-quelle { margin-top: 2px; }
	.swk-hero p { margin: 0 0 0.8em; max-width: 78ch; }
	#swk-hero-bild:empty { display: none; }
	.swk-hero:has( #swk-hero-bild:empty ) { grid-template-columns: 1fr; }
	.swk-hero:has( #swk-hero-bild:empty ) > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
	.swk-hero:has( #swk-hero-bild:empty ) .swk-intro-slot > :first-child { margin-top: 0; }
	@media ( max-width: 780px ) { .swk-hero { grid-template-columns: 1fr; } .swk-hero:has( #swk-hero-bild:empty ) > div:last-child { grid-template-columns: 1fr; } }

	.swk-varianten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
	@media ( max-width: 820px ) { .swk-varianten { grid-template-columns: 1fr; } }
	.swk-konfigurator button.swk-variante,
	.swk-k-standort button.swk-variante {
		display: grid;
		grid-template-columns: minmax(150px, 34%) 1fr;
		text-align: left;
		padding: 0;
		overflow: hidden;
		border: 0;
		background: #fff !important;
		cursor: pointer;
		box-shadow: inset 0 0 0 1px rgba(41, 92, 132, 0.22);
		color: inherit !important;
		font: inherit;
		transition: background 0.15s, box-shadow 0.15s;
	}
	.swk-k-standort button.swk-variante:hover { background: linear-gradient(180deg, rgba(55,185,252,0.16), rgba(55,185,252,0.34)) !important; box-shadow: inset 0 0 0 2px var(--swk-blau); }
	.swk-k-standort button.swk-variante[aria-pressed="true"] { background: var(--swk-karte) !important; box-shadow: inset 0 0 0 3px var(--swk-gruen); }
	.swk-v-bild { display: block; min-height: 150px; background: #eef1f0; }
	.swk-v-bild img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; filter: saturate(0.45) opacity(0.85); transition: filter 0.15s; cursor: zoom-in; }
	.swk-variante:hover .swk-v-bild img, .swk-variante[aria-pressed="true"] .swk-v-bild img { filter: none; }
	.swk-v-bild .swk-imgph { min-height: 150px; height: 100%; }
	.swk-v-text { display: flex; flex-direction: column; padding: 14px 16px; gap: 6px; }
	.swk-v-text i { font-size: 0.85em; font-style: italic; }
	.swk-v-text small { margin-top: auto; font-weight: 600; color: #667; display: inline-flex; align-items: center; gap: 9px; }
	.swk-v-text small::before { content: ''; width: 17px; height: 17px; background: #fff; box-shadow: inset 0 0 0 2px #99a; }
	.swk-variante[aria-pressed="true"] .swk-v-text small { color: var(--swk-gruen); }
	.swk-variante[aria-pressed="true"] .swk-v-text small::before { box-shadow: inset 0 0 0 2px var(--swk-gruen), inset 0 0 0 5px #fff, inset 0 0 0 17px var(--swk-gruen); }

	.swk-radare { display: flex; flex-wrap: wrap; gap: 2px 26px; justify-content: center; }
	/* Radar-Grösse folgt der Fensterhöhe und dem Scroll-Fortschritt --swk-p (0 voll, 1 minimal). */
	.swk-radar { flex: 1 1 300px; min-width: 220px; max-width: calc( min(440px, 46vh) * (1 - var(--swk-p, 0)) + min(300px, 30vh) * var(--swk-p, 0) ); }
	.swk-radar h4 { text-align: center; color: var(--swk-blau); margin: 0 0 2px; }
	.swk-radar[data-gruppe="weitere"] h4 { color: var(--swk-gruen-dunkel); }
	.swk-radar svg { width: 100%; height: auto; overflow: visible; display: block; margin: 0 auto; }
	.swk-r-achse { font-size: 12px; fill: var(--swk-dunkelblau); }
	path.swk-r-spielraum { fill: #cfe0d2; opacity: 0.55; stroke: none; }
	polygon.swk-r-basis { fill: none; stroke: #6b7280; stroke-dasharray: 5 4; stroke-width: 1.6; }
	polygon.swk-r-konfig { fill: rgba(49, 155, 17, 0.16); stroke: var(--swk-gruen); stroke-width: 2.6; stroke-linejoin: round; }
	.swk-radar-legende { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 0.8em; margin: 2px 0 8px; }
	.swk-radar-legende i { display: inline-block; width: 16px; height: 8px; margin-right: 5px; vertical-align: middle; }
	.swk-l-spielraum { background: #cfe0d2; }
	.swk-l-basis { border-top: 2px dashed #656363; height: 0 !important; }
	.swk-l-konfig { background: var(--swk-gruen); }

	.swk-optionen { display: flex; flex-direction: column; gap: 9px; }
	.swk-optionen h4 { margin: 12px 0 4px; color: var(--swk-dunkelblau); }
	.swk-opt-acc { background: #fff; }
	.swk-opt-kopf {
		display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; cursor: pointer;
		background: var(--swk-karte); box-shadow: inset 4px 0 0 rgba(41, 92, 132, 0.28);
		transition: background 0.15s, box-shadow 0.15s;
	}
	.swk-opt-kopf:hover { background: linear-gradient(180deg, rgba(55,185,252,0.30), rgba(55,185,252,0.52)); box-shadow: inset 4px 0 0 var(--swk-gruen); }
	.swk-opt-acc.gewaehlt > .swk-opt-kopf { box-shadow: inset 4px 0 0 var(--swk-gruen); }
	.swk-opt-kopf input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; background: #fff; box-shadow: inset 0 0 0 2px #99a; cursor: pointer; }
	.swk-opt-kopf input:checked { box-shadow: inset 0 0 0 2px var(--swk-gruen), inset 0 0 0 6px #fff, inset 0 0 0 22px var(--swk-gruen); }
	.swk-opt-titel { flex: 1; font-size: 16.2px; line-height: 1.35; }
	.swk-opt-titel b { color: var(--swk-blau); }
	button.swk-opt-pfeil { border: 0; background: none; font: inherit; font-size: 46.8px; font-weight: 400; color: var(--swk-dunkelblau); cursor: pointer; line-height: 1; padding: 0 6px; margin: -8px 0; flex-shrink: 0; align-self: center; transition: transform 0.18s; }
	.swk-opt-acc.offen .swk-opt-pfeil { transform: rotate(90deg); }
	.swk-opt-vorlage { display: none !important; }
	.swk-opt-inhalt { display: none; border-top: 1px solid var(--swk-linie); padding: 13px; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
	.swk-opt-acc.offen .swk-opt-inhalt { display: grid; }
	.swk-opt-inhalt > figure { margin: 0; }
	.swk-opt-inhalt > figure img { width: 100%; height: auto; cursor: zoom-in; }
	.swk-opt-inhalt > .swk-opt-text:only-child { grid-column: 1 / -1; }
	.swk-opt-text { min-width: 0; font-size: 15.66px; }
	.swk-opt-text > :first-child { margin-top: 0; }
	.swk-opt-text > :last-child { margin-bottom: 0; }
	.swk-opt-text p { margin: 0 0 0.5em; }
	.swk-opt-text ul { margin: 0 0 0.5em; padding-left: 1.25em; list-style: disc; }
	.swk-opt-text ol { margin: 0 0 0.5em; padding-left: 1.25em; list-style: decimal; }
	.swk-opt-text li { margin: 0 0 0.25em; }
	.swk-opt-text strong, .swk-opt-text b { font-weight: 700; }
	.swk-opt-text .wp-block-image { margin: 0 0 0.6em; }
	.swk-opt-text img { width: auto; max-width: 100%; height: auto; display: block; cursor: zoom-in; }
	@media ( max-width: 700px ) { .swk-opt-acc.offen .swk-opt-inhalt { grid-template-columns: 1fr; } }
	.swk-chips { display: block; margin-top: 3px; }
	.swk-chip { display: inline-block; font-size: 0.72em; padding: 1px 7px; margin: 2px 4px 0 0; background: #eaf5e7; color: var(--swk-gruen-dunkel); }
	.swk-chip.minus { background: #fdecea; color: #a4271c; }
	.swk-chip.stumm { background: #eef1f0; color: var(--swk-muted); }
	.swk-chip-basis { display: inline-flex; align-items: center; gap: 6px; font-size: 13.32px; font-weight: 700; background: #eaf5e7; color: var(--swk-gruen); padding: 3px 9px 3px 8px; margin-left: 8px; }
	.swk-chip-basis::before { content: '✓'; font-size: 0.8em; }

	.swk-auswahl-sek { margin-top: 24px; }
	.swk-info-zeile {
		display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 20px; align-items: start;
		background: var(--swk-karte); padding: 14px; margin: 0 0 12px;
	}
	.swk-info-zeile img { width: 100%; height: auto; cursor: zoom-in; }
	.swk-info-zeile h4 { margin: 0 0 0.35em; color: var(--swk-gruen); font-size: 18px; }
	.swk-info-zeile p { margin: 0; font-size: 16.2px; }
	@media ( max-width: 760px ) { .swk-info-zeile { grid-template-columns: 1fr; } }

	.swk-dossier-sek { margin-top: 34px; border-top: 2px solid var(--swk-linie); padding-top: 16px; }
	.swk-dossier-sek[hidden] { display: none !important; }

	.swk-kopf-zeile { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
	.swk-kopf-zeile > h2, .swk-kopf-zeile > h3 { margin-bottom: 0.2em; }
	.swk-info-knopf { border: 0; background: none; padding: 2px; margin: 0; cursor: pointer; line-height: 0; color: var(--swk-gruen); flex-shrink: 0; align-self: center; }
	.swk-info-knopf svg { width: 21px; height: 21px; display: block; fill: currentColor; }
	.swk-info-knopf:hover, .swk-info-knopf[aria-expanded="true"] { color: var(--swk-dunkelblau); }
	.swk-minihint[hidden] { display: none !important; }

	.swk-rang-el { font-size: 14.04px; color: var(--swk-muted); }
	.swk-imgph {
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3bcc4' stroke-width='1.5'%3E%3Crect x='2.5' y='4' width='19' height='16' rx='2'/%3E%3Ccircle cx='8.6' cy='9.4' r='1.7'/%3E%3Cpath d='M4 17.5l4.9-4.6 3.4 3 3.7-4.2 4 5.4'/%3E%3C/svg%3E") center 42%/46px no-repeat,
			linear-gradient(to top right, transparent calc(50% - 0.7px), #dfe4e9 calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px)),
			linear-gradient(to bottom right, transparent calc(50% - 0.7px), #dfe4e9 calc(50% - 0.7px) calc(50% + 0.7px), transparent calc(50% + 0.7px)),
			#f4f6f8;
	}

	.swk-lightbox {
		position: fixed; inset: 0; background: rgba(15, 20, 22, 0.85); display: none;
		align-items: center; justify-content: center; z-index: 99; padding: 26px; cursor: zoom-out;
	}
	.swk-lightbox.offen { display: flex; }
	.swk-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 94vw; }
	.swk-lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55); cursor: zoom-out; }
	.swk-lightbox figcaption { color: #fff; font-size: 15.3px; text-align: center; opacity: 0.85; max-width: 80ch; }

	.swk-teil-inhalt img, .swk-intro-slot img, .swk-kopfbild img { cursor: zoom-in; }
	/* Anleitungs-Seite: Bild und Anleitungstext nebeneinander, Text im hellblauen Kasten. */
	.swk-anleitung-zeile { gap: 24px; margin-bottom: 30px; }
	.swk-anleitung-zeile figure.wp-block-image { margin: 0 0 14px; }
	/* Nie über die native Grösse vergrössern; schmalere Bilder mittig einpassen. */
	.swk-anleitung-zeile img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; box-shadow: 0 0 0 1px var(--swk-linie); }
	/* Der Kasten bleibt beim Scrollen neben dem Bild stehen (60px = Adminbar plus Luft). */
	.swk-anleitung-kasten { background: var(--swk-hellblau); color: var(--swk-dunkelblau); padding: 18px 20px; position: sticky; top: 60px; }
	@media ( max-width: 781px ) { .swk-anleitung-kasten { position: static; } }
	.swk-anleitung-kasten p, .swk-anleitung-kasten li { color: var(--swk-dunkelblau); }
	.swk-anleitung-kasten > :first-child { margin-top: 0; }
	.swk-anleitung-kasten > :last-child { margin-bottom: 0; }
	.swk-anleitung-kasten ol { margin: 0; padding-left: 22px; }
	.swk-anleitung-kasten li { margin-bottom: 0.5em; }

	.swk-syn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.swk-syn-col { background: var(--swk-karte); padding: 14px 16px; }
	.swk-syn-col h4 { color: var(--swk-gruen-dunkel); margin: 0 0 0.4em; }
	.swk-syn-col ul { margin: 0; }
	.swk-komb3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
	.swk-komb3-karte { background: var(--swk-karte); padding: 0 0 12px; }
	.swk-komb3-karte .swk-imgph { aspect-ratio: 16 / 10; min-height: 0; }
	.swk-komb3-karte h4 { margin: 12px 16px 6px; }
	.swk-komb3-karte p { margin: 0 16px 8px; font-size: 16.2px; }
	.swk-intro-slot :is( h3, h4 ):has( + ul ), .swk-teil-inhalt :is( h3, h4 ):has( + ul ) {
		margin-bottom: 7px !important;
		margin-block-end: 7px !important;
	}
	.swk-intro-slot :is( h3, h4 ) + ul, .swk-teil-inhalt :is( h3, h4 ) + ul {
		margin-top: 0 !important;
		margin-block-start: 0 !important;
	}

	.swk-kombis { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--swk-linie); }
	.swk-kombis h2 { margin: 0 0 12px; font-size: var(--swk-fs-gross); }
	.swk-komb-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.swk-komb-karte {
		overflow: hidden;
		background: var(--swk-karte);
	}
	.swk-komb-karte img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: center; display: block; cursor: zoom-in; }
	.swk-komb-ph {
		aspect-ratio: 16 / 10;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		padding: 10px;
		font-size: 14.76px;
		color: var(--swk-muted);
		text-align: center;
	}
	.swk-komb-text { padding: 12px 14px; }
	.swk-komb-text h3 { margin: 0 0 0.3em; font-size: 17.28px; }
	.swk-komb-text p { margin: 0 0 0.5em; font-size: 15.3px; color: var(--swk-muted); }
	.swk-komb-text a { font-size: 15.84px; }
}

/* Anleitung liegt nach dem Öffnen direkt am body, ausserhalb des Fragment-Containers. */
body.swk-anleitung-offen { overflow: hidden; }
.swk-anleitung {
	--swk-gruen: #319b11;
	--swk-dunkelblau: #173d6f;
	--swk-linie: #dde3e8;
	--swk-banner: linear-gradient(180deg, #6fd84f 0%, #7bd5fd 100%);
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	font-family: 'axia', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1f2328;
}
.swk-anleitung[hidden] { display: none !important; }
.swk-anleitung-schirm { position: absolute; inset: 0; background: rgba(23, 61, 111, 0.45); }
.swk-anleitung-fenster {
	position: relative;
	z-index: 1;
	width: min(1040px, 100%);
	max-height: min(720px, calc(100vh - 48px));
	overflow: auto;
	background: #fff;
	box-shadow: 0 18px 50px rgba(15, 30, 45, 0.28);
	padding: 0;
}
.swk-anleitung-fenster.eng {
	width: min(800px, 100%);
	padding: 36px 40px 32px;
}
.swk-anleitung-fenster.eng h3 {
	margin: 18px 0 6px;
	color: var(--swk-dunkelblau);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}
.swk-anleitung-fenster.eng .swk-anleitung-schritt p {
	margin: 0 0 0.7em;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
}
.swk-anleitung-fenster.eng .swk-anleitung-x { display: none; }
.swk-anleitung-fenster:not(.eng) {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	min-height: min(720px, calc(100vh - 48px));
}
.swk-anleitung-fenster:not(.eng) > .swk-anleitung-schritt {
	grid-area: 1 / 1;
	height: 100%;
	min-height: 0;
}
.swk-anleitung-fenster:not(.eng) > .swk-anleitung-schritt[hidden] {
	display: block !important;
	visibility: hidden;
	pointer-events: none;
	height: 0;
}
.swk-anleitung button.swk-anleitung-x {
	position: absolute;
	z-index: 3;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #173d6f !important;
	font-family: inherit;
	font-size: 28px !important;
	font-weight: 400 !important;
	line-height: 36px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	appearance: none;
}
.swk-anleitung-dach {
	margin: 0 0 8px;
	color: var(--swk-gruen);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.swk-anleitung h2 {
	margin: 0 0 12px;
	color: var(--swk-gruen);
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
}
.swk-anleitung-schritt[hidden] { display: none !important; }
.swk-anleitung-spalten {
	display: grid;
	grid-template-columns: minmax(240px, 340px) 1fr;
	gap: 28px;
	align-items: stretch;
	height: 100%;
}
.swk-anleitung-kopie {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 36px 0 32px 40px;
}
.swk-anleitung-kopie h2 { color: var(--swk-dunkelblau); font-size: 26px; }
.swk-anleitung-fortschritt { margin: 0; color: var(--swk-gruen); font-size: 14px; font-weight: 700; }
.swk-anleitung-balken { display: flex; gap: 6px; margin: 8px 0 16px; }
.swk-anleitung-balken span { width: 28px; height: 4px; background: #d5dde3; }
.swk-anleitung-balken span.voll { background: var(--swk-gruen); }
.swk-anleitung-aktionen {
	display: flex;
	gap: 10px;
	margin-top: 22px;
	padding-top: 0;
}
.swk-anleitung-kopie .swk-anleitung-aktionen {
	width: 100%;
	margin-top: auto;
	padding-top: 22px;
}
.swk-anleitung button.swk-anleitung-start,
.swk-anleitung button.swk-anleitung-still {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	text-align: center;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	padding: 12px 18px !important;
	cursor: pointer;
	appearance: none;
}
.swk-anleitung-kopie button.swk-anleitung-start,
.swk-anleitung-kopie button.swk-anleitung-still {
	flex: 1 1 0;
	min-width: 0;
}
.swk-anleitung-kopie button.swk-anleitung-start { flex-grow: 1.6; }
.swk-anleitung button.swk-anleitung-start {
	background: linear-gradient(180deg, #6fd84f 0%, #81d7ff 100%) !important;
	color: #173d6f !important;
}
.swk-anleitung button.swk-anleitung-still {
	background: #e7ecef !important;
	color: #173d6f !important;
}
.swk-anleitung-bild {
	margin: 0;
	padding: 36px 20px 32px;
	background: rgb(233, 238, 242);
	display: flex;
	align-items: center;
	justify-content: center;
}
.swk-anleitung-bild img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	background: none;
}
@media ( max-width: 781px ) {
	.swk-anleitung-fenster:not(.eng) { min-height: 0; }
	.swk-anleitung-fenster.eng { padding: 28px 18px 20px; }
	.swk-anleitung h2 { font-size: 26px; }
	.swk-anleitung-spalten { grid-template-columns: 1fr; }
	.swk-anleitung-kopie { padding: 28px 18px 12px; }
	.swk-anleitung-bild { padding: 18px 18px 20px; }
	.swk-anleitung-spalten { height: unset; }
}
