/* ===== 3D Globe (World Map) =====
   Interaktiver 3D-Globus (D3 v7, orthographische Projektion).
   Nutzt Site-Farbvariablen für hohen Kontrast und konsistentes Design. */

.globe-wrap {
	position: relative;
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: var(--radius, 14px);
	overflow: visible;
	margin-top: 0;
	height: 640px;
	max-height: 80vh;
	box-shadow: var(--shadow-soft);
}

.globe-canvas {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.globe-canvas svg {
	display: block;
	width: 100%;
	height: 100%;
}

.globe-sphere {
	fill: #00406E;
	stroke: #00406E;
	stroke-width: 1.25;
}

.globe-country {
	fill: #F5F9FC;
	stroke: #00406E;
	stroke-width: 0.55;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	transition: fill 150ms ease;
}
.globe-country:hover { fill: #E8F1F8; }

.globe-marker { cursor: pointer; }

.globe-marker-glow {
	fill: #007EC1;
	opacity: 0.35;
	pointer-events: none;
}

.globe-marker-dot {
	fill: #007EC1;
	stroke: #00406E;
	stroke-width: 2;
	pointer-events: auto;
	transition: r 100ms ease, fill 100ms ease;
}
.globe-marker-dot:hover,
.globe-marker.active .globe-marker-dot {
	fill: #00406E;
}

.globe-help-btn {
	position: absolute;
	top: 12px;
	z-index: 3;
	width: 28px;
	height: 28px;
	border: 1px solid #00406E;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #00406E;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms ease, color 150ms ease;
	padding: 0;
}
.globe-help-btn:hover {
	background: #00406E;
	color: #FFFFFF;
}

#globe-help-btn {
	right: 48px;
}

.globe-reset-btn {
	right: 12px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}
.globe-reset-btn:hover {
	background: rgba(255, 255, 255, 0.95);
	color: #00406E;
}

.globe-hint {
	position: absolute;
	top: 50px;
	right: 12px;
	z-index: 3;
	margin: 0;
	color: #00406E;
	font-size: 12px;
	letter-spacing: 0.02em;
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #00406E;
	padding: 12px 14px;
	border-radius: var(--radius);
	text-align: center;
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 150ms ease, visibility 150ms ease;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.globe-hint.visible {
	opacity: 1;
	visibility: visible;
}

.globe-continent-name {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 650;
	opacity: 0;
	transition: opacity 180ms ease;
	pointer-events: none;
	background: rgba(0, 64, 110, 0.85);
	padding: 8px 16px;
	border-radius: var(--radius);
}
.globe-continent-name.visible { opacity: 1; }

.globe-continents {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: none;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 260px;
	justify-content: flex-end;
}

.globe-chip {
	padding: 6px 10px;
	border: 1px solid rgba(0, 126, 193, 0.72);
	border-radius: 20px;
	background: rgba(0, 64, 110, 0.25);
	color: #f7fbff;
	font-size: 11px;
	font-weight: 650;
	cursor: pointer;
	transition: background 150ms ease;
}
.globe-chip:hover { background: rgba(0, 126, 193, 0.35); }



.globe-popup {
	position: absolute;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px;
	max-width: 320px;
	z-index: 10;
	color: var(--text);
	font-size: 13px;
	line-height: 1.5;
	box-shadow: var(--shadow-soft);
	pointer-events: auto;
}

.globe-popup-title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
	color: #00406E;
	border-bottom: 1px solid var(--line);
	padding-bottom: 6px;
}

.globe-popup-row {
	font-size: 12px;
	margin: 6px 0;
	color: var(--text);
}

.globe-popup-link {
	color: #007EC1;
	text-decoration: none;
	font-weight: 600;
}
.globe-popup-link:hover {
	color: #00406E;
	text-decoration: underline;
}

.globe-error {
	color: #8c9bad;
	text-align: center;
	padding: 24px;
	font-size: 14px;
}

.globe-a11y-note {
	margin: 10px 2px 0;
	color: var(--muted, #667580);
	font-size: 12px;
}

@media (max-width: 820px) {
	.globe-wrap { height: 480px; }
	.globe-continents { max-width: 160px; }
	.globe-hint {
		top: 12px;
		bottom: auto;
		left: 12px;
		max-width: calc(100% - 190px);
		transform: none;
		text-align: left;
	}
}
