/* ======================================= */
/* == DESKTOP STYLES (1:1 DAS ORIGINAL) == */
/* ======================================= */

body {
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 1.5rem;
}

h1 {
  color: #ffffff;
  font-weight: 300;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5em;
  margin-bottom: 1rem;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.werte-box {
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  min-width: 580px;
}

.werte-box-flex {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.werte-spalte {
    line-height: 1.8;
}

.werte-spalte .label { color: #aaa; }
.werte-spalte .wert { font-weight: bold; }
.werte-spalte .preis { color: #f9a825; font-weight: bold; }
.werte-spalte .einspeisung { color: #4caf50; }
.werte-spalte .leistung { color: #fff; background-color: #555; padding: 0.1em 0.4em; border-radius: 4px; text-decoration: none; }
.werte-spalte .solarleistung { color: #ffeb3b; }
.werte-spalte .akkustand { color: #9c27b0; }

.steuerung-container {
    flex: 1; 
    min-width: 300px;
}

#zeitraumTitel {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

button {
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #555;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
button:hover {
  background-color: #444;
}
#scaleToggleBtn {
    background-color: #005f73;
}

#chartContainer {
  height: 700px;
  width: 100%;
}
#chartCanvas {
  height: 100% !important;
  width: 100% !important;
  display: block;
}


/* ================================================== */
/* == RESPONSIVE ANPASSUNGEN (NUR FÜR MOBILGERÄTE) == */
/* ================================================== */

@media screen and (max-width: 900px) {

  /* Stapelt die äußeren Boxen (Werte-Box und Steuerungs-Box) */
  .flex-container {
    flex-direction: column;
    align-items: stretch;
  }

  /* Hebt die Mindestbreite der Boxen auf */
  .werte-box, .steuerung-container {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }

  /* 
    HIER IST DIE ENTSCHEIDENDE KORREKTUR:
    Diese Regel stapelt die beiden Spalten IN der Werte-Box untereinander.
  */
  .werte-box-flex {
    flex-direction: column;
    gap: 1rem; /* Passt den vertikalen Abstand zwischen den Blöcken an */
  }
}

.wetter-text {
  color: #ffeb3b; /* Leuchtendes Gelb, wie bei der Solarleistung */
  font-size: 0.9em;
  font-weight: bold;
}

/* Optional: Macht den "3-Tagesprognose:"-Teil etwas dezenter */
.wetter-text strong {
  color: #ccc;
  font-weight: normal;
  margin-right: 8px;
}

