.dashboard {
  width: 100%;
/*  max-width: 1900px; */
  max-width: 795px;
  margin: 0 auto;
}

.time-range-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.time-range-nav button {
  padding: 0.5rem 1.5rem;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

.time-range-nav button:hover {
  background: #f5f5f5;
  border-color: #0066cc;
}

.time-range-nav button.active {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
}

.time-range-label {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.current-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.value-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.value-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.value-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.chart-container {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 1rem;
}

.chart-wrapper {
  width: 100%;
  aspect-ratio: 2 / 1;
  position: relative;
}

.chart-stats {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.dashboard-footer {
/*  margin-top: 2rem;
*/  padding-top: 1rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 1rem 0;
}

.footer-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-sponsor {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-sponsor a {
  color: #0066cc;
  text-decoration: none;
}

.footer-sponsor a:hover {
  text-decoration: underline;
}

.version-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.version-short {
  display: none;
}

.version-full {
  display: inline;
}

/* Responsive Design für schmale Bildschirme (Smartphones) */
@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .current-values {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard {
    padding: 0 0.5rem;
  }
  
  .time-range-nav button {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  .time-range-label {
    font-size: 1rem;
  }
  
  .version-short {
    display: inline;
  }
  
  .version-full {
    display: none;
  }
}
