:root {
  --bg: #0c1210;
  --surface: #141f1a;
  --surface2: #1c2b24;
  --accent: #34d399;
  --accent2: #fbbf24;
  --accent3: #60a5fa;
  --text: #ecfdf5;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --ok: #4ade80;
  --warn: #fbbf24;
  --event: #60a5fa;
  --danger: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 5rem;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(12, 18, 16, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}
.brand span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a {
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-tabs a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-tabs a.active {
  color: #052e16;
  background: linear-gradient(90deg, var(--accent), #10b981);
  border-color: transparent;
}

.hero {
  padding: 1.5rem 1rem 1rem;
  background: radial-gradient(ellipse 100% 80% at 50% -20%, #14532d 0%, var(--bg) 65%);
}
.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.02em;
}
.hero .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}
.disclaimer {
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  font-size: 0.78rem;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem 2rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
}
@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}
.stat .val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat .lbl {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.panel-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.35rem 0 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.nav-card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.nav-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.nav-card .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.nav-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--text); }
.nav-card p { margin: 0; font-size: 0.82rem; color: var(--muted); }

#map {
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--border);
  z-index: 1;
}
@media (min-width: 768px) { #map { height: 340px; } }

.site-list { list-style: none; padding: 0; margin: 0; }
.site-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.site-list li:last-child { border-bottom: none; }

.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.chip-ok { background: rgba(74, 222, 128, 0.15); color: var(--ok); }
.chip-hint { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.chip-event { background: rgba(96, 165, 250, 0.15); color: var(--event); }
.chip-pending { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

.tag {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
}
.tag-bio { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }

.bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 0.35rem 0 0.5rem;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #10b981);
}

.event-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-row .date {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-row h3 { margin: 0.2rem 0; font-size: 0.98rem; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
.kpi {
  background: var(--surface2);
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid var(--border);
}
.kpi .num { font-size: 1.35rem; font-weight: 700; color: var(--accent2); }
.kpi .cap { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

.haccp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.haccp-table th,
.haccp-table td {
  padding: 0.55rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.haccp-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.haccp-table td:first-child,
.haccp-table th:first-child { text-align: left; }
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-ok { background: var(--ok); }
.dot-pending { background: var(--warn); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), #10b981);
  color: #052e16;
  border-color: transparent;
}
.btn:hover { text-decoration: none; opacity: 0.92; }

.footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 1.5rem 1rem 0;
}
.footer-note a { color: var(--accent3); }

select.kantine-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.banner-event {
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(52,211,153,0.1));
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.banner-event strong { color: var(--event); }
