:root {
  --primary: #1e6fa8;
  --bg: #f4f6f8;
  --karte-bg: #ffffff;
  --text: #1a1a1a;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  background: var(--primary);
  color: #fff;
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.site-header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
  opacity: 0.9;
  font-size: 0.95rem;
}
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

main {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 20px;
}

.karte {
  background: var(--karte-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.karte.hervorgehoben { border-left: 5px solid var(--primary); }

.status-ok { color: #178a3b; font-weight: 600; }
.status-warnung { color: #b3350c; font-weight: 600; }

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 8px;
}
.button:hover { opacity: 0.9; }

.kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.kachel {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.warnkarte {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.warnkarte-meta { font-size: 0.9rem; opacity: 0.85; }

.messwerte { list-style: none; padding: 0; }
.messwerte li { padding: 4px 0; border-bottom: 1px solid #eee; }

.wetterbericht {
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
}

form label { display: block; margin-bottom: 6px; font-weight: 600; }
form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.hinweis { font-size: 0.85rem; color: #666; }

.filter-formular label { display: block; margin-bottom: 6px; font-weight: 600; }
.filter-formular select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding: 24px 20px;
}
