* Erweitert für responsive Design
*/
* {
	margin: 0;
	box-sizing: border-box;
  }

:root {
/*#003e8a*//*7d6152*/
/*--main-bg-color: hsl(45, 70%, 79%);*/
	--main-bg-color: hsl(11, 10%, 60%);
	--main-bg-color-light: hsl(11, 10%, 80%);
	/*--main-color: hsl(142, 88%, 25%);*/
	--main-color: hsl(142, 88%, 25%);
	--main-color-dark: hsl(142, 88%, 15%);
	/*--main-color-light: hsl(45, 100%, 95%);*/
	--main-color-light: hsl(11, 10%, 80%);
	--color07: hsla(21, 21%, 52%, 0.7);
	--color007: hsla(21, 10%, 50%, 0.7);
	--color03: hsla(21, 21%, 52%, 0.5);
	--color003: hsla(21, 10%, 50%, 0.5);
	--color07-light: hsla(21, 10%, 70%, 0.7);
	--links: 260px;
	--links-mg: 20px;
	--transition-speed: 0.3s;
}
	  
  body {
	margin: 0px; 
	overflow: hidden; 
	font-family: Arial, Helvetica, sans-serif; 
	color: #222;
	background-color: var(--main-bg-color);
	height: 100vh;
  }
	  
  #grid-container, #grid-container_map {
	display: grid;
	height: 100%;
	grid-template-areas:
	  'title title title'
	  'header header header'
	  'menu main right';
	grid-template-rows: 0px 0px 100%;
	grid-template-columns: 260px calc(100% - 260px) 0px;
	gap: 0px;
	padding: 0px;
	justify-content: start;
	align-items: start;
	transition: grid-template-columns var(--transition-speed) ease-in-out;
  }

  #grid-container_map {
	grid-template-rows: 0px 0px 100%;
	grid-template-columns: 260px calc(100% - 630px) 370px;
	background-color: white;
  }
	  
  h1 {
	grid-area: menu;
	color: var(--main-color); 
	font-size: 21pt; 
	margin: 5% 0 0 20px;
	max-width: 230px;
	z-index: 101;
  }
	  
  h2 {
	position: relative;
	color: var(--main-color);
	font-size: 18pt;
	margin: 0 0 14px 0;
  }
	  
  h3 {
	position: relative;
	color: var(--main-color);
	font-size: 14pt;
	margin: 14px 0 7px 0;
  }

  p {
		margin: 10px 0 10px 0;
  }
	  
  form {
	margin: 0px;
	padding: 0px 10px 0px 10px;
  }
	  
  fieldset {
	position: relative;
	border: 0;
	margin: 0px 0px 0px 0px;
  }
	  
  label {
	display: block;
	margin: 20px 0 10px 10px;
	font-weight: bold; 
	color: #999; 
	font-size: 1em;
  }
	  
  a {
	color: var(--main-color);
	text-decoration: none;
  }
	  
  a:hover {
	color: var(--main-color); 
	text-decoration: underline overline;
  }
	  
  .opacity {
	opacity: 0.75; 
	-webkit-opacity: 0.75; 
	-moz-opacity: 0.75;
	filter: alpha(opacity=75);
  }
	  
  .opacity90 {
	opacity: 0.85; 
	-webkit-opacity: 0.9; 
	-moz-opacity: 0.9;
	filter: alpha(opacity=9);
  }
  
  #left {
	grid-area: menu;
	width: 260px;
	height: 100%;
	background-color: white;
	transition: width var(--transition-speed) ease-in-out,
				visibility var(--transition-speed) ease-in-out;
	overflow-y: auto;
  }
	  
  #menu {
	grid-area: menu;
	text-align: left;
	padding: 140px 0px 0px 0px;
  }
    
  #menu button {
	width: 100%;
	margin: 5px 0;
	padding: 8px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
  }
  
  #menu button:hover {
	opacity: 0.9;
  }

  #menu .icon{
	float: left;
  }
	  
  #left a:hover {
	color: var(--main-bg-color);
	background: #fff;
	text-decoration: underline;
  }
	  
  .active-btn {
	padding: 8px;
	border-radius: 4px;
	background-color: var(--main-color); 
	color: white;
  }

  .inactive-btn {
	padding: 8px;
	border-radius: 4px;
	/*background-color: var(--main-bg-color); 
	color: white;*/
  }
	  
  #map {
	grid-area: main;
	width: 100%;
	height: 100%;
	transition: width var(--transition-speed) ease-in-out;
  }
	  
  #info {
	position: absolute;
	height: 1px;
	width: 1px;
	z-index: 100;
  }
	  
  #legende {
	grid-area: right;
	display: block;
	max-width: 370px;
	background-color: white;
	transition: width var(--transition-speed) ease-in-out,
				visibility var(--transition-speed) ease-in-out;
	overflow-y: auto;
	margin: 65px 0px 0px 0px;
	z-index: 100;
  }

  #legende::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 11px;
	height: 11px;
	}
	#legende::-webkit-scrollbar-thumb {
	border-radius: 8px;
	border: 2px solid white; /* Angleichen mit Hintergrundfarbe-nicht transparent! */
	background-color: rgba(0, 0, 0, .5);
	}
	  
  #legende img {
	height: 30px;
	float: left;
	margin: 10px 20px 0 0;
  }
	  
  #legende .legendeneintrag {
	height: 50px;
	display: flex;
	align-items: center;
  }
  
  #legende .ueberschrift {
	font-weight: bold;
	text-decoration: underline;
	margin: 20px 0 0 0;
  }

  #logo {
	margin: 0 0 0 0;
  }
	  
  #logo img { 
	height: 150px;
	width: auto;
  }
  
  #divhinweis {
	z-index: 9999;
  }
	  
  .textfarbig {
	color: var(--main-color);
  }
	  
  .overflow {
	overflow: auto;
  }
	  
  .ui-button {
	width: 200px;
	background-color: #e5e5e5;
	color: #444;
  }
  
  .ui-button:hover {
	opacity: 0.9;
	background-color: var(--main-bg-color-light);
	color: var(--main-color-dark);
  }

  .ui-button-active {
	background-color: var(--main-color-dark);
	color: var(--main-bg-color-light);
  }
  
  .ui-button-small {
	width: 50px;
  }

  .ui-widget {
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
  }
  
  /* Hamburger Menu Styles */
  #hamburgermenu {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 200;
  }
  
  #hamburgermenu a {
	color: var(--main-bg-color);
	padding: 14px 16px;
	text-decoration: none;
	font-size: 30px;
	display: block;
	transition: background-color 0.2s, color 0.2s;
  }
  
  #hamburgermenu a.hamb_icon:hover {
	background-color: #f0f0f0;
	color: var(--main-color);
  }
  
  #hamburgermenu a.hamb_icon {
	background: white;
	display: block;
	left: 0;
	top: 0;
	border-bottom-right-radius: 5px;
  }
  
  /* Legend toggle button for mobile */
  #legend-toggle {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 200;
	padding: 14px 16px;
	background: white;
	border-bottom-left-radius: 5px;
	color: var(--main-bg-color);
	font-size: 30px;
	transition: background-color 0.2s, color 0.2s;
	cursor: pointer;
  }
  
  #legend-toggle:hover {
	background-color: #f0f0f0;
	color: var(--main-color);
  }

  #TabLegende {
	 height:780px; 
	 overflow: auto;
  }
  
  /* Beteiligungsmenu */
  #beteiligung {
	grid-area: menu;
	margin: 400px 0px 0px 20px;
  }
  
  #beteiligung select {
	width: 90%;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid #ccc;
  }
  
  #beteiligung button {
	margin-top: 10px;
  }

  #beteiligung_btn {
	grid-area: menu;
	margin: 500px 0px 0px 21px;
  }

button#melden {
	width:100px; 
	float:left;
}

button#abbrechen {
	width:100px
}

button#btnhilfe {
	margin: 10% 0 0 2px;
}

  #headermenu {
	grid-area: header;
	background-color: white;
	
  }

  /* Mobile Menu Styles */
  #menu-mobile {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 0;
	background-color: rgba(255, 255, 255, 0.95);
	text-align: center;
	z-index: 150;
	box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
	justify-content: space-around;
  }
  
  #menu-mobile a {
	display: inline-block;
	padding: 12px;
	margin: 0 5px;
	font-size: 24px;
	color: var(--main-color);
	transition: transform 0.2s;
  }
  
  #menu-mobile a:hover {
	transform: scale(1.2);
	text-decoration: none;
  }
  
  /* Collapsed menus for mobile */
  /*#left.collapsed {
	width: 60px;
  }
  
  #left.collapsed h1,
  #left.collapsed #menu,
  #left.collapsed #beteiligung {
	display: none;
  }
  
  #left.collapsed #menu-mobile {
	display: flex;
  }*/
  
  /* Center content for non-map pages */
  #center {
	grid-area: main;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
  }
  
  #content {
	background-color: white;
	width: 800px;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	margin-top: 20px;
  }
  
  /* Responsive Design - Tablets */
  @media only screen and (max-width: 1024px),
  			  screen and (max-height: 600px) {
	#grid-container {
	  grid-template-columns: 0px 100% 0px;
	  grid-template-rows: 45px 0px calc(100% - 45px);
	}

	#grid-container_map {
	  grid-template-columns: 0px calc(100% - 370px) 370px;
	  grid-template-rows: 45px 65px calc(100% - 110px);
	}

	h1 {
		grid-area: title;
		font-size: 18pt;
		margin: 10px 0 0 22px;
		white-space: nowrap;
	}

	#ueberschrift {
		grid-column: 1/-1;
		width: 600px;
		margin: 10px auto;
		background-color: white;
		padding: 6px 10px 14px 0px;
		border-radius: 5px;
		box-shadow: 0 0 10px rgba(0,0,0,0.1);
	}

	#center {
		padding-bottom: 105px;
	}

	#content {
		width: 600px;
	}

	h2 {
		font-size: 18px;
	}
  
	#left {
	  display: none;
	  position: absolute;
	  top: 0;
	  left: 0;
	  height: 100%;
	  z-index: 300;
	  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
	}
  
	#menu-mobile {
		display: flex;
		justify-content: center;
	}

	#beteiligung {
		grid-area: header;
		margin: -25px 0px 0px 10px;
		}
  
	  #beteiligung_btn {
		  grid-area: header;
		  margin: 29px 0px 0px 215px;
	  }
	  
	  #beteiligung select {
		width: 100%;
	  }
  
	  button#melden, button#abbrechen {
		  width:50px; 
		  float:left;
	  }
	  
	  button#btnhilfe {
		  width:102px;
		  margin: -60px 0 0 -103px;
	  }

	  #map {
		width: 100%;
		height: calc(100% - 85px);
	  }

	  #menu {
		display: none;
	  }

	  button#melden span, button#abbrechen span, button#btnhilfe span{
		display:none;
	}

	#logo img { 
		max-width: 100px; 
		max-height: 90px;
	  }
	
    #legende {
	  margin: 0px 0px 0px 0px;
	  height: calc(490px + 80px);
	}

	#TabLegende {
		overflow: auto;
	}
  }
  
  /* Responsive Design - Mobile */
  @media only screen and (max-width: 768px),
  			  screen and (max-height: 400px) {
	#grid-container {
	  grid-template-columns: 0px 100% 0px;
	}

	#grid-container_map {
		grid-template-columns: 0px 100% 0px;
	  }
  
	.ol-zoomslider {
	  display: none;
	}
  
	#left {
	  width: 100%;
	}
  
	#legende {
	  display: none;
	  position: absolute;
	  top: 0;
	  right: 0;
	  z-index: 200;
	  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
	  margin: 110px 0px 0px 0px;
	}

	#TabLegende {
		margin: -60px 0 0 0;
	}

	#ultabs {
		visibility: hidden;
	}
  
	.ui-button {
	  width: 100%;
	}

	.ui-dialog {
		z-index: 500;
	}
	
	#TabKarten, #TabLegende {
	  padding: 10px;
	}
	
	#tabs ul {
	  display: flex;
	  flex-direction: row;
	  padding: 0;
	}
	
	#tabs li {
	  flex: 1;
	  list-style: none;
	  text-align: center;
	}
	
	#tabs a {
	  padding: 10px 5px;
	  display: block;
	}

	/*#logo {
		position: absolute;
		display:none;
		width: 150px;
		margin: 570px 20px 20px -150px;
		z-index: 400;
	  }*/
	#center {
		padding: initial;
		padding: 0 5% 105px 5%;
		margin-top: 20px;
	}
	#content {
		width: 100%;
	}

	#ueberschrift {
		width: 90%;
	}

	#legend-toggle {
		padding-top: 60px;
	}
  }