:root {
  --bg: #f9fafb;
  --fg: #111827;
  --primary: #4f4f4f;
  --primary-hover: #333;
  --border: #e5e7eb;
  --badge-bg: #f1f1f1;
  --badge-text: #4f4f4f;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

/* Grundlegendes Layout */
body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Layout-Struktur */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges */
.badge,
.infoBadge {
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  max-height: 140px;
  display: flex;
  overflow: scroll;
}

.badge {
  border-radius: 999px;
}

/* Meta-Box */
.meta {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
}

/* Scrollbare Bereiche */
.scroll {
  overflow: auto;
  max-height: 70vh;
  margin-top: 20px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
}

/* Tabellen */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  font-weight: 600;
  z-index: 1;
}

/* Plot-Container */
#plot {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  height: auto;
  position: relative;
}

#plotlyDiv {
  width: 100%;
  height: 360px;
}

.plot-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

/* Formularelemente */
select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
}

/* Station Info */
.station-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.station-info span {
  font-size: 14px;
}

/* Station Choices */
.station-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.station-btn {
  width: 100%;
  text-align: left;
}

/* Wetterübersicht */
.weather-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.weather-summary h2 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Day Selector */
.day-selector-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
}

.day-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 4px;
  padding-bottom: 4px;
  flex: 1;
}

/* Scrollbar Styles für Day Selector */
.day-selector::-webkit-scrollbar {
  height: 6px;
}

.day-selector::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Pfeile Day Selector */
.day-arrow {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 10px;
}

.day-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Scrollbarer Bereich für Karten */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 5px;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Karten-Design */
.summary-card {
  flex: 0 0 auto;
  width: 100px;
  min-height: 120px;
  background: #f1f1f1;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.summary-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.summary-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.summary-card span.label {
  font-size: 12px;
  color: #4f4f4f;
  display: flex;
  flex-direction: column;
  align-items: center; /* oder left/right je nach Bedarf */
  gap: 1px; /* statt line-height hack */
}




/* Kein Daten Zustand */
.no-data {
  padding: 12px;
  color: #6b7280;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .btn,
  select {
    width: 100%;
  }

  #plot {
    padding: 12px;
  }

  #plotlyDiv {
    height: 300px;
  }

  .meta,
  .scroll {
    font-size: 14px;
  }
}


/* Day Selector Slide-Animation */
.day-selector {
  position: relative;
  overflow: hidden;
  height: 24px; /* Höhe passend zum Text – optional anpassen */
}

.day-slide-wrapper {
  position: absolute;
  width: 100%;
  display: inline-block;
  transition: transform 0.3s ease;
  will-change: transform;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--badge-bg);
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: var(--primary);
}

.footer-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  font-size: 10px;
}

.footer-link:hover {
  color: var(--primary-hover);
}


/* Koordinaten suchleiste */
input[type="text"] {
    padding: 0.5em;
    border-radius: 8px;
    font-size: 16px;
}
