Phase 0+1: Scaffold, Datenmodell, Karte und Liste

Reines HTML5/CSS3/JavaScript ohne Build-Tooling, lauffaehig direkt per
Doppelklick auf index.html (file://, kein Server noetig):

- Datenmodell fuer Ausflugsziele mit allen Feldern aus der Anforderung,
  15 feste Kategorien inkl. Farbe/Icon
- Zentraler Pub/Sub-Store mit LocalStorage-Persistenz und
  Migrations-Grundgeruest
- Interaktive Karte (Leaflet + Leaflet.markercluster, lokal vendored)
  mit kategoriefarbenen Markern, Clustering, Popups, Geolocation-Button
- Kartengrundlage ueber CARTO-Basemaps statt tile.openstreetmap.org, da
  dessen Referer-Pflicht file://-Aufrufe blockiert
- Seed-Daten als eingebettetes Script (data/seed.js) statt JSON-Datei,
  da fetch() auf lokale Dateien unter file:// nicht zuverlaessig
  funktioniert
- Ergebnisliste mit 10 Beispiel-Ausflugszielen, sicher gerendert ueber
  textContent/DOM-APIs statt innerHTML (Vorbereitung fuer spaeteren
  KI-JSON-Import mit Fremddaten)
- Responsives Layout (Desktop nebeneinander, Mobile gestapelt)
This commit is contained in:
2026-07-24 11:24:47 +02:00
parent 6b0d10c4fb
commit ee55fb1cf9
32 changed files with 2557 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
/* Design-Tokens der Anwendung. */
:root {
/* Basisfarben */
--color-primary: #2e7d32;
--color-primary-dark: #1b5e20;
--color-text: #1a1a1a;
--color-text-muted: #5f6368;
--color-background: #f5f6f8;
--color-surface: #ffffff;
--color-border: #e0e0e0;
--color-danger: #c62828;
/* Kategorie-Farben (siehe js/config/categories.js) */
--category-naturpark: #2e7d32;
--category-wald-wanderweg: #1b5e20;
--category-see-badestelle: #0288d1;
--category-erlebnispark: #f57c00;
--category-freizeitpark: #e64a19;
--category-tierpark-zoo: #ff8f00;
--category-spielplatz: #d81b60;
--category-museum-kinder: #7b1fa2;
--category-indoor-spielplatz: #5e35b1;
--category-bauernhof: #6d4c41;
--category-kletterpark: #00897b;
--category-aussichtspunkt: #455a64;
--category-cafe-restaurant: #c62828;
--category-sonstige-aktivitaet: #00acc1;
--category-sonstige: #616161;
/* Spacing */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
/* Radius/Shadow */
--radius-sm: 4px;
--radius-md: 8px;
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
/* Layout */
--breakpoint-desktop: 1024px;
--header-height: 64px;
}