/* =========================================================
   Aufzugsplaner – Werkzeugseite für Architekten
   Gestaltung: technischer Plan (Navy, feine Linien, Raster),
   Orange nur als Akzent für das Planungsmaß.
   ========================================================= */

.ap {
	--ap-tinte: var(--pa-navy, #11213e);
	--ap-linie: #d5dde8;
	--ap-raster: rgba(17, 33, 62, 0.055);
	--ap-raster-grob: rgba(17, 33, 62, 0.09);
	--ap-papier: #fbfcfe;
	--ap-akzent: var(--pa-orange, #eb8512);
	--ap-akzent-dunkel: var(--pa-orange-dunkel, #a85700);
	--ap-radius: 18px;
	color: var(--pa-text);
	font-variant-numeric: tabular-nums;
}

/* ---------- Kopf ---------- */

.ap-kopf {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
		radial-gradient(120% 140% at 85% -20%, #2a4d86 0%, #16294c 45%, #0d1a31 100%);
	color: #fff;
}
.ap-kopf::after {
	/* Schachtsilhouette als stilles Motiv */
	content: "";
	position: absolute;
	right: max(4vw, 32px);
	bottom: -40px;
	width: 220px;
	height: 300px;
	border: 2px solid rgba(255, 255, 255, 0.16);
	border-bottom: 0;
	background:
		linear-gradient(rgba(235, 133, 18, 0.9), rgba(235, 133, 18, 0.9)) 50% 62% / 120px 150px no-repeat,
		repeating-linear-gradient(0deg, transparent 0 99px, rgba(255, 255, 255, 0.16) 99px 100px);
	opacity: 0.55;
	pointer-events: none;
}
.ap-kopf-in {
	position: relative;
	z-index: 1;
	max-width: var(--pa-breite, 1260px);
	margin: 0 auto;
	padding: 72px var(--pa-rand, 32px) 64px;
}
.ap-dach {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: #ffb35c;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ap-dach::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}
.ap-titel {
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 5.6vw, 4.25rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1;
}
.ap-unter {
	max-width: 640px;
	margin: 20px 0 0;
	color: #c9d5e8;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.55;
}
.ap-fakten {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}
.ap-fakten li {
	display: grid;
	gap: 2px;
	padding-left: 16px;
	border-left: 2px solid rgba(235, 133, 18, 0.85);
}
.ap-fakten b {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
}
.ap-fakten span {
	color: #9fb0ca;
	font-size: 0.875rem;
}

/* ---------- Bühne: Eingabe + Zeichenblatt ---------- */

.ap-buehne {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
	gap: 28px;
	max-width: var(--pa-breite, 1260px);
	margin: -28px auto 0;
	padding: 0 var(--pa-rand, 32px);
	align-items: start;
}

.ap-eingabe {
	position: sticky;
	top: calc(var(--pa-kopf-hoehe, 78px) + 20px);
	display: grid;
	gap: 0;
	background: #fff;
	border: 1px solid var(--ap-linie);
	border-radius: var(--ap-radius);
	box-shadow: 0 30px 60px -30px rgba(17, 33, 62, 0.35), 0 2px 6px rgba(17, 33, 62, 0.04);
	overflow: hidden;
}
.ap-schritt {
	margin: 0;
	padding: 22px 24px;
	border: 0;
	border-top: 1px solid #edf1f6;
	min-width: 0;
}
.ap-schritt:first-child {
	border-top: 0;
}
.ap-schritt legend {
	float: left;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	color: var(--ap-tinte);
	font-size: 0.9375rem;
	font-weight: 700;
}
.ap-schritt legend + * {
	clear: both;
}
.ap-nr {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--ap-tinte);
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}
.ap.ist-homelift [data-ap-nur="aufzug"] {
	display: none;
}

/* Segmentschalter */
.ap-segment {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	padding: 4px;
	background: #eef2f7;
	border-radius: 12px;
}
.ap-segment + .ap-segment {
	margin-top: 10px;
}
.ap-segment label {
	position: relative;
	cursor: pointer;
}
.ap-segment input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ap-segment span {
	display: block;
	padding: 9px 10px;
	border-radius: 9px;
	color: #4a5568;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.ap-segment input:checked + span {
	background: #fff;
	color: var(--ap-tinte);
	box-shadow: 0 1px 2px rgba(17, 33, 62, 0.12), 0 4px 12px -6px rgba(17, 33, 62, 0.25);
}
.ap-segment input:focus-visible + span {
	outline: 2px solid var(--ap-tinte);
	outline-offset: 1px;
}
.ap-segment--klein span {
	padding: 7px 8px;
	font-size: 0.8125rem;
}

/* Kabinen-Kacheln */
.ap-kacheln {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.ap-kachel {
	position: relative;
	cursor: pointer;
}
.ap-kachel input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ap-kachel-in {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 10px 6px 9px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.ap-kachel-in svg {
	width: 34px;
	height: 34px;
	margin-bottom: 2px;
}
.ap-kachel-in svg rect {
	fill: #eef2f7;
	stroke: #8a97ab;
	stroke-width: 1.5;
	transition: fill 0.18s, stroke 0.18s;
}
.ap-kachel-in b {
	color: var(--ap-tinte);
	font-size: 0.875rem;
	line-height: 1.2;
}
.ap-kachel-in small {
	color: var(--pa-gedaempft);
	font-size: 0.6875rem;
	line-height: 1.25;
}
.ap-kachel:hover .ap-kachel-in {
	border-color: #b9c4d4;
}
.ap-kachel input:checked + .ap-kachel-in {
	border-color: var(--ap-tinte);
	background: #f3f6fb;
}
.ap-kachel input:checked + .ap-kachel-in svg rect {
	fill: var(--ap-akzent);
	stroke: var(--ap-akzent-dunkel);
}
.ap-kachel input:focus-visible + .ap-kachel-in {
	outline: 2px solid var(--ap-tinte);
	outline-offset: 2px;
}
.ap-hinweis {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f5f7fa;
	color: #4a5568;
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Felder */
.ap-feld {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}
.ap-feld:first-of-type {
	margin-top: 0;
}
.ap-feld > span:first-child {
	color: #4a5568;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
}
.ap-feld select,
.ap-zahlfeld input {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1.5px solid #dbe2eb;
	border-radius: 10px;
	background: #fff;
	color: var(--ap-tinte);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
}
.ap-feld select {
	appearance: none;
	padding-right: 36px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2311213e' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center no-repeat;
}
.ap-feld select:focus,
.ap-zahlfeld input:focus {
	border-color: var(--ap-tinte);
	outline: none;
	box-shadow: 0 0 0 3px rgba(17, 33, 62, 0.12);
}
.ap-zahlfeld {
	position: relative;
	display: block;
}
.ap-zahlfeld i {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--pa-gedaempft);
	font-size: 0.8125rem;
	font-style: normal;
	pointer-events: none;
}
.ap-zahlfeld input {
	padding-right: 30px;
}
.ap-felder2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}
.ap-felder2 .ap-feld {
	margin-top: 0;
}

/* Zeichenblatt */
.ap-blatt {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 560px;
	border: 1px solid var(--ap-linie);
	border-radius: var(--ap-radius);
	background:
		linear-gradient(var(--ap-raster) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(90deg, var(--ap-raster) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(var(--ap-raster-grob) 1px, transparent 1px) 0 0 / 80px 80px,
		linear-gradient(90deg, var(--ap-raster-grob) 1px, transparent 1px) 0 0 / 80px 80px,
		var(--ap-papier);
	box-shadow: 0 30px 60px -32px rgba(17, 33, 62, 0.35), 0 2px 6px rgba(17, 33, 62, 0.04);
	overflow: hidden;
}
.ap-blatt-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 0;
}
.ap-tabs {
	display: inline-flex;
	padding: 4px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--ap-linie);
	border-radius: 12px;
	backdrop-filter: blur(4px);
}
.ap-tabs button {
	padding: 7px 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #4a5568;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}
.ap-tabs button[aria-selected="true"] {
	background: var(--ap-tinte);
	color: #fff;
}
.ap-massstab {
	color: var(--pa-gedaempft);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ap-zeichnung {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 8px 18px;
	min-height: 420px;
}
.ap-svg {
	display: none;
	width: 100%;
	max-height: 560px;
	overflow: visible;
}
.ap-svg.ist-aktiv {
	display: block;
	animation: ap-ein 0.35s ease-out;
}
@keyframes ap-ein {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-svg.ist-aktiv {
		animation: none;
	}
}

/* Zeichnungselemente: Strichstärken in Pixeln, unabhängig vom Maßstab */
.ap-svg line,
.ap-svg rect,
.ap-svg path {
	vector-effect: non-scaling-stroke;
}
.ap-z-schacht {
	fill: #fff;
	stroke: var(--ap-tinte);
	stroke-width: 2.25;
}
.ap-z-wand {
	stroke: var(--ap-tinte);
	stroke-width: 1.25;
}
.ap-z-innen {
	stroke: var(--ap-tinte);
	stroke-width: 2.25;
}
.ap-z-schraffur {
	stroke: #a3b0c2;
	stroke-width: 0.9;
}
.ap-z-oeffnung {
	fill: #fff;
	stroke: none;
}
.ap-z-pfeil {
	fill: none;
	stroke: #8a97ab;
	stroke-width: 1.2;
	stroke-dasharray: 5 4;
}
.ap-z-kabine {
	fill: rgba(235, 133, 18, 0.1);
	stroke: var(--ap-akzent-dunkel);
	stroke-width: 2;
}
.ap-z-kreuz {
	stroke: rgba(168, 87, 0, 0.3);
	stroke-width: 1;
}
.ap-z-tuer {
	fill: var(--ap-tinte);
	opacity: 0.22;
}
.ap-z-decke {
	stroke: var(--ap-tinte);
	stroke-width: 4;
	stroke-linecap: round;
}
.ap-z-bruch {
	fill: none;
	stroke: var(--ap-tinte);
	stroke-width: 1.4;
	stroke-linejoin: round;
}
.ap-z-mass line {
	stroke: #5f6a7c;
	stroke-width: 1.1;
}
.ap-z-masstext,
.ap-z-text,
.ap-z-label,
.ap-z-wert,
.ap-z-klein {
	font-family: var(--pa-schrift);
	fill: var(--ap-tinte);
}
.ap-z-masstext {
	font-size: 104px;
	font-weight: 700;
}
.ap-z-label {
	font-size: 90px;
	font-weight: 700;
	fill: var(--ap-akzent-dunkel);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.ap-z-wert {
	font-size: 120px;
	font-weight: 800;
}
.ap-z-klein {
	font-size: 92px;
	font-weight: 600;
	fill: #5f6a7c;
}

.ap-leer {
	max-width: 440px;
	padding: 28px;
	border: 1px dashed #b9c4d4;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.85);
	text-align: center;
}
.ap-leer b {
	color: var(--ap-tinte);
	font-size: 1.125rem;
}
.ap-leer p {
	margin: 8px 0 0;
	font-size: 0.9375rem;
}

/* Plankopf wie auf einem Bauplan */
.ap-plankopf {
	display: grid;
	grid-template-columns: 1.1fr 1.6fr 1.2fr;
	margin: 0 18px 18px;
	border: 1.5px solid var(--ap-tinte);
	border-radius: 4px;
	background: #fff;
}
.ap-plankopf div {
	display: grid;
	gap: 1px;
	padding: 8px 12px;
	border-left: 1px solid var(--ap-tinte);
	min-width: 0;
}
.ap-plankopf div:first-child {
	border-left: 0;
}
.ap-plankopf small {
	color: var(--pa-gedaempft);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ap-plankopf b {
	overflow: hidden;
	color: var(--ap-tinte);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Ergebnisleiste ---------- */

.ap-ergebnis {
	max-width: var(--pa-breite, 1260px);
	margin: 28px auto 0;
	padding: 0 var(--pa-rand, 32px);
}
.ap-ergebnis-in {
	display: grid;
	gap: 18px;
	padding: 22px;
	border-radius: var(--ap-radius);
	background: var(--ap-tinte);
	box-shadow: 0 30px 60px -30px rgba(17, 33, 62, 0.55);
}
.ap-kennzahlen {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
	gap: 1px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}
.ap-kz {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 18px 20px;
	background: #142a4e;
}
.ap-kz small {
	color: #9fb0ca;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ap-kz b {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.ap-kz span {
	color: #c9d5e8;
	font-size: 0.8125rem;
}
.ap-kz--haupt {
	background: linear-gradient(135deg, #1d3a6b, #142a4e);
}
.ap-kz--haupt b {
	color: #ffb35c;
	font-size: clamp(2rem, 3.4vw, 2.75rem);
}
.ap-aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ap-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 20px;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.ap-knopf:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.ap-knopf--voll {
	border-color: var(--ap-akzent);
	background: var(--ap-akzent);
	color: #1a1205;
}
.ap-knopf--voll:hover {
	border-color: #ffa53d;
	background: #ffa53d;
}
.ap-knopf--leise {
	border-color: transparent;
	color: #c9d5e8;
}
.ap-knopf:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.ap-knopf--voll::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 13.5h12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.ap-tiefe {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	max-width: var(--pa-breite, 1260px);
	margin: 28px auto 0;
	padding: 0 var(--pa-rand, 32px);
}
.ap-karte {
	grid-column: span 12;
	padding: 28px;
	border: 1px solid var(--ap-linie);
	border-radius: var(--ap-radius);
	background: #fff;
}
.ap-karte--lbo {
	grid-column: span 5;
}
.ap-karte--vergleich {
	grid-column: span 7;
}
.ap-karte h2 {
	margin: 0 0 6px;
	color: var(--ap-tinte);
	font-size: 1.375rem;
	letter-spacing: -0.01em;
}
.ap-lead {
	margin: 0 0 18px;
	color: var(--pa-gedaempft);
	font-size: 0.9375rem;
}
.ap-klein {
	margin: 14px 0 0;
	color: var(--pa-gedaempft);
	font-size: 0.8125rem;
	line-height: 1.55;
}

/* Landesbauordnung */
.ap-lbo-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}
.ap-lbo-kopf h2 {
	margin: 0;
}
.ap-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 800;
}
.ap-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.ap-status--pflicht {
	background: #fff3e6;
	color: #a85700;
}
.ap-status--frei {
	background: #e9f6ef;
	color: #1e7a4c;
}
.ap-lbo-liste {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid #edf1f6;
}
.ap-lbo-liste div {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #edf1f6;
}
.ap-lbo-liste dt {
	color: var(--pa-gedaempft);
	font-size: 0.8125rem;
	font-weight: 600;
}
.ap-lbo-liste dd {
	margin: 0;
	color: var(--ap-tinte);
	font-size: 0.9375rem;
	font-weight: 600;
}
.ap-check {
	margin: 16px 0 0;
	padding: 12px 14px 12px 42px;
	border-radius: 12px;
	background: #f5f7fa;
	font-size: 0.9375rem;
	position: relative;
}
.ap-check::before {
	content: "i";
	position: absolute;
	left: 14px;
	top: 13px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #8a97ab;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
}
.ap-check--ok {
	background: #e9f6ef;
	color: #14532d;
}
.ap-check--ok::before {
	content: "✓";
	background: #1e7a4c;
}
.ap-check--warn {
	background: #fff3e6;
	color: #6b3600;
}
.ap-check--warn::before {
	content: "!";
	background: #c26a07;
}
.ap-lbo-ausnahme {
	margin: 12px 0 0;
	font-size: 0.875rem;
}

/* Vergleichsdiagramm */
.ap-dia-raster {
	display: grid;
	gap: 26px;
}
.ap-dia h3 {
	margin: 0 0 10px;
	color: var(--ap-tinte);
	font-size: 0.9375rem;
}
.ap-dia-flaeche {
	position: relative;
	display: grid;
	gap: 6px;
}
.ap-dia-zeile {
	display: grid;
	grid-template-columns: 150px 1fr 92px;
	align-items: center;
	gap: 12px;
	font-size: 0.8125rem;
}
.ap-dia-name {
	overflow: hidden;
	color: var(--ap-tinte);
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ap-dia-name em {
	color: var(--pa-gedaempft);
	font-style: normal;
	font-weight: 500;
}
.ap-dia-spur {
	position: relative;
	height: 12px;
	border-radius: 6px;
	background: repeating-linear-gradient(90deg, #eef2f7 0 2px, transparent 2px 10%) , #f5f7fa;
}
.ap-dia-balken {
	position: absolute;
	top: 1px;
	bottom: 1px;
	min-width: 10px;
	border-radius: 6px;
	background: var(--ap-tinte);
	transition: left 0.35s ease, width 0.35s ease;
}
.ist-sonder .ap-dia-balken {
	background: #9aa8bd;
}
.ap-dia-wert {
	color: #4a5568;
	font-weight: 600;
	text-align: right;
}
.ap-dia-ueber {
	position: absolute;
	inset: -8px 0 -6px;
	z-index: 1;
	display: grid;
	grid-template-columns: 150px 1fr 92px;
	gap: 12px;
	pointer-events: none;
}
.ap-dia-ueber-spur {
	position: relative;
}
.ap-dia-env {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 2px solid var(--ap-akzent);
}
.ap-dia-env i {
	position: absolute;
	top: -20px;
	left: -1px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--ap-akzent);
	color: #1a1205;
	font-size: 0.6875rem;
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
	transform: translateX(-50%);
}
.ap-dia h3 {
	margin-bottom: 26px !important;
}
.ap-dia-achse {
	display: flex;
	justify-content: space-between;
	margin: 6px 92px 0 162px;
	color: #8a97ab;
	font-size: 0.6875rem;
}

/* Tabelle */
.ap-tab-rahmen {
	overflow-x: auto;
	margin-top: 14px;
	border: 1px solid #edf1f6;
	border-radius: 12px;
}
.ap-tab {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}
.ap-tab th,
.ap-tab td {
	padding: 11px 14px;
	border-bottom: 1px solid #edf1f6;
	text-align: left;
	vertical-align: top;
}
.ap-tab thead th {
	background: #f5f7fa;
	color: #4a5568;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ap-tab tbody th {
	color: var(--ap-tinte);
	font-weight: 700;
	min-width: 190px;
}
.ap-tab tbody th em {
	color: var(--pa-gedaempft);
	font-style: normal;
	font-weight: 500;
}
.ap-tab small {
	display: block;
	margin-top: 2px;
	color: var(--pa-gedaempft);
	font-size: 0.75rem;
	font-weight: 400;
}
.ap-tab td {
	color: var(--ap-tinte);
	font-weight: 600;
	white-space: nowrap;
}
.ap-tab tr.ist-sonder td,
.ap-tab tr.ist-sonder th {
	background: #fafbfc;
	color: #8a97ab;
}
.ap-tab tbody tr:last-child > * {
	border-bottom: 0;
}
.ap-quelle {
	display: inline-flex;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 6px;
	background: #eef2f7;
	color: var(--ap-tinte);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ap-quelle span {
	color: var(--pa-gedaempft);
	font-weight: 500;
}
.ap-quelle:hover {
	background: var(--ap-tinte);
	color: #fff;
}
.ap-quelle:hover span {
	color: #c9d5e8;
}

/* Wissen + Quellen */
.ap-wissen {
	display: grid;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.ap-wissen > li {
	padding: 14px 16px;
	border-radius: 12px;
	background: #f5f7fa;
	font-size: 0.9375rem;
	line-height: 1.55;
}
.ap-wissen b {
	color: var(--ap-tinte);
}
.ap-wissen ul {
	margin: 8px 0 0;
	padding-left: 18px;
}
.ap-wissen ul li {
	margin-top: 4px;
	font-size: 0.875rem;
}
.ap-quellen {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 6px 28px;
	margin: 0;
	padding-left: 22px;
	font-size: 0.875rem;
}
.ap-quellen li::marker {
	color: var(--pa-gedaempft);
	font-weight: 700;
}
.ap-quellen a {
	color: var(--ap-tinte);
	font-weight: 600;
}
.ap-quellen span {
	color: var(--pa-gedaempft);
}
.ap-stand {
	margin: 18px 0 0;
	color: var(--pa-gedaempft);
	font-size: 0.8125rem;
}

/* Aufruf */
.ap-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	max-width: calc(var(--pa-breite, 1260px) - 2 * var(--pa-rand, 32px));
	margin: 28px auto 72px;
	padding: 26px 30px;
	border-radius: var(--ap-radius);
	background: var(--pa-orange-hauch, #fff3e6);
}
.ap-cta h2 {
	margin: 0;
	color: var(--ap-tinte);
	font-size: 1.25rem;
}
.ap-cta p {
	margin: 4px 0 0;
	font-size: 0.9375rem;
}
.ap-knopf--orange {
	border-color: var(--ap-tinte);
	background: var(--ap-tinte);
	color: #fff;
}
.ap-knopf--orange:hover {
	background: #1c3560;
}
.ap-noscript {
	max-width: var(--pa-breite, 1260px);
	margin: 24px auto;
	padding: 0 var(--pa-rand, 32px);
}

/* Laden: kurzes Einblenden */
.ap:not(.ist-bereit) .ap-buehne,
.ap:not(.ist-bereit) .ap-ergebnis,
.ap:not(.ist-bereit) .ap-tiefe {
	opacity: 0;
}
.ap-buehne,
.ap-ergebnis,
.ap-tiefe {
	transition: opacity 0.4s ease;
}

/* ---------- Responsiv ---------- */

@media (max-width: 1080px) {
	.ap-buehne {
		grid-template-columns: 1fr;
	}
	.ap-eingabe {
		position: static;
	}
	.ap-kennzahlen {
		grid-template-columns: 1fr 1fr;
	}
	.ap-kz--haupt {
		grid-column: span 2;
	}
	.ap-karte--lbo,
	.ap-karte--vergleich {
		grid-column: span 12;
	}
}
@media (max-width: 640px) {
	.ap-kopf-in {
		padding: 48px 16px 52px;
	}
	.ap-kopf::after {
		display: none;
	}
	.ap-buehne,
	.ap-ergebnis,
	.ap-tiefe {
		padding: 0 16px;
	}
	.ap-schritt {
		padding: 18px 16px;
	}
	.ap-blatt {
		min-height: 0;
	}
	.ap-zeichnung {
		min-height: 300px;
		padding: 4px 8px;
	}
	.ap-plankopf {
		grid-template-columns: 1fr;
		margin: 0 12px 12px;
	}
	.ap-plankopf div {
		border-left: 0;
		border-top: 1px solid var(--ap-tinte);
	}
	.ap-plankopf div:first-child {
		border-top: 0;
	}
	.ap-kennzahlen {
		grid-template-columns: 1fr;
	}
	.ap-kz--haupt {
		grid-column: auto;
	}
	.ap-karte {
		padding: 20px 16px;
	}
	.ap-dia-zeile {
		grid-template-columns: 1fr 70px;
		gap: 4px 10px;
	}
	.ap-dia-name {
		grid-column: 1 / -1;
	}
	.ap-dia-ueber {
		display: none;
	}
	.ap-dia-achse {
		margin: 6px 80px 0 0;
	}
	.ap-cta {
		margin: 24px 16px 56px;
		padding: 22px 18px;
	}
	.ap-knopf {
		flex: 1 1 auto;
	}
}

/* ---------- Druck: Planungsblatt ---------- */

@media print {
	@page {
		size: A4;
		margin: 14mm;
	}
	body > *:not(main):not(#seite):not(.pa-seite),
	header.pa-kopf,
	footer,
	.pa-fuss,
	.pa-mobilleiste,
	.ap-eingabe,
	.ap-tabs,
	.ap-aktionen,
	.ap-cta,
	.ap-karte--vergleich,
	.ap-fakten,
	.ap-kopf::after {
		display: none !important;
	}
	.ap-kopf {
		background: none !important;
		color: var(--ap-tinte);
	}
	.ap-kopf-in {
		padding: 0 0 8mm;
	}
	.ap-titel {
		color: var(--ap-tinte);
		font-size: 22pt;
	}
	.ap-dach,
	.ap-unter {
		color: #4a5568;
		font-size: 9pt;
	}
	.ap-buehne,
	.ap-ergebnis,
	.ap-tiefe {
		display: block;
		margin: 0;
		padding: 0;
		opacity: 1 !important;
	}
	.ap-blatt {
		min-height: 0;
		box-shadow: none;
		break-inside: avoid;
	}
	.ap-zeichnung {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6mm;
		min-height: 0;
	}
	.ap-svg {
		display: block !important;
		max-height: 120mm;
	}
	.ap-ergebnis-in {
		margin-top: 6mm;
		box-shadow: none;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.ap-karte {
		margin-top: 6mm;
		padding: 0;
		border: 0;
		break-inside: avoid;
	}
	.ap-tab {
		font-size: 8pt;
	}
	.ap-quelle span,
	.ap-quelle {
		background: none;
	}
}

/* Verbindlichkeit, Hilfetexte, Nutzungshinweise */
.ap-verbindlich {
	margin: -4px 2px 0;
	color: #c9d5e8;
	font-size: 0.8125rem;
	line-height: 1.5;
}
.ap-feldhilfe {
	color: var(--pa-gedaempft);
	font-size: 0.75rem;
	line-height: 1.45;
}
.ap-lbo-erklaerung {
	margin: 14px 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}
.ap-knopf--link {
	margin-left: auto;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ap-karte--nutzung summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	list-style: none;
}
.ap-karte--nutzung summary::-webkit-details-marker {
	display: none;
}
.ap-karte--nutzung summary h2 {
	margin: 0;
}
.ap-karte--nutzung summary::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--ap-tinte);
	border-bottom: 2px solid var(--ap-tinte);
	transform: rotate(45deg) translateY(-4px);
	transition: transform 0.2s;
}
.ap-karte--nutzung[open] summary::after {
	transform: rotate(-135deg) translateY(-2px);
}
.ap-nutzung {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
	padding-left: 22px;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.ap-druckfuss {
	display: none;
}
@media print {
	.ap-druckfuss {
		display: block;
		margin: 6mm 0 0;
		padding-top: 3mm;
		border-top: 0.5pt solid #999;
		color: #333;
		font-size: 7.5pt;
		line-height: 1.4;
	}
	.ap-verbindlich {
		color: #333;
	}
	.ap-feldhilfe {
		display: none;
	}
}
@media (max-width: 640px) {
	.ap-knopf--link {
		margin-left: 0;
	}
}
