/* font */

html, body, input, select, button, textarea, table {
	font-size: 100% !important;
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}


/* control positioning */

.leaflet-control {
	position: relative;
	pointer-events: visible;
}
.leaflet-top,
.leaflet-bottom {
	position: relative;
	pointer-events: none;
}


/* general toolbar styles */

.leaflet-bar a {
	background: rgba(245, 242, 242, 0.874);
	border-bottom: 1px solid #d8d8d8;
}

/* zoom control */

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 14px;
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* bootstrap override */
}


/* layers control */

.leaflet-control-layers {
	position: absolute;
	width: 135px;
	height: 37px;
	box-sizing: content-box; /* bootstrap override -> box-sizing: border-box */
}  
.control-layers-foerderung {
	background: #7479cf;
	left: calc(50% - 140px);
}  
.control-layers-datenmanagement {
 	background: #dfc87c;
	left: calc(50% + 10px);
}
.leaflet-control-layers-expanded {
	padding: 0px;
	color: white;
	font-size: 12px;
	font-weight: bold;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: hidden;
}
.leaflet-control-layers-selector {
	display: none;
}
.leaflet-control-layers-selector:not(:checked) + span,
.leaflet-control-layers-selector:not(:checked) + span:before {
    opacity: 0.3;
	font-weight: lighter;
}
.leaflet-control-layers label {
	display: flex;		
	justify-content:center;
	align-items: center;
	width: 135px;
	height: 37px;  
	cursor: pointer;
}	
@media (max-width: 500px) {
	.leaflet-control-layers, .leaflet-control-layers label {
			height: 30px;
			width: 100px;
	}  
	.control-layers-foerderung {
		left: calc(50% - 105px);
	}
	.control-layers-datenmanagement {
		left: calc(50% + 5px);
	}
	.leaflet-control-layers-expanded {
		font-size: 9px;
	}
}
		

/* attribution and scale controls */

.leaflet-bottom.leaflet-right {
	position: absolute;
	bottom: 0;
	right: 0;  
}
.leaflet-control-attribution {
	right: 3px;
	background-color: rgba(255, 255, 255, 0.7);
	font-weight: bold;
	font-size: 9.5px;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgb(255, 255, 255);
	border-radius: 7px;
	box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
@media (max-width: 500px) {
	.leaflet-control-attribution {
		right: 0px;
		width: 220px;
		font-size: 8.5px;
	}
}


/* popup */
.leaflet-popup-content-wrapper {	
	min-width: 255px;
}
.leaflet-popup-content {	
	line-height: 1.3;
}
a {	
	text-decoration: underline;	
}
td {
	vertical-align: top;
}
.image {
	max-width: 80px;
	max-height: 30px;
	margin-right: 15px;	
}
.title {
	color: #107fc4;
	font-weight: bold;
	font-size: 1.7rem;	
	font-size: 13.5px;
	vertical-align: middle !important;
	white-space: normal;
}
.att {
	font-size: 12px;
	font-weight: bold;
	padding-right: 10px;
	padding-bottom: 5px;	
}
.attContent {
	font-size: 12px;
	padding-bottom: 5px;	
}
@media (max-width: 500px) {
	.leaflet-popup-content-wrapper {
		min-width: 214px;
	}
	.title {
	font-size: 12px;
	}
	.att, .attContent {
	font-size: 11px;
	}
}


/* CUSTOM STYLES */


/* layers */

.styleFoerderung {
	fill-opacity: 0.8;
	fill: #7479cf;
	stroke-width: 1;
	stroke: black;
}
.styleDatenmanagement {
	fill-opacity: 0.8;
	fill: #dfc87c;
	stroke-width: 1;
	stroke: black;
}
.styleDatenmanagementFoerderung {
	fill-opacity: 0.8;
	fill: #aaa1a6;
	stroke-width: 1;
	stroke: black;
}
.styleFoerderung:hover, .styleDatenmanagement:hover, .styleDatenmanagementFoerderung:hover {
	fill: #ffff00;
	fill-opacity: 0.5;
	}
.styleFilter {
	fill-opacity: 0.5;
	fill: white;
	stroke-width: 0.5;
	stroke: black;
}
.styleBadenWuerttembergFillColor {
	fill-opacity: 0.1;
	fill: black;
	stroke-width: 0;
}
.styleBadenWuerttembergLine {
	fill-opacity: 0;
	stroke-width: 2;
	stroke: black;
}


/* MobiData BW Logo */
#MobiDataBW {
	width: 140px;
	position: absolute;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 5px rgba(0,0,0,0.1);
	bottom: 15px;
	left: 15px;
	z-index: 1000;
}
@media (max-width: 500px) {
	#MobiDataBW {
		width: 75px;
		bottom: 3px;
		left: 3px;
	}
}
