* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #026cb6 0%, #0d7cd1 320px, #1689e4 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #1e293b;
  padding: 16px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  display: block;
}

.header-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.header-text p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 3px;
}

.menu-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.menu-toggle-btn:hover { background: rgba(255, 255, 255, 0.25); }
.menu-toggle-btn .menu-icon { font-size: 20px; line-height: 1; }
.menu-toggle-btn .menu-label { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.back-home-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.back-home-btn:hover { background: rgba(255, 255, 255, 0.25); }

/* Suchleiste & GPS */
.search-box {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  outline: none;
}

.geo-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 19px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-btn:hover {
  transform: scale(1.15);
}

.search-box button#searchBtn {
  background: #ffb703;
  color: #0b497a;
  font-weight: 700;
  font-size: 15px;
  border: none;
  padding: 0 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: background 0.2s;
}

.search-box button#searchBtn:hover {
  background: #fca311;
}

/* Schnellwahl Chips */
.quick-location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.quick-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.quick-chips {
  display: flex;
  gap: 6px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.autocomplete-items {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
}

.autocomplete-item {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:hover { background-color: #f7fafc; }
.region-hint { font-size: 12px; color: #64748b; }

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

/* ========================================================
   REGIONALE ÜBERSICHTSKARTE
   ======================================================== */
.regional-overview-card {
  padding: 18px 20px;
  background: #ffffff;
}

.overview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.overview-tabs {
  display: flex;
  gap: 8px;
}

.overview-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.overview-tab-btn:hover {
  background: #e2e8f0;
}

.overview-tab-btn.active {
  background: #0b497a;
  color: #ffffff;
  border-color: #0b497a;
  box-shadow: 0 2px 8px rgba(11, 73, 122, 0.25);
}

.overview-brand-stamp {
  text-align: right;
}

.brand-text {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0b497a;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.overview-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #b5b5b5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.overview-base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.overview-pins-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-city-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-city-anchor:hover {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 25;
}

/* --- FROSTED GLASS DESIGN FÜR ALLE PINS --- */
.glass-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}

.glass-day {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #1e293b;
}

.glass-night {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.glass-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.glass-icon {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.glass-temp {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.glass-city {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.overview-badges-box {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 15;
  pointer-events: none;
}

.badge-pill {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.2px;
}

.badge-primary {
  background: linear-gradient(180deg, #373b75 0%, #1e204b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-orange {
  background: linear-gradient(180deg, #ff8c00 0%, #e65100 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* NEU: CSS für die Trend-Tage Navigation über der Karte */
.trend-nav-container {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 30;
}

.trend-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.trend-nav-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.trend-nav-btn.active {
  background: #0b497a;
  color: #ffffff;
  border-color: #0b497a;
}

/* ========================================================
   RESTELEMENTE & STANDARDS (ORT.PHP)
   ======================================================== */
.warn-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 26px;
  border: 1px solid transparent;
}
.warn-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.warn-content { flex: 1; }
.warn-headline { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.warn-desc { font-size: 12px; line-height: 1.35; }
.warn-ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.warn-ok .warn-icon img { filter: grayscale(1) brightness(0.6) sepia(1) hue-rotate(80deg) saturate(3); }
.warn-yellow { background: #fefce8; color: #854d0e; border-color: #fde047; }
.warn-orange { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.warn-red { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 34px;
  margin-bottom: 16px;
  padding: 0 4px;
}
#weatherCard > .section-header-row:first-of-type { margin-top: 8px; margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 800; color: #0b497a; letter-spacing: -0.2px; }
.section-hint { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: 0.2px; }

.loc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.loc-header h2 { font-size: 18px; font-weight: 700; color: #0b497a; line-height: 1.25; }
.loc-header span { font-size: 12.5px; color: #64748b; margin-top: 3px; display: block; }

.lead-weather { display: flex; align-items: center; gap: 12px; }
.lead-weather-icon { width: 58px; height: 58px; display: block; filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.12)); }
#weatherDescLead { font-size: 13.5px; font-weight: 600; color: #334155; white-space: nowrap; }

.current-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f1f5f9;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 12px 18px 18px 18px;
  margin-bottom: 10px;
}
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.stat-main { background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%); border-color: #bfdbfe; }

.stat-lbl, .stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.param-ico {
  width: 17px;
  height: 17px;
  display: inline-block;
}

.stat-num { font-size: 24px; font-weight: 800; color: #0b497a; line-height: 1.1; margin-top: 2px;}
.stat-sub { font-size: 11px; color: #64748b; margin-top: 6px; }

.chart-stage-box {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 0 10px 0;
}

.chart-flex-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.static-axis-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 22px;
  z-index: 10;
  flex-shrink: 0;
  user-select: none;
}

.static-axis-left {
  width: 38px;
  align-items: flex-start;
  padding-left: 8px;
}

.static-axis-right {
  width: 44px;
  align-items: flex-end;
  padding-right: 8px;
}

.axis-zone-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 56%;
  font-size: 10px;
  font-weight: 700;
}

.axis-zone-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 38%;
  font-size: 10px;
  font-weight: 700;
  padding-bottom: 6px;
}

.axis-temp-val { color: #d9230f; }
.axis-rain-val { color: #0284c7; }
.axis-wind-val { color: #7c3aed; }

.chart-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.chart-container::-webkit-scrollbar { height: 6px; }
.chart-container::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.chart-inner { 
  min-width: 1150px; 
  height: 330px; 
}

.yr-legend-bar {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 12px auto 0 auto !important;
  padding: 6px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: fit-content !important;
  max-width: 100%;
  background: #ffffff;
}
.yr-legend-item { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; transition: opacity 0.2s ease; }
.yr-legend-item:hover { opacity: 0.8; }
.yr-legend-item.inactive { opacity: 0.3; text-decoration: line-through; }
.yr-legend-item.legend-static { cursor: default; }
.yr-legend-item.legend-static:hover { opacity: 1; }
.yr-line-temp { width: 18px; height: 3px; background: #d9230f; border-radius: 2px; display: inline-block; }
.yr-box-rain { width: 12px; height: 10px; background: rgba(56, 161, 219, 0.85); border-radius: 2px; display: inline-block; }
.yr-line-wind { width: 18px; height: 2.5px; background: #7c3aed; border-radius: 2px; display: inline-block; }
.yr-line-gust { width: 18px; height: 2px; border-top: 2px dashed #a855f7; display: inline-block; }
.yr-arrow-wind { font-size: 11px; color: #64748b; display: inline-block; transform: rotate(45deg); line-height: 1; }
.yr-lbl { font-size: 11px; font-weight: 700; color: #475569; white-space: nowrap; }

.daily-grid {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f5f9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 16px 16px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.daily-grid::-webkit-scrollbar { height: 6px; }
.daily-grid::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.day-card {
  flex: 1; 
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.day-card:hover, .day-card.active { background: #eef5fc; border-color: #93c5fd; transform: translateY(-2px); }
.day-name { font-size: 12px; font-weight: 700; color: #475569; }
.day-icon-img { width: 44px; height: 44px; margin: 10px auto; display: block; filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.12)); }
.day-temp { font-size: 14px; font-weight: 700; }
.day-temp .max { color: #b91c1c; }
.day-temp .min { color: #0369a1; }
.day-rain { font-size: 11px; color: #64748b; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }

.param-ico-small {
  width: 12px;
  height: 12px;
  display: inline-block;
  opacity: 0.8;
}

.day-detail-box {
  background: #f1f5f9;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 10px 16px 18px 16px;
  width: 100%;
}
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}
.detail-header h4 { font-size: 16px; color: #0b497a; margin: 0; }
.detail-lead-weather { display: flex; align-items: center; gap: 10px; }
.detail-icon-img { width: 48px; height: 48px; display: block; filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.12)); }
.detail-header span { font-size: 14px; font-weight: 600; color: #334155; }

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.detail-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.15s ease;
}

.detail-tile:hover { transform: translateY(-1px); }
.tile-lbl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.tile-val { font-size: 16px; font-weight: 800; color: #0b497a; line-height: 1.1; }

.day-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.day-sec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.sec-name { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.sec-icon { width: 38px; height: 38px; margin: 0 auto 8px auto; display: block; filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.1)); }
.sec-temp { font-size: 17px; font-weight: 800; color: #0b497a; margin-bottom: 6px; }
.sec-rain, .sec-wind { font-size: 11px; font-weight: 600; color: #475569; margin-top: 3px; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* Karten-Layout Leaflet */
.map-card { padding: 12px; margin-top: 26px; }
.map-header-title { padding: 0 4px; margin-bottom: 12px; }
.map-wrapper { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #cbd5e1; }
.map-container { height: 460px; width: 100%; z-index: 1; background: #e2e8f0; }
.map-floating-nav { position: absolute; top: 12px; left: 12px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }

.layer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  transition: all 0.2s;
}
.layer-pill:hover { background: #ffffff; transform: translateX(2px); }
.layer-pill.active { background: #0b497a; color: #ffffff; border-color: #0b497a; }
.pill-icon { font-size: 16px; }
.pill-text { font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }

.map-status-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.weather-marker-pin {
  background: #ffffff;
  border: 1px solid #0b497a;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0b497a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.pin-weather-ico { width: 24px; height: 24px; display: block; filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.15)); }
.user-location-pin { pointer-events: none; }
.pin-bubble { background: #0b497a; color: #ffffff; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; border: 2px solid #ffffff; }

.dwd-popup h4 { font-size: 14px; color: #b91c1c; margin-bottom: 4px; }
.dwd-time { font-size: 11px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.dwd-desc { font-size: 12px; color: #334155; line-height: 1.4; }

footer { text-align: center; font-size: 12px; color: #e2e8f0; margin: 30px 0 10px 0; }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 9998;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
.side-drawer {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: #ffffff; box-shadow: -4px 0 24px rgba(0,0,0,0.2); z-index: 9999;
  display: flex; flex-direction: column; transition: right 0.3s;
}
.side-drawer.active { right: 0; }
.drawer-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf2f7; }
.drawer-title { font-size: 18px; font-weight: 800; color: #0b497a; }
.menu-close-btn { background: transparent; border: none; font-size: 28px; color: #64748b; cursor: pointer; }
.drawer-nav { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }
.drawer-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 12px; text-decoration: none; color: #1e293b; background: #f8fafc;
}
.drawer-link:hover, .drawer-link.active { background: #eef5fc; color: #0b497a; }
.drawer-link .nav-ico { font-size: 22px; }
.drawer-link .nav-text-main { font-size: 14px; font-weight: 700; }
.drawer-link .nav-text-sub { font-size: 11px; color: #64748b; margin-top: 1px; }

/* Responsive Media Queries */
@media (max-width: 850px) {
  .current-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card { padding: 16px; }
  .regional-overview-card { padding: 12px; }
  .site-header { gap: 10px; }
  .site-logo { width: 42px; height: 42px; border-radius: 10px; }
  .header-text h1 { font-size: 18px; }
  .header-text p { font-size: 11px; }
  .menu-toggle-btn { width: 44px; height: 44px; }

  .overview-header-row { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 12px; }
  .overview-tabs { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .overview-tab-btn { font-size: 10.5px; padding: 6px 10px; }
  .overview-brand-stamp { text-align: center; }
  .brand-text { font-size: 11.5px; }
  .brand-sub { font-size: 9.5px; }
  
  .overview-map-stage { aspect-ratio: 1273 / 1080; }
  
  /* Blendet definierte Orte auf dem Smartphone aus */
  .hide-mobile, .hide-mobile-trend { display: none !important; }
  
  .map-city-anchor { transform: translate(-50%, -50%); }

  .glass-box {
    padding: 2px 4px;
    border-radius: 8px;
    gap: 2px;
  }
  
  .glass-row { gap: 2px; }
  
  .glass-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
  }
  
  .glass-temp { font-size: 12px; }
  .glass-city { font-size: 7.5px; margin-top: 1px; }

  /* Navigation Buttons für die Aussichten auf dem Handy anpassen */
  .trend-nav-container {
    top: 8px;
    right: 8px;
    gap: 4px;
  }
  .trend-nav-btn {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .badge-pill { font-size: 10px; padding: 3px 8px; border-radius: 6px; }

  .search-box { margin-bottom: 8px; }
  .search-input-wrapper input { padding: 12px 38px 12px 14px; font-size: 14.5px; }
  .search-box button#searchBtn { padding: 0 14px; font-size: 14px; }
  .quick-location-bar { margin-bottom: 16px; }

  .section-header-row { margin-top: 24px; margin-bottom: 12px; }
  #weatherCard > .section-header-row:first-of-type { margin-top: 6px; margin-bottom: 16px; }
  .section-title { font-size: 14.5px; }
  .section-hint { font-size: 10px; }
  
  .loc-header { padding: 14px 14px 10px 14px; }
  .loc-header h2 { font-size: 16px; line-height: 1.25; }
  .loc-header span { font-size: 11.5px; margin-top: 3px; }
  .lead-weather-icon { width: 48px; height: 48px; }
  #weatherDescLead { font-size: 12px; }
  
  .current-grid { padding: 10px 14px 14px 14px; gap: 10px; margin-bottom: 8px; }

  .chart-inner { min-width: 1250px; height: 320px; }
  .static-axis-left { width: 34px; padding-left: 4px; font-size: 9px; }
  .static-axis-right { width: 38px; padding-right: 4px; font-size: 9px; }
  
  .yr-legend-bar { 
    display: flex !important;
    justify-content: center !important;
    gap: 8px 14px !important; 
    padding: 6px 14px !important; 
    margin-top: 8px !important; 
    border-radius: 14px !important;
  }
  .yr-legend-item { gap: 6px; }
  .yr-lbl { font-size: 10.5px; }
  .yr-line-temp { width: 14px; }
  .yr-box-rain { width: 10px; height: 8px; }
  .yr-line-wind { width: 14px; }
  .yr-line-gust { width: 14px; }

  .daily-grid { padding: 14px 12px 8px 12px; }
  .day-detail-box { padding: 8px 12px 14px 12px; }
  
  .detail-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail-tile { padding: 10px 12px; }
  .tile-lbl { font-size: 11px; }
  .tile-val { font-size: 15px; }
  .detail-header { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; margin-bottom: 10px; }
  
  .day-sections-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .map-container { height: 380px; }
}
