#karte_map {
	height: 600px;
}
#karte_tab {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-columns: [first] 30% [line2] auto;
    grid-template-rows: [first] auto [row2] 620px [row3] auto;
}
#karte_sidebar {
    grid-area: 1 / 1 / 4 / 2;
    max-height: 600px;
    overflow-y: auto;
	position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-right: 8px;
    margin: 0 0 20px 0;
}
#karte_sidebar #touren_li00 > .folder_div {
	position: sticky;
	top: 0;
	z-index: 20;
	background-color: rgba(247, 247, 247, 1);
	border-bottom: 1px solid #e0e0e0;
}
.karte_dsgvo_overlay {
	margin: 20px;
}
.karte_dsgvo_btn {
    margin: 10px;
    cursor: pointer;
    border-radius: .5em;
    color: #fff;
    border: solid 1px #0076a3;
    background: linear-gradient(#00adee, #0076a3);
    height: 40px;
    max-width: 100px;
}
#touren {
    margin: 0;
    padding: 0;
    list-style: none;
}
#touren_li {
    list-style: none;
}
#touren_li > .folder_div {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background-color: rgba(247, 247, 247, 1);
    padding: 6px 4px;
    border-bottom: 1px solid #ddd;
}
#karte_sidebar.tourenkarte {
	overflow-y: auto;
}
#karte_inhalt {
	grid-area: 2 / 2 / 3 / 3;
    border: 1px solid;
}
.level_01 {
	padding: 0;
	margin: 0 0 10px 0;
	list-style-type: none;
}
.level_02 {
	padding-left: 16px;
	margin: 4px 0 8px 6px;
	list-style-type: none;
	border-left: 1px solid #e0e0e0;
}
.level_03 {
	padding-left: 18px;
	margin: 4px 0 8px 6px;
	list-style-type: none;
	border-left: 1px solid #d0d0d0;
}
.level_04 {
	padding-left: 18px;
	margin: 4px 0 8px 6px;
	list-style-type: none;
	border-left: 1px solid #c0c0c0;
}
.tourenkarte.polyline {
	margin: 5px 0 8px 4px;
}
.folder_div {
    display: inline-flex;
}
.folder_div img {
    height: fit-content;
}
.folder_span {
    display: inline-grid;
    margin: auto 5px;
}
#touren_ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: 10px;
    padding: 0;
    list-style: none;
}
#touren_ul > .li_poi {
    min-width: 0;
}
.tour_input {
	grid-area: 1 / 1 / 2 / 2;
    margin: 0 0 0 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.folder_div .tour_input {
	margin-left: 0;
}
.tourenkarte.polyline {
    margin: 5px 0 10px 15px;
}
.tour_div {
    line-height: normal;
    display: inline-flex;
}
.input_pm {
    transform: scale(1.4);
    vertical-align: middle;
}
.tour_span {
    margin-left: 5px;
    padding-left: 5px;
}
.tour_link_sidebar {
    margin-left: 40px;
    font-size: 10pt;
}
.infoBox {
	font-size: 12px;
    background-color: rgb(255 255 255);
    padding: 2px;
    color: #000000;
}
.infoBox_tour {
	visibility: hidden;
	position: absolute;
	background-color: #ffffff;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 100;
	min-width: 310px;
}
.infoBox_tour.is-visible {
	visibility: visible;
}
.label_close {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px;
    cursor: pointer;
}
.copyright_karte {
    font-size: 12px;
	margin: 0;
	text-align: right;
	line-height: normal;
}
.map_control_select {
	margin: 10px;
	padding: 8px 12px;
	font-size: 14px;
	background-color: #ffffff;
	border: none;
	border-radius: 2px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}
.map_control_slope {
	margin: 10px 0 10px 6px;
	padding: 8px 12px;
	font-size: 14px;
	background-color: #ffffff;
	border-radius: 2px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	user-select: none;
}
.map_control_slope input[type="checkbox"] {
	cursor: pointer;
	margin: 0;
}
.slope_legend {
	display: none;
	margin: 10px;
	padding: 8px 10px;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	font-size: 12px;
	line-height: 1.4;
	color: #222222;
}
.slope_legend.is-visible {
	display: block;
}
.slope_legend_title {
	font-weight: bold;
	margin-bottom: 4px;
}
.slope_legend_item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}
.slope_legend_item:last-child {
	margin-bottom: 0;
}
.slope_box {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid #999999;
	box-sizing: border-box;
}
.slope_30 { background-color: #ffff00; }
.slope_35 { background-color: #ff9900; }
.slope_40 { background-color: #ff0000; }
.slope_45 { background-color: #9900cc; }
@media (max-width: 1000px) {
	#karte_tab {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
	#karte_sidebar {
        grid-area: auto;
        max-height: 280px;
        overflow-y: auto;
        margin-bottom: 15px;
    }
    #karte_inhalt {
        grid-area: auto;
    }
    #karte_map {
        height: 500px;
    }
    #touren_ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 600px) {
    #karte_map {
        height: 400px;
    }
    #touren_ul {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 12px;
    }
}
@media (max-width: 380px) {
    #touren_ul {
        gap: 10px;
    }
}

/* Einheitliche Zustandsklassen & Custom-Properties */
.is-collapsed { display: none; }
.is-hidden { display: none; visibility: hidden; }
.is-visible { visibility: visible; }
.is-highlighted { background: rgb(200, 254, 46); cursor: pointer; }
.has-polygon-color { border-left: 4px solid var(--polygon-color, #ffaa00); padding-left: 6px; }
.has-line-color { border-left: var(--line-width, 3px) solid var(--line-color, #000000); padding-left: 6px; }
.poi_marker_icon { cursor: pointer; }
