body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f5f5;
}

.container {
  display:flex;
  flex-direction: column;
  height: 100vh; /* Gesamter Viewport */
  box-sizing: border-box;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}


/* Erste Zeile: Zeitbereichs-Buttons */
.button-group {
  display: flex;
  gap: 0.5rem;
}

.button-group button {
  flex: 1;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Zweite Zeile: Dropdowns + Aktualisierungsbutton */
.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.input-group label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.8rem;
  min-width: 120px;
}



.input-group input,
.input-group select {
  height: 2.2em;
  font-size: 0.9rem;
  padding: 2px 6px;
}


.input-group button {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.input-group input,
.input-group select,
.input-group button {
  height: 2.2em;
  font-size: 0.95em;
  padding: 2px 6px;
}

/* Chart-Styling */
.chart-container {
  flex-grow: 1;                  /* Füllt verbleibenden Platz */
  max-height: 60vh;             /* Begrenzung auf Viewport-Höhe */
  background: white;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  background-color: aliceblue;
}


#rainChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
