
.schuebel-postcode-map {
	font-family: Arial, Helvetica, sans-serif;
	width: 100%;
}

/*
 * The supplied historic SVG itself stays at its original 731 x 1200 canvas.
 * Its first ~120 px are unused whitespace. The stage is therefore only the
 * visible 731 x 1080 window while the SVG host remains a full 731 x 1200.
 * This removes the large gap above Germany without changing or rescaling the
 * customer's SVG geometry.
 */
.schuebel-postcode-map__stage {
	position: relative;
	display: block;
	width: 731px;
	max-width: 100%;
	aspect-ratio: 731 / 1080;
	margin: 0 auto;
	overflow: hidden;
}

.schuebel-postcode-map__svg-host {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 111.111111%;
	transform: translateY(-10%);
	transform-origin: top left;
	overflow: hidden;
}

.schuebel-postcode-map__svg-host.is-loading::before {
	content: 'Karte wird geladen ...';
	display: block;
	padding: 12px 0;
	color: #666;
	font-size: 13px;
}

.schuebel-postcode-map__svg-host.has-error {
	color: #b32d2e;
	font-size: 13px;
}

.schuebel-postcode-map #mobile-svg {
	display: block !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: 100% !important;
}

.schuebel-postcode-map #mobile-svg .schuebel-postcode-map__region {
	cursor: pointer;
	transition: fill 100ms ease;
	outline: none;
}

.schuebel-postcode-map #mobile-svg .schuebel-postcode-map__region:hover,
.schuebel-postcode-map #mobile-svg .schuebel-postcode-map__region:focus,
.schuebel-postcode-map #mobile-svg .schuebel-postcode-map__region.is-active,
.schuebel-postcode-map #mobile-svg .schuebel-postcode-map__region.is-selected {
	fill: #20487c !important;
}

/* Reproduces the old info box, but its content comes from WordPress. */
.schuebel-postcode-map__tooltip {
	position: absolute;
	z-index: 2000;
	width: auto;
	max-width: min(300px, calc(100% - 12px));
	padding: 5px;
	background-color: #fff;
	border: 1px solid #000;
	color: #000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.25;
	box-sizing: border-box;
	pointer-events: auto;
}

.schuebel-postcode-map__tooltip[hidden] {
	display: none !important;
}

.schuebel-postcode-map__tooltip::after {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 100%;
	width: 0;
	border: 10px solid transparent;
	border-top-color: #3498db;
}

.schuebel-postcode-map__tooltip p {
	margin: 0 0 7px;
}

.schuebel-postcode-map__tooltip p:last-child {
	margin-bottom: 0;
}

.schuebel-postcode-map__tooltip a {
	color: #06c;
	text-decoration: underline;
}

.schuebel-postcode-map__a11y {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Legacy inline fallback only. The external original SVG receives these transforms at runtime in postcode-map.js. */
@media screen and (max-width: 640px) {
	.schuebel-postcode-map #mobile-svg > g {
		transform: translate(0, 0) scaleX(1) scaleY(1.3) !important;
	}
}

@media screen and (max-width: 450px) {
	.schuebel-postcode-map #mobile-svg > g {
		transform: translate(-10%, 0) scaleX(0.75) scaleY(1) !important;
	}
}

@media screen and (min-width: 641px) {
	.schuebel-postcode-map #mobile-svg > g {
		transform: translate(-25%, 0) scaleX(2) scaleY(2.5);
	}
}

@media screen and (min-width: 768px) {
	.schuebel-postcode-map #mobile-svg > g {
		transform: translate(-25%, 5%) scaleX(2) scaleY(2.5);
	}
}
