


/* content */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

}

/* Map */

div.map-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

div.map-btns button {
  min-width: 30%;
  padding: 0.5rem;
}

#de,
#ni {
  
  height: 3rem;
  background-color: rgb(50, 50, 50, 1);
  border: none;
  color: white;
}

#de:hover,
#ni:hover {
  border: 2px solid white;
  cursor: pointer;
}

#de {
  left: 0%;
}
#ni {
  right: 0;
}
.mapView {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-width: 300px;
	height: 75vh;
	margin: 1rem 21rem;
}

#map {
  width: 100%;
  height: 100%;
  -webkit-box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.5);
}



.form {
  position: fixed;
  left: 1.5rem;
  top: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.form input {
  width: 8rem;
  margin-bottom: 0.25rem;
  border: 2px solid lightgray;
  text-align: center;
}
.form input::placeholder {
  font-size: 0.7rem;
  font-weight: bold;
  opacity: 0.5;
}

div.form.mobile {
	position: fixed;
	left: 55%;
	top: 55%;
	transform: translate(-50%, -50%);
	scale: 1.3;
	display: none;
	background: rgba(0,0,0, 0.2);
	padding: 0.5rem;
	border-radius: 10px;
}

div.form.mobile.show {
  display: flex;
}

.filter_btn {
  align-items: center;
  justify-items: center;
  border: 0.25rem solid lightgray;
  background: rgb(50, 50, 50, 1);
  color: white;

  padding: 1rem;
  gap: 0.75rem;
}

.filter_btn.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  width: 10rem;
}

.filter_btn.flex {
  display: flex;
  flex-direction: column;
  width: 8rem;
}


.filter_btn button {
  width: 3rem;
  height: 3rem;
  border: 0;
}
.filter_btn button:hover {
  cursor: pointer;
}

.filter_btn img {
  max-width: 100%;
  max-height: 100%;
}

.meldungen, .no_result {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 50vw;
	margin: 1.5rem;
	padding: 2rem 3rem;
	border: 3px solid black;
	background-color: rgb(50, 50, 50, 1);
	color: white;
	-webkit-box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.5);
}



.meldungen .gebiete {
	
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));  
  width: 100%;
  gap: 1rem;
  max-height: 16rem;
	overflow-y: auto;
	margin: 1.5rem;
	padding: 0.6rem;
	border: 3px solid whitesmoke;
	border-radius: 5px;

}
.meldungen .gebiete.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: repeat(1, 60px);  will get calculated in JS*/  
  align-items: center;
  justify-items: center;

}


.meldungen .gebiete.flex {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

.gebiet {
	margin: 0.5rem;
}


.meldungen.btn_fillter,
.meldungen.src_fillter {
  display: none;
}
.meldungen h2 {
  text-decoration: underline;
}

.scrollUp_btn {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.scrollUp_btn.show {
  position: fixed;
  right: 3rem;
  bottom: 5rem;
  opacity: 1;
  border-radius: 5px;
  transition: opacity 0.4s ease-in;
}
.scrollUp_btn.show:hover {
  cursor: pointer;
  -webkit-box-shadow: 0px 0px 4px 0px #000000;
  box-shadow: 0px 0px 4px 0px #000000;
}
.scrollUp_btn.show i {
  font-size: 3.5rem;
  padding: 2px;
}

@media screen and (width <= 1000px) {
  .mapView {
    margin: 1rem;
  }
}


@media screen and (width <= 800px) {
  .meldungen, .no_result {
    width: auto;
    margin: 1rem 3rem;
  }
  .scrollUp_btn.show {
    right: -9px;
    bottom: 7rem;
  }
}

@media screen and (width <= 400px) {
  .meldungen, .no_result {
    margin: 1rem;
  }
}