/* Night-sky Gradient Hintergrund */
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(160deg, #141e30 0%, #243b55 100%);
  color: #eee;
  transition: background 0.5s, color 0.5s;
}

/* Navigation */
nav {
  background: rgba(20, 30, 48, 0.97);
  color: #fff;
  padding: 0.7em 0.5em;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px #141e30;
  user-select: none;
}

#menu-toggle {
  cursor: pointer;
  font-size: 1.6em;
  display: none;
  margin-right: 12px;
  float: left;
}

#menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#menu-links li {
  margin: 0 5px;
}

#menu-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 5px 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
}

#menu-links a:hover, #menu-links a:focus {
  background: #232c45;
  color: #69aaff;
  box-shadow: 0 0 8px #183268b0;
}

/* Responsive Navigation */
@media (max-width: 900px) {
  #menu-toggle {
    display: inline;
  }
  #menu-links {
    display: none;
    flex-direction: column;
    background: rgba(36, 59, 85, 0.97);
    position: absolute;
    left: 0; right: 0; top: 3.3em;
    z-index: 110;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 18px #141e30bb;
  }
  #menu-links.open {
    display: flex;
  }
  #menu-links li {
    margin: 10px 0;
  }
}

header {
  background: rgba(34, 44, 65, 0.93);
  padding: 1em;
  text-align: center;
  font-size: 1.4em;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #203450;
}

#live-weather-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0 0;
}

#live-section {
  flex: 1 1 48%;
  text-align: center;
  min-width: 250px;
}
#live-image {
  max-width: 100%;
  border: 2.5px solid #3b4d79;
  border-radius: 8px;
  box-shadow: 0 2px 22px #18326855;
  cursor: zoom-in;
  background: #10162d;
  transition: box-shadow 0.3s;
}
#live-image:hover {
  box-shadow: 0 0 32px #3a74d8;
}
#timestamp {
  margin-top: 8px;
  font-size: 0.93em;
  color: #9bb1cc;
}

#weather-section {
  flex: 1 1 48%;
  min-width: 250px;
}
#weather-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a2337cc;
  font-size: 1em;
}
#weather-table th,
#weather-table td {
  border: 1px solid #2e3f5f;
  padding: 7px 10px;
  text-align: left;
}
#weather-table th {
  background: #223358;
  color: #e8f0ff;
}

#windrose-container {
  text-align: center;
  padding: 1.5em 0 1em 0;
}
#windrose {
  background: #16213d;
  border-radius: 50%;
  box-shadow: 0 0 20px #2c416e99;
}
#wind-info {
  font-size: 1em;
  margin-top: 0.5em;
  color: #b6d1fa;
}

#archive {
  padding: 1em 0.3em;
}
#archive h2,
#archive h3 {
  text-align: center;
  color: #ccd9ee;
  font-weight: normal;
}
.archive-grid {
  margin: 14px auto 30px auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 10px;
}
.archive-grid img,
.archive-grid video {
  width: 100%;
  border: 1.5px solid #223358;
  border-radius: 6px;
  background: #151c2e;
  box-shadow: 0 0 8px #2c416e44;
  margin-bottom: 4px;
}

footer {
  text-align: center;
  font-size: 0.9em;
  padding: 12px 0 5px 0;
  color: #5c739a;
  letter-spacing: 0.01em;
  background: transparent;
  margin-top: 30px;
}

/* Dark/Light Mode Support */
body.lightmode {
  background: linear-gradient(160deg, #f2f6ff 0%, #d6e6fa 100%);
  color: #112;
}
body.lightmode nav,
body.lightmode header,
body.lightmode #weather-table,
body.lightmode #windrose,
body.lightmode #archive,
body.lightmode footer {
  background: #e7eefc !important;
  color: #233a55 !important;
  box-shadow: none !important;
}
body.lightmode #menu-links a {
  color: #1a3266;
}
body.lightmode #menu-links a:hover {
  background: #bcd2fa;
  color: #3756a8;
}
body.lightmode #windrose {
  background: #e0e7f8;
}
body.lightmode .archive-grid img,
body.lightmode .archive-grid video {
  background: #e7eefc;
  border-color: #bed5f6;
}

@media (max-width: 820px) {
  #live-weather-container {
    flex-direction: column;
    gap: 0;
  }
  #live-section, #weather-section {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  header {
    font-size: 1em;
  }
  #archive h2, #archive h3 {
    font-size: 1em;
  }
}

