body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 20px;
}

h1 {
  text-align: center;
}

.button-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 20px 0;
	gap: 10px;
}
.button-bar button {
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  cursor: pointer;
}
.button-bar button:hover {
  background: #0056b3;
}

.station {
  background: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

label {
  font-weight: bold;
}

select, textarea {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.status-indicator {
  padding: 6px;
  border-radius: 5px;
  color: white;
  display: inline-block;
  font-weight: bold;
}

.grün { background-color: #4CAF50; }
.gelb { background-color: #FF9800; }
.rot { background-color: #F44336; }

.timestamp {
  font-size: 0.9em;
  color: #555;
}


#map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#map-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid white;
  border-radius: 10px;
}


#room-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  overflow-y: auto;
}
#room-overlay .overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
}


#teams-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#teams-overlay .teams-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-height: 90%;
  overflow-y: auto;
  width: 90%;
  max-width: 500px;
}
#teams-container h3 {
  margin-bottom: 5px;
}
.team-box {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.team-box label {
  font-weight: bold;
}
.team-box textarea {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}

.station {
  background: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.status-indicator {
  padding: 6px;
  border-radius: 5px;
  color: white;
  display: inline-block;
  font-weight: bold;
}
.grün { background-color: #4CAF50; }
.gelb { background-color: #FF9800; }
.rot { background-color: #F44336; }
.timestamp {
  font-size: 0.9em;
  color: #555;
}

#teams-overlay {
  position: fixed;
  display: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#teams-overlay .overlay-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  max-height: 90vh;
  overflow-y: auto;
}


.team-section {
  position: relative;
}

.close-all {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}


.close-overlay-btn {
  position: absolute;
  top: 20px;
  left: 30px;
  background: transparent;
  border: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 600px) {
  body {
    margin: 10px;
  }
  .button-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .button-bar button {
    width: 100%;
    margin: 5px 0;
  }
  .overlay-content {
    width: 95%;
    padding: 10px;
  }
  #map-overlay img {
    max-width: 95%;
  }
}
