/**
 * Tollkühn Deutschlandkarte – Frontend-Styles
 *
 * Alle Regeln sind auf .tkk-wrap gescoped. Es gibt keine globalen Resets
 * und keine body/html-Styles, damit das Theme unberührt bleibt.
 */

.tkk-wrap {
	--tkk-accent: #e30613;
	--tkk-dark: #1d2124;
	--tkk-border: #e1e4e8;
	--tkk-text: #333;
	--tkk-muted: #6c757d;
	--tkk-inactive: #cdd3dc;

	box-sizing: border-box;
	color: var(--tkk-text);
	line-height: 1.5;
	max-width: 1300px;
	margin: 0 auto;
}

.tkk-wrap *,
.tkk-wrap *::before,
.tkk-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Kopfbereich ---------- */

.tkk-header {
	text-align: center;
	margin-bottom: 30px;
}

.tkk-wrap .tkk-title {
	font-size: 1.75rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--tkk-dark);
	margin: 0 0 8px;
}

.tkk-wrap .tkk-subtitle {
	font-size: 1rem;
	color: var(--tkk-muted);
	margin: 0;
}

/* ---------- Layout Karte + Detailpanel ---------- */

.tkk-section {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 35px;
	align-items: center;
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	margin-bottom: 40px;
}

@media (max-width: 992px) {
	.tkk-section {
		grid-template-columns: 1fr;
		gap: 25px;
		padding: 20px;
	}
}

.tkk-map-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	border: 1px solid var(--tkk-border);
	border-radius: 10px;
	padding: 15px;
}

/* ---------- SVG-Karte ---------- */

.tkk-wrap #mapGer {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 580px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
}

.tkk-wrap #mapGer__background {
	fill: #eef1f5;
	stroke: #ced4da;
	stroke-width: 1;
}

.tkk-wrap #mapGer g[id^="nr-"] {
	cursor: pointer;
}

.tkk-wrap #mapGer g[id^="nr-"] path,
.tkk-wrap #mapGer g[id^="nr-"] polygon {
	fill: var(--tkk-inactive);
	stroke: #fff;
	stroke-width: 1.4;
	transition: fill 0.15s ease;
}

.tkk-wrap #mapGer g[id^="nr-"]:hover path,
.tkk-wrap #mapGer g[id^="nr-"]:hover polygon,
.tkk-wrap #mapGer g[id^="nr-"].tkk-active path,
.tkk-wrap #mapGer g[id^="nr-"].tkk-active polygon {
	fill: var(--tkk-accent);
}

.tkk-wrap #mapGer g[id^="nr-"]:focus {
	outline: none;
}

.tkk-wrap #mapGer g[id^="nr-"]:focus-visible path,
.tkk-wrap #mapGer g[id^="nr-"]:focus-visible polygon {
	fill: var(--tkk-accent);
	stroke: var(--tkk-dark);
	stroke-width: 2;
}

.tkk-wrap #mapGer__numbers {
	fill: #2c3e50;
	pointer-events: none;
	font-weight: 700;
}

.tkk-wrap #mapGer__lines {
	pointer-events: none;
}

/* ---------- Detailkarte ---------- */

.tkk-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tkk-card {
	background: linear-gradient(135deg, #fff 0%, #fffbfb 100%);
	border: 2px solid var(--tkk-accent);
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tkk-card-head {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}

.tkk-avatar {
	width: 105px;
	height: 105px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--tkk-accent);
	flex-shrink: 0;
	background: #eee;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tkk-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.tkk-wrap .tkk-card-title h3 {
	font-size: 1.375rem;
	line-height: 1.3;
	color: var(--tkk-dark);
	margin: 0 0 4px;
}

.tkk-region {
	font-size: 0.875rem;
	color: var(--tkk-muted);
}

.tkk-badge {
	display: inline-block;
	background: var(--tkk-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.tkk-wrap .tkk-info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.9375rem;
}

.tkk-wrap .tkk-info li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.tkk-label {
	font-weight: 600;
	min-width: 115px;
	flex-shrink: 0;
	color: var(--tkk-dark);
}

.tkk-value {
	color: #495057;
	word-break: break-word;
}

.tkk-wrap .tkk-value a {
	color: var(--tkk-accent);
	text-decoration: none;
	font-weight: 600;
}

.tkk-wrap .tkk-value a:hover,
.tkk-wrap .tkk-value a:focus {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.tkk-card-head {
		flex-direction: column;
		text-align: center;
	}

	.tkk-wrap .tkk-info li {
		flex-direction: column;
		gap: 2px;
	}
}

/* ---------- Raster aller Gebiete ---------- */

.tkk-wrap .tkk-all-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--tkk-dark);
}

.tkk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.tkk-mini {
	background: #fff;
	border: 1.5px solid var(--tkk-border);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	gap: 14px;
	align-items: center;
	cursor: pointer;
	text-align: left;
	width: 100%;
	font: inherit;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tkk-mini:hover,
.tkk-mini:focus-visible,
.tkk-mini.tkk-active {
	border-color: var(--tkk-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	background: #fff8f8;
	outline: none;
}

.tkk-mini-img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--tkk-border);
	flex-shrink: 0;
	display: block;
	margin: 0;
}

.tkk-mini.tkk-active .tkk-mini-img,
.tkk-mini:hover .tkk-mini-img {
	border-color: var(--tkk-accent);
}

.tkk-mini-body {
	min-width: 0;
}

.tkk-mini-gebiet {
	display: block;
	font-size: 0.75rem;
	color: var(--tkk-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.tkk-mini-name {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--tkk-dark);
}

.tkk-mini-meta {
	display: block;
	font-size: 0.8125rem;
	color: var(--tkk-muted);
	margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tkk-wrap * {
		transition: none !important;
	}

	.tkk-mini:hover,
	.tkk-mini.tkk-active {
		transform: none;
	}
}
