/* =====================================================
   header-weather.css  –  EINZIGE Quelle für Weather + Clock
   Keine Duplikate in site.css!  (Regeln dort entfernt)
   ===================================================== */

/* ---------- Weather-Zeile: Spannung links↔rechts ---------- */
.menu-weather-row {
  position: absolute;
  left: 6px;
  right: 0;
  top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 60;
}

/* ---------- LINKS: Icon + Wetterlage ---------- */
.menu-weather-icon-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 12px;
  pointer-events: auto;
}

.weather-icon-neon {
  display: block;
  font-size: 1.5rem;
  font-size: 2.2rem;
  line-height: 1;
  animation: weather-neon-pulse 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.8))
          drop-shadow(0 0 16px rgba(56,189,248,.5))
          drop-shadow(0 0 24px rgba(56,189,248,.3));
}

.weather-condition-under-icon {
  display: block;
  color: #93c5fd;
  font-size: .65rem;
  font-weight: 600;
  margin-top: 2px;
  text-align: left;
  text-shadow: 0 0 8px rgba(147,197,253,.5);
}

/* ---------- RECHTS: Temperatur + Stadt ---------- */
.menu-weather-corner {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  pointer-events: auto;
}

/* Neues: Position oben rechts (gelb markiert) */
.menu-weather-top-right {
  position: absolute;
  right: 12px;
  top: 12px;
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  z-index: 70;
}

.weather-temp-big {
  color: #22d3ee;
  font-size: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center !important;
  text-shadow: 0 0 8px rgba(34,211,238,.8),
               0 0 16px rgba(34,211,238,.5),
               0 0 24px rgba(34,211,238,.3);
}

.weather-city-small {
  font-size: .65rem;
  text-align: center !important;
  margin-top: 2px;
}

/* ---------- Datum + Uhr (Mitte) ---------- */
.menu-header-date-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-clock-under-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7dd3fc;
  font-size: 12px !important;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  animation: dateNeonPulse 2s ease-in-out infinite alternate;
  text-shadow: 0 0 6px rgba(56,189,248,.8), 0 0 12px rgba(14,165,233,.6);
}

/* ---------- Menu scroll behavior without visible scrollbar ---------- */
.fullscreen-menu-panel {
  /* keep layout as flex column but ensure children can manage their own scrolling */
  overflow: visible !important;
}

.menu-content {
  /* already scrollable, ensure smooth touch scrolling and hide native scrollbars */
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
  padding-bottom: 3px; /* minimal gap below last menu entry */
}
.menu-content::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Ensure character stays fixed at bottom of panel */
.menu-character {
  position: absolute !important;
  bottom: 3px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  z-index: 120 !important;
}

/* If there is a snow canvas/container, keep it fixed inside panel */
.snow-container, .menu-snow-canvas {
  position: absolute !important;
  inset: 0 0 0 0 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Strong overrides: Fix the fullscreen menu panel to the left and full height */
.fullscreen-menu {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  right: auto !important;
  width: 380px !important;
  max-width: 90vw !important;
  inset: auto 0 auto 0 !important;
  z-index: 99999 !important;
}

.fullscreen-menu-panel {
  position: relative !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* contain scrolling to inner area */
}

/* Keep header and hero icons fixed; only quick-links scroll */
.fullscreen-menu-panel .menu-header {
  flex: 0 0 auto !important;
}
.fullscreen-menu-panel .hero-icons-grid {
  flex: 0 0 auto !important;
}
.fullscreen-menu-panel .quick-links-section {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  padding-bottom: 3px !important; /* minimal gap below last menu entry */
}
.fullscreen-menu-panel .quick-links-section::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Ensure snow & character render above content */
.fullscreen-menu-panel .menu-character,
.fullscreen-menu-panel .snow-container,
.fullscreen-menu-panel .menu-snow-canvas {
  pointer-events: none !important;
  z-index: 120 !important;
}

/* Sticky title inside quick-links so it stays visible while the list scrolls */
.fullscreen-menu-panel .quick-links-section .quick-links-title {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 9;
  background: inherit;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
}

/* Hide the visible title text for Schnellzugriff (menu should be compact) */
.fullscreen-menu-panel .quick-links-section .quick-links-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Quick-links list: smaller font for compact display */
.fullscreen-menu-panel .quick-links-section .menu-item-title,
.fullscreen-menu-panel .quick-links-section .menu-item-content {
  font-size: 11px !important;
}

/* Also ensure any other menu-item titles follow the larger size */
.fullscreen-menu-panel .menu-item .menu-item-title {
  font-size: 11px !important;
}

/* Ensure hero icons (dashboard, druck) do not scroll and remain visible */
.fullscreen-menu-panel .hero-icons-grid {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
}

/* Hero-Buttons: kompakt, responsive, max 4 passen immer in eine Reihe */
.fullscreen-menu-panel .hero-icon-btn {
  min-width: 0 !important;
  width: auto !important;
  flex: 1 1 0 !important;
  max-width: 80px !important;
  padding: 8px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 50px !important;
}
.fullscreen-menu-panel .hero-icon-svg {
  width: 18px !important;
  height: 18px !important;
}
.fullscreen-menu-panel .hero-icon-label {
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin-top: 2px !important;
  transform: translateY(0) !important;
  text-align: center !important;
  display: block !important;
}

/* Global override: single-line labels, ellipsis if too long */
.hero-icon-label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1 !important;
  text-align: center !important;
  display: block !important;
}

/* Global button min-height */
.hero-icon-btn {
  min-height: 50px !important;
}

/* Highly specific override: single-line labels */
.menu-header .hero-icons-grid .hero-icon-btn .hero-icon-label,
.hero-icons-grid .hero-icon-btn .hero-icon-label,
.menu-header .hero-icon-btn .hero-icon-label {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1 !important;
  margin-top: 2px !important;
}


/* ===== RESPONSIVE: Handy (< 400px) ===== */
@media (max-width: 399px) {
  .fullscreen-menu-panel .hero-icons-grid {
    gap: 4px !important;
    padding: 6px 6px !important;
  }
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 66px !important;
    padding: 6px 3px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 16px !important;
    height: 16px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ===== RESPONSIVE: Tablet (600px - 1024px) ===== */
@media (min-width: 600px) and (max-width: 1024px) {
  .fullscreen-menu-panel .hero-icons-grid {
    gap: 10px !important;
    padding: 10px 16px !important;
  }
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 86px !important;
    padding: 8px 5px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 20px !important;
    height: 20px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ===== RESPONSIVE: Desktop (> 1024px) ===== */
@media (min-width: 1025px) {
  .fullscreen-menu-panel .hero-icons-grid {
    gap: 14px !important;
    padding: 12px 20px !important;
  }
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 92px !important;
    padding: 10px 6px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 22px !important;
    height: 22px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ===== RESPONSIVE: Große Bildschirme (> 1400px) ===== */
@media (min-width: 1400px) {
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 90px !important;
    padding: 10px 6px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 22px !important;
    height: 22px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 9px !important;
  }
}

/* ===== RESPONSIVE: Ultra-wide (> 1900px) ===== */
@media (min-width: 1900px) {
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 90px !important;
    padding: 10px 6px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 24px !important;
    height: 24px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 9px !important;
  }
}

/* ===== Landscape phones ===== */
@media (max-height: 450px) and (orientation: landscape) {
  .fullscreen-menu-panel .hero-icons-grid {
    gap: 8px !important;
    padding: 4px 10px !important;
  }
  .fullscreen-menu-panel .hero-icon-btn {
    max-width: 65px !important;
    padding: 6px 4px !important;
  }
  .fullscreen-menu-panel .hero-icon-svg {
    width: 18px !important;
    height: 18px !important;
  }
  .fullscreen-menu-panel .hero-icon-label {
    font-size: 0.5rem !important;
  }
}

/* Keep hero icons/buttons fixed; only quick-links scroll */
.fullscreen-menu-panel .menu-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden; /* prevent full-panel scrolling */
}

.fullscreen-menu-panel .hero-icons-grid {
  flex: 0 0 auto; /* fixed area */
  z-index: 5;
}

.fullscreen-menu-panel .quick-links-section {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 6px; /* avoid clipped content under hidden scrollbar */
}
.fullscreen-menu-panel .quick-links-section::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Ensure menu-header and hero-icons remain visible above scroll layer */
.fullscreen-menu-panel .menu-header,
.fullscreen-menu-panel .hero-icons-grid {
  position: relative;
  z-index: 6;
}

.clock-icon {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  stroke: #22d3ee;
  filter: drop-shadow(0 0 3px rgba(34,211,238,.7));
}

/* ===== NUCLEAR OVERRIDE: Menü bleibt IMMER kompakt =====
   Überschreibt ALLE site.css Breakpoints, die Panel/Buttons vergrößern */
.fullscreen-menu {
  width: 380px !important;
  max-width: 90vw !important;
}

.fullscreen-menu-panel {
  width: 100% !important;
  max-width: 380px !important;
  left: 0 !important;
  right: auto !important;
}

.fullscreen-menu-panel .hero-icon-btn {
  width: auto !important;
  min-width: 0 !important;
  max-width: 80px !important;
  padding: 8px 4px !important;
  flex: 1 1 0 !important;
}

.fullscreen-menu-panel .hero-icon-svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.fullscreen-menu-panel .hero-icon-label {
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fullscreen-menu-panel .hero-icons-grid {
  gap: 6px !important;
  padding: 8px 10px !important;
}