/* ── Analytics ───────────────────────────────────────── */

/* Struktur-Baum links */
.analytics-baum {
	padding: 6px 8px 12px;
	font-size: 12px;
	color: rgb(45, 45, 45);
}
.analytics-baum .an-titel {
	font-weight: bold;
	font-size: 11px;
	color: rgb(95, 95, 95);
	text-transform: uppercase;
	padding: 6px 4px;
	letter-spacing: 0.5px;
}
.analytics-baum .an-aktualisieren {
	display: block;
	width: 100%;
	padding: 6px 10px;
	margin-bottom: 10px;
	background-color: rgb(95, 145, 215);
	color: rgb(0, 0, 0);
	border: 1px solid rgb(55, 105, 195);
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	text-align: left;
}
.analytics-baum .an-aktualisieren:hover {
	background-color: rgb(65, 115, 195);
}
.analytics-baum .an-aktualisieren:disabled {
	opacity: 0.6;
	cursor: wait;
}
.analytics-baum .an-aktualisieren .an-btn-spinner {
	display: none;
	margin-left: 6px;
	vertical-align: middle;
}
.analytics-baum .an-aktualisieren.busy .an-btn-spinner {
	display: inline-flex;
	gap: 3px;
}
.analytics-baum .an-aktualisieren.busy {
	cursor: progress;
	opacity: 1;
}
.analytics-baum .an-aktualisieren .an-btn-spinner > span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	animation: an-btn-pulse 1.1s infinite ease-in-out both;
}
.analytics-baum .an-aktualisieren .an-btn-spinner > span:nth-child(2) { animation-delay: 0.18s; }
.analytics-baum .an-aktualisieren .an-btn-spinner > span:nth-child(3) { animation-delay: 0.36s; }
@keyframes an-btn-pulse {
	0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
	40%           { opacity: 1;    transform: scale(1.15); }
}
.analytics-baum .an-domain {
	display: block;
	padding: 6px 10px;
	margin: 2px 0;
	border-radius: 3px;
	cursor: pointer;
	color: rgb(45, 45, 45);
	border-left: 3px solid transparent;
}
.analytics-baum .an-domain:hover {
	background-color: rgb(215, 215, 215);
}
.analytics-baum .an-domain.aktiv {
	background-color: rgb(155, 185, 225);
	border-left-color: rgb(35, 105, 175);
	color: rgb(0, 0, 0);
}
.analytics-baum .an-domain .an-domain-name {
	font-weight: bold;
	font-size: 12px;
}
.analytics-baum .an-domain .an-domain-info {
	font-size: 10px;
	color: rgb(105, 105, 105);
	margin-top: 2px;
}
.analytics-baum .an-leer {
	padding: 10px;
	color: rgb(105, 105, 105);
	font-style: italic;
	font-size: 11px;
}
.analytics-baum .an-status {
	font-size: 10px;
	color: rgb(105, 105, 105);
	padding: 4px 2px;
	min-height: 14px;
}

/* Content-Bereich */
.an-wrap {
	padding: 16px 20px;
	color: rgb(35, 35, 35);
	overflow-y: auto;
	height: 100%;
	box-sizing: border-box;
}
.an-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgb(195, 195, 195);
	padding-bottom: 10px;
	margin-bottom: 12px;
}
.an-header h2 {
	margin: 0;
	font-size: 18px;
	color: rgb(15, 15, 15);
}
.an-header .an-sub {
	font-size: 12px;
	color: rgb(95, 95, 95);
	margin-top: 3px;
}

/* Register oben */
.an-register {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgb(195, 195, 195);
}
.an-register-btn {
	padding: 6px 16px;
	background-color: rgb(215, 215, 215);
	color: rgb(75, 75, 75);
	border: 1px solid rgb(185, 185, 185);
	border-bottom: none;
	cursor: pointer;
	font-size: 12px;
	border-radius: 3px 3px 0 0;
}
.an-register-btn:hover {
	background-color: rgb(200, 200, 200);
}
.an-register-btn.aktiv {
	background-color: rgb(95, 145, 225);
	color: rgb(0, 0, 0);
	border-color: rgb(55, 105, 195);
}

/* Datumswahl */
.an-datumswahl {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.an-datumswahl select,
.an-datumswahl input {
	padding: 4px 8px;
	background-color: rgb(220, 220, 220);
	color: rgb(35, 35, 35);
	border: 1px solid rgb(175, 175, 175);
	font-size: 12px;
	border-radius: 3px;
}
.an-datumswahl .an-nav-btn {
	padding: 4px 10px;
	background-color: rgb(205, 205, 205);
	color: rgb(35, 35, 35);
	border: 1px solid rgb(175, 175, 175);
	cursor: pointer;
	font-size: 12px;
	border-radius: 3px;
}
.an-datumswahl .an-nav-btn:hover {
	background-color: rgb(190, 190, 190);
}
.an-datumswahl .an-label {
	font-size: 13px;
	color: rgb(55, 55, 55);
	font-weight: bold;
	margin-left: 8px;
}

/* KPI-Karten */
.an-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}
.an-kpi {
	background-color: rgb(220, 220, 225);
	border: 1px solid rgb(185, 185, 195);
	border-radius: 4px;
	padding: 10px 14px;
}
.an-kpi .an-kpi-label {
	font-size: 11px;
	color: rgb(95, 95, 95);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.an-kpi .an-kpi-wert {
	font-size: 22px;
	font-weight: bold;
	color: rgb(0, 0, 0);
	margin-top: 4px;
}
.an-kpi .an-kpi-sub {
	font-size: 11px;
	color: rgb(115, 115, 115);
	margin-top: 2px;
}

/* Chart-Kartellen */
.an-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}
.an-card {
	background-color: rgb(223, 223, 227);
	border: 1px solid rgb(185, 185, 195);
	border-radius: 4px;
	padding: 12px 14px;
}
.an-card.full {
	grid-column: 1 / -1;
}
.an-card h3 {
	margin: 0 0 8px;
	font-size: 13px;
	color: rgb(35, 35, 35);
	font-weight: bold;
	border-bottom: 1px solid rgb(195, 195, 200);
	padding-bottom: 6px;
}
.an-card .an-chart-wrap {
	position: relative;
	height: 260px;
}
.an-card.full .an-chart-wrap {
	height: 320px;
}

/* Karte */
.an-map {
	height: 240px;
	background-color: rgb(215, 220, 230);
	border-radius: 3px;
	margin-bottom: 10px;
}
.an-map .leaflet-container {
	background-color: rgb(215, 220, 230);
}

/* Länder-Liste unter der Karte */
.an-laender-liste {
	max-height: 180px;
	overflow-y: auto;
}

/* Lizenz-/Quellen-Hinweis unter der Geokarte */
.an-geo-attrib {
	margin-top: 8px;
	padding-top: 6px;
	font-size: 10px;
	opacity: 0.55;
	text-align: right;
}
.an-geo-attrib a {
	color: inherit;
}

/* Bot-Detailliste unter Kategorie-Donut */
.an-bots-liste {
	max-height: 200px;
	overflow-y: auto;
	margin-top: 10px;
	border-top: 1px solid rgb(195, 195, 200);
	padding-top: 8px;
}

/* Top-Listen */
.an-liste {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 12px;
}
.an-liste li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid rgb(205, 205, 210);
	gap: 8px;
}
.an-liste li:last-child {
	border-bottom: none;
}
.an-liste .an-bezeichnung {
	color: rgb(45, 45, 45);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.an-liste .an-anzahl {
	color: rgb(25, 65, 115);
	font-weight: bold;
	white-space: nowrap;
}

.an-leer-msg {
	text-align: center;
	padding: 40px 20px;
	color: rgb(105, 105, 105);
	font-style: italic;
}

/* Details/Info-Box in Domain-Settings */
.settings-details {
	margin-top: 6px;
	font-size: 12px;
}
.settings-details summary {
	cursor: pointer;
	color: rgb(35, 85, 135);
	padding: 2px 0;
}
.settings-details summary:hover {
	color: rgb(15, 65, 105);
}
.settings-info-box {
	margin-top: 8px;
	padding: 10px 12px;
	background-color: rgb(225, 225, 230);
	border-left: 3px solid rgb(75, 115, 175);
	border-radius: 3px;
}
.settings-info-box p {
	margin: 8px 0 4px;
	font-size: 12px;
	color: rgb(55, 55, 55);
}
.settings-info-box p:first-child {
	margin-top: 0;
}
.settings-info-box code {
	background-color: rgb(205, 205, 215);
	padding: 1px 4px;
	border-radius: 2px;
	font-size: 11px;
	color: rgb(35, 35, 35);
}
.settings-code {
	background-color: rgb(235, 235, 240);
	color: rgb(15, 35, 55);
	padding: 10px 12px;
	border-radius: 3px;
	font-size: 11px;
	font-family: Consolas, Monaco, monospace;
	white-space: pre;
	overflow-x: auto;
	border: 1px solid rgb(175, 185, 205);
	margin: 4px 0 10px;
}
