/* Allgemeine Layout-Einstellungen */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f9;
  height: 100vh;
}

.container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

/* Kachel-Styling */
.sensor-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  min-width: 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sensornamen - größere Schrift */
.sensor-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

/* Sensorwerte - Ausrichtung mit CSS Grid */
.sensor-value {
  display: grid;
  grid-template-columns: 1fr 50px;  /* Zwei Spalten: 1fr für den Text, 50px für den Pfeil */
  font-size: 18px;
  font-weight: normal;
  white-space: nowrap; /* Verhindert Zeilenumbruch */
  text-align: left;
  gap: 5px; /* Abstand zwischen Text und Pfeil */
}

/* Tendenz (Pfeile) */
.trend {
  font-size: 18px;  /* Schriftgröße für Pfeil bleibt gleich */
  justify-self: end;  /* Rechtsbündig auf der zweiten Spalte */
}

.trend.up {
  color: green;
}

.trend.down {
  color: red;
}

.trend.neutral {
  color: gray;
}

/* Footer für die letzte Aktualisierung */
.timestamp {
  font-size: 14px;
  color: gray;
  text-align: center;
  margin-top: 15px;
}
