#karte_tab {
	display: grid;
	grid-template-columns: 220px 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"sidebar zusatz"
		"sidebar inhalt"
		"profil profil";
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 1rem 0;
	color: #222;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	--control-bg: #ffffff;
	--control-text: #1e293b;
	--control-border: #cbd5e1;
	--control-radius: 6px;
	--control-font-size: 13px;
	--control-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	--tracker-margin: 0 0 34px 0px;
	--tracker-shift-x: 0px;
	--tracker-gap: 6px;
	--tracker-btn-bg: #ffffff;
	--tracker-btn-text: #1e293b;
	--tracker-btn-border: #94a3b8;
	--tracker-btn-padding: 6px 12px;
	--tracker-recording-bg: #dc2626;
	--tracker-recording-text: #ffffff;
	--tracker-status-bg: rgba(15, 23, 42, 0.88);
	--tracker-status-text: #ffffff;
}
#karte_sidebar {
	grid-area: sidebar;
	width: 100%;
	height: 570px;
	max-height: 100%;
	overflow-y: auto;
	padding: 0 4px 12px 4px;
	background: #f8f9fa;
	border-right: 1px solid #d0d7de;
	font-size: 14px;
	box-sizing: border-box;
}
#karte_zusatz {
	grid-area: zusatz;
	padding: 8px 12px;
	background: #f8f9fa;
	border-bottom: 1px solid #d0d7de;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	margin-left: auto;
	width: 100%
}
#karte_inhalt {
	grid-area: inhalt;
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 520px;
}
#karte_map {
	flex: 1;
	width: 100%;
	min-width: 0;
	position: relative;
	background: #e9ecef;
}
.is-hidden {
	display: none !important;
}
.karte_dsgvo_overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, #eef2f5 0%, #dce4ec 100%);
	z-index: 10;
}
.karte_dsgvo_box {
	max-width: 440px;
	background: #ffffff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	text-align: center;
}
.karte_dsgvo_box h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #1a202c;
}
.karte_dsgvo_box p {
	margin: 0 0 18px 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #4a5568;
}
.karte_dsgvo_btn {
	background: #1a73e8;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.karte_dsgvo_btn:hover {
	background: #1557b0;
}
#karte_sidebar ul {
	list-style: none;
	margin: 0;
	padding-left: 8px;
}
#karte_sidebar ul.is-collapsed {
	display: none;
}
#karte_sidebar > ul.level_01 {
	padding-left: 0;
}
#touren_li > .folder_div {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f8f9fa;
	padding: 8px 2px 8px 2px;
	margin-bottom: 4px;
	border-bottom: 1px solid #d0d7de;
}
.folder_div {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
	line-height: 1.35;
}
.folder_img,
.folder_span {
	cursor: pointer;
}
.folder_span {
	font-weight: 600;
	border-radius: 2px;
	transition: background 0.15s ease;
}
.tour_div {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0;
	line-height: 1.35;
}
.tour_span {
	display: grid;
	grid-template-columns: 20px 1fr;
	align-items: center;
	column-gap: 6px;
	padding: 2px 4px;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.folder_span.is-highlighted,
.tour_span.is-highlighted {
	background: rgb(200, 254, 46);
}
.sidebar_symbol_cell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 18px;
}
.sidebar_line_symbol {
	display: block;
	width: 16px;
	height: var(--line-height, 4px);
	background: var(--line-color, #0000ff);
	opacity: var(--line-opacity, 0.9);
	border-radius: 2px;
}
.sidebar_poi_icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	display: block;
}
.sidebar_item_text {
	min-width: 0;
	word-break: break-word;
	line-height: 1
}
.ib_touren {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
	transform: none;
}
.ib_touren.is-hidden {
	visibility: hidden;
}
.poi_marker_icon {
	display: block;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	transform: none;
}
.infoBox_tour {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	z-index: 20;
	white-space: nowrap;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 4px;
	padding: 6px 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.infoBox_tour.is-visible {
	display: block;
}
.line_hover_tooltip {
	pointer-events: none;
	transform: translateY(-14px);
}
.line_tooltip_extra {
	font-size: 11.5px;
	color: #475569;
	margin-top: 2px;
}
.label_close {
	position: absolute;
	top: 5px;
	right: 5px;
	cursor: pointer;
}
.hover_map_marker_dot {
	width: 12px;
	height: 12px;
	background: #e60000;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.user_location_dot {
	width: 14px;
	height: 14px;
	background: #1a73e8;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(26, 115, 232, 0.8);
}
.elevation_popup_marker {
	position: relative;
	transform: translateY(-10px);
	z-index: 1002;
}
.elevation_popup_box {
	display: block;
	position: relative;
	left: auto;
	bottom: auto;
	transform: none;
	margin-bottom: 0;
	padding: 8px 26px 8px 11px;
	min-width: 145px;
	text-align: left;
}
.elevation_popup_title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}
.elevation_popup_coords {
	font-size: 11.5px;
	color: #475569;
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}
.elevation_popup_error {
	font-size: 12px;
	color: #dc2626;
	font-weight: 600;
}
.elevation_pin_dot {
	width: 10px;
	height: 10px;
	margin: 4px auto 0 auto;
	background: #0f172a;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.map_top_left_menu {
	position: relative;
	z-index: 6;
	margin: 8px 0 0 8px;
}
.map_menu_btn {
	background: var(--control-bg);
	color: var(--control-text);
	border: 1px solid var(--control-border);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: var(--control-font-size);
	font-weight: 600;
	box-shadow: var(--control-shadow);
	cursor: pointer;
	white-space: nowrap;
}
.map_menu_panel {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 210px;
	background: #ffffff;
	color: #1e293b;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	z-index: 20;
}
.map_menu_panel.is-open {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.map_menu_section_title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	padding: 2px 4px;
}
.map_menu_item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}
.map_menu_item:hover {
	background: #f1f5f9;
}
.map_menu_divider {
	height: 1px;
	background: #e2e8f0;
	margin: 4px 0;
}
.slope_legend {
	display: none;
	background: rgba(255, 255, 255, 0.94);
	padding: 8px 10px;
	margin: 0 0 52px 10px;
	border-radius: 4px;
	font-size: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.slope_legend.is-visible {
	display: block;
}
.slope_legend_title {
	font-weight: 600;
	margin-bottom: 4px;
}
.slope_legend_item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}
.slope_box {
	width: 12px;
	height: 12px;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.2);
}
.slope_30 {
	background: #ffff00;
}
.slope_35 {
	background: #ff9900;
}
.slope_40 {
	background: #ff0000;
}
.slope_45 {
	background: #9900cc;
}
.live_tracker_box {
	position: relative;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: var(--tracker-gap);
	margin: var(--tracker-margin);
	transform: translateX(var(--tracker-shift-x));
}
.live_tracker_box.is-flush-bottom-left {
	position: absolute;
	left: 8px;
	bottom: 28px;
	margin: 0;
	transform: none;
	z-index: 10;
}
.live_tracker_btn {
	position: relative;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tracker-btn-bg);
	color: var(--tracker-btn-text);
	border: 1px solid var(--tracker-btn-border);
	border-radius: var(--control-radius);
	padding: var(--tracker-btn-padding);
	font-size: var(--control-font-size);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--control-shadow);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.live_tracker_btn.is-recording {
	background: var(--tracker-recording-bg);
	color: var(--tracker-recording-text);
	border-color: var(--tracker-recording-bg);
}
.live_tracker_status {
	position: relative;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	background: var(--tracker-status-bg);
	color: var(--tracker-status-text);
	font-size: 12px;
	line-height: 1.2;
	padding: 5px 8px;
	border-radius: var(--control-radius);
	white-space: nowrap;
	box-shadow: var(--control-shadow);
}
#karte_hoehenprofil {
	grid-area: profil;
	width: 100%;
	min-width: 0;
	margin-top: 0;
	padding: 12px 14px;
	border: none;
	border-top: 1px solid #d0d7de;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	color: #1e293b;
	box-sizing: border-box;
}
.hoehenprofil_svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
	user-select: none;
}
.svg_grid line {
	stroke: #e2e8f0;
	stroke-width: 1;
	stroke-dasharray: 2, 2;
}
.svg_y_axis,
.svg_x_axis {
	font-size: 11px;
	font-weight: 500;
	fill: #475569;
	font-variant-numeric: tabular-nums;
}
.svg_linie {
	fill: none;
	stroke-width: 2.5;
	stroke-linejoin: round;
	stroke-linecap: round;
	transition: stroke-width 0.16s ease, opacity 0.16s ease;
}
.svg_linie.is-active {
	stroke-width: 4;
}
.svg_poi_circle {
	fill: #ffffff;
	stroke: #0f172a;
	stroke-width: 1.8;
}
.svg_poi_circle.is-active {
	fill: #ff8800;
	stroke: #000;
	stroke-width: 1.5;
}
.svg_poi_number {
	font-size: 10.5px;
	font-weight: 700;
	fill: #0f172a;
}
.svg_poi_number.is-active {
	font-weight: 700;
	fill: #000;
}
.svg_current_line {
	stroke: #dc2626;
	stroke-width: 1.25;
	stroke-dasharray: 4, 3;
}
.svg_current_point {
	fill: #dc2626;
	stroke: #ffffff;
	stroke-width: 2;
}
.svg_hoehenprofil_text {
	font-size: 12px;
	font-weight: 600;
	fill: #0f172a;
	font-variant-numeric: tabular-nums;
}
.svg_rect_cursor {
	fill: transparent;
	cursor: crosshair;
}
.hoehenprofil_footer {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: start;
}
.hoehenprofil_pfad_legende {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
}
.hp_pfad_item {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	text-align: left;
	padding: 6px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	color: #1e293b;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.hp_pfad_item:hover,
.hp_pfad_item.is-active {
	background: #eff6ff;
	border-color: #3b82f6;
	transform: translateX(2px);
}
.hp_pfad_farbe {
	display: inline-block;
	width: 18px;
	height: 4px;
	border-radius: 999px;
	background-color: var(--pfad-farbe, #0055ff);
	flex-shrink: 0;
}
.hp_pfad_name {
	min-width: 0;
	word-break: break-word;
}
.hoehenprofil_poi_legende {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	color: #334155;
	line-height: 1.4;
}
.hp_poi_item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 3px 2px;
}
.hp_poi_item.is-active {
	background-color: rgba(255, 136, 0, 0.15);
	border-radius: 4px;
}
.hp_poi_nr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	margin-top: 1px;
	border-radius: 50%;
	background: #0f172a;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}
.hp_poi_text {
	min-width: 0;
	word-break: break-word;
}
.copyright_karte {
	font-size: 10px;
	color: #64748b;
	margin: 2px;
}
.dropdown {
	position: relative;
	display: inline-block;
}
.dropdown-toggle {
	background: #1a73e8;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.2s ease;
}
.dropdown-toggle:hover {
	background: #1557b0;
}
.dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 170px;
	background: #ffffff;
	color: #1e293b;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
	z-index: 100;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	font-size: 13px;
	box-sizing: border-box;
}
.dropdown-menu.open {
	display: flex;
}
.dropdown-menu p,
.dropdown-menu .download_label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	line-height: 1.3;
}
.dropdown-menu button,
.dropdown-menu .karten-info,
.dropdown-menu .button_drucken,
.dropdown-menu .button_karte {
	width: 100%;
	text-align: left;
	margin: 0;
	padding: 8px 10px;
	border-radius: 5px;
	background: transparent;
	color: #1e293b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	box-sizing: border-box;
}
.dropdown-menu button:hover,
.dropdown-menu .karten-info:hover,
.dropdown-menu .button_drucken:hover,
.dropdown-menu .button_karte:hover {
	background: #f1f5f9;
	color: #0f172a;
}
.dropdown-menu .download,
.dropdown-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1e293b;
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 500;
	padding: 4px 6px;
	border-radius: 5px;
	transition: background 0.15s ease;
}
.dropdown-menu .download:hover,
.dropdown-menu a:hover {
	background: #f1f5f9;
}
.karten-info,
.button_drucken,
.button_karte {
	margin: 0;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 5px;
	color: #fff;
	border: none;
	background: #1a73e8;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease;
}
.karten-info:hover,
.button_drucken:hover,
.button_karte:hover {
	background: #1557b0;
}
img.kml {
	width: 38px;
	height: 50px;
	flex-shrink: 0;
	background: url(../images/bg.png) -50px -4px;
	background-size: auto;
}
img.gpx {
	width: 38px;
	height: 50px;
	flex-shrink: 0;
	background: url(../images/bg.png) -4px -4px;
	background-size: auto;
}
#standort > button {
	background-color: #ffffff;
	border: none;
	outline: none;
	width: 28px;
	height: 28px;
	border-radius: 2px;
	box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px;
	cursor: pointer;
	margin-right: 10px;
	padding: 0;
}
#standort_img {
	margin: 5px;
	width: 18px;
	height: 18px;
	background-image: url(../images/mylocation-sprite-1x.png);
	background-size: 180px 18px;
	background-position: 0px 0px;
	background-repeat: no-repeat;
}
#gps-info {
	display: none;
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100dvh !important;
	max-width: 100vw !important;
	max-height: 100dvh !important;
	margin: 0 !important;
	padding: 16px !important;
	background: rgba(15, 23, 42, 0.65);
	z-index: 10000 !important;
	align-items: center;
	justify-content: center;
	overflow: auto;
}
#gps-info.show {
	display: flex !important;
	border-top: none;
}
#gps-info > :not(.modal-close):not(.close-modal) {
	position: relative;
	width: 100%;
	max-width: 780px;
	max-height: calc(100dvh - 32px);
	margin: auto;
	background: #ffffff;
	color: #1e293b;
	border-radius: 10px;
	padding: 20px 24px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
	overflow-y: auto;
	overscroll-behavior: contain;
}
#gps-info .modal_close,
#gps-info .modal-close,
#gps-info .close-modal,
#gps-info .close {
	position: fixed;
	top: 26px;
	right: calc(50% - 365px);
	background: #ffffff url("/media/mod_json/images/close.gif") center center no-repeat;
	color: #1e293b;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0;
	font-size: 0;
	width: 28px;
	height: 28px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	z-index: 10002;
}
#gps-info .modal-close:hover,
#gps-info .close-modal:hover,
#gps-info .close:hover {
	background: #e2e8f0;
}
@media (max-width: 820px) {
	#gps-info .modal_close,
	#gps-info .modal-close,
	#gps-info .close-modal,
	#gps-info .close {
		top: 26px;
		right: 26px;
	}
}
@media (max-width: 768px) {
	#karte_tab {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto;
		grid-template-areas:
			"zusatz"
			"sidebar"
			"inhalt"
			"profil";

		--tracker-margin: 0 0 36px 0px;
		--tracker-shift-x: 0px;
		--tracker-btn-padding: 5px 8px;
	}
	#karte_sidebar {
		height: auto;
		max-height: 240px;
		border-right: none;
		border-bottom: 1px solid #d0d7de;
	}
	#karte_zusatz {
		align-items: flex-end;
	}
	#karte_zusatz .karten-info,
	#karte_zusatz .button_drucken,
	#karte_zusatz .button_karte {
		width: 100%;
		text-align: center;
		white-space: nowrap;
	}

	#karte_map {
		height: 380px;
	}
	#touren_li > .folder_div {
		padding: 2px 2px;
		margin-bottom: 0;
	}
	#karte_hoehenprofil {
		padding: 10px 8px;
	}
	.svg_x_axis,
	.svg_y_axis {
		font-size: 12px;
	}
	.svg_poi_number {
		font-size: 11.5px;
	}
	.svg_hoehenprofil_text {
		font-size: 12.5px;
	}
	.tour_div {
		line-height: 1;
	}
	.map_top_left_menu {
		margin: 6px 0 0 6px;
	}
	.map_menu_btn {
		padding: 5px 9px;
		font-size: 12px;
	}
	.live_tracker_box,
	.live_tracker_box.is-flush-bottom-left {
		left: 6px;
		bottom: 28px;
		margin: 0;
		transform: none;
		flex-wrap: wrap;
		max-width: calc(100vw - 85px);
	}
	.live_tracker_btn {
		font-size: 12px;
	}
	.svg_x_axis,
	.svg_y_axis {
		font-size: 12px;
	}
	.svg_hoehenprofil_text {
		font-size: 13px;
	}
	.hp_pfad_item {
		font-size: 11.5px;
		padding: 4px 8px;
	}
	#gps-info {
		padding: 10px !important;
	}
	#gps-info > :not(.modal-close):not(.close-modal) {
		max-height: calc(100dvh - 20px);
		padding: 16px;
		border-radius: 8px;
	}
	#gps-info .modal_close,
	#gps-info .modal-close,
	#gps-info .close-modal,
	#gps-info .close {
		top: 18px;
		right: 18px;
	}
}
@media (min-width: 500px) {
	.hoehenprofil_footer {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 20px;
	}
}