:root {
  --bg: #ffffff;
  --text: #111;
  --card: #f3f3f3;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #eee;
  --card: #1e1e1e;
}

body {
  margin: 0;
  font-family: system-ui;
  background: var(--bg);
  color: var(--text);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0.1;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--card);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.card {
  padding: 1rem;
  background: var(--card);
  border-radius: 12px;
}

footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.tile {
  background: var(--card);
  padding: 0.1rem;
  border-radius: 14px;
  text-align: center;
}

.tile-big {
  grid-column: span 2;
  grid-row: span 1;
  font-size: 1.6em;
  font-weight: bold;
  text-align: center;
  opacity: 1.0;
}

.tile.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.value {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 0.5rem;
}


.tile small {
  font-size: 0.6em;
  opacity: 0.8;
}

#status {
  font-size: 1.0em;
  font-weight: normal;
  transition: color 0.5s ease;
}

#t_wind2 small {
  font-size: 0.7em;
  opacity: 0.8;
}

.compass-svg {
  width: 120px;
  height: 120px;
  display: block;
  margin: auto;
}

/* Kreis */
.compass-ring {
  fill: none;
  stroke: rgba(255,255,255,10.25);
  stroke-width: 1;
}

/* Ticks */
.tick {
  stroke: rgba(255,200,200,10.4);
  stroke-width: 4;
}

/* Text */
.compass-svg text {
  font-size: 12px;
  fill: currentColor;
  opacity: 1.0;
}

/* Mittelpunkt */
.center-dot {
  fill: currentColor;
}

#t_sunrise {
  font-size: 1em;
  text-align: center;
}

#t_sunrise small {
  font-size: 0.7em;
  opacity: 0.8;
}

#sunPath {
  width: 120px;
  height: 70px;
  display: block;
  margin: auto;
}

.sun-arc {
  fill: none;
  stroke: #a3a3a3;   /* dunkles Grau */
  stroke-width: 2;
}

.sun-dot {
  fill: #f1c40f;
  filter: drop-shadow(0 0 4px #f1c40f);
}
.rain-tile {
  position: relative;
  overflow: hidden;
}

#rainCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.webcam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(1300px, calc(100vw - 24px));
  margin: 20px auto;
}

.webcam-grid img {
  width: 200%;
  max-width: 200%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .webcam-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: calc(100vw - 16px);
  }
}