html {
	min-height: 100%;
	position: relative;
}

body {
	margin-left: 5px;
	font-family: "Segoe UI Light", "Segoe UI", "Verdana";
	font-size: 0.90em;
	overflow-x: hidden;
	color: #000;
	padding: 2%;
	padding-top: 1%;
	margin-top: 0;
	background-color: #fefefe;
	background-image: linear-gradient(135deg, white, #fefefe 500px);
	height: auto;
	width: 100%;
}

h1, h2, h3, h4 {
	font-family: "Segoe UI Light", "Segoe UI", "Verdana";
	font-weight: bold;
}

.form-div {
	width: 100%;
}

.select-title-full {
	width: 100%;
	margin-bottom: 15px;
}

.timerange-select {
	width: 100%;
	margin-bottom: 15px;
	font-size: 13px;
}

.timerange-label {
	float: left;
	text-align: center;
}

.timerange-fields {
	display: block;
	margin-left: 174px;
	line-height: 2.0;
	padding-top: 2px;
}

.year-dropdown {
	position: relative;
	display: inline-block;
	width: 120px;
	vertical-align: middle;
	line-height: normal;
}

.year-dropdown-toggle {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 2px 6px;
	border: 1px solid #767676;
	border-radius: 3px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	font-size: 13px;
	line-height: normal;
}

.year-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 100%;
	width: max-content;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #767676;
	border-radius: 3px;
	z-index: 50;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.year-dropdown-menu-open {
	display: block;
}

.year-dropdown-item {
	display: block;
	padding: 3px 6px;
	text-align: center;
	cursor: pointer;
	font-size: 13px;
	line-height: normal;
}

.year-dropdown-item:hover,
.year-dropdown-item-highlighted {
	background: #e9e9e9;
}

.year-dropdown-toggle:focus {
	outline: 2px solid #293D6B;
	outline-offset: 1px;
}

/* WICHTIGER HINWEIS - BITTE NICHT LÖSCHEN:
   Die auf der Live-Seite tatsächlich verfügbare maximale Seitenbreite
   (Inhaltsspalte, in der diese App per iframe eingebettet ist) beträgt
   ca. 530px. Dieser Wert war entscheidend für die Spaltenzahl/-breite
   unten, damit die Checkboxen korrekt umbrechen (siehe auch WahlApp.php,
   updateDropdownMenuWidths()). Bei künftigen Änderungen bitte
   berücksichtigen, damit niemand versehentlich von einer größeren
   verfügbaren Breite ausgeht. */
.wahl-checkbox-grid {
	columns: 140px 3;
	column-gap: 20px;
}

.dropdown-item-full {
	column-span: all;
}

.wahl-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.chart-full {
	width: 100%;
	clear: both;
}

.current-selection-wrap {
	width: 100%;
	margin: 10px 0;
}

.current-selection-label {
	font-size: 14px;
	margin-left: 15px;
}

.current-selection {
	font-size: inherit;
	line-height: 1.4;
	margin-top: 4px;
	margin-left: 15px;
	color: #333;
}

.cs-row {
	display: flex;
	align-items: flex-start;
}

.cs-row + .cs-row {
	margin-top: 2px;
}

.cs-heading {
	font-weight: bold;
	flex: 0 0 130px;
}

.cs-items {
	flex: 1 1 auto;
}

.usage-notes {
	clear: both;
	width: 100%;
	margin-top: 10px;
}

.checkbox-label {
	font-size: 12px;
	padding-left: 3px;
    padding-right: 5px; 	
}	
.dropdown-form {
	display: inline;
	white-space: wrap;
}

.dropdown-item {
	padding: 2px;
	min-width: 0;
	overflow-wrap: break-word;
	break-inside: avoid;
	display: block;
}

.wahl-type-btn {
	margin-top: 5px;
}

.dropend .dropdown-menu {
	margin-left: 15px;
	width: min(70vw, 380px);
	padding-right: 12px;
}

.dropend .dropdown-toggle {
	position: relative;
	padding-right: 18px;
}

.dropend .dropdown-toggle::after {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	border-top: 0.4em solid transparent;
	border-bottom: 0.4em solid transparent;
	border-left: 0.4em solid;
	border-right: 0;
	margin: 0;
}

.button-group {
	display: flex;
	align-items: center;
}

.error-message {
	color: red;
	margin-left: 14px;
}

.wahl-chart {
	height:auto;
	margin-bottom:18px;
}	

.info-text {
   margin-top: 30px;
   margin-right: 20px;   
   height: auto;
}	

.chart_tooltips_css {
	background-color: #f0f0f0 ! important;
	color: #000 ! important;
	padding: 5px ! important;
	border: solid 2px #707070 !important;
	text-align: center;
	font-size: 12px ! important;
	z-index: 999 ! important;
}

#RGraph_tooltipsPointer {
	border-bottom: #707070 solid 2px;
	border-right: #707070 solid 2px;
	bottom: -7px !important;
}