/* ========================================= */
/* 🌡️ KLIMA.CSS - Alle Klima-Page Styles */
/* Erstellt: 2024-12-09 - FINALE VERSION */
/* ========================================= */

/* -------------------- */
/* Section Container */
/* -------------------- */
.klima-page .klima-section {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  color: #fff;
  box-sizing: border-box;
  overflow-x: hidden;
}

.klima-page .wetter-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto;
  text-align: center;
  color: #fff;
}

.klima-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 20px 20px;
  width: 100%;
}

.klima-page h1 {
  text-align: center;
  margin: 20px 0 0 0;
}

.klima-page h2 {
  text-align: center;
}

.klima-page h3 {
  text-align: center;
}

/* -------------------- */
/* Dashboard Grid (Klima + Luftqualität) */
/* -------------------- */
.klima-page .dashboard {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 25px !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
}

/* -------------------- */
/* Karten (Klima + Luftqualität) */
/* -------------------- */
.klima-page .card {
  background: rgba(240, 240, 240, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 240px;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.klima-page .card h2 {
  font-size: 1.05rem;
  text-align: center;
  margin: 0;
  flex-shrink: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.klima-page .card-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 15px 0;
  white-space: nowrap;
}

.klima-page #pressure.card-value {
  font-size: 2rem;
}

.klima-page .unit {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-left: 4px;
}

/* -------------------- */
/* Klima-Werte */
/* -------------------- */
.klima-page .klima-value {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
  overflow-wrap: break-word;
}

.klima-page .klima-value .unit {
  font-size: 1rem;
  opacity: 0.8;
  margin-left: 4px;
}

.klima-page .klima-text {
  color: #fff;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
  flex-shrink: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.klima-page #quality-text {
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
}

.klima-page #pressure.klima-value {
  font-size: 2.3rem;
  white-space: nowrap;
}

.klima-page #pressure.klima-value .unit {
  font-size: 1rem;
  opacity: 0.8;
  margin-left: 4px;
}

/* -------------------- */
/* Wetter-Widgets */
/* -------------------- */
.klima-page .iframe-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 50px;
  width: 100%;
  max-width: 1200px;
}

.klima-page .wetter-widget {
  border: 1px solid transparent;
  border-radius: 20px;
  width: 300px;
  height: 365px;
  flex-shrink: 0;
}

/* -------------------- */
/* Wetter-Daten Section */
/* -------------------- */
.klima-page .wetter-daten-section {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  color: #fff;
}

.klima-page .wetter-daten-section h2 {
  font-family: "Michroma", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.klima-page .wetter-daten-section h3 {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #bbb;
  text-align: center;
  font-weight: normal;
}

/* Weather Forecast */
.klima-page .forecast-items {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.klima-page .forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #bbb;
  padding: 0 15px;
  position: relative;
}

.klima-page .forecast-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

.klima-page .forecast-day {
  font-weight: bold;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.klima-page .forecast-icon {
  width: 50px;
  height: 50px;
}

.klima-page .forecast-temp {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

.klima-page .forecast-max {
  color: #ff6b6b;
}

.klima-page .forecast-min {
  color: #6ab7ff;
}

/* -------------------- */
/* Wetter-Cards Grid */
/* -------------------- */
.klima-page .weather-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

.klima-page .weather-card {
  background: rgba(240, 240, 240, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.klima-page .weather-card h3 {
  font-family: "Michroma", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.klima-page .weather-temp {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 15px 0;
}

.klima-page .weather-desc {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 15px;
  text-transform: capitalize;
}

.klima-page .weather-extra {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 10px;
}

.klima-page .weather-extra span {
  display: block;
}

.klima-page .weather-time {
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

/* ========================================= */
/* 📱 RESPONSIVE - BREAKPOINTS */
/* ========================================= */

/* Tablet: 1100px - Wetter Cards */
@media screen and (max-width: 1100px) {
  .klima-page .weather-cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablet: 950px - Dashboard 2 Spalten */
@media screen and (max-width: 950px) {
  .klima-page .dashboard {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile: 768px - ALLES 1 Spalte */
@media screen and (max-width: 768px) {
  html body .klima-page .dashboard {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 20px !important;
  }

  /* NEUE, SEHR SPEZIFISCHE REGEL FÜR DAS BOARD INNERHALB JEDER KLIMA-SEKTION */
  .klima-page .klima-section .dashboard {
    grid-template-columns: 1fr !important;
  }

  html body .klima-page .card {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

  .klima-page .weather-cards-container {
    grid-template-columns: 1fr !important;
  }

  .klima-page .wetter-widget {
    width: 100%;
    max-width: 300px;
    height: 365px;
  }
  
  .wetter-daten-section {
  padding: 20px;
  margin: 30px auto 20px auto;
}

.wetter-daten-section h2 {
  font-size: 1.5rem;
}

.weather-cards-container {
  flex-direction: column;
  align-items: stretch;
}

.weather-card {
  flex: 1 1 100%;
  max-width: 100%;
}
}

/* iPhone SE und kleiner: 480px */
@media screen and (max-width: 480px) {
  .klima-page .klima-section {
    padding: 20px 15px;
  }

  .klima-page .wetter-daten-section {
    padding: 20px 15px;
  }

  html body .klima-page .dashboard {
    gap: 15px !important;
  }

  html body .klima-page .card {
    min-height: 180px !important;
    padding: 15px 10px;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .klima-page .card h2 {
    font-size: 0.95rem;
  }

  .klima-page .klima-value {
    font-size: 2.2rem;
  }

  .klima-page .klima-text {
    font-size: 0.75rem;
  }

  .klima-page .weather-cards-container {
    gap: 15px;
  }
}

/* ========================================= */
/* 🎯 ENDE KLIMA.CSS */
/* ========================================= */
