/* Lade die Schriftart 'Roboto Mono' von Google Fonts und füge sie zu deinem CSS hinzu */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

/* Globale Box-Sizing-Einstellung für konsistente Größenberechnung */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  margin: 0;
  background-color: #F7F7F7;
  color: #191919;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  background-color: #097080;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  background-color: #097080;
}

.header-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

h1 {
  margin-left: 10px;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
}

h2 {
  margin-left: 10px;
  margin-right: 5px;
  font-weight: 700;
  font-size: 1.5rem;
}

#logo {
  max-width: 240px;
  height: auto;
  margin-left: 15px;
  margin-right: 10px;
}

.content {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.box {
  background-color: #f2f7fa;
  border-radius: 0px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.box h3 {
  margin-bottom: 10px;
}

.box p {
  margin: 0 0 15px;
  line-height: 1.5;
}

.box:last-child p {
  margin-bottom: 0;
}

/* Zentriert den Button innerhalb der Box */
.box .button-container {
  text-align: center;
}

/* Stylt den Link wie einen Button */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #007BFF;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 10px; /* Abstand zum vorherigen Element */
}

.button:hover {
  background-color: #0056b3;
}

/* Neue Stile für die Control-Center-Optik */
.control-center {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  margin-bottom: 20px;
}

.control-center .measurement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #F7F7F7;
  border-radius: 0px;
  padding: 15px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#chartdiv, #chartdiv2 {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  background-color: #F7F7F7;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

footer {
  width: 100%;
  background-color: #097080;
  padding: 1rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  width: 100%;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-icons a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}

.contact-icons a:hover {
  color: #b3d1d1;
}

.contact-icons i {
  margin-right: 0.5rem;
}

.contact-icons a span {
  white-space: nowrap;
}

.highlight {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  #logo {
    max-width: 130px;
  }
  h1 {
    font-size: 1.5rem;
    margin-left: 0;
  }
  h2 {
    font-size: 1.2rem;
    margin-left: 20px;
  }
  h3 {
    font-size: 1.1rem;
    margin-left: 20px;
  }
}

.login-container {
  margin-top: 50px;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;
}

.logo2 {
  width: 100px;
  margin-bottom: 20px;
}

label {
  display: block;
  text-align: left;
  margin-top: 10px;
}

input[type=text], input[type=password] {
  box-sizing: border-box; /* Fügt padding zur Gesamtbreite des Elements hinzu */
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

input[type=submit] {
  margin-top: 20px;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  border: none;
  color: white;
  background-color: #097080;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #286090;
}

.logout-button {
  margin-right: 20px;
}

.logout-button a {
  color: #ffffff;
  text-decoration: none;
}

.logout-button a:hover {
  color: #b3d1d1;
}

/* Neue Stile für die Windrose und das See-Bild */
.windrose-container {
  display: flex;
  flex-direction: column; /* Standardmäßig für kleine Bildschirme */
  align-items: center;
  margin-bottom: 20px; /* Abstand nach unten zum Slider */
}

.lake-image {
  width: 100%; /* Bild nimmt die volle Breite ein */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Abstand zum Windrosendiagramm */
}

.windrose-chart {
  width: 100%; /* Windrose nimmt die volle Breite ein */
  height: 400px; /* Angepasste Höhe für mobile Geräte */
}

.slider-label {
  display: block;
  text-align: center; /* Zentriert den Text */
  margin-bottom: 20px; /* Größerer Abstand unterhalb der Beschriftung */
  font-size: 1.1rem; /* Schriftgröße anpassen */
  font-weight: bold; /* Fettgedruckt für bessere Sichtbarkeit */
}

.slider {
  margin-top: 50px; /* Vergrößere den Abstand oberhalb des Sliders */
  width: 80%; /* Begrenze den Slider auf 80% der Breite */
  margin-left: auto;
  margin-right: auto;
}

/* Layout für größere Bildschirme */
@media (min-width: 769px) {
  .windrose-container {
    flex-direction: row; /* Nebeneinander auf großen Bildschirmen */
    align-items: center; /* Vertikale Zentrierung */
    justify-content: space-between;
  }

  .lake-image, .windrose-chart {
    flex: 1 1 55%; /* Beide nehmen ca. 45% der Breite ein */
    max-width: 55%;
    margin-bottom: 0; /* Entfernt den unteren Abstand */
  }

  .lake-image {
    margin-left: 0; /* Entfernt den linken Abstand */
  }

  .windrose-chart {
    height: 500px; /* Höhere Windrose für größere Bildschirme */
  }
}

/* noUiSlider Anpassungen */
/* Schienenfarbe (Slider Background) */
.noUi-horizontal {
  background: #e0e0e0; /* Optional: Ändert den Hintergrund der Schiene */
}

/* Griff (Handle) Farbe */
.noUi-handle {
  background-color: #D9D9D9; /* Setzt die Grifffarbe auf D9D9D9 */
  border: none; /* Entfernt den Rand um den Griff */
  border-radius: 50%; /* Macht den Griff rund */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optional: Schatteneffekt */
}

/* Verbindung (Connect) Farbe - Bereich zwischen den Griffen */
.noUi-connect {
  background: #92c7e0; /* Setzt die Farbe der Verbindung auf #92c7e0 */
}

/* Entfernen doppelter Definitionen von .highlight-value und .highlight-time */
.highlight-value {
  font-size: 28px;
  font-weight: bold;
  color: #00468b;
}

.highlight-time {
  font-size: 18px;
  color: #555;
}

/* Sauerstoffsättigungsindex-Legende */
.saturation-legend {
  margin-top: 5px; /* enger an chartdiv2 ran */
  margin-bottom: 20px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #fffffff2;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.saturation-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saturation-legend .legend-box {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 2px;
  border: 1px solid #999;
}

.legend-red { background-color: #c62828; }
.legend-orange { background-color: #FFA500; }
.legend-blue { background-color: #00468b; }
.legend-green { background-color: #26b56e; }
.legend-darkgreen { background-color: #006400; }

