:root {
  --tinte: #1c2321;
  --flaeche: #ffffff;
  --hintergrund: #eef1ee;
  --linie: #e2e6e1;
  --schatten: 0 4px 18px rgba(28, 35, 33, 0.10), 0 1px 3px rgba(28, 35, 33, 0.08);
  --moos: #3f7d5c;
  --moos-hell: #e6f2ea;
  --erde: #c98a3f;
  --akzent: #d64545;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: 'Inter', "Segoe UI", Arial, sans-serif; color: var(--tinte); background: var(--hintergrund); }

.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 18px 20px; }
.kopf-schmal { padding: 14px 20px; }
.kopf-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: flex-start; gap: 14px; }
.kopf .wappen { width: 44px; height: auto; flex: none; margin-top: 2px; }
.zurueck-link { display: block; font-size: 0.68rem; font-weight: 600; color: #8b918e; text-decoration: none; margin-bottom: 4px; }
.zurueck-link:hover { color: var(--moos); }
.kicker { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.68rem; font-weight: 600; color: var(--moos); }
.kopf-text h1 { font-size: 1.15rem; font-weight: 700; margin: 4px 0 6px; line-height: 1.3; }
.kopf-text p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: #5b615e; max-width: 56ch; }

.pill-bar {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 8px;
}
.pill-bar button {
  border: none;
  background: var(--flaeche);
  box-shadow: var(--schatten);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b716e;
  cursor: pointer;
}
.pill-bar button.pill-aktiv { background: var(--moos); color: #fff; }

.liste {
  max-width: 720px;
  margin: 16px auto 100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lade-hinweis { color: #8b918e; font-size: 0.85rem; text-align: center; padding: 40px 0; }

.vorschlag-karte {
  background: var(--flaeche);
  border-radius: 14px;
  box-shadow: var(--schatten);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
}

.stimmen-spalte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: none;
  width: 46px;
}
.btn-stimme {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--linie);
  background: #fff;
  color: var(--moos);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.btn-stimme:hover { background: var(--moos-hell); }
.btn-stimme-aktiv, .btn-stimme:disabled {
  background: var(--moos);
  color: #fff;
  border-color: var(--moos);
  cursor: default;
}
.stimmen-zahl { font-size: 0.78rem; font-weight: 700; color: #5b615e; }

.vorschlag-inhalt { flex: 1; min-width: 0; }
.vorschlag-inhalt h3 { margin: 2px 0 6px; font-size: 0.98rem; font-weight: 700; }
.vorschlag-inhalt p { margin: 0 0 10px; font-size: 0.85rem; line-height: 1.5; color: #4a4f4c; white-space: pre-wrap; }

.vorschlag-fuss { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; color: #8b918e; }
.link-standort {
  border: none; background: none; padding: 0; font-family: inherit;
  font-size: 0.74rem; color: var(--moos); font-weight: 600; cursor: pointer;
}

.fab {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 1500;
  background: var(--moos);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--schatten);
  cursor: pointer;
}

.hinweis-toast {
  position: fixed;
  bottom: 84px; left: 50%;
  transform: translateX(-50%);
  background: var(--tinte);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  z-index: 2500;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--schatten);
}

.overlay { position: fixed; inset: 0; background: rgba(28, 35, 33, 0.35); display: flex; align-items: flex-end; justify-content: center; z-index: 3000; }
.overlay[hidden] { display: none; }

.formular-karte {
  background: var(--flaeche);
  width: 100%; max-width: 460px;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 26px;
  box-shadow: 0 -8px 30px rgba(28,35,33,0.18);
  max-height: 90vh;
  overflow-y: auto;
}
.formular-karte h2 { margin: 0 0 14px; font-size: 1rem; font-weight: 700; }

label[for="feld-titel"], label[for="feld-beschreibung"] {
  display: block; font-size: 0.76rem; font-weight: 600; margin-bottom: 6px; color: #4a4a40;
}
#feld-titel, #feld-beschreibung {
  width: 100%; border: 1.5px solid var(--linie); border-radius: 12px;
  padding: 10px 12px; font-family: inherit; font-size: 0.85rem; margin-bottom: 14px;
}
#feld-titel { height: 42px; }
#feld-beschreibung { min-height: 80px; resize: vertical; }
#feld-titel:focus, #feld-beschreibung:focus { outline: 2px solid var(--moos); outline-offset: 1px; }

.checkbox-zeile {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem;
  margin-bottom: 14px; background: var(--moos-hell); padding: 10px 12px; border-radius: 10px;
}

.mini-karte-wrapper { margin-bottom: 14px; }
#mini-karte { height: 220px; border-radius: 12px; overflow: hidden; }
.mini-karte-hinweis { font-size: 0.72rem; color: #8b918e; margin: 6px 0 0; }

.standort-karte #standort-karte, #standort-karte { height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }

.formular-aktionen { display: flex; gap: 10px; margin-top: 4px; }
.btn { flex: 1; padding: 12px 16px; border-radius: 12px; border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-primaer { background: var(--moos); color: #fff; }
.btn-primaer:disabled { opacity: 0.6; }
.btn-sekundaer { background: #f1f2f0; color: var(--tinte); }

.fusszeile { max-width: 720px; margin: 0 auto; padding: 18px 20px 40px; text-align: center; }
.fusszeile p { font-size: 0.74rem; color: #8b918e; line-height: 1.5; }
.fusszeile p.credit { margin-top: 8px; font-size: 0.7rem; }

/* Verwaltung */
.verwaltung-body { background: var(--hintergrund); }
.verwaltung-main { max-width: 960px; margin: 1rem auto; padding: 0 1rem 3rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; border-radius: 10px; overflow: hidden; }
.tabelle th, .tabelle td { border-bottom: 1px solid var(--linie); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
.tabelle th { background: #f4f6f3; }
.btn-loeschen { background: var(--akzent); color: #fff; padding: 0.35rem 0.7rem; border-radius: 6px; border: none; font-size: 0.78rem; cursor: pointer; }

@media (max-width: 560px) {
  .kopf-inner { gap: 10px; }
  .kopf .wappen { width: 36px; }
}
