/* AMR Weltkarte */

.amr-wm {
	position: relative;
	margin-bottom: 1rem; /* Abstand zu den folgenden Blöcken; im Block unter „Abstand“ überschreibbar */
}

.amr-wm__stage {
	position: relative;
	width: 100%;
	line-height: 0;
	-webkit-user-select: none;
	user-select: none;
}

.amr-wm__canvas {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

/* Platzhalter während die Kartendaten laden (verhindert Layout-Sprünge). */
.amr-wm__stage.is-loading {
	aspect-ratio: 2 / 1;
	background: var(--amr-wm-ocean, #0a1f44);
}

.amr-wm__stage.is-loading[data-projection="globe"] {
	aspect-ratio: 1;
	max-width: 640px;
	margin: 0 auto;
	border-radius: 50%;
}

.amr-wm__stage.is-error {
	display: none;
}

.amr-wm__stage[data-projection="globe"] .amr-wm__canvas {
	cursor: grab;
	touch-action: pan-y;
}

.amr-wm__stage.is-dragging .amr-wm__canvas {
	cursor: grabbing;
}

/* Tooltip: schwarz, Cyan + Weiß, kantig und kompakt */
.amr-wm__tip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	max-width: 240px;
	padding: 6px 9px 7px;
	border-radius: 0;
	background: #000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	text-align: left;
	pointer-events: none;
}

.amr-wm__tip[hidden] {
	display: none;
}

.amr-wm .amr-wm__tip-name {
	display: block;
	color: var(--amr-wm-active, #009ee2);
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.amr-wm .amr-wm__tip.is-inactive .amr-wm__tip-name {
	color: #fff;
}

.amr-wm .amr-wm__tip-time {
	display: block;
	margin-top: 1px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
}

.amr-wm .amr-wm__tip-info {
	margin: 4px 0 0;
	padding: 4px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.amr-wm .amr-wm__tip-info div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.amr-wm .amr-wm__tip-info dt {
	margin: 0;
	color: #fff;
	font-weight: normal;
}

.amr-wm .amr-wm__tip-info dd {
	margin: 0;
	color: var(--amr-wm-active, #009ee2);
	font-weight: bold;
}

.amr-wm .amr-wm__tip-note {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
	white-space: pre-line;
}

/* Hinweis „Ziehen zum Drehen“ */
.amr-wm__hint {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	color: #8a9099;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	pointer-events: none;
	transition: opacity 0.4s;
}

.amr-wm__hint.is-hidden {
	opacity: 0;
}

.amr-wm__stage[data-projection="globe"] {
	padding-bottom: 22px;
}

/* Umschalter für Besucher: schwarz, kantig, aktive Option in Cyan */
.amr-wm__controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
}

.amr-wm--globe .amr-wm__controls {
	justify-content: center;
}

.amr-wm__views {
	display: flex;
	flex-wrap: wrap;
}

.amr-wm .amr-wm__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 0;
	background: #000;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.amr-wm .amr-wm__views .amr-wm__btn + .amr-wm__btn {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.amr-wm .amr-wm__btn:hover {
	color: var(--amr-wm-active, #009ee2);
}

.amr-wm .amr-wm__btn[aria-pressed="true"] {
	background: var(--amr-wm-active, #009ee2);
	color: #fff;
}

.amr-wm .amr-wm__btn:focus-visible {
	outline: 2px solid var(--amr-wm-active, #009ee2);
	outline-offset: 2px;
}

/* Halbmond-Symbol (halb gefüllter Kreis) für Tag/Nacht */
.amr-wm__icon {
	width: 10px;
	height: 10px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

/* Legende */
.amr-wm__legend {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 14px;
}

.amr-wm--globe .amr-wm__legend {
	justify-content: center;
}

.amr-wm__swatch {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: var(--amr-wm-active, #009ee2);
}

.amr-wm__count {
	color: inherit;
}

/* Legende für Zahlen-Datensätze: Farbverlauf mit Skala */
.amr-wm__legend--scale {
	flex-wrap: wrap;
	gap: 6px 16px;
}

.amr-wm__scale-title {
	flex: 1 1 100%;
}

.amr-wm__scale {
	position: relative;
	flex: 0 1 280px;
	padding-bottom: 16px;
}

.amr-wm__scale-bar {
	display: block;
	height: 10px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.amr-wm__scale-ticks span {
	position: absolute;
	top: 12px;
	color: inherit;
	font-size: 12px;
	line-height: 1;
	transform: translateX(-50%);
	white-space: nowrap;
}

.amr-wm__scale-ticks span:first-child {
	transform: none;
}

.amr-wm__scale-ticks span:last-child {
	transform: translateX(-100%);
}

.amr-wm__nodata {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	color: inherit;
	font-size: 12px;
}

.amr-wm__swatch--nodata {
	width: 10px;
	height: 10px;
	background: var(--amr-wm-inactive, #c3c8cf);
}

.amr-wm__source {
	margin: 6px 0 0;
	color: inherit;
	font-size: 12px;
	line-height: 1.4;
}

/* Nur für Screenreader/Suchmaschinen */
.amr-wm__list {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
}
