.ng-orte {
	--o-tinte: var(--ng-tinte, #23221f);
	--o-text: var(--ng-text, #45433e);
	--o-papier: var(--ng-papier, #f6f2eb);
	--o-linie: var(--ng-linie, #d9d3c7);
	--o-rot: var(--ng-rot, #bf1600);
	max-width: var(--ng-breite, 72rem);
	margin: 0 auto;
	padding: var(--ng-abschnitt, 3.25rem) var(--ng-rand, 1.25rem);
	box-sizing: border-box;
}

.ng-orte-intro {
	max-width: 42rem;
	color: var(--o-tinte);
	font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
	line-height: 1.5;
}

.ng-orte-hilfe,
.ng-orte-absatz {
	max-width: 42rem;
}

.ng-orte h2 {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.ng-orte h3 {
	margin-top: 2rem;
}

.ng-orte [hidden] {
	display: none !important;
}

/* Zeichenerklärung */
.ng-orte-filter {
	margin: 1.5rem 0 2.5rem;
	padding: 1.25rem;
	background: var(--o-papier);
}

.ng-orte-filter fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.ng-filter-raster {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.25rem 1.25rem;
}

.ng-orte-filter legend {
	margin-bottom: 0.5rem;
	padding: 0;
	color: var(--o-tinte);
	font-weight: 600;
}

.ng-filter {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: var(--o-text);
	font-size: 1rem;
	line-height: 1.25;
	cursor: pointer;
}

.ng-filter input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--o-rot);
}

.ng-filter input:focus-visible,
.ng-ort-eintrag:focus-visible,
.ng-ortskarte-sprung:focus-visible,
.ng-ort-marker:focus-visible {
	outline: 3px solid var(--o-tinte);
	outline-offset: 2px;
}

/* Symbole */
.ng-ort-symbol {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
}

.ng-ort-symbol-klein {
	width: 1.25rem;
	height: 1.25rem;
}

.ng-ort-form {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ng-ort-zahl {
	position: relative;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* Karten */
.ng-orte-oben {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 3rem;
}

.ng-orte-feld {
	margin-bottom: 2rem;
	scroll-margin-top: 1rem;
}

.ng-ortskarte-rahmen {
	overflow: visible;
}

.ng-ortskarte {
	position: relative;
	line-height: 0;
}

.ng-ortskarte img {
	display: block;
	width: 100%;
	height: auto;
}

.ng-ortskarte-sprung {
	position: absolute;
	display: block;
}

.ng-ortskarte-sprung:hover {
	background: rgba(191, 22, 0, 0.08);
}

.ng-ort-marker {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	margin: -0.75rem 0 0 -0.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 1;
}

.ng-ort-marker:hover,
.ng-ort-marker:focus {
	z-index: 4;
	background: transparent;
}

.ng-ort-marker .ng-ort-zahl {
	font-size: 0.75rem;
}

.ng-ort-marker.ng-kat-hauptort {
	width: 2rem;
	height: 2rem;
	margin: -1rem 0 0 -1rem;
	z-index: 3;
}

.ng-ort-marker:hover .ng-ort-form {
	transform: scale(1.2);
}

.ng-ort-marker.ist-aktiv {
	z-index: 5;
}

.ng-ort-marker.ist-aktiv .ng-ort-form {
	transform: scale(1.35);
	filter: drop-shadow(0 0 0 #000) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.ng-ort-blase {
	position: absolute;
	z-index: 6;
	width: max-content;
	max-width: min(18rem, 90%);
	padding: 0.5rem 0.75rem;
	background: var(--o-tinte);
	color: #fff;
	font-size: 1rem;
	line-height: 1.35;
	pointer-events: none;
}

.ng-ort-blase strong {
	color: #fff;
}

.ng-orte-wisch {
	display: none;
	font-size: 1rem;
}

/* Listen */
.ng-orte-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ng-ort-zeile {
	margin: 0;
}

.ng-ort-eintrag {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem;
	border: 0;
	border-left: 3px solid transparent;
	background: transparent;
	color: var(--o-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.ng-ort-eintrag:hover,
.ng-ort-eintrag:focus {
	background: var(--o-papier);
	color: var(--o-text);
}

.ng-ort-zeile.ist-aktiv .ng-ort-eintrag {
	border-left-color: var(--o-rot);
	background: var(--o-papier);
}

.ng-ort-text {
	flex: 1 1 auto;
	min-width: 0;
}

.ng-ort-name,
.ng-ort-beschreibung {
	display: block;
}

.ng-ort-name {
	color: var(--o-tinte);
	font-weight: 600;
}

.ng-ort-zeitraum {
	flex: none;
	max-width: 7.5rem;
	text-align: right;
}

.ng-orte-spalten {
	columns: 3;
	column-gap: 1.5rem;
}

.ng-orte-spalten .ng-ort-zeile {
	break-inside: avoid;
}

.ng-orte-breit {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.5rem;
}

.ng-orte-aufruf {
	margin-top: 3rem;
	padding: 1.5rem;
	background: var(--o-papier);
}

.ng-orte-aufruf p:last-child {
	margin-bottom: 0;
}

.ng-orte-zurueck {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 40;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 2px;
	background: var(--o-rot);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(35, 34, 31, 0.3);
}

.ng-orte-zurueck:hover,
.ng-orte-zurueck:focus {
	background: var(--ng-rot-dunkel, #8f1000);
	color: #fff;
}

.ng-orte-zurueck:focus-visible {
	outline: 3px solid var(--o-tinte);
	outline-offset: 2px;
}

.ng-orte-quelle {
	margin-top: 2rem;
	font-size: 0.9375rem;
}

@media (max-width: 1024px) {
	.ng-orte-oben {
		grid-template-columns: minmax(0, 1fr);
	}

	.ng-orte-spalten {
		columns: 2;
	}
}

/* Die Deutschlandkarte bleibt neben der langen Liste sichtbar. */
@media (min-width: 1025px) and (min-height: 800px) {
	.ng-orte-oben > .ng-orte-feld {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
	}
}

/* Die NRW-Karte behält ihre lesbare Größe und lässt sich verschieben. */
@media (max-width: 1040px) {
	.ng-ortskarte-rahmen-nrw {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ng-ortskarte-rahmen-nrw .ng-ortskarte {
		width: 1000px;
	}

	.ng-orte-wisch {
		display: block;
	}
}

@media (max-width: 767px) {
	.ng-filter-raster,
	.ng-orte-breit {
		grid-template-columns: minmax(0, 1fr);
	}

	.ng-orte-spalten {
		columns: 1;
	}

	.ng-ort-marker {
		width: 1.375rem;
		height: 1.375rem;
		margin: -0.6875rem 0 0 -0.6875rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ng-ort-form {
		transition: transform 0.12s ease;
	}
}
