.ahl {
	--ahl-pink: #e63587;
	--ahl-gruen: #08e099;
	--ahl-dunkel: #141414;
	--ahl-hell: #f0efed;
	--ahl-scroll-offset: 16px;
	font-family: inherit;
	color: var(--ahl-dunkel);
	line-height: 1.4;
}

.ahl *,
.ahl *::before,
.ahl *::after {
	box-sizing: border-box;
}

.ahl + .ahl {
	margin-top: 24px;
}

.ahl-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.ahl-tabs[hidden] {
	display: none;
}

.ahl-kopf {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 10px;
}

.ahl-kopf .ahl-tabs--haus {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.ahl-alle-text {
	text-box: trim-both cap alphabetic;
}

.ahl-alle-symbol {
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../icons/expand_more.svg") center / contain no-repeat;
	mask: url("../icons/expand_more.svg") center / contain no-repeat;
	transition: transform 0.2s;
}

.ahl-alle-knopf[aria-expanded="true"] .ahl-alle-symbol {
	transform: rotate(180deg);
}

.ahl-alle {
	margin: 0 0 16px;
	padding: 10px 0 0;
}

.ahl-alle[hidden],
.ahl-liste[hidden] {
	display: none;
}

.ahl .ahl-alle .ahl-liste {
	margin-top: 0;
}

.ahl .ahl-tab {
	appearance: none;
	margin: 0;
	padding: 7px 16px;
	border: 2px solid var(--ahl-tab-farbe, var(--ahl-dunkel));
	border-radius: 999px;
	background: #fff;
	color: var(--ahl-dunkel);
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.ahl .ahl-tab:hover {
	background: var(--ahl-hell);
}

.ahl .ahl-tab[aria-pressed="true"] {
	background: var(--ahl-tab-farbe, var(--ahl-dunkel));
	color: var(--ahl-tab-text, #fff);
}

.ahl-tabs--stockwerk .ahl-tab {
	padding: 4px 12px;
	font-size: 13px;
	border-width: 1.5px;
}

.ahl .ahl-tabs--stockwerk .ahl-tab[aria-pressed="true"] {
	background: var(--ahl-tab-farbe, var(--ahl-pink));
	border-color: var(--ahl-tab-farbe, var(--ahl-pink));
	color: var(--ahl-tab-text, #fff);
}

.ahl .ahl-alle-knopf {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: calc(1.2em + 18px);
	margin-left: auto;
	padding-top: 0;
	padding-right: 11px;
	padding-bottom: 0;
}

.ahl .ahl-alle-knopf[aria-expanded="true"],
.ahl .ahl-alle-knopf[aria-expanded="true"]:hover {
	background: var(--ahl-dunkel);
	color: #fff;
}

.ahl .ahl-tab:focus-visible,
.ahl .ahl-punkt:focus-visible,
.ahl .ahl-link:focus-visible,
.ahl .ahl-beruf:focus-visible {
	outline: 3px solid var(--ahl-gruen);
	outline-offset: 2px;
}

.ahl-rahmen {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 5 / 3;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
}

.ahl-karte:not(.is-mobil) .ahl-rahmen {
	max-height: max(320px, calc(100vh - 220px));
}

.ahl-buehne {
	position: absolute;
	transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.ahl-bild {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	user-select: none;
	-webkit-user-drag: none;
}

.ahl-plan-svg {
	position: absolute;
	inset: 0;
	display: none;
}

.ahl-karte.is-gesamt.hat-plan-svg .ahl-plan-svg {
	display: block;
}

.ahl-karte.is-gesamt.hat-plan-svg .ahl-bild {
	visibility: hidden;
}

.ahl-plan-svg [fill] {
	transition: fill 0.15s;
}

.ahl-flaechen {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ahl-flaeche {
	fill: transparent;
	stroke: transparent;
	stroke-width: 0.3;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	transition: fill 0.15s;
}

.ahl-flaeche:hover,
.ahl-flaeche:focus-visible {
	fill: rgba(0, 0, 0, 0.14);
	outline: none;
}

.ahl-flaeche:focus-visible {
	stroke: var(--ahl-dunkel);
	stroke-width: 2;
}

.ahl-flaeche.hat-form:hover,
.ahl-flaeche.hat-form:focus-visible {
	fill: transparent;
}

.ahl .ahl-zurueck {
	position: absolute;
	z-index: 4;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 13px 6px 10px;
	border: 2px solid var(--ahl-dunkel);
	border-radius: 999px;
	background: #fff;
	color: var(--ahl-dunkel);
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.ahl .ahl-zurueck[hidden] {
	display: none;
}

.ahl .ahl-zurueck:hover {
	background: var(--ahl-hell);
}

.ahl .ahl-zurueck:focus-visible {
	outline: 3px solid var(--ahl-gruen);
	outline-offset: 2px;
}

.ahl-zurueck-symbol {
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../icons/arrow_back.svg") center / contain no-repeat;
	mask: url("../icons/arrow_back.svg") center / contain no-repeat;
}

.ahl-zurueck-text {
	text-box: trim-both cap alphabetic;
}

.ahl-zurueck-symbol--schliessen {
	-webkit-mask-image: url("../icons/close.svg");
	mask-image: url("../icons/close.svg");
}

.ahl .ahl-punkt {
	--ahl-farbe: var(--ahl-pink);
	position: absolute;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s;
}

.ahl .ahl-punkt::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--ahl-farbe);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 1px 5px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s;
}

.ahl .ahl-punkt:hover::after {
	transform: scale(1.2);
}

.ahl .ahl-punkt.is-aktiv {
	z-index: 2;
}

.ahl .ahl-punkt.is-aktiv::after {
	transform: scale(1.45);
}

.ahl .ahl-punkt.is-aktiv::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border-radius: 50%;
	background: var(--ahl-farbe);
	opacity: 0.5;
	animation: ahl-puls 1.6s ease-out infinite;
}

.ahl .ahl-punkt.is-gedimmt {
	opacity: 0.35;
}

@keyframes ahl-puls {
	from { transform: scale(1); opacity: 0.5; }
	to { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ahl-buehne,
	.ahl .ahl-punkt::after,
	.ahl-alle-symbol {
		transition: none;
	}

	.ahl .ahl-punkt.is-aktiv::before {
		animation: none;
	}
}

.ahl-modal {
	--ahl-pfeil-x: 50%;
	position: absolute;
	z-index: 5;
	width: 260px;
	max-width: calc(100% - 16px);
	border: 2px solid var(--ahl-dunkel);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.ahl-modal[hidden] {
	display: none;
}

.ahl-modal::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: var(--ahl-pfeil-x);
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-right: 2px solid var(--ahl-dunkel);
	border-bottom: 2px solid var(--ahl-dunkel);
	background: #fff;
	transform: rotate(45deg);
}

.ahl-modal--ohne-text::after {
	background: var(--ahl-modal-kopf, #fff);
}

.ahl-modal--ohne-text .ahl-modal-titel {
	border-bottom: 0;
	border-radius: 4px;
}

.ahl-modal--unten::after {
	top: -8px;
	bottom: auto;
	border: 0;
	border-top: 2px solid var(--ahl-dunkel);
	border-left: 2px solid var(--ahl-dunkel);
	background: var(--ahl-modal-kopf, #fff);
}

.ahl .ahl-modal-titel {
	margin: 0;
	padding: 6px 10px;
	border-bottom: 2px solid var(--ahl-dunkel);
	border-radius: 4px 4px 0 0;
	font: inherit;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ahl .ahl-modal-text {
	overflow: hidden;
	margin: 0;
	padding: 8px 10px 10px;
	font-size: 14px;
	line-height: 1.45;
}

.ahl .ahl-modal-text[hidden] {
	display: none;
}

.ahl .ahl-hinweis {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 10px 0 0;
	padding: 9px 14px;
	border-radius: 6px;
	background: var(--ahl-hell);
	font-size: 15px;
}

.ahl .ahl-hinweis[hidden] {
	display: none;
}

.ahl-hinweis-position {
	font-weight: 900;
}

.ahl .ahl-link {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ahl-dunkel);
	font: inherit;
	font-weight: 900;
	text-decoration: underline;
	text-decoration-color: var(--ahl-gruen);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	cursor: pointer;
}

@media (max-width: 699px) {
	.ahl-tabs--haus {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ahl-tabs--haus::-webkit-scrollbar {
		display: none;
	}

	.ahl-tabs--haus.kann-rechts {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
	}

	.ahl-tabs--haus.kann-links {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 56px);
		mask-image: linear-gradient(to right, transparent, #000 56px);
	}

	.ahl-tabs--haus.kann-links.kann-rechts {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
	}

	.ahl .ahl-zurueck {
		top: 8px;
		left: 8px;
		padding: 5px 11px 5px 9px;
		font-size: 13px;
	}

	.ahl .ahl-tab {
		font-size: 14px;
		padding: 6px 13px;
	}

	.ahl-kopf {
		flex-wrap: wrap;
	}

	.ahl-kopf .ahl-tabs--haus {
		flex-basis: 100%;
	}

	.ahl .ahl-alle-knopf {
		justify-content: center;
		width: 100%;
		height: calc(1.2em + 16px);
		margin-left: 0;
		padding-right: 13px;
	}
}

.ahl-liste {
	container-type: inline-size;
	margin-top: 28px;
}

.ahl-karte + .ahl-liste {
	margin-top: 32px;
}

.ahl-liste-leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 12px;
}

.ahl-umschalter {
	display: flex;
	gap: 6px;
}

.ahl .ahl-umschalter .ahl-tab {
	padding: 4px 12px;
	border-width: 1.5px;
	font-size: 13px;
}

.ahl .ahl-liste-kopf {
	margin: 0;
	font: inherit;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.25;
}

.ahl-liste-spalten {
	columns: 1;
	column-gap: 28px;
}

@container (min-width: 600px) {
	.ahl-liste-spalten {
		columns: 2;
	}
}

@container (min-width: 900px) {
	.ahl-liste-spalten {
		columns: 3;
	}
}

.ahl-gruppe {
	break-inside: avoid;
	padding-bottom: 10px;
}

.ahl .ahl-buchstabe {
	margin: 0 0 4px;
	color: var(--ahl-pink);
	font: inherit;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: normal;
	text-transform: none;
}

.ahl .ahl-gruppe-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahl .ahl-gruppe-liste li {
	margin: 0;
	padding: 0;
}

.ahl .ahl-beruf {
	appearance: none;
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 5px 8px;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--ahl-dunkel);
	font: inherit;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
}

.ahl button.ahl-beruf,
.ahl a.ahl-beruf {
	cursor: pointer;
}

.ahl button.ahl-beruf:hover,
.ahl a.ahl-beruf:hover {
	background: var(--ahl-hell);
}

.ahl .ahl-beruf.is-aktiv,
.ahl .ahl-beruf.is-aktiv:hover {
	background: var(--ahl-dunkel);
	color: #fff;
	font-weight: 900;
}

.ahl .ahl-beruf-name {
	min-width: 0;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ahl .ahl-beruf-farbe {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d5d5d5;
	transform: translateY(-1px);
}

.ahl .ahl-beruf.is-ohne-standort {
	color: #777;
}

.ahl .ahl-beruf.is-ohne-standort .ahl-beruf-farbe {
	background: #d5d5d5 !important;
}

.ahl .ahl-beruf-folgt {
	flex: none;
	margin-left: auto;
	font-size: 12px;
	white-space: nowrap;
}
