:root {
  --bg: #0d0b14;
  --bg-2: #15121f;
  --card: #1b1728;
  --line: #2c2640;
  --text: #f1edf8;
  --muted: #a49cb8;
  --pink: #ff4fa3;
  --orange: #ff9a3c;
  --teal: #38e1c6;
  --sunset: linear-gradient(100deg, #ff4fa3 0%, #ff9a3c 100%);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 1000; background: rgba(13, 11, 20, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 14px #ff4fa388; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--card); text-decoration: none; }
@media (max-width: 720px) {
  .top .wrap { flex-direction: column; align-items: stretch; height: auto; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .nav { margin-left: -10px; }
}

/* Startseite */
.hero { padding: 64px 0 40px; background: radial-gradient(ellipse 80% 60% at 70% 0%, #ff4fa322, transparent 70%), radial-gradient(ellipse 60% 50% at 10% 10%, #38e1c615, transparent 70%); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.count { display: flex; gap: 10px; margin: 28px 0; flex-wrap: wrap; }
.count div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 84px; text-align: center; }
.count b { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.count span { font-size: .8rem; color: var(--muted); }
.btn { display: inline-block; background: var(--sunset); color: #1a0d14; font-weight: 700; padding: 12px 20px; border-radius: 10px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

.section { padding: 36px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; color: var(--text); }
a.card:hover { border-color: var(--pink); text-decoration: none; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }

/* Unterseiten */
.page { padding: 36px 0 56px; }
.page-head { margin-bottom: 24px; }
.empty { background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.badge.ok { background: #38e1c622; color: var(--teal); }
.badge.unsure { background: #ff9a3c22; color: var(--orange); }

/* Sammelobjekte */
.cat { margin-bottom: 32px; }
.cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-head .swatch { width: 12px; height: 12px; border-radius: 50%; }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--sunset); transition: width .3s; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.items li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.items li.done { opacity: .5; }
.items input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 3px; flex-shrink: 0; }
.items .t { font-weight: 600; }
.items p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* Tabelle */
.search { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 1rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-2); color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Karte */
.map-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-self: start; }
.filter-head { font-weight: 700; margin: 0 0 4px; }
.filter-head + label { margin-top: 0; }
label + .filter-head { margin-top: 14px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filters input { accent-color: var(--pink); width: 18px; height: 18px; }
.filters .swatch { width: 12px; height: 12px; border-radius: 50%; }
#map { height: 72vh; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line);
  background-color: #10202a;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 48px 48px; }
.map-note { margin-top: 10px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container { font: inherit; }

/* Artikel */
.article { max-width: 720px; }
.article p { font-size: 1.05rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .875rem; }
.foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.foot a { color: var(--muted); }
