/* =========================================================================
   PFLÜCK-WETTER WIDGET — Beerengarten Feldkirchen
   Passt zum Design-System in style.css
   ========================================================================= */

/* --------------------------------------------------------------------------
   Lade-Zustand
   -------------------------------------------------------------------------- */
.wetter-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Haupt-Card
   -------------------------------------------------------------------------- */
.wetter-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  min-height: 160px;
}

/* --------------------------------------------------------------------------
   Linke Seite: Pflück-Ampel
   -------------------------------------------------------------------------- */
.wetter-ampel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 52%;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background 0.3s ease;
}

/* Ampel-Farben per Status-Modifikator auf der Card */
.wetter-ampel--green .wetter-ampel {
  background: linear-gradient(135deg, #28a745 0%, #34c759 100%);
  color: #fff;
}
.wetter-ampel--orange .wetter-ampel {
  background: linear-gradient(135deg, #e08200 0%, #ff9500 100%);
  color: #fff;
}
.wetter-ampel--red .wetter-ampel {
  background: linear-gradient(135deg, #c0272d 0%, #e63946 100%);
  color: #fff;
}

/* Leuchtpunkt (Ampel-Dot) */
.wetter-ampel-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.wetter-ampel-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.wetter-ampel-hint {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.88;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Trennlinie
   -------------------------------------------------------------------------- */
.wetter-divider {
  width: 1px;
  background: var(--color-bg);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Rechte Seite: Wetterdetails
   -------------------------------------------------------------------------- */
.wetter-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.wetter-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.wetter-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Statistik-Zeile */
.wetter-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.wetter-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.wetter-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
}

.wetter-stat-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Meta-Zeile unter der Card
   -------------------------------------------------------------------------- */
.wetter-meta {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Fehler-Zustand
   -------------------------------------------------------------------------- */
.wetter-error {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.wetter-error-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.wetter-error-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.wetter-error-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Responsive — Mobile: Stack vertikal
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
  .wetter-card {
    flex-direction: column;
    min-height: unset;
  }

  .wetter-ampel {
    flex: unset;
    padding: 1.5rem 1.25rem;
    border-radius: 0; /* Card-Overflow übernimmt Radius */
  }

  .wetter-divider {
    width: 100%;
    height: 1px;
  }

  .wetter-details {
    padding: 1.25rem 1rem 1.5rem;
  }

  .wetter-icon {
    font-size: 2rem;
  }

  .wetter-stat-value {
    font-size: 1.2rem;
  }
}
