* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f172a;
  color: #e5e7eb;
}

.top-info-bar {
  width: 100%;
  text-align: center;
  padding: 6px 0;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #334155;
}

/* BUTTON STYLES – passend zum Layout */
.btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Blau – Primary */
.btn-blue {
    background: #1d4ed8;
    color: #ffffff;
}
.btn-blue:hover {
    background: #2563eb;
    transform: scale(1.04);
}

/* Grau – Neutral */
.btn-gray {
    background: #4b5563;
    color: #e5e7eb;
}
.btn-gray:hover {
    background: #6b7280;
    transform: scale(1.04);
}

/* Dunkel – Sekundär */
.btn-dark {
    background: #1f2937;
    color: #e5e7eb;
}
.btn-dark:hover {
    background: #374151;
    transform: scale(1.04);
}

/* Grün – Live-Modus-Button */
.btn-green {
    background: #059669;
    color: #ffffff;
}
.btn-green:hover {
    background: #10b981;
    transform: scale(1.04);
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header p {
  color: #9ca3af;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(135deg, #1e293b, #020617);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Forecast-Card */
.forecast-card {
  grid-column: span 2;
}

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.forecast-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.forecast-icon {
  font-size: 2.5rem;
}

.forecast-text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.forecast-trend {
  font-size: 0.8rem;
  color: #9ca3af;
}

.card h2 {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.value {
  font-size: 1.8rem;
  font-weight: 600;
}

.chart-section {
  background: #020617;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.chart-section h2 {
  margin-bottom: 0.75rem;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 800px) {
  .forecast-card {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .header p {
    font-size: 0.9rem;
  }

  .value {
    font-size: 1.4rem;
  }
}

/* Einheitliche Abstände zwischen Sektionen */
section {
    margin-top: 1rem;
}

/* Speziell für History */
.history-box {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Chart etwas Abstand nach oben */
.chart-box {
    margin-top: 1rem;
}

/* Forecast-Box Abstand nach oben */
.forecast-box {
    margin-top: 1rem;
}

