feat: build official Goldebek municipal website
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 6s
Deploy / app-quality (push) Successful in 1m16s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 18s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 1m28s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 13s

This commit is contained in:
Per Hoener
2026-09-19 15:09:27 +02:00
parent ff9474f916
commit b57c24a3c4
64 changed files with 1116 additions and 619 deletions
+5 -5
View File
@@ -2,12 +2,12 @@
# Copy to .env.local for local development. Never commit real secrets.
# Public identity and contact values
APP_NAME=Example Website
APP_NAME=Gemeinde Goldebek
APP_URL=https://example.com
COMPANY_NAME=Example Company
CONTACT_EMAIL=info@example.com
CONTACT_PHONE=+49 000 000000
CONTACT_ADDRESS=Example Street 1, 12345 Example City
COMPANY_NAME=Gemeinde Goldebek
CONTACT_EMAIL=info@amnf.de
CONTACT_PHONE=04671 9192-0
CONTACT_ADDRESS=Amt Mittleres Nordfriesland, Theodor-Storm-Straße 2, 25821 Bredstedt
PRIMARY_DOMAIN=example.com
# HTTPS ICS calendar URL (required at runtime, not during next build).
+10
View File
@@ -31,3 +31,13 @@ This repository uses Next.js 16 with breaking changes relative to earlier versio
- Workflows live in `.gitea/workflows/`.
- CI runs lint, Vitest, typecheck, build, E2E, and security scans.
- Deploy builds and scans a configurable container image, deploys with Docker Compose, verifies app/API/health routes, and supports rollback.
<!-- BEGIN:nextjs-agent-rules -->
# This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->
+28
View File
@@ -0,0 +1,28 @@
# Content-Checkliste vor Veröffentlichung
## Offene Punkte
- [ ] Heimatmuseum-Telefon bestätigen
- [ ] Schreibweise Nils Hörner/Höner bestätigen
- [ ] aktuelle Dörpshuus-Kaution bestätigen
- [ ] vollständige aktuelle Dörpshuus-Nutzungsbedingungen prüfen
- [x] freigegebene Wappen-Datei bereitstellen – Datei vorhanden, Webnutzung am 19.09.2026 bestätigt
- [x] Bildrechte / Originalbilder bereitstellen – Dateien vorhanden, Webnutzung am 19.09.2026 bestätigt
- [ ] aktueller Abfall-Link
- [ ] aktueller Abwasser-Link
- [ ] B-Plan-5-/Baugrundstücksstatus bestätigen
- [ ] Windparkdaten nur bei gewünschter Veröffentlichung aktualisieren
- [ ] Rechtstexte bereitstellen/freigeben
- [ ] Fahrbücherei-Fahrplan für Folgejahr aktualisieren
- [ ] Veranstaltungskalender für Folgejahr aktualisieren
## Redaktionelle Hinweise
- Der öffentliche Ratsmitglieder-Datensatz verwendet bis zur Bestätigung die Amt-Schreibweise „Nils Hörner“.
- Die Dörpshuus-Kaution wird nicht veröffentlicht.
- Das Heimatmuseum wird ohne Telefonnummer geführt.
- Für Busverbindungen wird ausschließlich Linie 130 genannt; Fahrzeiten werden nicht kopiert.
- Zum Windpark werden wegen laufender Veränderungen keine Anlagenzahlen veröffentlicht.
- Private Gastgeberadressen aus älteren Kalendern werden nicht übernommen.
- Die Seiten Impressum, Datenschutz und Barrierefreiheit sind als nicht rechtsverbindliche Redaktionsplatzhalter gekennzeichnet und auf `noindex` gesetzt.
- Für neue Bilder Fotografen-Copyright und konkrete Freigabe ergänzen, sofern erforderlich.
+2 -2
View File
@@ -8,9 +8,9 @@ RUN npm ci
COPY . .
ARG APP_NAME="Example Website"
ARG APP_NAME="Gemeinde Goldebek"
ARG APP_URL="https://example.com"
ARG COMPANY_NAME="Example Company"
ARG COMPANY_NAME="Gemeinde Goldebek"
ARG CONTACT_EMAIL="info@example.com"
ARG CONTACT_PHONE="+49 000 000000"
ARG CONTACT_ADDRESS="Example Street 1, 12345 Example City"
+60 -100
View File
@@ -1,39 +1,10 @@
# Next.js Website Starter
# Website der Gemeinde Goldebek
Neutrale, wiederverwendbare technische Basis für eine neue Website. Das Repository enthält eine produktionsfähige Next.js-Anwendung mit Kalender-API, Bildpipeline, Tests, Containerisierung sowie CI/CD, aber bewusst keine fachlichen Inhalte oder produktiven Daten.
Offizielle kommunale Informationswebsite auf Basis von Next.js 16 (App Router), React 19 und TypeScript. Die Anwendung rendert Seiten, Nachrichten und Termine serverseitig, lädt keine Tracker oder externen Schriftarten und wird als eigenständige Node.js-Anwendung gebaut.
## Technologie-Stack
## Lokale Entwicklung
- Node.js 24 und npm
- Next.js 16 App Router mit React 19 und TypeScript
- Standalone-Serverausgabe für Docker
- ICS-Kalender mit `ical.js`, `rrule` und Temporal
- Zod für Runtime-Konfiguration
- Vitest sowie ein produktionsnaher E2E-Smoke-Test
- ESLint, Husky und lint-staged
- Sharp für responsive Bildvarianten und Metadatenbereinigung
- Docker Compose, Traefik und Trivy
- Gitea-Actions-kompatible Workflows unter `.gitea/workflows/`
Eine Datenbank und eine Authentifizierung sind nicht Bestandteil dieser Vorlage, weil das technische Ausgangsprojekt keine solchen Systeme verwendet.
## Struktur
- `src/app/`: Seiten, Metadaten-, API- und Health-Routen
- `src/components/`: wiederverwendbare Server- und Client-Komponenten
- `src/server/calendar/`: ICS-Abruf, Parser, Cache, Fehlerbehandlung und Readiness
- `src/trip-reports/`: registrierbare TSX-Beitragsmodule; im Starter leer
- `src/data/`: neutrale Datenregistries für Downloads, Galerien und Inhaltskarten
- `.media-source/`: Originalbilder für die Bildpipeline
- `public/`: generierte Bilder, lokale Schriften und öffentliche Dateien
- `scripts/`: Build-, Medien-, E2E-, Security- und Deploy-Hilfen
- `.gitea/workflows/`: CI, Deployment, Rollback und geplante Rebuilds
Die vorhandenen deutschsprachigen Routen bleiben aus Kompatibilitätsgründen erhalten: `/`, `/ueber-uns`, `/informationen`, `/kalender`, `/fahrten`, `/fahrten/[slug]`, `/bilder`, `/impressum` und `/datenschutz`.
## Lokale Installation
Voraussetzungen sind Node.js gemäß `.node-version`, npm und für Container-Workflows Docker.
Voraussetzungen: die in `.node-version` angegebene Node.js-Version und npm.
```bash
npm ci
@@ -41,38 +12,12 @@ cp .env.example .env.local
npm run dev
```
Die Anwendung ist anschließend standardmäßig unter `http://localhost:3000` erreichbar. Für echte Kalenderdaten muss `CALENDAR_URL` auf eine erreichbare HTTPS-ICS-Datei zeigen.
`APP_URL` steuert Canonicals, Sitemap, robots.txt und absolute Metadaten. `CALENDAR_URL` wird vom weiterhin vorhandenen Laufzeit-Endpunkt `GET /api/events` benötigt, nicht vom Produktions-Build.
## Environment-Variablen
Alle Werte in `.env.example` sind ungefährliche Beispiele.
| Variable | Zweck |
| --- | --- |
| `APP_NAME` | Öffentlicher Name der Website |
| `APP_URL` | Kanonische Basis-URL für SEO, Sitemap, Hostprüfung und CORS-Default |
| `COMPANY_NAME` | Betreiber-/Organisationsname |
| `CONTACT_EMAIL` | Öffentliche Kontaktadresse |
| `CONTACT_PHONE` | Öffentliche Telefonnummer |
| `CONTACT_ADDRESS` | Öffentliche Anschrift |
| `PRIMARY_DOMAIN` | Hostname für Traefik |
| `CALENDAR_URL` | HTTPS-URL des ICS-Kalenders; zur Laufzeit erforderlich |
| `CORS_ORIGIN` | Kommagetrennte erlaubte Origins; Standard ist `APP_URL` |
| `TRUSTED_PROXIES` | JSON-Liste oder CSV vertrauenswürdiger Proxy-Netze |
| `CALENDAR_CACHE_DURATION_MS` | Cache-Dauer für Kalenderdaten |
| `CALENDAR_FETCH_TIMEOUT_MS` | Timeout für den ICS-Abruf |
| `DEFAULT_CALENDAR_TIMEZONE` | IANA-Zeitzone für schwebende ICS-Zeitangaben |
| `MAX_RECURRENCE_WINDOW_MONTHS` | Maximales Vorschaufenster wiederkehrender Termine |
| `MAX_ICS_BYTES` | Maximale Größe der Kalenderdatei |
| `MAX_OCCURRENCES_PER_EVENT` | Obergrenze je wiederkehrendem Termin |
| `ROUTINE_EVENT_TITLES` | Titel regulärer Termine, die nicht hervorgehoben werden |
`CALENDAR_URL` ist ein Runtime-Secret und wird nicht als Docker-Build-Argument verwendet. Öffentliche Identitätswerte werden beim Container-Build gesetzt, da Next.js Metadaten statisch erzeugen kann, und zusätzlich zur Laufzeit an den Container übergeben.
## Befehle
## Qualitätschecks und Build
```bash
npm run dev
npm run data:validate
npm run lint
npm run typecheck
npm run test
@@ -80,64 +25,79 @@ npm run build
npm run test:e2e
```
`npm run build` bereinigt öffentliche Dateien, erzeugt beziehungsweise entfernt Bildvarianten, entfernt Bildmetadaten, prüft PDF-Metadaten und führt `next build` aus. Der E2E-Test baut die Standalone-Ausgabe, startet eine lokale ICS-Fixture und prüft Seiten, API, ETag sowie Health-Routen.
Der Content-Validator prüft unter anderem Slugs, ISO-Daten, Quellen, `lastVerified`, abgelaufene Daten, private Veranstaltungsadressen und interne Links. Die CI- und Deployment-Workflows unter `.gitea/workflows/` bleiben maßgeblich. Das Docker-Image verwendet den Next.js-Standalone-Build.
Mit `npm run content:new` kann ein neues TSX-Beitragsmodul samt optionalen Originalbildern angelegt werden.
## Content-Struktur
## Bilder und Dateien
- `content/pages/pages.json`: statische redaktionelle Seiten
- `content/news/*.json`: aktuelle Meldungen
- `content/events/events.json`: Veranstaltungskalender
- `data/municipality.json`: Basisdaten und Geschichte
- `data/council.json`: Bürgermeister, Gemeindevertretung und Steuern
- `data/services.json`: Dörpshuus, Alltagshilfe, Mobilität und Fahrbücherei
- `data/clubs.json`: Vereine und Gruppen
- `data/sources.json`: zentrales Quellenregister
- `src/lib/content/`: Zod-Schemata und typisierter Zugriff
- `src/lib/dates/`: Europe/Berlin-Datumslogik und ICS-Ausgabe
Originalbilder gehören in die Unterverzeichnisse von `.media-source/`. `npm run images` erzeugt responsive JPEG-, WebP- und AVIF-Varianten in `public/images/`; `npm run images:prune` entfernt Varianten ohne Quelle. Neue Alt-Texte werden projektspezifisch in der Medienkonfiguration oder im erzeugten Manifest gepflegt.
Der öffentliche Stand darf nur verifizierte oder ausdrücklich dynamische Termine zeigen. `needs-verification` bleibt unsichtbar. Verwaltungsbezogene und volatile Daten benötigen `sourceId` und `lastVerified`.
Downloads werden in `public/downloads/` abgelegt und in `src/data/downloads.ts` registriert. Keine personenbezogenen, produktiven oder vertraulichen Dateien committen.
## Neue Meldung anlegen
## Docker
1. Eine JSON-Datei nach dem Schema `NewsItem` unter `content/news/` anlegen.
2. Quelle, `lastVerified` und Status pflegen.
3. Die Datei in `src/lib/content/index.ts` registrieren.
4. `npm run data:validate` und die Tests ausführen.
Für einen lokalen Start über den vorhandenen Traefik-Stack:
Ein Bild benötigt einen präzisen Alt-Text. Wenn der Rechteinhaber eine Kennzeichnung verlangt, muss außerdem `copyright` gepflegt werden. Bilder dürfen erst nach dokumentierter Freigabe eingebunden werden.
## Neuen Termin anlegen
Einen Datensatz in `content/events/events.json` ergänzen. Datum und Zeit werden als lokale Werte für `Europe/Berlin` gepflegt; der Wochentag wird nie gespeichert, sondern aus dem ISO-Datum berechnet. Pflicht sind mindestens ID, Slug, Titel, Startdatum, Zeitzone, Quelle, `lastVerified` und Status.
Straßenadressen werden nur ausgegeben, wenn `privacyApproved: true` gesetzt ist. Anschließend:
```bash
CALENDAR_URL=https://example.com/calendar.ics docker compose up --build
npm run data:validate
npm run test
```
Das externe Netzwerk heißt standardmäßig `traefik-external` und kann mit `TRAEFIK_NETWORK_NAME` geändert werden. Für einen isolierten Test ohne vorhandenes Traefik-Netz kann die Compose-Datei projektspezifisch überschrieben werden.
Einzeltermine stehen automatisch als ICS-Datei unter `/termine/<slug>/kalender.ics` bereit, der Gesamtfeed unter `/termine/kalender.ics`.
Das Runtime-Image läuft ohne Root-Rechte, mit read-only Dateisystem, entfernten Linux-Capabilities, Healthcheck und Ressourcenlimits.
## Ratsmitglieder aktualisieren
## CI/CD und Deployment
Die aktuelle Liste steht in `data/council.json`. Vor einer Änderung die amtliche Quelle prüfen, `lastVerified` aktualisieren und den offenen Schreibweisen-Hinweis in `CONTENT_CHECKLIST.md` beachten. Ratsmitglieder werden ohne Rangfolge oder politische Wertung dargestellt.
Die Workflows bleiben vollständig erhalten:
## Quellen und Prüfstände pflegen
- `.gitea/workflows/ci.yml` führt Lint, Tests, Typecheck, Build, E2E sowie Secret- und Schwachstellenscans aus.
- `.gitea/workflows/deploy.yml` baut und scannt Images, deployt `dev` und `master`, prüft die laufende Anwendung, unterstützt Rollbacks und führt wöchentliche Rebuilds aus aktuellen Basis-Images aus.
1. Quelle in `data/sources.json` anlegen oder aktualisieren.
2. In den Fachdaten auf die `sourceId` verweisen.
3. `lastVerified` auf das tatsächliche Prüfdatum setzen.
4. Bei einem inhaltlichen Konflikt die Entscheidung aus `goldebek_website_briefing/goldebek_data_2026-09-18.json` beachten.
5. Nicht bestätigte Angaben als `needs-verification` führen oder ganz aus dem öffentlichen Datensatz herauslassen.
CI ist für den lokalen Start nicht technisch erforderlich. Für gemeinsame Branches und Deployments sollte sie aktiv bleiben, weil sie reproduzierbar Build, Tests, Secret-Scans und Container prüft. Auf einem warmen Runner ist für die reine App-Prüfung typischerweise mit etwa 2–5 Minuten zu rechnen; ein kalter Runner mit LFS-, Container- und Trivy-Downloads kann etwa 5–15 Minuten benötigen. Die Security-Jobs laufen parallel. Die tatsächliche Dauer hängt von Runner, Cache, Medienumfang und Netzwerk ab; die Job-Timeouts liegen je nach Aufgabe bei 5–45 Minuten.
## Bilder und Copyright
Vor dem ersten Deployment sind mindestens folgende Repository-Variablen zu setzen:
Die derzeit eingebundenen Ortsbilder und die Wappengrafik liegen in `goldebek_website_briefing/`. Ihre Webnutzung wurde durch den Auftraggeber am 19.09.2026 bestätigt. Dateien werden weder hotgelinkt noch umgestaltet. Für neue Bilder sind Freigabe, Motivbeschreibung, Alt-Text und gegebenenfalls Fotografen-Copyright zu dokumentieren.
- `CI_RUNNER`, optional `PROD_RUNNER`
- `CONTAINER_REGISTRY`
- `APP_IMAGE_REPOSITORY`
- `APP_NAME`, `COMPANY_NAME`, `CONTACT_EMAIL`, `CONTACT_PHONE`, `CONTACT_ADDRESS`
- `DEV_PRIMARY_DOMAIN`, `PROD_PRIMARY_DOMAIN`
- optional `DEV_APP_URL`, `PROD_APP_URL`, `DEV_CORS_ORIGIN`, `PROD_CORS_ORIGIN`
- optional Stack- und Netzwerkwerte `*_DEPLOY_STACK_NAME`, `*_TRAEFIK_NETWORK_NAME`
## Jährliche Aktualisierung
Benötigte Secrets:
Mindestens jährlich sowie vor dem Livegang sind zu prüfen:
- `CALENDAR_URL`
- `PACKAGES_USERNAME`, `PACKAGES_TOKEN`
- `DEV_TRAEFIK_CERTRESOLVER`, `PROD_TRAEFIK_CERTRESOLVER`
- Einwohnerzahl und Stichtag
- Gemeindevertretung, Kontakte, Hebesätze und Hundesteuer
- Dörpshuus-Gebühren und Nutzungsbedingungen
- Buslinie und Betreiberlink
- Fahrbücherei-Fahrplan
- Veranstaltungskalender und Archivstatus
- Projektstände und Bauleitplanung
- externe Links, Quellen und `validUntil`
- Erklärung zur Barrierefreiheit und Rechtstexte
Runner benötigen Docker, Zugriff auf das Zielnetzwerk und bei produktiven Deployments Zugriff auf den Zielhost.
## Datenschutz und Suche
## Für ein neues Projekt anpassen
Die Website verwendet keine Marketing-Cookies, Tracker, automatisch geladenen Karten, Drittanbieter-Schriftarten oder Video-Einbettungen. Ein Cookie-Banner ist für diese Grundkonfiguration nicht vorgesehen. Eine clientseitige Volltextsuche wurde bewusst nicht eingebaut: Die klare Informationsarchitektur und die geringe Inhaltsmenge erlauben kürzere Wege ohne zusätzlichen JavaScript-Suchindex. Das kann bei wachsendem Bestand neu bewertet werden.
1. Alle Werte aus `.env.example` für die neue Installation festlegen.
2. Texte und Navigation in `src/app/` und `src/components/Header.tsx` ersetzen.
3. Rechtstexte fachlich und rechtlich erstellen lassen.
4. Neues Logo, Farbschema, Schriften und Medien einpflegen.
5. Kalenderquelle und Titel regulärer Termine konfigurieren.
6. Beitrags-, Download- und Galerie-Registries befüllen.
7. Registry, Runner, Domains, Traefik und Secrets in CI/CD konfigurieren.
8. Alle Qualitätsprüfungen und den finalen Secret-Scan ausführen.
## Deployment
Die Beispielwerte sind nicht für eine produktive Veröffentlichung bestimmt.
`npm run build` erzeugt einen Standalone-Build. Die vorhandenen Gitea-Workflows übernehmen Tests, Build, Container-Scan, Docker-Compose-Deployment, Healthchecks und Rollback. Produktionswerte werden über die dort dokumentierten Variablen gesetzt; Secrets gehören nicht ins Repository.
+14
View File
@@ -0,0 +1,14 @@
[
{"id":"2026-09-20-landfrauen-jubilaeum","slug":"landfrauen-jubilaeum-2026","title":"70-jähriges Jubiläum LandFrauenVerein Joldelund e.V.","summary":"Jubiläumsveranstaltung des LandFrauenVereins im Dörpshuus.","startDate":"2026-09-20","startTime":"11:00","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","organizer":"LandFrauenVerein Joldelund e.V.","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-09-28-seniorennachmittag","slug":"seniorennachmittag-september-2026","title":"Seniorennachmittag","summary":"Gemeinsamer Nachmittag für Seniorinnen und Senioren.","startDate":"2026-09-28","startTime":"14:00","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-10-04-erntedank","slug":"erntedankgottesdienst-2026","title":"Erntedankgottesdienst","startDate":"2026-10-04","startTime":"11:00","timezone":"Europe/Berlin","location":"Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-10-09-fahrbuecherei","slug":"fahrbuecherei-oktober-2026","title":"Fahrbücherei","summary":"Halt der Fahrbücherei 5 in Goldebek.","startDate":"2026-10-09","startTime":"15:55","endTime":"16:20","timezone":"Europe/Berlin","location":"Dorfstraße 12","sourceUrl":"https://www.fahrbuecherei5.de/fileadmin/fahrbuechereien/fahrbuecherei-5/PDF_Dokumente/Fahrplan_2026.pdf","sourceName":"Fahrbücherei 5 – Fahrplan 2026","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-10-17-erntefest","slug":"erntefest-2026","title":"Erntefest","startDate":"2026-10-17","startTime":"19:30","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-10-26-seniorennachmittag","slug":"seniorennachmittag-oktober-2026","title":"Seniorennachmittag","startDate":"2026-10-26","startTime":"14:00","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-11-06-fahrbuecherei","slug":"fahrbuecherei-november-2026","title":"Fahrbücherei","summary":"Halt der Fahrbücherei 5 in Goldebek.","startDate":"2026-11-06","startTime":"15:55","endTime":"16:20","timezone":"Europe/Berlin","location":"Dorfstraße 12","sourceUrl":"https://www.fahrbuecherei5.de/fileadmin/fahrbuechereien/fahrbuecherei-5/PDF_Dokumente/Fahrplan_2026.pdf","sourceName":"Fahrbücherei 5 – Fahrplan 2026","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-11-15-kranzniederlegung","slug":"kranzniederlegung-2026","title":"Kranzniederlegung","startDate":"2026-11-15","startTime":"14:30","timezone":"Europe/Berlin","location":"Ehrenmal Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-11-30-seniorennachmittag","slug":"seniorennachmittag-november-2026","title":"Seniorennachmittag","startDate":"2026-11-30","startTime":"14:00","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-12-04-fahrbuecherei","slug":"fahrbuecherei-dezember-2026","title":"Fahrbücherei","summary":"Halt der Fahrbücherei 5 in Goldebek.","startDate":"2026-12-04","startTime":"15:55","endTime":"16:20","timezone":"Europe/Berlin","location":"Dorfstraße 12","sourceUrl":"https://www.fahrbuecherei5.de/fileadmin/fahrbuechereien/fahrbuecherei-5/PDF_Dokumente/Fahrplan_2026.pdf","sourceName":"Fahrbücherei 5 – Fahrplan 2026","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-12-06-nikolaus-ff","slug":"nikolaus-feuerwehr-2026","title":"Nikolaus kommt mit der Freiwilligen Feuerwehr","startDate":"2026-12-06","timezone":"Europe/Berlin","location":"Goldebek","organizer":"Freiwillige Feuerwehr Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true},
{"id":"2026-12-14-seniorennachmittag","slug":"seniorennachmittag-dezember-2026","title":"Seniorennachmittag","startDate":"2026-12-14","startTime":"14:00","timezone":"Europe/Berlin","location":"Dörpshuus Goldebek","sourceUrl":"https://goldebek.jimdosite.com/termine/","sourceName":"Öffentlicher Gemeindekalender","lastVerified":"2026-09-18","status":"verified","privacyApproved":true}
]
+5
View File
@@ -0,0 +1,5 @@
{
"id":"spielplatz-am-langbarg-eroeffnet","slug":"spielplatz-am-langbarg-eroeffnet","title":"Spielplatz am Langbarg eröffnet","teaser":"Seit dem 2. August 2026 ist der neue Spielplatz am Langbarg geöffnet. Er bietet Kindern und Familien einen neuen Treffpunkt im Dorf.",
"body":"Der Spielplatz am Langbarg wurde am 2. August 2026 offiziell eröffnet. Das Projekt mit einem Volumen von rund 145.000 Euro geht auf einen Bürgerwunsch zurück und schafft einen Treffpunkt für Kinder, Familien und die Dorfgemeinschaft. Die VR Bank Nord Stiftung unterstützte das Vorhaben mit 10.000 Euro, der Bürgerwindpark Veer Dörper mit 500 Euro.",
"publishedAt":"2026-08-02","updatedAt":"2026-09-18","sourceUrl":"https://www.amnf.de/aktuelles/aktuelle-meldungen/details/news/neuer-spielplatz-in-goldebek-ein-ort-zum-toben-begegnen-und-wachsen","sourceName":"Amt Mittleres Nordfriesland","lastVerified":"2026-09-18","status":"published"
}
+30
View File
@@ -0,0 +1,30 @@
[
{"slug":"gemeinde","eyebrow":"Gemeinde","title":"Goldebek kennenlernen","intro":"Wissenswertes über den Ort, seine Geschichte, die Menschen und das Gemeindewappen.","sections":[{"title":"Das Dorf im Überblick","text":["Goldebek liegt im nordöstlichen Nordfriesland zwischen Bredstedt und Wanderup. Die fünf Siedlungsteile sind Goldebek, Heinsbek, Kolonie, Süderhuus und Goldebekfeld."],"links":[{"label":"Über Goldebek","href":"/gemeinde/ueber-goldebek"},{"label":"Zahlen & Fakten","href":"/gemeinde/zahlen-fakten"},{"label":"Geschichte","href":"/gemeinde/geschichte"},{"label":"Wappen","href":"/gemeinde/wappen"},{"label":"Dorfchronik","href":"/gemeinde/dorfchronik"}] }],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"gemeinde/ueber-goldebek","eyebrow":"Gemeinde","title":"Über Goldebek","intro":"Ein ländlich geprägtes Dorf im nordöstlichen Nordfriesland – mit gewachsener Gemeinschaft und dem Mühlenstrom als Namensgeber.","sections":[{"title":"Lage und Ortsteile","text":["Goldebek liegt an der Landesstraße 12 zwischen Bredstedt und Wanderup. Zum Gemeindegebiet gehören Goldebek, Heinsbek, Kolonie, Süderhuus und Goldebekfeld."],"items":["Kreis Nordfriesland","Amt Mittleres Nordfriesland","Postleitzahl 25862"]},{"title":"Landschaft und Mühlenstrom","text":["Landwirtschaft und die nordfriesische Geest prägen die Umgebung. Der Goldebeker Mühlenstrom erinnert an die frühere Mühle und ist eng mit dem Ortsnamen verbunden."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","special":"overview"},
{"slug":"gemeinde/zahlen-fakten","eyebrow":"Gemeinde","title":"Zahlen & Fakten","intro":"Die wichtigsten amtlichen Basisdaten der Gemeinde Goldebek.","sections":[{"title":"Gemeindedaten","text":["Die Einwohnerzahl wird mit Stichtag angegeben, damit Veränderungen nachvollziehbar bleiben."]}],"sourceId":"statistikportal-goldebek","lastVerified":"2026-09-18","special":"facts"},
{"slug":"gemeinde/geschichte","eyebrow":"Gemeinde","title":"Geschichte","intro":"Von der ersten Erwähnung im Jahr 1321 bis zu heutigen Gemeinschaftsprojekten.","sections":[{"title":"Goldebek im Wandel","text":["Die Zeitleiste versammelt bestätigte Eckdaten der Ortsgeschichte. Vertiefende Geschichten und Erinnerungen finden sich in der Dorfchronik."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","special":"history"},
{"slug":"gemeinde/wappen","eyebrow":"Gemeinde","title":"Das Gemeindewappen","intro":"Mühle, Mühlenstrom und Landwirtschaft werden im Wappen der Gemeinde sichtbar.","sections":[{"title":"Beschreibung","text":["Von Blau und Grün durch einen goldenen Schrägwellenbalken erniedrigt geteilt. Oben eine silberne Windmühle mit hohem Sockelgeschoss, unten ein silberner Ochsenkopf."]},{"title":"Bedeutung","items":["Blau und Grün stehen für Himmel und Landschaft.","Die Windmühle verweist auf die frühere Mühle und die Landwirtschaft.","Der goldene Wellenbalken nimmt Bezug auf den Mühlenstrom und den Ortsnamen.","Der Ochsenkopf steht für die landwirtschaftliche Prägung."]}],"sourceId":"wappen-commons","lastVerified":"2026-09-18","special":"coat-of-arms"},
{"slug":"gemeinde/dorfchronik","eyebrow":"Gemeinde","title":"Dorfchronik","intro":"Zwei Bände bewahren Geschichte, Erinnerungen und Entwicklungen des Dorfes.","sections":[{"title":"Band 1","text":["Der erste Band der Dorfchronik erschien 1992."]},{"title":"Band 2","text":["Der zweite Band folgte im April 2022 und führt die dokumentierte Dorfgeschichte fort."]},{"title":"Weitere Informationen","text":["Angaben zu Bezugsmöglichkeiten werden ergänzt, sobald sie von der Gemeinde redaktionell bestätigt sind."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"leben","eyebrow":"Leben & Gemeinschaft","title":"Gemeinschaft in Goldebek","intro":"Ehrenamt, Vereine und gemeinsame Orte tragen das Dorfleben.","sections":[{"title":"Miteinander im Dorf","text":["Das Dörpshuus, der Spielplatz und ehrenamtliche Angebote schaffen Raum für Begegnung."],"links":[{"label":"Dörpshuus","href":"/leben/doerpshuus"},{"label":"Spielplatz","href":"/leben/spielplatz"},{"label":"Vereine","href":"/leben/vereine"},{"label":"Freiwillige Feuerwehr","href":"/leben/freiwillige-feuerwehr"},{"label":"Alltagshilfe Osterdörfer","href":"/leben/alltagshilfe-osterdoerfer"}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"leben/doerpshuus","eyebrow":"Leben & Gemeinschaft","title":"Dörpshuus","intro":"Das Dorfgemeinschaftshaus ist ein zentraler Ort für Feiern, Treffen und Veranstaltungen.","sections":[{"title":"Ein Haus für das Dorf","text":["Das Dörpshuus wurde im Jahr 2000 mit erheblicher Eigenleistung aus der Dorfgemeinschaft errichtet."]},{"title":"Wichtiger Hinweis","text":["Eine Kaution wird hier nicht genannt, da der aktuelle Betrag noch bestätigt werden muss. Bitte klären Sie alle Nutzungsbedingungen vor einer Buchung direkt mit dem Servicekontakt."]}],"sourceId":"legacy-doerpshuus","lastVerified":"2025-12-02","special":"doerpshuus"},
{"slug":"leben/spielplatz","eyebrow":"Leben & Gemeinschaft","title":"Spielplatz am Langbarg","intro":"Seit dem 2. August 2026 ist der neue Spielplatz ein Treffpunkt für Kinder, Familien und das Dorf.","sections":[{"title":"Das Projekt","text":["Der Spielplatz entstand aus einem Bürgerwunsch. Das Projektvolumen betrug rund 145.000 Euro."],"items":["VR Bank Nord Stiftung: 10.000 Euro Spende","Bürgerwindpark Veer Dörper: 500 Euro Spende"]},{"title":"Für Kinder und Familien","text":["Der neue Ort verbindet Spielmöglichkeiten mit Begegnung und gemeinsamer Zeit im Dorf."]}],"sourceId":"playground-2026","lastVerified":"2026-09-18"},
{"slug":"leben/vereine","eyebrow":"Leben & Gemeinschaft","title":"Vereine & Gruppen","intro":"Sport, Tradition und soziales Engagement haben in Goldebek viele Formen.","sections":[{"title":"Engagiert vor Ort","text":["Die Einträge nennen nur bestätigte öffentliche Informationen. Private Kontaktdaten werden nicht ungeprüft veröffentlicht."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","special":"clubs"},
{"slug":"leben/freiwillige-feuerwehr","eyebrow":"Leben & Gemeinschaft","title":"Freiwillige Feuerwehr","intro":"Die Freiwillige Feuerwehr Goldebek ist ein wichtiger Bestandteil der örtlichen Gefahrenabwehr und des Gemeindelebens.","sections":[{"title":"Einsatz und Gemeinschaft","text":["Das Feuerwehrgerätehaus ist mit dem Dörpshuus verbunden. Aktuelle dienstliche Kontakte und Informationen werden ausschließlich über bestätigte amtliche Quellen veröffentlicht."]},{"title":"Im Notfall","text":["Bei Feuer und medizinischen Notfällen gilt die europaweite Notrufnummer 112."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"leben/kulturausschuss","eyebrow":"Leben & Gemeinschaft","title":"Kulturausschuss","intro":"Der Kulturausschuss plant und begleitet gemeinschaftliche Veranstaltungen und Aktionen in Goldebek.","sections":[{"title":"Kultur im Dorf","text":["Zum Dorfleben gehören wiederkehrende Veranstaltungen, Feste und gemeinsame Aktionen. Konkrete Termine werden im Veranstaltungskalender gepflegt."],"links":[{"label":"Zu den Terminen","href":"/termine"}]}],"sourceId":"legacy-events","lastVerified":"2026-09-18"},
{"slug":"leben/senioren","eyebrow":"Leben & Gemeinschaft","title":"Seniorinnen & Senioren","intro":"Treffen und praktische Hilfe unterstützen Austausch und Teilhabe im Alltag.","sections":[{"title":"Seniorennachmittage","text":["Konkrete, bestätigte Termine stehen im Veranstaltungskalender. Eine feste Wiederholungsregel wird nicht veröffentlicht, damit Änderungen berücksichtigt werden können."],"links":[{"label":"Terminkalender öffnen","href":"/termine"}]},{"title":"Unterstützung im Alltag","text":["Die Alltagshilfe Osterdörfer hilft niedrigschwellig bei ausgewählten Aufgaben und Fahrten."],"links":[{"label":"Alltagshilfe ansehen","href":"/leben/alltagshilfe-osterdoerfer"}]}],"sourceId":"legacy-events","lastVerified":"2026-09-18"},
{"slug":"leben/alltagshilfe-osterdoerfer","eyebrow":"Leben & Gemeinschaft","title":"Alltagshilfe Osterdörfer","intro":"Seit dem 1. Januar 2026 unterstützt das gemeinsame Angebot Menschen in fünf Gemeinden bei kleinen Aufgaben des Alltags.","sections":[{"title":"Was die Alltagshilfe leistet","text":["Das Angebot ist kein Ersatz für professionelle Pflege-, Handwerks-, Garten- oder Taxileistungen."]}],"sourceId":"alltagshilfe","lastVerified":"2026-09-18","special":"everyday-help"},
{"slug":"politik","eyebrow":"Politik & Verwaltung","title":"Politik & Verwaltung","intro":"Sachliche Informationen zu Gemeindevertretung, Beschlüssen, Satzungen und Planungen.","sections":[{"title":"Transparent informiert","text":["Maßgeblich für aktuelle Sitzungen, Protokolle, Satzungen und Verfahren sind die amtlichen Veröffentlichungen des Amtes Mittleres Nordfriesland."],"links":[{"label":"Bürgermeister & Gemeindevertretung","href":"/politik/gemeindevertretung"},{"label":"Sitzungen & Protokolle","href":"/politik/sitzungen-protokolle"},{"label":"Satzungen & Steuern","href":"/politik/satzungen-steuern"},{"label":"Bauleitplanung","href":"/politik/bauleitplanung"},{"label":"Projekte & Entwicklung","href":"/politik/projekte-entwicklung"}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"politik/gemeindevertretung","eyebrow":"Politik & Verwaltung","title":"Bürgermeister & Gemeindevertretung","intro":"Die gewählten Vertreterinnen und Vertreter der Gemeinde Goldebek auf einen Blick.","sections":[{"title":"Gemeindevertretung","text":["Alle Mitglieder werden gleichartig und ohne parteipolitische Wertung dargestellt."]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","special":"council"},
{"slug":"politik/sitzungen-protokolle","eyebrow":"Politik & Verwaltung","title":"Sitzungen & Protokolle","intro":"Aktuelle Sitzungsunterlagen und Niederschriften werden über die amtliche Dokumentquelle bereitgestellt.","sections":[{"title":"Amtliche Unterlagen","text":["Bitte nutzen Sie für Sitzungstermine, Einladungen und Protokolle die jeweils aktuelle Veröffentlichung des Amtes. Auf dieser Website werden keine veralteten Kopien als aktueller Stand geführt."],"links":[{"label":"Zur Gemeinde beim Amt Mittleres Nordfriesland","href":"https://www.amnf.de/gemeinden-stadt/goldebek","external":true}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"politik/satzungen-steuern","eyebrow":"Politik & Verwaltung","title":"Satzungen & Steuern","intro":"Hebesätze, Hundesteuer und der direkte Weg zu den amtlichen Satzungen.","sections":[{"title":"Satzungen","text":["Rechtsverbindlich ist ausschließlich die aktuelle amtliche Fassung. Deshalb verlinkt diese Seite zur Veröffentlichung des Amtes, statt alte PDF-Kopien vorzuhalten."],"links":[{"label":"Aktuelle Satzungen beim Amt","href":"https://www.amnf.de/gemeinden-stadt/goldebek","external":true}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","special":"taxes"},
{"slug":"politik/bauleitplanung","eyebrow":"Politik & Verwaltung","title":"Bauleitplanung","intro":"Planverfahren und Unterlagen werden in ihrer jeweils aktuellen amtlichen Fassung veröffentlicht.","sections":[{"title":"Aktuelle Verfahren","text":["Zum Status einzelner Planungen oder verfügbarer Grundstücke werden aus älteren Protokollen keine Aussagen abgeleitet."],"links":[{"label":"Bauleitplanung Goldebek beim Amt","href":"https://www.amnf.de/amt-verwaltung/bauen-wohnen/verfahren-bauleitplanung/goldebek","external":true}]}],"sourceId":"amnf-planning","lastVerified":"2026-09-18"},
{"slug":"politik/projekte-entwicklung","eyebrow":"Politik & Verwaltung","title":"Projekte & Entwicklung","intro":"Abgeschlossene Vorhaben und verlässliche Wege zu laufenden Planungen.","sections":[{"title":"Spielplatz am Langbarg","text":["Der neue Spielplatz wurde am 2. August 2026 eröffnet."],"links":[{"label":"Mehr zum Spielplatz","href":"/leben/spielplatz"}]},{"title":"Wärmeplanung und Windenergie","text":["Für aktuelle Projektstände verweist die Gemeinde auf die amtlichen beziehungsweise projektverantwortlichen Stellen. Statische Anlagenzahlen und überholte Zwischenstände werden nicht veröffentlicht."],"links":[{"label":"Amt Mittleres Nordfriesland","href":"https://www.amnf.de","external":true},{"label":"Bürgerwindpark Veer Dörper","href":"https://veer-doerper.de/","external":true}]}],"sourceId":"playground-2026","lastVerified":"2026-09-18"},
{"slug":"service","eyebrow":"Service","title":"Gut informiert im Alltag","intro":"Kontakte, Mobilität, Fahrbücherei und wichtige Verbindungen für Goldebek.","sections":[{"title":"Direkte Wege","links":[{"label":"Ansprechpartner","href":"/service/ansprechpartner"},{"label":"Mobilität","href":"/service/mobilitaet"},{"label":"Fahrbücherei","href":"/service/fahrbuecherei"},{"label":"Abfall & Abwasser","href":"/service/abfall-abwasser"},{"label":"Bildung, Kita & Schule","href":"/service/bildung"},{"label":"Wichtige Links","href":"/service/wichtige-links"}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"service/ansprechpartner","eyebrow":"Service","title":"Ansprechpartner","intro":"Die wichtigsten Kontakte der Gemeinde und des Amtes Mittleres Nordfriesland.","sections":[{"title":"Bürgermeister","text":["Peter Jessen, Am Mühlenstrom 14, 25862 Goldebek","Telefon 04673/962229 · Fax 04673/962688"]},{"title":"Amt Mittleres Nordfriesland","text":["Theodor-Storm-Straße 2, 25821 Bredstedt","Telefon 04671/9192-0 · Fax 04671/9192-93","E-Mail info@amnf.de"]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"service/mobilitaet","eyebrow":"Service","title":"Mobilität","intro":"Busverbindungen und Haltestellen in Goldebek – ohne schnell veraltende Abfahrtszeiten.","sections":[{"title":"Aktueller Fahrplan","text":["Bitte prüfen Sie Abfahrten und mögliche Änderungen direkt bei der Betreiberseite. Fahrzeiten werden nicht in diese Website kopiert."]}],"sourceId":"bus-130","lastVerified":"2026-09-18","special":"mobility"},
{"slug":"service/fahrbuecherei","eyebrow":"Service","title":"Fahrbücherei","intro":"Die Fahrbücherei 5 hält an der Dorfstraße 12 in Goldebek.","sections":[{"title":"Fahrplan 2026","text":["Die Jahresdaten werden als austauschbare Daten gepflegt und für das Folgejahr neu geprüft."]}],"sourceId":"fahrbuecherei-2026","lastVerified":"2026-09-18","special":"mobile-library"},
{"slug":"service/abfall-abwasser","eyebrow":"Service","title":"Abfall & Abwasser","intro":"Verlässliche Informationen werden über die zuständigen amtlichen Stellen bereitgestellt.","sections":[{"title":"Aktuelle Auskünfte","text":["Direkte, fachlich zuständige Links werden ergänzt, sobald sie redaktionell bestätigt sind. Bis dahin hilft das Amt Mittleres Nordfriesland bei der Zuordnung des Anliegens."],"links":[{"label":"Amt Mittleres Nordfriesland öffnen","href":"https://www.amnf.de","external":true}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"service/bildung","eyebrow":"Service","title":"Bildung, Kita & Schule","intro":"Informationen zu Bildungs- und Betreuungsangeboten in der Umgebung.","sections":[{"title":"Angebote in der Region","text":["Goldebek verfügt nicht über eine eigene Kita oder Grundschule. Angebote finden sich insbesondere im nahen Joldelund und im Amtsgebiet."],"links":[{"label":"Bildung in Joldelund","href":"https://www.joldelund.de/seite/175858/bildung-in-joldelund.html","external":true},{"label":"Kindergärten im Amtsgebiet","href":"https://www.amnf.de/leben-erleben/bildung-familie/kindergaerten","external":true}]}],"sourceId":"joldelund-education","lastVerified":"2026-09-18"},
{"slug":"service/wichtige-links","eyebrow":"Service","title":"Wichtige Links","intro":"Ausgewählte amtliche und lokale Angebote außerhalb dieser Website.","sections":[{"title":"Verwaltung & Verkehr","links":[{"label":"Amt Mittleres Nordfriesland","href":"https://www.amnf.de","external":true},{"label":"Buslinie 130","href":"https://www.norddeutsche-verkehrsbetriebe.de/de/fuer-unsere-fahr-gaeste/nordfriesland-mitte/linie/linie-130","external":true},{"label":"Fahrbücherei 5","href":"https://www.fahrbuecherei5.de","external":true}]},{"title":"Gemeinschaft","links":[{"label":"TSV Goldebek","href":"https://www.tsv-goldebek.de","external":true},{"label":"LandFrauenVerein Joldelund","href":"https://www.lfv-joldelund.de","external":true}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"},
{"slug":"kontakt","eyebrow":"Kontakt","title":"Kontakt zur Gemeinde","intro":"Für Gemeindeangelegenheiten erreichen Sie Bürgermeister Peter Jessen oder das Amt Mittleres Nordfriesland.","sections":[{"title":"Gemeinde Goldebek","text":["Bürgermeister Peter Jessen","Am Mühlenstrom 14, 25862 Goldebek","Telefon 04673/962229 · Fax 04673/962688"],"links":[{"label":"Goldebek in OpenStreetMap öffnen","href":"https://www.openstreetmap.org/search?query=25862%20Goldebek","external":true}]},{"title":"Amt Mittleres Nordfriesland","text":["Theodor-Storm-Straße 2, 25821 Bredstedt","Telefon 04671/9192-0 · E-Mail info@amnf.de"],"links":[{"label":"E-Mail an das Amt","href":"mailto:info@amnf.de"}]}],"sourceId":"amnf-goldebek","lastVerified":"2026-09-18"}
]
+5
View File
@@ -0,0 +1,5 @@
{
"office":{"name":"Amt Mittleres Nordfriesland","address":"Theodor-Storm-Straße 2, 25821 Bredstedt","phone":"04671/9192-0","fax":"04671/9192-93","email":"info@amnf.de"},
"statutes":["Hauptsatzung","Abwassergebührensatzung","Entschädigungssatzung","Erschließungsbeitragssatzung","Hundesteuersatzung","Feuerwehrgebührensatzung","Sondervermögen Feuerwehr","Satzung über Kostenerstattungsbeiträge gemäß BauGB","Wasseranschlusssatzung"],
"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","status":"dynamic"
}
+7
View File
@@ -0,0 +1,7 @@
[
{"name":"TSV Goldebek","type":"Sportverein","url":"https://www.tsv-goldebek.de","sourceId":"tsv","lastVerified":"2026-09-18","status":"verified"},
{"name":"LandFrauenVerein Joldelund e.V.","type":"LandFrauen","url":"https://www.lfv-joldelund.de","sourceId":"landfrauen","lastVerified":"2026-09-18","status":"verified"},
{"name":"Ringreiter- und Schützenverein Freie Bahn Goldebek von 1948","type":"Traditionsverein","sourceId":"legacy-events","lastVerified":"2026-09-18","status":"verified"},
{"name":"SoVD Goldebek-Goldelund-Joldelund","type":"Sozialverband","url":"https://www.sovd-nordfriesland.de","sourceId":"legacy-events","lastVerified":"2026-09-18","status":"verified"},
{"name":"Freiwillige Feuerwehr Goldebek","type":"Feuerwehr","sourceId":"amnf-goldebek","lastVerified":"2026-09-18","status":"verified"}
]
+11
View File
@@ -0,0 +1,11 @@
{
"cultureCommittee":{"name":"Kulturausschuss Goldebek","chair":"Maik Tewes","phone":"0160 7697796","sourceId":"legacy-events","lastVerified":"2026-09-18","status":"needs-verification","privacyApproved":false},
"traditions":[
{"name":"Seniorennachmittag","rule":"Nur konkrete bestätigte Termine veröffentlichen."},
{"name":"Biikebrennen","rule":"Jährliche Details neu prüfen."},
{"name":"Lebendiger Adventskalender","rule":"Private Gastgeberadressen nur mit ausdrücklicher Freigabe veröffentlichen."},
{"name":"Dorfflohmarkt","rule":"Konkrete Jahresdaten separat pflegen."},
{"name":"Streuobstwiesenfest","rule":"Konkrete Jahresdaten separat pflegen."},
{"name":"Erntefest","rule":"Konkrete Jahresdaten separat pflegen."}
]
}
+6
View File
@@ -0,0 +1,6 @@
{
"mayor":{"name":"Peter Jessen","role":"Bürgermeister","address":"Am Mühlenstrom 14, 25862 Goldebek","phone":"04673/962229","fax":"04673/962688"},
"members":["Peter Jessen","Hauke Jensen","Volker Hansen","Timo Jensen","Catarina Tudsen","Stefan Christiansen","Rainer Bakker","Finn Christiansen","Nils Höner"],
"taxRates":{"grundsteuerA":"595 v.H.","grundsteuerB":"517 v.H.","gewerbesteuer":"400 v.H.","firstDog":"90 €/Jahr","secondDog":"110 €/Jahr","additionalDog":"110 €/Jahr"},
"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","status":"verified"
}
+6
View File
@@ -0,0 +1,6 @@
{
"referenceDate":"2024-12-31","population":381,"averageAge":41.2,
"nationality":{"german":376,"foreign":5},
"ageGroups":[{"range":"0–17","count":85,"percent":22.3},{"range":"18–24","count":33,"percent":8.7},{"range":"25–29","count":18,"percent":4.7},{"range":"30–49","count":97,"percent":25.5},{"range":"50–64","count":81,"percent":21.3},{"range":"65+","count":67,"percent":17.6}],
"sourceId":"statistik-nord-goldebek","lastVerified":"2026-09-18","status":"verified"
}
+16
View File
@@ -0,0 +1,16 @@
{
"name":"Goldebek","state":"Schleswig-Holstein","district":"Nordfriesland","administration":"Amt Mittleres Nordfriesland","officialMunicipalityKey":"01054037","postalCode":"25862","areaKm2":10.18,
"population":{"value":381,"referenceDate":"2026-03-31","densityPerKm2":37,"sourceId":"statistikportal-goldebek","lastVerified":"2026-09-18","status":"verified"},
"settlementParts":["Goldebek","Heinsbek","Kolonie","Süderhuus","Goldebekfeld"],
"history":[
{"date":"1321","title":"Erste urkundliche Erwähnung","text":"Goldebek wird erstmals urkundlich erwähnt."},
{"date":"1934","title":"Selbstständige Gemeinde","text":"Goldebek ist seit 1934 eine selbstständige Gemeinde."},
{"date":"1948","title":"Abbruch der Mühle","text":"Die namens- und ortsbildprägende Mühle am Mühlenstrom wurde abgebrochen."},
{"date":"01.11.1961","title":"Goldebek statt Goldebeck","text":"Der amtliche Gemeindename wurde von Goldebeck in Goldebek geändert."},
{"date":"1992","title":"Dorfchronik, Band 1","text":"Der erste Band der Goldebeker Dorfchronik erschien."},
{"date":"2000","title":"Dörpshuus","text":"Das Dörpshuus wurde mit viel Eigenleistung aus der Dorfgemeinschaft errichtet."},
{"date":"April 2022","title":"Dorfchronik, Band 2","text":"Der zweite Band der Dorfchronik erschien."},
{"date":"02.08.2026","title":"Spielplatz am Langbarg","text":"Der neue Spielplatz wurde offiziell eröffnet."}
],
"sourceId":"amnf-goldebek","lastVerified":"2026-09-18","status":"verified"
}
+6
View File
@@ -0,0 +1,6 @@
[
{"id":"spielplatz-langbarg","title":"Spielplatz am Langbarg","status":"completed","completed":"2026-08-02","summary":"Aus einem Bürgerwunsch entstand ein neuer Spielplatz; eröffnet am 02.08.2026.","sourceId":"playground-2026","lastVerified":"2026-09-18"},
{"id":"waermeplanung-osterdoerfer","title":"Gemeinsame kommunale Wärmeplanung","status":"needs-verification","summary":"Der aktuelle Projektstand muss vor jeder öffentlichen Aktualisierung erneut amtlich geprüft werden.","lastVerified":"2026-04-21"},
{"id":"windenergie","title":"Windenergie und Bürgerwindpark Veer Dörper","status":"dynamic","summary":"Wegen Repowering werden keine statischen Anlagenzahlen veröffentlicht.","sourceId":"veer-doerper","lastVerified":"2026-09-18"},
{"id":"baugebiet-bplan5","title":"Wohnbauentwicklung / Bebauungsplan Nr. 5","status":"needs-verification","summary":"Keine Aussage zur Grundstücksverfügbarkeit ohne aktuellen Stand des Amtes.","sourceId":"amnf-planning","lastVerified":"2026-09-18"}
]
+6
View File
@@ -0,0 +1,6 @@
{
"doerpshuus":{"address":"Am Brodersberg 16, 25862 Goldebek","phone":"0173 3826343","built":2000,"capacity":{"hall":80,"fireBrigadeRoom":20,"total":100},"fees":{"residents":"150 €","fireBrigadeRoom":"60 €","nonResidents":"300 €","finalCleaning":"70 €","emergencyExitMisuse":"50 €"},"sourceId":"legacy-doerpshuus","lastVerified":"2025-12-02","status":"verified"},
"everydayHelp":{"since":"2026-01-01","coverage":["Goldebek","Goldelund","Joldelund","Högel","Kolkerheide"],"examples":["Einkäufe","Fahrten zu Arztterminen","kurze Kinderbetreuung","kleine Alltagshilfen"],"hourly":"5 € je angefangener Stunde","mileage":"0,50 €/km","contact":"Peter Jessen","phone":"0151/70089673","sourceId":"alltagshilfe","lastVerified":"2026-09-18","status":"verified"},
"mobility":{"line":"130","stops":["Goldebek Kreuzung","Goldebek Dorfstraße","Süderhuuser Straße 5","Süderhuus"],"sourceId":"bus-130","lastVerified":"2026-09-18","status":"dynamic"},
"mobileLibrary":{"stop":"Dorfstraße 12","time":"15:55–16:20","dates":["2026-10-09","2026-11-06","2026-12-04"],"sourceId":"fahrbuecherei-2026","lastVerified":"2026-09-18","validUntil":"2026-12-31","status":"dynamic"}
}
+18
View File
@@ -0,0 +1,18 @@
[
{"id":"amnf-goldebek","name":"Amt Mittleres Nordfriesland – Gemeinde Goldebek","url":"https://www.amnf.de/gemeinden-stadt/goldebek","type":"official","lastVerified":"2026-09-18"},
{"id":"statistikportal-goldebek","name":"Statistikportal – Gemeindeverzeichnis Goldebek","url":"https://www.statistikportal.de/de/gemeindeverzeichnis/01054037","type":"official-statistics","lastVerified":"2026-09-18"},
{"id":"statistik-nord-goldebek","name":"Statistikamt Nord – Regionaldaten Goldebek","url":"https://region.statistik-nord.de/detail/0010000000000000000/1/0/641/","type":"official-statistics","lastVerified":"2026-09-18"},
{"id":"legacy-events","name":"Bisheriger öffentlicher Gemeindekalender","url":"https://goldebek.jimdosite.com/termine/","type":"municipal-legacy","lastVerified":"2026-09-18"},
{"id":"legacy-doerpshuus","name":"Gemeinde Goldebek – Dörpshuus / Ratsunterlagen","url":"https://goldebek.jimdosite.com/die-gemeinde/doerpshuus/","type":"municipal-legacy","lastVerified":"2025-12-02"},
{"id":"playground-2026","name":"Amt Mittleres Nordfriesland – Neuer Spielplatz in Goldebek","url":"https://www.amnf.de/aktuelles/aktuelle-meldungen/details/news/neuer-spielplatz-in-goldebek-ein-ort-zum-toben-begegnen-und-wachsen","type":"official-news","lastVerified":"2026-09-18"},
{"id":"fahrbuecherei-2026","name":"Fahrbücherei 5 – Fahrplan 2026","url":"https://www.fahrbuecherei5.de/fileadmin/fahrbuechereien/fahrbuecherei-5/PDF_Dokumente/Fahrplan_2026.pdf","type":"official-service","lastVerified":"2026-09-18"},
{"id":"bus-130","name":"Norddeutsche Verkehrsbetriebe – Linie 130","url":"https://www.norddeutsche-verkehrsbetriebe.de/de/fuer-unsere-fahr-gaeste/nordfriesland-mitte/linie/linie-130","type":"operator","lastVerified":"2026-09-18"},
{"id":"alltagshilfe","name":"Gemeinde Goldelund – Alltagshilfe Osterdörfer","url":"https://www.goldelund.de/verzeichnis/visitenkarte.php?mandat=174283","type":"municipal-service","lastVerified":"2026-09-18"},
{"id":"amnf-planning","name":"Amt Mittleres Nordfriesland – Bauleitplanung Goldebek","url":"https://www.amnf.de/amt-verwaltung/bauen-wohnen/verfahren-bauleitplanung/goldebek","type":"official","lastVerified":"2026-09-18"},
{"id":"tsv","name":"TSV Goldebek","url":"https://www.tsv-goldebek.de","type":"club","lastVerified":"2026-09-18"},
{"id":"landfrauen","name":"LandFrauenVerein Joldelund e.V.","url":"https://www.lfv-joldelund.de","type":"club","lastVerified":"2026-09-18"},
{"id":"veer-doerper","name":"Bürgerwindpark Veer Dörper","url":"https://veer-doerper.de/","type":"project","lastVerified":"2026-09-18"},
{"id":"joldelund-education","name":"Gemeinde Joldelund – Bildung","url":"https://www.joldelund.de/seite/175858/bildung-in-joldelund.html","type":"municipal-service","lastVerified":"2026-09-18"},
{"id":"amnf-kindergarten","name":"Amt Mittleres Nordfriesland – Kindergärten","url":"https://www.amnf.de/leben-erleben/bildung-familie/kindergaerten","type":"official-service","lastVerified":"2026-09-18"},
{"id":"wappen-commons","name":"Wikimedia Commons – Wappen Goldebek","url":"https://commons.wikimedia.org/wiki/File:DEU_Goldebek_COA.svg","type":"asset-reference","lastVerified":"2026-09-18"}
]
+4 -4
View File
@@ -4,17 +4,17 @@ services:
build:
context: .
args:
APP_NAME: ${APP_NAME:-Example Website}
APP_NAME: ${APP_NAME:-Gemeinde Goldebek}
APP_URL: ${APP_URL:-https://example.com}
COMPANY_NAME: ${COMPANY_NAME:-Example Company}
COMPANY_NAME: ${COMPANY_NAME:-Gemeinde Goldebek}
CONTACT_EMAIL: ${CONTACT_EMAIL:-info@example.com}
CONTACT_PHONE: ${CONTACT_PHONE:-+49 000 000000}
CONTACT_ADDRESS: ${CONTACT_ADDRESS:-Example Street 1, 12345 Example City}
environment:
CALENDAR_URL: ${CALENDAR_URL}
APP_NAME: ${APP_NAME:-Example Website}
APP_NAME: ${APP_NAME:-Gemeinde Goldebek}
APP_URL: ${APP_URL:-https://example.com}
COMPANY_NAME: ${COMPANY_NAME:-Example Company}
COMPANY_NAME: ${COMPANY_NAME:-Gemeinde Goldebek}
CONTACT_EMAIL: ${CONTACT_EMAIL:-info@example.com}
CONTACT_PHONE: ${CONTACT_PHONE:-+49 000 000000}
CONTACT_ADDRESS: ${CONTACT_ADDRESS:-Example Street 1, 12345 Example City}
+17 -9
View File
@@ -13,21 +13,29 @@ describe("Next.js production server", () => {
it("renders the homepage with the main hero copy", async () => {
const html = await readPage("/");
assert.match(html, /Bereit für Ihre neue Website/);
assert.match(html, /E2E Beispieltermin/);
assert.match(html, /Moin in Goldebek/);
assert.match(html, /Nächste Termine/);
});
it("server-renders current calendar content", async () => {
const html = await readPage("/kalender/");
it("server-renders verified municipal events", async () => {
const html = await readPage("/termine/");
assert.match(html, /E2E Beispieltermin/);
assert.match(html, /Beispielort/);
assert.match(html, /70-jähriges Jubiläum/);
assert.match(html, /Dörpshuus Goldebek/);
});
it("renders the information page without client-side placeholders", async () => {
const html = await readPage("/informationen/");
it("renders the service page without client-side placeholders", async () => {
const html = await readPage("/service/");
assert.match(html, /Informationsbereiche/);
assert.match(html, /Gut informiert im Alltag/);
assert.doesNotMatch(html, /href="#"/);
});
it("contains basic accessible document landmarks", async () => {
const html = await readPage("/");
assert.match(html, /<html lang="de"/);
assert.match(html, /Zum Inhalt springen/);
assert.match(html, /<main id="main-content"/);
assert.doesNotMatch(html, /href="#"/);
});
@@ -0,0 +1,308 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="149.52928mm"
height="163.29898mm"
viewBox="0 0 149.52928 163.29898"
version="1.1"
id="svg3585"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
sodipodi:docname="DEU Goldebek COA.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview3587"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.86728112"
inkscape:cx="282.49203"
inkscape:cy="309.5882"
inkscape:current-layer="layer1" />
<defs
id="defs3582" />
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-528.04468,-68.108987)">
<g
id="g3451"
transform="translate(493.79944,1.82849)">
<path
id="path2396"
style="fill:#0040ff;fill-opacity:1;stroke:none;stroke-width:2.7;stroke-linecap:round;stroke-dasharray:none"
d="m 35.595243,67.630497 v 87.184343 a 73.414764,73.414764 0 0 0 73.414637,73.41464 73.414764,73.414764 0 0 0 73.41464,-73.41464 73.414764,73.414764 0 0 0 0,-0.001 V 67.630497 Z" />
<path
id="path2628"
style="fill:#059a02;fill-opacity:1;stroke:none;stroke-width:2.69999;stroke-linecap:round;stroke-dasharray:none"
d="m 35.595243,116.71536 v 38.09948 a 73.414764,73.414764 0 0 0 73.414637,73.41464 73.414764,73.414764 0 0 0 56.75106,-26.9105 L 154.61589,189.9884 134.37113,164.62716 105.45041,159.95509 78.976575,154.83861 64.071025,133.03632 49.833134,117.68584 Z" />
<path
id="path2280"
style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.7;stroke-dasharray:none"
d="m 40.953056,110.0491 c -1.776079,-0.004 -3.566368,0.045 -5.357813,0.0987 v 13.72009 c 5.211623,0.18896 10.256096,1.00684 14.820801,3.63027 14.152966,8.13398 11.841778,26.71399 25.994796,34.848 14.152975,8.13399 36.75401,1.21429 50.90697,9.34827 14.15288,8.13394 15.37032,23.70025 29.52326,31.83423 1.57945,0.90774 3.22304,1.65883 4.91133,2.30012 a 73.414764,73.414764 0 0 0 10.06554,-13.03331 c -2.44927,-0.77985 -4.82415,-1.74206 -7.06572,-3.03031 -14.15296,-8.13397 -15.36978,-23.70045 -29.52275,-31.83423 -14.15295,-8.13398 -36.754415,-1.21444 -50.907485,-9.34827 -14.153018,-8.13402 -11.84175,-26.71415 -25.994796,-34.848 -5.307378,-3.05025 -11.259959,-3.67146 -17.374133,-3.68556 z" />
<path
id="path3392"
style="fill:none;stroke:#000000;stroke-width:2.7;stroke-linecap:round;stroke-dasharray:none"
d="m 35.595243,67.630497 v 87.184343 a 73.414764,73.414764 0 0 0 73.414637,73.41464 73.414764,73.414764 0 0 0 73.41464,-73.41464 73.414764,73.414764 0 0 0 0,-0.001 V 67.630497 Z" />
<g
id="g1052"
transform="translate(-210.13807,-9.8003703)">
<path
style="fill:#ffffff;stroke:#00ffff;stroke-width:0.2"
d="m 339.70949,115.77966 0.58989,-6.37103 3.34282,-4.12937 5.23055,-2.00569 4.99457,2.43829 3.14619,6.09574 -0.78655,6.52834 -9.39923,1.33713 z"
id="path922" />
<path
style="fill:#ffffff;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-dasharray:none"
d="m 344.38928,133.8707 3e-5,10.57836 h 7.87135 V 133.8707 Z"
id="path1627" />
<path
id="path1459"
style="fill:#ffffff;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="m 342.0184,118.06049 -1.12913,1.84847 c 0,0 -0.62902,6.72491 -1.69085,10.7363 -1.02297,3.86457 -4.43436,7.94421 -4.43436,7.94421 h 9.5281 v -4.71857 h 3.97702 4.08877 v 4.71857 h 9.41635 c 0,0 -3.41087,-4.07964 -4.43384,-7.94421 -1.06183,-4.01139 -1.69137,-10.7363 -1.69137,-10.7363 l -1.12861,-1.84847 h -6.2513 z"
sodipodi:nodetypes="ccscccccccscccc" />
<path
id="path1622"
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:butt;stroke-dasharray:none"
d="m 345.64815,117.70651 -2.08462,2.16318 c 0,0 0.36021,4.00362 -0.6687,8.57312 -1.33715,5.93842 -3.68143,10.14666 -3.68143,10.14666 h 5.05809 l 0.33077,-4.71877 3.66692,2e-4 v -15.81041 z m 5.2927,0.35398 -2.62154,0.35399 v 15.8104 l 3.99769,0.0388 v 4.67982 h 5.05809 c 0,0 -2.34427,-4.20825 -3.68143,-10.14667 -1.0289,-4.5695 -0.6687,-8.57312 -0.6687,-8.57312 z"
sodipodi:nodetypes="ccsccccccccccccscc" />
<path
style="fill:none;stroke:none;stroke-width:0.7;stroke-linecap:butt;stroke-dasharray:none"
d="m 344.38928,133.8707 3e-5,10.57836 h 7.87135 V 133.8707 Z"
id="path1566" />
<g
id="g1228"
transform="rotate(45.654178,432.87683,-92.479978)">
<rect
style="fill:#000000;stroke:#000000;stroke-width:0.600002;stroke-linecap:round"
id="rect920"
width="3.4482689"
height="3.4482689"
x="517.31799"
y="108.28678" />
<g
id="g1207"
inkscape:transform-center-x="14.102399"
inkscape:transform-center-y="0.001945">
<path
id="path1090"
style="fill:#ffffff;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="m 491.37828,105.34292 v 4.66794 0.004 4.66793 l 20.8566,-1.41904 v -3.24889 -0.004 -3.2489 z"
sodipodi:nodetypes="ccccccccc" />
<path
style="fill:none;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="M 519.04211,110.01091 H 490.83729"
id="path1084" />
<path
style="fill:none;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="m 493.87259,110.01091 v 4.50217"
id="path1196" />
<path
style="fill:none;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="m 498.57779,110.01091 v 4.50217"
id="path1198" />
<path
style="fill:none;stroke:#000000;stroke-width:1.2;stroke-linecap:butt;stroke-dasharray:none"
d="m 496.22519,110.01091 v 4.50217"
id="path1200" />
</g>
<use
x="0"
y="0"
xlink:href="#g1207"
inkscape:transform-center-x="14.102399"
inkscape:transform-center-y="0.001945"
id="use1209"
style="stroke:#000000" />
<use
x="0"
y="0"
xlink:href="#g1207"
inkscape:transform-center-x="0.001944"
inkscape:transform-center-y="-14.1024"
id="use1211"
transform="rotate(90,519.0421,110.01091)"
style="stroke:#000000" />
<use
x="0"
y="0"
xlink:href="#g1207"
inkscape:transform-center-x="-14.102401"
inkscape:transform-center-y="-0.001945"
id="use1213"
transform="rotate(180,519.0421,110.01091)"
style="stroke:#000000" />
<use
x="0"
y="0"
xlink:href="#g1207"
inkscape:transform-center-x="-0.001946"
inkscape:transform-center-y="14.1024"
id="use1215"
transform="rotate(-90,519.0421,110.01091)"
style="stroke:#000000" />
</g>
<path
id="path1317"
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none"
d="m 333.84991,138.58947 v 12.82093 h 14.47508 14.4756 v -12.82093 h -10.53992 v 5.85959 h -3.93568 -3.93568 v -5.85959 z" />
<path
id="path1440"
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:butt;stroke-dasharray:none"
d="m 339.06021,140.08602 a 1.3209095,1.3209095 0 0 0 -1.32085,1.32085 v 3.60133 h 2.6417 v -3.60133 a 1.3209095,1.3209095 0 0 0 0,-5.1e-4 1.3209095,1.3209095 0 0 0 -1.32085,-1.32034 z"
inkscape:transform-center-x="9.2647991"
inkscape:transform-center-y="-4.7238523" />
<path
id="path1453"
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:butt;stroke-dasharray:none"
d="m 357.58981,140.08602 a 1.3209095,1.3209095 0 0 1 1.32085,1.32085 v 3.60133 h -2.6417 v -3.60133 a 1.3209095,1.3209095 0 0 1 0,-5.1e-4 1.3209095,1.3209095 0 0 1 1.32085,-1.32034 z"
inkscape:transform-center-x="-9.2648009"
inkscape:transform-center-y="-4.7238523" />
<path
style="fill:none;stroke:#000000;stroke-width:0.6;stroke-linecap:butt;stroke-dasharray:none"
d="m 348.26932,133.8709 v 10.57816"
id="path1472" />
<rect
style="fill:#ffffff;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-dasharray:none"
id="rect1528"
width="4.939013"
height="5.2603197"
x="345.79962"
y="123.41113" />
<path
style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:butt;stroke-dasharray:none"
d="m 348.26932,123.41113 v 5.26032"
id="path1530" />
<path
style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:butt;stroke-dasharray:none"
d="m 345.76697,126.04129 h 5.00469"
id="path1532" />
<path
id="path1838"
style="color:#000000;fill:#000000;-inkscape-stroke:none"
d="m 346.90441,102.81233 c -1.01045,0.21359 -2.44438,0.8256 -4.42609,2.33784 -4.16396,3.17752 -3.75378,9.87692 -3.75378,9.87692 l 1.61954,-0.65991 c 0,0 -0.10106,-5.49644 3.10524,-7.94319 1.84993,-1.41167 3.08565,-1.89699 3.78892,-2.0469 0.35946,-0.0861 1.08675,-0.0698 1.08675,-0.0698 0,0 0.7273,-0.0163 1.08676,0.0698 0.70327,0.14991 1.93899,0.63523 3.78891,2.0469 3.2063,2.44675 3.10524,7.94319 3.10524,7.94319 l 1.61954,0.65991 c 0,0 0.41018,-6.6994 -3.75378,-9.87692 -1.9817,-1.51224 -3.4018,-2.20557 -4.42608,-2.33784 -0.99205,-0.12811 -1.93742,-0.19104 -2.84117,0 z"
sodipodi:nodetypes="ssccscccsccsss" />
</g>
<g
id="g1338"
transform="translate(-206.21853,-12.201406)">
<g
id="g1314"
inkscape:transform-center-x="-12.643741"
inkscape:transform-center-y="-14.586097"
transform="matrix(-1,0,0,1,564.74046,0)">
<path
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 276.82507,191.99603 c 0,0 -3.16689,1.91624 -4.95525,1.88771 -1.73245,-0.0276 -4.11865,-1.44936 -6.05639,-0.94386 -2.71359,0.7079 -3.18552,2.63493 -3.18552,2.63493 0,0 1.2978,2.71359 4.40467,3.34283 3.10684,0.62923 8.84864,-0.94386 8.84864,-0.94386 z"
id="path1310"
sodipodi:nodetypes="csscscc" />
<path
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 262.81928,195.68927 c 0,0 3.29607,-1.76949 6.20133,-0.80645 2.07917,0.68922 4.67185,3.50389 4.67185,3.50389"
id="path1312"
sodipodi:nodetypes="csc" />
</g>
<g
id="g1308">
<path
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 276.82507,191.99603 c 0,0 -3.16689,1.91624 -4.95525,1.88771 -1.73245,-0.0276 -4.11865,-1.44936 -6.05639,-0.94386 -2.71359,0.7079 -3.18552,2.63493 -3.18552,2.63493 0,0 1.2978,2.71359 4.40467,3.34283 3.10684,0.62923 8.84864,-0.94386 8.84864,-0.94386 z"
id="path1302"
sodipodi:nodetypes="csscscc" />
<path
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 262.81928,195.68927 c 0,0 3.29607,-1.76949 6.20133,-0.80645 2.07917,0.68922 4.67185,3.50389 4.67185,3.50389"
id="path1304"
sodipodi:nodetypes="csc" />
</g>
<path
id="path1293"
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 282.313,188.72905 v 0.0109 l -6.39599,1.1374 c 0,0 -0.72302,3.67075 -1.77974,6.84093 -1.05675,3.17016 -2.11318,4.39388 -1.11207,7.17475 1.00108,2.78086 2.16906,5.72824 2.6696,8.67596 0.50056,2.94769 -0.72325,7.28586 6.6182,7.28586 0.0195,0 0.038,-4.4e-4 0.0574,-5.2e-4 7.34145,0 6.11764,-4.33816 6.6182,-7.28586 0.50054,-2.94772 1.66852,-5.89511 2.66961,-8.67596 1.00111,-2.78086 -0.0553,-4.00458 -1.11208,-7.17475 -1.05672,-3.17018 -1.77974,-6.84093 -1.77974,-6.84093 l -6.39599,-1.1374 v -0.01 l -0.0274,0.005 z" />
<path
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 287.43289,187.76382 c 0,0 2.75305,0.30589 5.39486,-0.6396 2.64181,-0.9455 4.36597,-3.05895 4.36597,-3.05895 0,0 0.61177,3.36484 -2.50278,5.64515 -3.11456,2.28031 -7.3693,2.28031 -7.3693,2.28031 z"
id="path1291"
inkscape:transform-center-x="-9.9117838"
inkscape:transform-center-y="6.3903849" />
<path
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 277.30757,187.76382 c 0,0 -2.75305,0.30589 -5.39486,-0.6396 -2.64181,-0.9455 -4.36597,-3.05895 -4.36597,-3.05895 0,0 -0.61177,3.36484 2.50278,5.64515 3.11456,2.28031 7.3693,2.28031 7.3693,2.28031 z"
id="path1289" />
<path
id="path925"
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 282.3285,191.77537 v 0.0217 l -1.93425,1.16685 c 0,0 0.19487,1.75212 -0.52813,2.72542 -0.72303,0.9733 -1.05678,1.64071 -1.05678,2.53059 0,0.88987 2.05792,2.75323 2.25257,4.50515 0.0939,0.84488 0.40568,2.38048 0.33538,3.70985 -0.0953,1.80162 0.42457,2.66297 0.9493,2.70475 0.52473,-0.0418 1.0446,-0.90313 0.9493,-2.70475 -0.0703,-1.32937 0.24148,-2.86497 0.33538,-3.70985 0.19465,-1.75192 2.25257,-3.61528 2.25257,-4.50515 0,-0.88988 -0.33375,-1.55729 -1.05678,-2.53059 -0.723,-0.9733 -0.52813,-2.72542 -0.52813,-2.72542 l -1.93425,-1.16685 v -0.0217 l -0.0181,0.0109 z" />
<path
id="path1168"
style="fill:#ffffff;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-dasharray:none"
d="m 282.37036,185.9256 c -3.66032,0.061 -7.18068,0.67421 -7.19698,3.78943 -0.012,2.2813 3.77549,3.44476 7.19698,3.44476 3.42149,0 7.20888,-1.16346 7.19698,-3.44476 -0.0163,-3.11522 -3.53666,-3.72843 -7.19698,-3.78943 z" />
<path
id="path1227"
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 282.37036,186.05789 -5.42499,0.83096 c 0,0 1.10492,-0.0872 1.96112,0.93069 0.55605,0.66111 0.61205,1.4041 0.97358,1.418 0.3615,0.0139 0.42748,-1.15198 0.84801,-1.80764 0.3949,-0.61569 0.67057,-0.91565 1.64228,-0.90175 0.97171,-0.0139 1.24738,0.28606 1.64228,0.90175 0.42053,0.65566 0.48651,1.82154 0.84801,1.80764 0.36153,-0.0139 0.41753,-0.75689 0.97358,-1.418 0.8562,-1.01789 1.96112,-0.93069 1.96112,-0.93069 z" />
<g
id="g1137">
<path
style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:round;stroke-dasharray:none"
d="m 272.62346,201.89115 c 0,0 1.84764,-2.00278 4.54507,-0.97386 2.69745,1.02892 2.14127,4.11568 2.14127,4.11568"
id="path1129" />
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 275.03567,200.76602 c 0,0 -0.87483,2.1506 0.45228,3.22484 1.7163,1.38927 3.53946,-0.96352 3.53946,-0.96352 l -0.78655,-1.47477 -1.86804,-0.90453 -0.45227,-0.0197 z"
id="path1133"
sodipodi:nodetypes="csccccc" />
</g>
<g
id="g1143"
inkscape:transform-center-x="-6.3798942"
inkscape:transform-center-y="-7.9554627"
transform="matrix(-1,0,0,1,564.74046,0)">
<path
style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:round;stroke-dasharray:none"
d="m 272.62346,201.89115 c 0,0 1.84764,-2.00278 4.54507,-0.97386 2.69745,1.02892 2.14127,4.11568 2.14127,4.11568"
id="path1139" />
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 275.03567,200.76602 c 0,0 -0.87483,2.1506 0.45228,3.22484 1.7163,1.38927 3.53946,-0.96352 3.53946,-0.96352 l -0.78655,-1.47477 -1.86804,-0.90453 -0.45227,-0.0197 z"
id="path1141"
sodipodi:nodetypes="csccccc" />
</g>
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 272.97099,202.83071 c 0,0 1.33713,2.65459 2.55627,4.60129 1.21915,1.94671 2.08436,2.59561 2.08436,2.59561 0,0 -0.0393,1.12083 0.0983,2.10401 0.13764,0.98318 0.25562,1.88771 0.25562,1.88771 0,0 -1.14427,0.0325 -1.24259,1.19273 -0.0983,1.16016 0.0363,1.9036 0.45606,2.89731 0.4147,0.98185 -1.14051,-1.96636 -1.14051,-1.96636 l -0.37359,-3.61812 -0.92419,-4.05071 -1.7304,-4.20803 z"
id="path1190"
sodipodi:nodetypes="cscscssccccc" />
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 291.76947,202.83071 c 0,0 -1.33713,2.65459 -2.55627,4.60129 -1.21915,1.94671 -2.08436,2.59561 -2.08436,2.59561 0,0 0.0393,1.12083 -0.0983,2.10401 -0.13764,0.98318 -0.25562,1.88771 -0.25562,1.88771 0,0 1.14427,0.0325 1.24259,1.19273 0.0983,1.16016 -0.0363,1.9036 -0.45606,2.89731 -0.4147,0.98185 1.14051,-1.96636 1.14051,-1.96636 l 0.37359,-3.61812 0.92419,-4.05071 1.7304,-4.20803 z"
id="path1192"
sodipodi:nodetypes="cscscssccccc"
inkscape:transform-center-x="-6.9019657"
inkscape:transform-center-y="-3.2949514" />
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 280.57102,217.97173 c 0,0 -0.19946,-0.95155 -0.65308,-1.66779 -0.43346,-0.68442 -1.26214,-0.99011 -1.73606,-0.54438 -0.59492,0.55953 -0.17394,1.29458 0.52698,1.75742 0.8142,0.53766 1.86216,0.45475 1.86216,0.45475 z"
id="path1194"
sodipodi:nodetypes="csssc" />
<path
style="fill:#000000;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-dasharray:none"
d="m 284.16944,217.97173 c 0,0 0.19946,-0.95155 0.65308,-1.66779 0.43346,-0.68442 1.26214,-0.99011 1.73606,-0.54438 0.59492,0.55953 0.17394,1.29458 -0.52698,1.75742 -0.8142,0.53766 -1.86216,0.45475 -1.86216,0.45475 z"
id="path1197"
sodipodi:nodetypes="csssc"
inkscape:transform-center-x="-3.1355531"
inkscape:transform-center-y="2.898198" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 19 KiB

+15
View File
@@ -21,6 +21,21 @@ const nextConfig: NextConfig = {
turbopack: {
root: process.cwd(),
},
async redirects() {
return [
{ source: "/die-gemeinde/ueber-uns", destination: "/gemeinde/ueber-goldebek", permanent: true },
{ source: "/die-gemeinde/doerpshuus", destination: "/leben/doerpshuus", permanent: true },
{ source: "/die-gemeinde/dorfchronik", destination: "/gemeinde/dorfchronik", permanent: true },
{ source: "/die-gemeinde/kulturausschuss", destination: "/leben/kulturausschuss", permanent: true },
{ source: "/gemeindevertretung", destination: "/politik/gemeindevertretung", permanent: true },
{ source: "/vereine", destination: "/leben/vereine", permanent: true },
{ source: "/ueber-uns", destination: "/gemeinde/ueber-goldebek", permanent: true },
{ source: "/informationen", destination: "/service", permanent: true },
{ source: "/kalender", destination: "/termine", permanent: true },
{ source: "/fahrten/:path*", destination: "/aktuelles", permanent: true },
{ source: "/bilder", destination: "/gemeinde/ueber-goldebek", permanent: true },
];
},
async headers() {
return [
{ source: "/(.*)", headers: securityHeaders },
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "nextjs-website-starter",
"name": "gemeinde-goldebek-website",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nextjs-website-starter",
"name": "gemeinde-goldebek-website",
"version": "0.0.0",
"dependencies": {
"@js-temporal/polyfill": "^0.5.1",
+2 -1
View File
@@ -1,5 +1,5 @@
{
"name": "nextjs-website-starter",
"name": "gemeinde-goldebek-website",
"private": true,
"version": "0.0.0",
"type": "module",
@@ -20,6 +20,7 @@
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "node scripts/run-e2e.mjs",
"data:validate": "node scripts/validate-content.mjs",
"typecheck": "tsc --noEmit",
"preview": "next start",
"content:new": "npm run post:new"
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

+1 -1
View File
@@ -19,7 +19,7 @@ wait_for_health() {
verify_routes() {
docker exec -i "$app_container_id" node --input-type=module - <<'NODE'
const request = (path, init) => fetch(`http://127.0.0.1:3000${path}`, { signal: AbortSignal.timeout(20000), ...init });
for (const [path, text] of [["/", "Bereit für Ihre neue Website"], ["/kalender/", "Kalender"], ["/robots.txt", "Sitemap:"]]) {
for (const [path, text] of [["/", "Moin in Goldebek"], ["/termine/", "Termine"], ["/robots.txt", "Sitemap:"]]) {
const response = await request(path);
if (!response.ok || !(await response.text()).includes(text)) throw new Error(`${path} failed`);
}
+2 -2
View File
@@ -70,8 +70,8 @@ docker build --pull \
--build-arg BUILD_DATE="$BUILD_DATE" \
--build-arg VCS_REF="$revision" \
--build-arg APP_URL="$APP_URL" \
--build-arg APP_NAME="${APP_NAME:-Example Website}" \
--build-arg COMPANY_NAME="${COMPANY_NAME:-Example Company}" \
--build-arg APP_NAME="${APP_NAME:-Gemeinde Goldebek}" \
--build-arg COMPANY_NAME="${COMPANY_NAME:-Gemeinde Goldebek}" \
--build-arg CONTACT_EMAIL="${CONTACT_EMAIL:-info@example.com}" \
--build-arg CONTACT_PHONE="${CONTACT_PHONE:-+49 000 000000}" \
--build-arg CONTACT_ADDRESS="${CONTACT_ADDRESS:-Example Street 1, 12345 Example City}" \
+32
View File
@@ -0,0 +1,32 @@
import fs from "node:fs";
import path from "node:path";
import { z } from "zod";
const root=path.resolve(import.meta.dirname,"..");
const read=(file)=>JSON.parse(fs.readFileSync(path.join(root,file),"utf8"));
const iso=z.string().regex(/^\d{4}-\d{2}-\d{2}$/).refine((value)=>new Date(`${value}T00:00:00Z`).toISOString().startsWith(value),"invalid date");
const eventSchema=z.object({id:z.string().min(1),slug:z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),title:z.string().min(1),startDate:iso,startTime:z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/).optional(),endDate:iso.optional(),endTime:z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/).optional(),timezone:z.literal("Europe/Berlin"),location:z.string().optional(),sourceUrl:z.string().url().optional(),sourceName:z.string().optional(),lastVerified:iso,status:z.enum(["verified","dynamic","needs-verification","archived"]),privacyApproved:z.boolean().optional()});
const sourceSchema=z.object({id:z.string().min(1),name:z.string().min(1),url:z.string().url(),type:z.string().min(1),lastVerified:iso});
const newsSchema=z.object({id:z.string().min(1),slug:z.string(),title:z.string(),teaser:z.string(),body:z.string(),publishedAt:iso,updatedAt:iso.optional(),lastVerified:iso,status:z.enum(["published","draft","archived"]),sourceUrl:z.string().url().optional(),sourceName:z.string().optional()});
const pagesSchema=z.array(z.object({slug:z.string().regex(/^[a-z0-9-]+(?:\/[a-z0-9-]+)*$/),title:z.string(),intro:z.string(),sections:z.array(z.object({title:z.string(),text:z.array(z.string()).optional(),items:z.array(z.string()).optional(),links:z.array(z.object({label:z.string(),href:z.string(),external:z.boolean().optional()})).optional()})),sourceId:z.string().optional(),lastVerified:iso.optional(),special:z.string().optional()}));
const events=eventSchema.array().parse(read("content/events/events.json"));
const news=newsSchema.array().parse([read("content/news/spielplatz-am-langbarg.json")]);
const sources=sourceSchema.array().parse(read("data/sources.json"));
const pages=pagesSchema.parse(read("content/pages/pages.json"));
const services=read("data/services.json");
const council=read("data/council.json");
const projects=read("data/projects.json");
const demographics=read("data/demographics.json");
const administration=read("data/administration.json");
const community=read("data/community.json");
const sourceIds=new Set(sources.map((item)=>item.id));
const unique=(items,key,label)=>{const seen=new Set();for(const item of items){const value=item[key];if(seen.has(value))throw new Error(`Doppelter ${label}: ${value}`);seen.add(value);}};
unique(events,"slug","Termin-Slug");unique(news,"slug","News-Slug");unique(pages,"slug","Seiten-Slug");unique(sources,"id","Quellen-ID");
for(const event of events){if((event.endDate??event.startDate)<event.startDate)throw new Error(`Enddatum vor Startdatum: ${event.slug}`);if(["verified","dynamic"].includes(event.status)&&(!event.sourceUrl||!event.sourceName))throw new Error(`Veröffentlichter Termin ohne Quelle: ${event.slug}`);if(event.location&&/\b\d+[a-z]?\b/i.test(event.location)&&event.privacyApproved!==true)throw new Error(`Adresse ohne privacyApproved: ${event.slug}`);new Intl.DateTimeFormat("de-DE",{weekday:"long",timeZone:"Europe/Berlin"}).format(new Date(`${event.startDate}T12:00:00Z`));}
for(const page of pages){if(page.sourceId&&!sourceIds.has(page.sourceId))throw new Error(`Unbekannte Quelle auf ${page.slug}: ${page.sourceId}`);if((page.slug.startsWith("politik/")||page.slug.startsWith("service/"))&&(!page.sourceId||!page.lastVerified))throw new Error(`Verwaltungsinhalt ohne Quelle/Prüfstand: ${page.slug}`);}
for(const record of [services.doerpshuus,services.everydayHelp,services.mobility,services.mobileLibrary,council]){if(!record.sourceId||!record.lastVerified)throw new Error("Dynamischer Datensatz ohne sourceId/lastVerified");if(!sourceIds.has(record.sourceId))throw new Error(`Unbekannte Quelle: ${record.sourceId}`);if(record.validUntil&&record.validUntil<new Date().toISOString().slice(0,10))throw new Error(`Abgelaufener Datensatz: ${record.sourceId}`);}
for(const record of [demographics,administration,...projects]){if(record.status!=="needs-verification"&&(!record.sourceId||!record.lastVerified))throw new Error(`Dynamischer Datensatz ohne Quelle/Prüfstand: ${record.id??record.title??"unbekannt"}`);if(record.sourceId&&!sourceIds.has(record.sourceId))throw new Error(`Unbekannte Quelle: ${record.sourceId}`);}
if(community.cultureCommittee.status==="needs-verification"&&community.cultureCommittee.privacyApproved!==false)throw new Error("Ungeprüfter privater Kontakt darf nicht freigegeben sein.");
const routeSet=new Set(["/","/aktuelles","/termine","/impressum","/datenschutz","/barrierefreiheit",...pages.map((page)=>`/${page.slug}`),...events.map((event)=>`/termine/${event.slug}`),...news.map((item)=>`/aktuelles/${item.slug}`)]);
for(const page of pages){for(const section of page.sections){for(const link of section.links??[]){if(link.href.startsWith("/")&&!routeSet.has(link.href.split("#")[0]))throw new Error(`Interner Link ohne Ziel auf ${page.slug}: ${link.href}`);}}}
console.log(`Content validiert: ${pages.length} Seiten, ${news.length} Meldung, ${events.length} Termine, ${sources.length} Quellen.`);
@@ -0,0 +1,10 @@
import { describe, expect, it } from "vitest";
import { assertUnique, eventSchema, newsSchema } from "../lib/content/schemas";
describe("Content-Schemata",()=>{
it("akzeptiert einen vollständigen bestätigten Termin",()=>{expect(eventSchema.parse({id:"1",slug:"dorffest",title:"Dorffest",startDate:"2026-10-01",startTime:"18:00",timezone:"Europe/Berlin",sourceUrl:"https://example.com/termin",sourceName:"Amtliche Quelle",lastVerified:"2026-09-18",status:"verified"}).slug).toBe("dorffest");});
it("weist ungültige Daten zurück",()=>{expect(()=>eventSchema.parse({id:"1",slug:"termin",title:"Termin",startDate:"2026-02-31",timezone:"Europe/Berlin",sourceUrl:"https://example.com",sourceName:"Quelle",lastVerified:"2026-09-18",status:"verified"})).toThrow();});
it("verlangt bei einer Straßenadresse die Datenschutzfreigabe",()=>{expect(()=>eventSchema.parse({id:"1",slug:"termin",title:"Termin",startDate:"2026-10-01",timezone:"Europe/Berlin",location:"Dorfstraße 12",sourceUrl:"https://example.com",sourceName:"Quelle",lastVerified:"2026-09-18",status:"verified"})).toThrow(/privacyApproved/);});
it("validiert eine Meldung",()=>{expect(newsSchema.parse({id:"1",slug:"meldung",title:"Meldung",teaser:"Teaser",body:"Inhalt",publishedAt:"2026-09-18",lastVerified:"2026-09-18",status:"published"}).status).toBe("published");});
it("findet doppelte Slugs",()=>{expect(()=>assertUnique([{slug:"a"},{slug:"a"}],(item)=>item.slug,"Slug")).toThrow(/Doppelter/);});
});
+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from "vitest";
import type { Event } from "../lib/content/schemas";
import { dateInBerlin, eventDateTimeIso, formatGermanDate, partitionEvents, sortEvents } from "../lib/dates/events";
const event=(overrides:Partial<Event>):Event=>({id:"id",slug:"termin",title:"Termin",startDate:"2026-09-20",timezone:"Europe/Berlin",sourceUrl:"https://example.com",sourceName:"Quelle",lastVerified:"2026-09-18",status:"verified",...overrides});
describe("Terminsortierung und Archiv",()=>{
it("sortiert nach Datum und Uhrzeit",()=>{const result=sortEvents([event({id:"b",slug:"b",startDate:"2026-10-01"}),event({id:"a",slug:"a",startDate:"2026-09-20",startTime:"18:00"})]);expect(result.map((item)=>item.id)).toEqual(["a","b"]);});
it("ordnet vergangene Termine automatisch ins Archiv ein",()=>{const result=partitionEvents([event({id:"past",slug:"past",startDate:"2026-09-18"}),event({id:"today",slug:"today",startDate:"2026-09-19"}),event({id:"future",slug:"future",startDate:"2026-09-20"})],"2026-09-19");expect(result.archive.map((item)=>item.id)).toEqual(["past"]);expect(result.upcoming.map((item)=>item.id)).toEqual(["today","future"]);});
it("zeigt needs-verification nicht öffentlich",()=>{const result=partitionEvents([event({status:"needs-verification"})],"2026-09-19");expect(result.upcoming).toHaveLength(0);});
});
describe("Europe/Berlin-Datumslogik",()=>{
it("berücksichtigt den Berliner Tageswechsel",()=>{expect(dateInBerlin(new Date("2026-03-28T23:30:00Z"))).toBe("2026-03-29");});
it("berechnet den deutschen Wochentag aus dem ISO-Datum",()=>{expect(formatGermanDate("2026-09-20")).toBe("Sonntag, 20. September 2026");});
it("setzt den korrekten Sommer- und Winterzeit-Offset",()=>{expect(eventDateTimeIso("2026-09-20","11:00")).toContain("+02:00");expect(eventDateTimeIso("2026-12-06","11:00")).toContain("+01:00");});
});
+93
View File
@@ -0,0 +1,93 @@
import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { notFound } from "next/navigation";
import pagesJson from "../../../content/pages/pages.json";
import clubsJson from "../../../data/clubs.json";
import councilJson from "../../../data/council.json";
import municipalityJson from "../../../data/municipality.json";
import servicesJson from "../../../data/services.json";
import coatOfArms from "../../../goldebek_website_briefing/DEU_Goldebek_wappen.svg";
import doerpshuusImage from "../../../goldebek_website_briefing/csm_goldebek_1_0714260009.jpg";
import placeImage from "../../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240320_388_2bb06f3278.jpg";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getSource } from "@/lib/content";
import { formatGermanDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
type PageLink = { label: string; href: string; external?: boolean };
type Section = { title: string; text?: string[]; items?: string[]; links?: PageLink[] };
type ContentPage = { slug: string; eyebrow: string; title: string; intro: string; sections: Section[]; sourceId?: string; lastVerified?: string; special?: string };
const pages = pagesJson as ContentPage[];
export function generateStaticParams() {
return pages.map((page) => ({ slug: page.slug.split("/") }));
}
export async function generateMetadata({ params }: { params: Promise<{ slug: string[] }> }): Promise<Metadata> {
const slug = (await params).slug.join("/");
const page = pages.find((item) => item.slug === slug);
return page ? createPageMetadata({ title: page.title, description: page.intro, path: `/${page.slug}` }) : {};
}
function ExternalAwareLink({ link }: { link: PageLink }) {
if (link.external) {
return <a href={link.href} target="_blank" rel="noreferrer">{link.label} <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a>;
}
return <Link href={link.href}>{link.label}</Link>;
}
function phoneUrl(value: string) { return `tel:${value.replace(/[^+\d]/g, "")}`; }
function SpecialContent({ type }: { type?: string }) {
if (type === "overview") {
return <figure className="content-image"><Image src={placeImage} alt="Goldebeker Wappenstein am Ortseingang" sizes="(max-width: 800px) 100vw, 760px" /><figcaption>Goldebek in Nordfriesland</figcaption></figure>;
}
if (type === "coat-of-arms") {
return <figure className="coat-of-arms"><Image src={coatOfArms} alt="Offizielles Wappen der Gemeinde Goldebek" /><figcaption>Das Gemeindewappen wird unverändert wiedergegeben.</figcaption></figure>;
}
if (type === "facts") {
return <dl className="data-grid"><div><dt>Einwohner</dt><dd>{municipalityJson.population.value}</dd><small>Stand 31.03.2026</small></div><div><dt>Fläche</dt><dd>{municipalityJson.areaKm2.toLocaleString("de-DE")} km²</dd></div><div><dt>Dichte</dt><dd>{municipalityJson.population.densityPerKm2} Einwohner/km²</dd></div><div><dt>Postleitzahl</dt><dd>{municipalityJson.postalCode}</dd></div><div><dt>Gemeindeschlüssel</dt><dd>{municipalityJson.officialMunicipalityKey}</dd></div><div><dt>Amt</dt><dd>{municipalityJson.administration}</dd></div></dl>;
}
if (type === "history") {
return <ol className="timeline">{municipalityJson.history.map((item) => <li key={`${item.date}-${item.title}`}><time>{item.date}</time><div><h3>{item.title}</h3><p>{item.text}</p></div></li>)}</ol>;
}
if (type === "doerpshuus") {
const item = servicesJson.doerpshuus;
return <><figure className="content-image"><Image src={doerpshuusImage} alt="Dörpshuus Goldebek mit Backsteinfassade und Grünanlage" sizes="(max-width: 800px) 100vw, 760px" /><figcaption>Dörpshuus Goldebek, Am Brodersberg 16</figcaption></figure><dl className="detail-list"><div><dt>Adresse</dt><dd>{item.address}</dd></div><div><dt>Service-Telefon</dt><dd><a href={phoneUrl(item.phone)}>{item.phone}</a></dd></div><div><dt>Kapazität</dt><dd>{item.capacity.hall} Personen im Dörpshuus, {item.capacity.fireBrigadeRoom} im Kameradschaftsraum, maximal {item.capacity.total} insgesamt</dd></div><div><dt>Gebühren</dt><dd>Einwohner {item.fees.residents} · Kameradschaftsraum {item.fees.fireBrigadeRoom} · Auswärtige {item.fees.nonResidents} · Endreinigung {item.fees.finalCleaning} · Fehlbenutzung Notausgang {item.fees.emergencyExitMisuse}</dd></div></dl></>;
}
if (type === "clubs") {
return <div className="card-grid">{clubsJson.map((club) => <article className="info-card" key={club.name}><p className="card-label">{club.type}</p><h2>{club.name}</h2>{club.url ? <a className="text-link" href={club.url} target="_blank" rel="noreferrer">Website öffnen <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a> : null}</article>)}</div>;
}
if (type === "everyday-help") {
const item = servicesJson.everydayHelp;
return <><div className="data-grid"><div><span className="card-label">Kosten</span><strong>{item.hourly}</strong></div><div><span className="card-label">Fahrtkosten</span><strong>{item.mileage}</strong></div></div><section className="content-section"><h2>Beispiele</h2><ul>{item.examples.map((example) => <li key={example}>{example}</li>)}</ul><p><strong>Für Goldebek:</strong> {item.contact}, <a href={phoneUrl(item.phone)}>{item.phone}</a></p><p><strong>Beteiligte Gemeinden:</strong> {item.coverage.join(", ")}</p></section></>;
}
if (type === "council") {
return <><section className="contact-panel"><p className="card-label">Bürgermeister</p><h2>{councilJson.mayor.name}</h2><address>{councilJson.mayor.address}<br /><a href={phoneUrl(councilJson.mayor.phone)}>{councilJson.mayor.phone}</a><br />Fax {councilJson.mayor.fax}</address></section><div className="people-grid">{councilJson.members.map((name) => <article key={name}><span aria-hidden="true">{name.split(" ").map((part) => part[0]).join("")}</span><h3>{name}</h3><p>Mitglied der Gemeindevertretung</p></article>)}</div></>;
}
if (type === "taxes") {
const tax = councilJson.taxRates;
return <dl className="data-grid"><div><dt>Grundsteuer A</dt><dd>{tax.grundsteuerA}</dd></div><div><dt>Grundsteuer B</dt><dd>{tax.grundsteuerB}</dd></div><div><dt>Gewerbesteuer</dt><dd>{tax.gewerbesteuer}</dd></div><div><dt>1. Hund</dt><dd>{tax.firstDog}</dd></div><div><dt>2. Hund</dt><dd>{tax.secondDog}</dd></div><div><dt>Jeder weitere Hund</dt><dd>{tax.additionalDog}</dd></div></dl>;
}
if (type === "mobility") {
const item = servicesJson.mobility;
const source = getSource(item.sourceId);
return <><div className="route-number"><span>Buslinie</span><strong>{item.line}</strong></div><section className="content-section"><h2>Haltestellen</h2><ul>{item.stops.map((stop) => <li key={stop}>{stop}</li>)}</ul>{source ? <a className="button button--primary" href={source.url} target="_blank" rel="noreferrer">Aktuellen Fahrplan öffnen <span aria-hidden="true">↗</span></a> : null}</section></>;
}
if (type === "mobile-library") {
const item = servicesJson.mobileLibrary;
return <><dl className="detail-list"><div><dt>Haltestelle</dt><dd>{item.stop}</dd></div><div><dt>Uhrzeit</dt><dd>{item.time} Uhr</dd></div></dl><section className="content-section"><h2>Kommende Termine 2026</h2><ul>{item.dates.map((date) => <li key={date}>{formatGermanDate(date)}</li>)}</ul></section></>;
}
return null;
}
export default async function ContentPageRoute({ params }: { params: Promise<{ slug: string[] }> }) {
const slug = (await params).slug.join("/");
const page = pages.find((item) => item.slug === slug);
if (!page) notFound();
const parent = page.slug.includes("/") ? pages.find((item) => item.slug === page.slug.split("/")[0]) : undefined;
const source = page.sourceId ? getSource(page.sourceId) : undefined;
return <><PageHeader eyebrow={page.eyebrow} title={page.title} intro={page.intro} breadcrumbs={[...(parent ? [{ label: parent.title, href: `/${parent.slug}` }] : []), { label: page.title }]} /><div className="container page-content"><SpecialContent type={page.special} />{page.sections.map((section) => <section className="content-section" key={section.title}><h2>{section.title}</h2>{section.text?.map((paragraph) => <p key={paragraph}>{paragraph}</p>)}{section.items ? <ul>{section.items.map((item) => <li key={item}>{item}</li>)}</ul> : null}{section.links ? <div className="link-list">{section.links.map((link) => <ExternalAwareLink key={link.href} link={link} />)}</div> : null}</section>)}{page.lastVerified ? <SourceNote lastVerified={page.lastVerified} sourceName={source?.name} sourceUrl={source?.url} /> : null}</div></>;
}
+11
View File
@@ -0,0 +1,11 @@
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getNews, getNewsItem } from "@/lib/content";
import { formatShortDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
export function generateStaticParams() { return getNews().map((item) => ({ slug:item.slug })); }
export async function generateMetadata({ params }: { params:Promise<{slug:string}> }):Promise<Metadata> { const item=getNewsItem((await params).slug); return item ? { ...createPageMetadata({title:item.title,description:item.teaser,path:`/aktuelles/${item.slug}`,type:"article"}), openGraph:{title:item.title,description:item.teaser,type:"article",url:`/aktuelles/${item.slug}`,publishedTime:item.publishedAt,modifiedTime:item.updatedAt,images:[]},twitter:{title:item.title,description:item.teaser,images:[]} } : {}; }
export default async function NewsDetail({ params }: { params:Promise<{slug:string}> }) { const item=getNewsItem((await params).slug); if(!item) notFound(); return <><PageHeader eyebrow={`Meldung vom ${formatShortDate(item.publishedAt)}`} title={item.title} intro={item.teaser} breadcrumbs={[{label:"Aktuelles",href:"/aktuelles"},{label:item.title}]} /><article className="container narrow-content prose"><p>{item.body}</p><SourceNote lastVerified={item.lastVerified} sourceName={item.sourceName} sourceUrl={item.sourceUrl} /></article></>; }
+10
View File
@@ -0,0 +1,10 @@
import type { Metadata } from "next";
import Link from "next/link";
import PageHeader from "@/components/PageHeader";
import { getNews } from "@/lib/content";
import { formatShortDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
export const metadata: Metadata = createPageMetadata({ title:"Aktuelles", description:"Aktuelle Meldungen aus Goldebek.", path:"/aktuelles" });
export default function NewsPage() { const news = getNews(); return <><PageHeader eyebrow="Aus der Gemeinde" title="Aktuelles" intro="Nachrichten aus Gemeinde, Projekten und Dorfgemeinschaft – sachlich und auf dem aktuellen Stand." breadcrumbs={[{label:"Aktuelles"}]} /><div className="container page-content"><div className="news-grid">{news.map((item) => <article className="news-card" key={item.id}><p className="news-date">{formatShortDate(item.publishedAt)}</p><h2><Link href={`/aktuelles/${item.slug}`}>{item.title}</Link></h2><p>{item.teaser}</p><Link className="text-link" href={`/aktuelles/${item.slug}`}>Weiterlesen <span aria-hidden="true">→</span></Link></article>)}</div></div></>; }
+6
View File
@@ -0,0 +1,6 @@
import type { Metadata } from "next";
import LegalPlaceholder from "@/components/LegalPlaceholder";
import { createPageMetadata } from "@/lib/metadata";
export const metadata: Metadata=createPageMetadata({title:"Barrierefreiheit",description:"Redaktioneller Platzhalter für die Erklärung zur Barrierefreiheit.",path:"/barrierefreiheit",noindex:true});
export default function AccessibilityPage(){return <LegalPlaceholder title="Erklärung zur Barrierefreiheit" intro="Informationen zur barrierefreien Zugänglichkeit dieser kommunalen Website."><h2>Erklärung in Vorbereitung</h2><p>Die rechtsverbindliche Erklärung, Angaben zum Prüfstand, bekannte Einschränkungen und die zuständige Beschwerdestelle werden nach Prüfung und Freigabe ergänzt.</p></LegalPlaceholder>}
-21
View File
@@ -1,21 +0,0 @@
import type { Metadata } from "next";
import PageEffects from "../../components/PageEffects";
import PhotoSlider from "../../components/PhotoSlider";
import { galleryYears } from "../../data/galleryYears";
import { createPageMetadata } from "../../lib/metadata";
export const metadata: Metadata = createPageMetadata({ title: "Bilder", description: "Neutrale Bildergalerie.", path: "/bilder" });
export default function PicturesPage() {
return (
<div className="about-v2">
<header className="about-header about-header--hero-camp2"><div className="about-header__overlay" /><div className="about-header__content"><h1>Bilder</h1><p>Platzhalter für Bilder und externe Galerien.</p></div></header>
<section className="about-block reveal"><div className="about-block__inner"><PhotoSlider /></div></section>
<section className="about-block about-block--alt reveal"><div className="about-block__inner">
<div className="about-block__head"><span className="about-eyebrow">Galerien</span><h2>Galerieübersicht</h2></div>
{galleryYears.length ? <div className="bilder-grid">{galleryYears.map((year) => <article className="bilder-card" key={year.year}><h2>{year.year}</h2><ul className="bilder-link-list">{year.items.map((item) => <li key={item.label}>{item.link ? <a href={item.link} target="_blank" rel="noopener noreferrer">{item.label}</a> : <span>{item.label}</span>}</li>)}</ul></article>)}</div> : <p className="muted">Noch keine Galerien hinterlegt.</p>}
</div></section>
<PageEffects once={false} />
</div>
);
}
+4 -21
View File
@@ -1,23 +1,6 @@
import type { Metadata } from "next";
import { createPageMetadata } from "../../lib/metadata";
import { COMPANY_NAME, CONTACT_ADDRESS, CONTACT_EMAIL, SITE_URL } from "../../lib/site";
import LegalPlaceholder from "@/components/LegalPlaceholder";
import { createPageMetadata } from "@/lib/metadata";
export const metadata: Metadata = createPageMetadata({ title: "Datenschutz", description: "Platzhalter für Datenschutzhinweise.", path: "/datenschutz", noindex: true });
export default function PrivacyPage() {
return (
<section className="container legal-page">
<header className="page-header"><h1>Datenschutz</h1><p>Neutrale Vorlage – vor Veröffentlichung rechtlich prüfen und vervollständigen.</p></header>
<div className="legal-content">
<h2>Verantwortliche Stelle</h2>
<p>{COMPANY_NAME}<br />{CONTACT_ADDRESS}<br />E-Mail: <a href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</a></p>
<h2>Geltungsbereich</h2>
<p>Diese Platzhalterseite bezieht sich auf <a href={SITE_URL}>{SITE_URL}</a>.</p>
<h2>Technischer Betrieb</h2>
<p>Beim Abruf der Website können technisch erforderliche Zugriffsdaten verarbeitet werden. Passen Sie diesen Abschnitt an Hosting, Formulare, Cookies, eingebundene Dienste und tatsächliche Verarbeitungen an.</p>
<h2>Hinweis</h2>
<p>Dieser Text ist keine vollständige Datenschutzerklärung und keine Rechtsberatung.</p>
</div>
</section>
);
}
export const metadata: Metadata=createPageMetadata({title:"Datenschutz",description:"Redaktioneller Platzhalter für die Datenschutzhinweise der Gemeinde Goldebek.",path:"/datenschutz",noindex:true});
export default function PrivacyPage(){return <LegalPlaceholder title="Datenschutz" intro="Hinweise zur Verarbeitung personenbezogener Daten auf dieser Website."><h2>Datensparsame Grundkonfiguration</h2><p>Die Website lädt keine Marketing-Tracker, keine externen Schriftarten und keine eingebetteten Karten oder Videos von Drittanbietern. Die vollständigen Pflichtinformationen werden nach rechtlicher Freigabe ergänzt.</p></LegalPlaceholder>}
-22
View File
@@ -1,22 +0,0 @@
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import { getAllTripReports, getTripReport } from "@/trip-reports";
import JsonLd from "../../../components/JsonLd";
import { createPageMetadata } from "../../../lib/metadata";
import { COMPANY_NAME, SITE_URL } from "../../../lib/site";
import { createExcerpt } from "../../../utils/postUtils";
interface TripPageProps { params: Promise<{ slug: string }>; }
export const dynamicParams = false;
export async function generateStaticParams() { return (await getAllTripReports()).filter((post) => post.metadata.published).map((post) => ({ slug: post.metadata.slug })); }
export async function generateMetadata({ params }: TripPageProps): Promise<Metadata> { const { slug } = await params; const post = await getTripReport(slug); return post?.metadata.published ? createPageMetadata({ title: post.metadata.title, description: createExcerpt(post.metadata.plainText, 160), path: `/fahrten/${post.metadata.slug}`, type: "article" }) : {}; }
export default async function TripPage({ params }: TripPageProps) {
const { slug } = await params;
const post = await getTripReport(slug);
if (!post?.metadata.published) notFound();
const ReportContent = post.Component;
const jsonLd = { "@context": "https://schema.org", "@type": "BlogPosting", headline: post.metadata.title, dateModified: new Date(post.metadata.updatedAt).toISOString(), author: { "@type": "Person", name: post.metadata.author }, publisher: { "@type": "Organization", name: COMPANY_NAME }, mainEntityOfPage: `${SITE_URL}/fahrten/${post.metadata.slug}`, articleBody: post.metadata.plainText };
return <div className="container page-spacing post-detail-page"><JsonLd data={jsonLd} /><Link className="back-link" href="/fahrten">&larr; Zur Beitragsübersicht</Link><article className="post-card post-detail-card"><header><h1>{post.metadata.title}</h1><p className="post-meta">Von {post.metadata.author}</p></header><div className="markdown-content"><ReportContent /></div></article></div>;
}
-25
View File
@@ -1,25 +0,0 @@
import type { Metadata } from "next";
import Link from "next/link";
import { getAllTripReports } from "@/trip-reports";
import JsonLd from "../../components/JsonLd";
import PageEffects from "../../components/PageEffects";
import { createPageMetadata } from "../../lib/metadata";
import { SITE_URL } from "../../lib/site";
import { createExcerpt } from "../../utils/postUtils";
export const metadata: Metadata = createPageMetadata({ title: "Beiträge", description: "Übersicht veröffentlichter Beiträge.", path: "/fahrten" });
export default async function TripsPage() {
const posts = (await getAllTripReports()).filter((post) => post.metadata.published).sort((a, b) => new Date(b.metadata.createdAt).getTime() - new Date(a.metadata.createdAt).getTime());
const collectionJsonLd = { "@context": "https://schema.org", "@type": "CollectionPage", name: "Beiträge", url: `${SITE_URL}/fahrten`, hasPart: posts.slice(0, 20).map((post) => ({ "@type": "BlogPosting", headline: post.metadata.title, url: `${SITE_URL}/fahrten/${post.metadata.slug}`, author: { "@type": "Person", name: post.metadata.author } })) };
return (
<div className="about-v2">
<JsonLd data={collectionJsonLd} />
<header className="about-header about-header--hero-camp1"><div className="about-header__overlay" /><div className="about-header__content"><h1>Beiträge</h1><p>Platzhalter für redaktionelle Inhalte.</p></div></header>
<section className="about-block reveal"><div className="about-block__inner">
{posts.length ? <div className="post-grid post-grid--v2">{posts.map((post) => <Link href={`/fahrten/${post.metadata.slug}`} className="post-card-link" key={post.metadata.slug}><article className="post-card post-preview-card"><header><h3>{post.metadata.title}</h3><p className="post-meta">Von {post.metadata.author}</p></header><p className="post-preview-text">{createExcerpt(post.metadata.plainText, 240)}</p><span className="post-preview-link">Weiterlesen</span></article></Link>)}</div> : <p className="about-block__empty">Noch keine Beiträge veröffentlicht.</p>}
</div></section>
<PageEffects threshold={0} rootMargin="0px" />
</div>
);
}
+4 -19
View File
@@ -1,21 +1,6 @@
import type { Metadata } from "next";
import { createPageMetadata } from "../../lib/metadata";
import { COMPANY_NAME, CONTACT_ADDRESS, CONTACT_EMAIL, CONTACT_PHONE, SITE_URL, toPhoneUrl } from "../../lib/site";
import LegalPlaceholder from "@/components/LegalPlaceholder";
import { createPageMetadata } from "@/lib/metadata";
export const metadata: Metadata = createPageMetadata({ title: "Impressum", description: "Platzhalter für rechtliche Anbieterangaben.", path: "/impressum", noindex: true });
export default function LegalNoticePage() {
return (
<section className="container legal-page">
<header className="page-header"><h1>Impressum</h1><p>Neutrale Vorlage – vor Veröffentlichung rechtlich prüfen und vervollständigen.</p></header>
<div className="legal-content">
<h2>Diensteanbieter</h2>
<p><b>{COMPANY_NAME}</b><br />{CONTACT_ADDRESS}</p>
<h2>Kontakt</h2>
<p>Telefon: <a href={toPhoneUrl(CONTACT_PHONE)}>{CONTACT_PHONE}</a><br />E-Mail: <a href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</a><br />Website: <a href={SITE_URL}>{SITE_URL}</a></p>
<h2>Hinweis</h2>
<p>Dieser Text ist nur ein technischer Platzhalter und keine Rechtsberatung. Ergänzen Sie alle für Ihr Projekt erforderlichen Pflichtangaben.</p>
</div>
</section>
);
}
export const metadata: Metadata=createPageMetadata({title:"Impressum",description:"Redaktioneller Platzhalter für das Impressum der Gemeinde Goldebek.",path:"/impressum",noindex:true});
export default function ImprintPage(){return <LegalPlaceholder title="Impressum" intro="Anbieterkennzeichnung der Gemeinde Goldebek."><h2>Vor Veröffentlichung zu ergänzen</h2><p>Verantwortlichkeit, Vertretungsberechtigung, zuständige Aufsicht und weitere rechtlich erforderliche Angaben werden nach Freigabe eingepflegt.</p></LegalPlaceholder>}
-67
View File
@@ -1,67 +0,0 @@
import type { Metadata } from "next";
import { Fragment } from "react";
import PacklisteIcon from "../../components/PacklisteIcon";
import PageEffects from "../../components/PageEffects";
import RichTextParagraph from "../../components/RichTextParagraph";
import { downloads } from "../../data/downloads";
import { packlisteBasics, packlisteIntro, packlisteItems, packlisteTips } from "../../data/packliste";
import { createPageMetadata } from "../../lib/metadata";
export const metadata: Metadata = createPageMetadata({
title: "Informationen",
description: "Neutrale Seite für Informationen und Downloads.",
path: "/informationen",
});
function getFileIcon(filename: string): string {
const extension = filename.toLowerCase().split(".").pop() || "";
if (extension === "pdf") return "\u{1F4C4}";
if (["doc", "docx", "txt"].includes(extension)) return "\u{1F4DD}";
return "\u{1F4CE}";
}
export default function InformationPage() {
return (
<div className="about-v2 about-v2--info">
<header className="about-header about-header--hero-camp">
<div className="about-header__overlay" />
<div className="about-header__content"><h1>Informationen</h1><p>Platzhalter für strukturierte Informationen und Dokumente.</p></div>
</header>
<section className="about-block reveal">
<div className="about-block__inner">
<div className="about-block__head"><span className="about-eyebrow">Bausteine</span><h2>Informationsbereiche</h2></div>
<div className="packliste">
<div className="packliste__intro">{packlisteIntro.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
<div className="packliste__callout">
<div className="packliste__callout-icon" aria-hidden="true"><PacklisteIcon name={packlisteBasics.icon} size={20} /></div>
<div className="packliste__callout-body"><h4>{packlisteBasics.title}</h4>{packlisteBasics.paragraphs.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
</div>
<div className="packliste__grid">
{packlisteItems.map((item) => (
<article className="packliste__item" key={item.title}>
<div className="packliste__item-header"><span className="packliste__item-icon" aria-hidden="true"><PacklisteIcon name={item.icon} size={18} /></span><h4>{item.title}</h4></div>
{item.paragraphs.map((paragraph, index) => (
<Fragment key={paragraph}><RichTextParagraph text={paragraph} />{index === 0 && item.bullets?.length ? <ul>{item.bullets.map((bullet) => <li key={bullet}>{bullet}</li>)}</ul> : null}</Fragment>
))}
</article>
))}
</div>
<div className="packliste__tips"><h4>{packlisteTips.title}</h4>{packlisteTips.paragraphs.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
</div>
</div>
</section>
<section className="about-block about-block--alt reveal">
<div className="about-block__inner">
<div className="about-block__head"><span className="about-eyebrow">Dateien</span><h2>Downloads</h2></div>
{downloads.length ? <div className="download-grid">{downloads.map((download) => (
<a href={download.download_url} download className="download-card" title={`Download: ${download.name}`} key={download.download_url}>
<div className="download-header"><span className="download-icon">{getFileIcon(download.name)}</span><h3 className="download-name">{download.name}</h3></div>
<p className="download-description">{download.description}</p>
</a>
))}</div> : <p className="muted">Noch keine Downloads hinterlegt.</p>}
</div>
</section>
<PageEffects threshold={0} rootMargin="0px" />
</div>
);
}
-25
View File
@@ -1,25 +0,0 @@
import type { Metadata } from "next";
import EventsView from "../../components/EventsView";
import PageEffects from "../../components/PageEffects";
import { createPageMetadata } from "../../lib/metadata";
export const metadata: Metadata = createPageMetadata({
title: "Kalender",
description: "Kommende Termine im Kalenderüberblick.",
path: "/kalender",
});
export const dynamic = "force-dynamic";
export default function CalendarPage() {
return (
<div className="about-v2">
<header className="about-header about-header--hero-camp2">
<div className="about-header__overlay" />
<div className="about-header__content"><h1>Kalender</h1><p>Termine aus der konfigurierten Kalenderquelle.</p></div>
</header>
<section className="about-block reveal"><div className="about-block__inner"><EventsView mode="calendar" /></div></section>
<PageEffects once={false} />
</div>
);
}
+18 -20
View File
@@ -1,19 +1,9 @@
import type { Metadata, Viewport } from "next";
import { connection } from "next/server";
import type { ReactNode } from "react";
import Footer from "../components/Footer";
import Header from "../components/Header";
import ScrollToTop from "../components/ScrollToTop";
import { SITE_NAME, SITE_URL } from "../lib/site";
import "../styles/base.css";
import "../styles/layout.css";
import "../styles/components.css";
import "../styles/hero.css";
import "../styles/about.css";
import "../styles/calendar.css";
import "../styles/packliste.css";
import "../styles/post.css";
import "../styles/PhotoSlider.css";
import "../styles/goldebek.css";
export const metadata: Metadata = {
metadataBase: new URL(SITE_URL),
@@ -21,7 +11,22 @@ export const metadata: Metadata = {
default: SITE_NAME,
template: `%s | ${SITE_NAME}`,
},
icons: { icon: "/logo.svg" },
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
openGraph: {
type: "website",
locale: "de_DE",
siteName: SITE_NAME,
title: SITE_NAME,
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
url: SITE_URL,
images: [{ url: "/og.png", width: 1200, height: 630, alt: "Gemeinde Goldebek – Moin in Goldebek" }],
},
twitter: {
card: "summary_large_image",
title: SITE_NAME,
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
images: ["/og.png"],
},
};
export const viewport: Viewport = {
@@ -29,15 +34,9 @@ export const viewport: Viewport = {
initialScale: 1,
};
export default async function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
await connection();
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<html lang="de">
<head>
<link rel="preload" href="/fonts/Montserrat-Regular.woff2" as="font" type="font/woff2" crossOrigin="anonymous" />
<link rel="preload" href="/fonts/Poppins-Bold.woff2" as="font" type="font/woff2" crossOrigin="anonymous" />
</head>
<body>
<a href="#main-content" className="skip-link">Zum Inhalt springen</a>
<div className="app-shell">
@@ -45,7 +44,6 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac
<main id="main-content">{children}</main>
<Footer />
</div>
<ScrollToTop />
</body>
</html>
);
+25 -68
View File
@@ -1,73 +1,30 @@
import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { getAllTripReports } from "@/trip-reports";
import EventsView from "../components/EventsView";
import JsonLd from "../components/JsonLd";
import { createPageMetadata } from "../lib/metadata";
import { COMPANY_NAME, SITE_NAME, SITE_URL } from "../lib/site";
import { createExcerpt } from "../utils/postUtils";
import heroImage from "../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240316_127_36497ca77c.jpg";
import villageImage from "../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240316_126_0b279a7462.jpg";
import EventCard from "@/components/EventCard";
import JsonLd from "@/components/JsonLd";
import { getEvents, getNews } from "@/lib/content";
import { partitionEvents } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
import { SITE_NAME, SITE_URL } from "@/lib/site";
const homeMetadata = createPageMetadata({
title: "Startseite",
description: "Neutrales Starter-Projekt für eine neue Website.",
path: "/",
});
const homeMetadata=createPageMetadata({title:"Moin in Goldebek",description:"Offizielle Website der Gemeinde Goldebek mit aktuellen Informationen, Terminen und Anlaufstellen.",path:"/"});
export const metadata:Metadata={...homeMetadata,title:{absolute:SITE_NAME}};
export const metadata: Metadata = {
...homeMetadata,
title: { absolute: SITE_NAME },
};
const facts=[["381","Einwohner · Stand 31.03.2026"],["10,18 km²","Gemeindefläche"],["Nordfriesland","Kreis"],["25862","Postleitzahl"]] as const;
const quickLinks=[["Dörpshuus","/leben/doerpshuus","Raum für Feste und Begegnung"],["Gemeindevertretung","/politik/gemeindevertretung","Menschen und kommunale Arbeit"],["Alltagshilfe","/leben/alltagshilfe-osterdoerfer","Praktische Unterstützung vor Ort"],["Fahrbücherei","/service/fahrbuecherei","Haltezeiten und Termine"]] as const;
export const dynamic = "force-dynamic";
export default async function HomePage() {
const posts = (await getAllTripReports())
.filter((post) => post.metadata.published)
.sort((a, b) => new Date(b.metadata.createdAt).getTime() - new Date(a.metadata.createdAt).getTime())
.slice(0, 3);
const jsonLd = [
{ "@context": "https://schema.org", "@type": "Organization", name: COMPANY_NAME, url: SITE_URL },
{ "@context": "https://schema.org", "@type": "WebSite", name: SITE_NAME, url: SITE_URL },
];
return (
<>
<JsonLd data={jsonLd} />
<section className="hero">
<div className="container hero-content">
<div>
<h1>Bereit für Ihre neue Website</h1>
<p>Diese neutrale Startseite enthält bewusst nur minimale Platzhalter. Inhalte, Navigation und Gestaltung können projektspezifisch ergänzt werden.</p>
<a className="cta" href="#start">Projekt starten</a>
</div>
<div className="hero-card">
<h2>Nächste Termine</h2>
<EventsView mode="special" />
</div>
</div>
</section>
<section id="start" className="container group-info">
<div className="group-info-card">
<h2>Neutraler Ausgangspunkt</h2>
<p>Die technische Infrastruktur ist eingerichtet. Ersetzen Sie diesen Abschnitt durch den Einstieg Ihrer neuen Website.</p>
</div>
</section>
<section className="container">
<h2>Aktuelle Beiträge</h2>
{posts.length ? (
<div className="post-grid">
{posts.map((post) => (
<Link href={`/fahrten/${post.metadata.slug}`} className="post-card-link" key={post.metadata.slug}>
<article className="post-card post-preview-card">
<header><h3>{post.metadata.title}</h3><p className="post-meta">Von {post.metadata.author}</p></header>
<p className="post-preview-text">{createExcerpt(post.metadata.plainText, 220)}</p>
<span className="post-preview-link">Weiterlesen</span>
</article>
</Link>
))}
</div>
) : <p className="muted">Noch keine Beiträge veröffentlicht.</p>}
</section>
</>
);
}
export default function HomePage(){const news=getNews().slice(0,3);const {upcoming}=partitionEvents(getEvents());return <>
<JsonLd data={[{"@context":"https://schema.org","@type":"GovernmentOrganization","name":"Gemeinde Goldebek","url":SITE_URL,"address":{"@type":"PostalAddress","postalCode":"25862","addressLocality":"Goldebek","addressRegion":"Schleswig-Holstein","addressCountry":"DE"}},{"@context":"https://schema.org","@type":"WebSite","name":"Gemeinde Goldebek","url":SITE_URL,"inLanguage":"de-DE"}]}/>
<section className="municipality-hero"><div className="hero-photo" aria-hidden="true"><Image src={heroImage} alt="" fill priority sizes="100vw" /></div><div className="container municipality-hero__grid"><div className="municipality-hero__copy"><p className="eyebrow">Gemeinde Goldebek · Nordfriesland</p><h1>Moin in Goldebek</h1><p className="lead">Goldebek liegt im nordöstlichen Nordfriesland zwischen Bredstedt und Wanderup. Landwirtschaft, Ehrenamt, Vereine und gemeinschaftliche Projekte prägen das Dorf.</p><div className="button-row"><Link className="button button--primary" href="/termine">Aktuelle Termine</Link><Link className="button button--secondary" href="/gemeinde/ueber-goldebek">Goldebek entdecken</Link></div></div><aside className="welcome-card" aria-labelledby="welcome-title"><p className="welcome-card__kicker">Gut zu wissen</p><h2 id="welcome-title">Gemeinsam im Dorf</h2><p>Hier finden Sie verlässliche Informationen der Gemeinde, kommende Termine und direkte Wege zu den wichtigsten Angeboten.</p><Link href="/kontakt" className="text-link">Ansprechpartner finden <span aria-hidden="true">→</span></Link></aside></div></section>
<section className="facts" aria-label="Goldebek in Zahlen"><div className="container facts__grid">{facts.map(([value,label])=><div className="fact" key={label}><strong>{value}</strong><span>{label}</span></div>)}</div></section>
<section className="container home-section"><div className="section-heading"><div><p className="section-kicker">Aus der Gemeinde</p><h2>Aktuelles</h2></div><Link className="text-link" href="/aktuelles">Alle Meldungen <span aria-hidden="true">→</span></Link></div><div className="news-grid">{news.map((item)=><article className="news-card" key={item.id}><p className="news-date">{new Intl.DateTimeFormat("de-DE").format(new Date(`${item.publishedAt}T12:00:00Z`))}</p><h3><Link href={`/aktuelles/${item.slug}`}>{item.title}</Link></h3><p>{item.teaser}</p><Link className="text-link" href={`/aktuelles/${item.slug}`}>Weiterlesen <span aria-hidden="true">→</span></Link></article>)}</div></section>
<section className="home-section home-section--tinted"><div className="container"><div className="section-heading"><div><p className="section-kicker">Was steht an?</p><h2>Nächste Termine</h2></div><Link className="text-link" href="/termine">Zum Kalender <span aria-hidden="true">→</span></Link></div><div className="event-list">{upcoming.slice(0,4).map((event)=><EventCard event={event} key={event.id}/>)}</div></div></section>
<section className="container home-section"><p className="section-kicker">Direkt gefunden</p><h2>Schnellzugriffe</h2><div className="quick-grid quick-grid--four">{quickLinks.map(([title,href,copy],index)=><Link href={href} className="quick-card" key={title}><span className="quick-card__number" aria-hidden="true">0{index+1}</span><h3>{title}</h3><p>{copy}</p></Link>)}</div></section>
<section className="discover-section"><div className="discover-photo"><Image src={villageImage} alt="Luftaufnahme von Goldebek mit Feldern und Wohnhäusern" fill sizes="(max-width: 800px) 100vw, 50vw" /></div><div className="discover-copy"><p className="section-kicker">Ort mit Geschichte</p><h2>Goldebek entdecken</h2><p>Vom Mühlenstrom bis zur Dorfchronik: Lernen Sie Geschichte, Landschaft und Zeichen des Ortes kennen.</p><div className="link-list"><Link href="/gemeinde/geschichte">Geschichte</Link><Link href="/gemeinde/ueber-goldebek">Mühlenstrom</Link><Link href="/gemeinde/dorfchronik">Dorfchronik</Link><Link href="/gemeinde/wappen">Wappen</Link></div></div></section>
<section className="container home-section"><div className="section-heading"><div><p className="section-kicker">Engagiert vor Ort</p><h2>Gemeinschaft</h2></div></div><div className="feature-grid"><Link href="/leben/vereine"><span>01</span><h3>Vereine</h3><p>Sport, Tradition und soziales Engagement.</p></Link><Link href="/leben/freiwillige-feuerwehr"><span>02</span><h3>Feuerwehr</h3><p>Einsatzbereitschaft und Gemeinschaft.</p></Link><Link href="/leben/kulturausschuss"><span>03</span><h3>Kulturausschuss</h3><p>Feste, Aktionen und Kultur im Dorf.</p></Link></div></section>
<section className="home-section home-section--blue"><div className="container"><p className="section-kicker">Blick nach vorn</p><h2>Projekte & Entwicklung</h2><div className="project-links"><Link href="/leben/spielplatz"><strong>Spielplatz</strong><span>Seit August 2026 geöffnet</span></Link><Link href="/politik/projekte-entwicklung"><strong>Wärmeplanung</strong><span>Aktuelle Informationen und Quellen</span></Link><Link href="/politik/bauleitplanung"><strong>Bauleitplanung</strong><span>Zu den amtlichen Verfahren</span></Link></div></div></section>
<section className="container home-section contact-band"><div><p className="section-kicker">Gemeinde & Amt</p><h2>Wir helfen Ihnen weiter.</h2><p>Für Gemeindeangelegenheiten finden Sie hier Peter Jessen und das Amt Mittleres Nordfriesland.</p></div><Link className="button button--primary" href="/kontakt">Kontakt aufnehmen</Link></section>
</>}
+1 -1
View File
@@ -8,6 +8,6 @@ export default function robots(): MetadataRoute.Robots {
allow: "/",
disallow: ["/api/", "/health", "/downloads/"],
},
sitemap: `${SITE_URL}/sitemap-index.xml`,
sitemap: `${SITE_URL}/sitemap.xml`,
};
}
-17
View File
@@ -1,17 +0,0 @@
import { SITE_URL } from "../../lib/site";
export const dynamic = "force-static";
export function GET(): Response {
const body = [
'<?xml version="1.0" encoding="UTF-8"?>',
'<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
` <sitemap><loc>${SITE_URL}/sitemap.xml</loc></sitemap>`,
"</sitemapindex>",
"",
].join("\n");
return new Response(body, {
headers: { "Content-Type": "application/xml; charset=utf-8" },
});
}
+9 -22
View File
@@ -1,25 +1,12 @@
import type { MetadataRoute } from "next";
import { getAllTripReports } from "@/trip-reports";
import { SITE_URL } from "../lib/site";
import pages from "../../content/pages/pages.json";
import { getEvents, getNews } from "@/lib/content";
import { SITE_URL } from "@/lib/site";
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const staticPaths = [
"",
"/ueber-uns",
"/informationen",
"/kalender",
"/fahrten",
"/bilder",
];
const staticEntries: MetadataRoute.Sitemap = staticPaths.map((path) => ({
url: `${SITE_URL}${path}`,
}));
const tripEntries: MetadataRoute.Sitemap = (await getAllTripReports())
.filter((post) => post.metadata.published)
.map((post) => ({
url: `${SITE_URL}/fahrten/${post.metadata.slug}`,
lastModified: new Date(post.metadata.updatedAt),
}));
return [...staticEntries, ...tripEntries];
export default function sitemap(): MetadataRoute.Sitemap {
const staticPaths=["","/aktuelles","/termine","/impressum","/datenschutz","/barrierefreiheit",...pages.map((page)=>`/${page.slug}`)];
const staticEntries=staticPaths.map((path)=>({url:`${SITE_URL}${path}`,lastModified:new Date("2026-09-18")}));
const news=getNews().map((item)=>({url:`${SITE_URL}/aktuelles/${item.slug}`,lastModified:new Date(item.updatedAt??item.publishedAt)}));
const events=getEvents().filter((item)=>item.status==="verified"||item.status==="dynamic").map((item)=>({url:`${SITE_URL}/termine/${item.slug}`,lastModified:new Date(item.lastVerified)}));
return [...staticEntries,...news,...events];
}
@@ -0,0 +1,5 @@
import { notFound } from "next/navigation";
import { getEvent } from "@/lib/content";
import { eventsToIcs } from "@/lib/dates/ics";
export async function GET(_request: Request, { params }: { params: Promise<{ slug: string }> }) { const event = getEvent((await params).slug); if (!event || event.status === "needs-verification") notFound(); return new Response(eventsToIcs([event]), { headers: { "Content-Type":"text/calendar; charset=utf-8", "Content-Disposition":`attachment; filename="${event.slug}.ics"` } }); }
+20
View File
@@ -0,0 +1,20 @@
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import JsonLd from "@/components/JsonLd";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getEvent, getEvents } from "@/lib/content";
import { eventDateTimeIso, formatGermanDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
export function generateStaticParams() { return getEvents().filter((event) => event.status !== "needs-verification").map((event) => ({ slug: event.slug })); }
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }): Promise<Metadata> { const { slug } = await params; const event = getEvent(slug); return event ? { ...createPageMetadata({ title: event.title, description: event.summary ?? `Termin in Goldebek am ${formatGermanDate(event.startDate)}.`, path: `/termine/${event.slug}` }), openGraph: { title: event.title, description: event.summary ?? `Termin in Goldebek am ${formatGermanDate(event.startDate)}.`, type: "website", url: `/termine/${event.slug}`, images: [] }, twitter: { title: event.title, description: event.summary, images: [] } } : {}; }
export default async function EventDetailPage({ params }: { params: Promise<{ slug: string }> }) {
const event = getEvent((await params).slug); if (!event || event.status === "needs-verification") notFound();
const visibleLocation = event.location && event.privacyApproved === true ? event.location : undefined;
const startDate = eventDateTimeIso(event.startDate, event.startTime);
const endDate = event.endDate || event.endTime ? eventDateTimeIso(event.endDate ?? event.startDate, event.endTime) : undefined;
return <><JsonLd data={{ "@context":"https://schema.org", "@type":"Event", name:event.title, description:event.summary, startDate, endDate, eventStatus:"https://schema.org/EventScheduled", location:visibleLocation ? { "@type":"Place", name:visibleLocation } : undefined, organizer:event.organizer ? { "@type":"Organization", name:event.organizer } : undefined }} /><PageHeader eyebrow="Termin" title={event.title} intro={event.summary ?? "Ein Termin der Gemeinde und Dorfgemeinschaft Goldebek."} breadcrumbs={[{ label:"Termine", href:"/termine" },{ label:event.title }]} /><div className="container narrow-content"><dl className="detail-list"><div><dt>Datum</dt><dd>{formatGermanDate(event.startDate)}</dd></div>{event.startTime ? <div><dt>Zeit</dt><dd>{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr</dd></div> : null}{visibleLocation ? <div><dt>Ort</dt><dd>{visibleLocation}</dd></div> : null}{event.organizer ? <div><dt>Veranstalter</dt><dd>{event.organizer}</dd></div> : null}</dl><div className="button-row"><a className="button button--primary" href={`/termine/${event.slug}/kalender.ics`}>Termin speichern (.ics)</a><Link className="button button--secondary" href="/termine">Alle Termine</Link></div><SourceNote lastVerified={event.lastVerified} sourceName={event.sourceName} sourceUrl={event.sourceUrl} /></div></>;
}
+4
View File
@@ -0,0 +1,4 @@
import { getEvents } from "@/lib/content";
import { eventsToIcs } from "@/lib/dates/ics";
export function GET() { const events = getEvents().filter((event) => event.status === "verified" || event.status === "dynamic"); return new Response(eventsToIcs(events), { headers: { "Content-Type":"text/calendar; charset=utf-8", "Content-Disposition":"attachment; filename=goldebek-termine.ics" } }); }
+13
View File
@@ -0,0 +1,13 @@
import type { Metadata } from "next";
import EventCard from "@/components/EventCard";
import PageHeader from "@/components/PageHeader";
import { getEvents } from "@/lib/content";
import { partitionEvents } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
export const metadata: Metadata = createPageMetadata({ title: "Termine", description: "Veranstaltungen und Termine in Goldebek.", path: "/termine" });
export default function EventsPage() {
const { upcoming, archive } = partitionEvents(getEvents());
return <><PageHeader eyebrow="Gemeinde erleben" title="Termine" intro="Veranstaltungen, Treffen und wichtige Daten in Goldebek – geprüft und chronologisch sortiert." breadcrumbs={[{ label: "Termine" }]} /><div className="container page-content"><div className="section-heading"><div><p className="section-kicker">Kalender</p><h2>Kommende Termine</h2></div><a className="button button--secondary" href="/termine/kalender.ics">Alle Termine als ICS</a></div>{upcoming.length ? <div className="event-list">{upcoming.map((event) => <EventCard event={event} key={event.id} />)}</div> : <p>Zurzeit sind keine bestätigten kommenden Termine eingetragen.</p>}<section className="archive-section"><h2>Terminarchiv</h2>{archive.length ? <div className="event-list event-list--archive">{archive.map((event) => <EventCard event={event} key={event.id} />)}</div> : <p>Noch keine archivierten Termine.</p>}</section></div></>;
}
-35
View File
@@ -1,35 +0,0 @@
import type { Metadata } from "next";
import PageEffects from "../../components/PageEffects";
import PhotoSlider from "../../components/PhotoSlider";
import { createPageMetadata } from "../../lib/metadata";
export const metadata: Metadata = createPageMetadata({
title: "Über uns",
description: "Neutrale Inhaltsseite für die Vorstellung einer Organisation.",
path: "/ueber-uns",
});
export default function AboutPage() {
return (
<div className="about-v2">
<header className="about-header about-header--hero-camp1">
<div className="about-header__overlay" />
<div className="about-header__content"><h1>Über uns</h1><p>Platzhalter für eine kurze Vorstellung.</p></div>
</header>
<section className="about-block reveal">
<div className="about-block__inner about-block__inner--narrow">
<span className="about-eyebrow">Organisation</span>
<h2>Ihre Geschichte</h2>
<p>Ergänzen Sie hier die Geschichte, Werte und Ziele Ihres neuen Projekts.</p>
</div>
</section>
<section className="about-block about-block--alt reveal">
<div className="about-block__inner">
<div className="about-block__head"><span className="about-eyebrow">Medien</span><h2>Bilder</h2></div>
<PhotoSlider imageDir="secondary-slider" label="Beispielgalerie" />
</div>
</section>
<PageEffects threshold={0} rootMargin="0px" />
</div>
);
}
+7
View File
@@ -0,0 +1,7 @@
import Link from "next/link";
export type Crumb = { label: string; href?: string };
export default function Breadcrumbs({ items }: { items: Crumb[] }) {
return <nav className="breadcrumbs" aria-label="Brotkrümelnavigation"><ol><li><Link href="/">Startseite</Link></li>{items.map((item) => <li key={item.href ?? item.label}>{item.href ? <Link href={item.href}>{item.label}</Link> : <span aria-current="page">{item.label}</span>}</li>)}</ol></nav>;
}
+7
View File
@@ -0,0 +1,7 @@
import Link from "next/link";
import type { Event } from "@/lib/content/schemas";
import { formatGermanDate } from "@/lib/dates/events";
export default function EventCard({ event }: { event: Event }) {
return <article className="event-card"><div className="event-date"><span>{new Intl.DateTimeFormat("de-DE", { month: "short", timeZone: "Europe/Berlin" }).format(new Date(`${event.startDate}T12:00:00Z`))}</span><strong>{event.startDate.slice(-2)}</strong></div><div><p className="event-meta">{formatGermanDate(event.startDate)}{event.startTime ? ` · ${event.startTime} Uhr` : ""}</p><h3><Link href={`/termine/${event.slug}`}>{event.title}</Link></h3>{event.location && event.privacyApproved === true ? <p>{event.location}</p> : null}<Link className="text-link" href={`/termine/${event.slug}`}>Details <span aria-hidden="true">→</span></Link></div></article>;
}
+4 -55
View File
@@ -1,59 +1,8 @@
import Link from "next/link";
import {
COMPANY_NAME,
CONTACT_ADDRESS,
CONTACT_EMAIL,
CONTACT_PHONE,
toPhoneUrl,
} from "../lib/site";
import ContactLink from "./ContactLink";
export default function Footer() {
return (
<footer className="app-footer">
<div className="container footer-content">
<div className="footer-top">
<div className="footer-column footer-contact">
<h2 className="footer-heading">Kontakt</h2>
<address>
<div className="footer-contact-item">
<svg className="footer-contact-icon" viewBox="0 0 24 24" role="presentation" aria-hidden="true">
<path fill="currentColor" d="M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z" />
</svg>
<span>{CONTACT_ADDRESS}</span>
</div>
<div className="footer-contact-item">
<svg className="footer-contact-icon" viewBox="0 0 24 24" role="presentation" aria-hidden="true">
<path fill="currentColor" d="M20 4H4a1 1 0 0 0-1 1v1.22l9 5.4 9-5.4V5a1 1 0 0 0-1-1Zm1 5.26-9 5.4-9-5.4V19a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9.26Z" />
</svg>
<ContactLink href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</ContactLink>
</div>
<div className="footer-contact-item">
<svg className="footer-contact-icon" viewBox="0 0 24 24" role="presentation" aria-hidden="true">
<path fill="currentColor" d="M6.62 10.79a15.91 15.91 0 0 0 6.59 6.59l1.89-1.89a1 1 0 0 1 1-.24 12.18 12.18 0 0 0 3.83.61 1 1 0 0 1 1 1v3.18a1 1 0 0 1-1 1A17 17 0 0 1 3 7a1 1 0 0 1 1-1h3.18a1 1 0 0 1 1 1 12.31 12.31 0 0 0 .61 3.83 1 1 0 0 1-.24 1Z" />
</svg>
<ContactLink href={toPhoneUrl(CONTACT_PHONE)}>{CONTACT_PHONE}</ContactLink>
</div>
</address>
</div>
<nav className="footer-column footer-links" aria-label="Seitennavigation">
<h2 className="footer-heading">Links</h2>
<ul>
<li><Link href="/ueber-uns">Über uns</Link></li>
<li><Link href="/informationen">Informationen</Link></li>
<li><Link href="/kalender">Kalender</Link></li>
<li><Link href="/bilder">Bilder</Link></li>
</ul>
</nav>
</div>
<div className="footer-bottom">
<span>&copy; {new Date().getFullYear()} {COMPANY_NAME}</span>
<nav className="footer-legal" aria-label="Rechtliches">
<Link href="/datenschutz">Datenschutz</Link>
<Link href="/impressum">Impressum</Link>
</nav>
</div>
</div>
</footer>
);
return <footer className="municipality-footer"><div className="container footer-grid">
<div><p className="footer-brand">Gemeinde Goldebek</p><p>Im Amt Mittleres Nordfriesland</p><p className="footer-note">Inhalte werden mit Quelle und Prüfstand gepflegt.</p></div>
<nav aria-label="Weiterführende und rechtliche Links"><Link href="/impressum">Impressum</Link><Link href="/datenschutz">Datenschutz</Link><Link href="/barrierefreiheit">Barrierefreiheit</Link><a href="https://www.amnf.de" target="_blank" rel="noreferrer">Amt Mittleres Nordfriesland <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a></nav>
</div></footer>;
}
+20 -68
View File
@@ -1,81 +1,33 @@
"use client";
import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect, useState } from "react";
import coatOfArms from "../../goldebek_website_briefing/DEU_Goldebek_wappen.svg";
const navLinks = [
{ href: "/", label: "Start" },
{ href: "/ueber-uns", label: "Über uns" },
{ href: "/informationen", label: "Informationen" },
{ href: "/kalender", label: "Kalender" },
{ href: "/fahrten", label: "Beiträge" },
{ href: "/bilder", label: "Bilder" },
];
{ href: "/", label: "Startseite" },
{ href: "/aktuelles", label: "Aktuelles" }, { href: "/termine", label: "Termine" },
{ href: "/gemeinde", label: "Gemeinde" }, { href: "/leben", label: "Leben & Gemeinschaft" },
{ href: "/politik", label: "Politik & Verwaltung" }, { href: "/service", label: "Service" },
] as const;
export default function Header({ siteName }: { siteName: string }) {
const pathname = usePathname() ?? "/";
const [openPath, setOpenPath] = useState<string | null>(null);
const open = openPath === pathname;
useEffect(() => {
const closeOnEscape = (event: KeyboardEvent) => {
if (event.key === "Escape") setOpenPath(null);
};
document.addEventListener("keydown", closeOnEscape);
return () => document.removeEventListener("keydown", closeOnEscape);
}, []);
const isActive = (href: string) =>
href === "/" ? pathname === "/" : pathname.startsWith(href);
const [open, setOpen] = useState(false);
useEffect(() => { const close = (event: KeyboardEvent) => { if (event.key === "Escape") setOpen(false); }; document.addEventListener("keydown", close); return () => document.removeEventListener("keydown", close); }, []);
return (
<header className="app-header">
<div className="container header-content">
<Link href="/" className="brand">
<img
src="/logo.svg"
alt={`${siteName} Logo`}
className="brand-logo"
/>
<span>{siteName}</span>
</Link>
<button
className="nav-toggle"
type="button"
aria-expanded={open}
aria-controls="primary-navigation"
aria-label={open ? "Menü schließen" : "Menü öffnen"}
data-open={String(open)}
onClick={() => setOpenPath(open ? null : pathname)}
>
<span className="nav-toggle-bars" aria-hidden="true">
<span />
<span />
<span />
</span>
</button>
<nav
className="nav-links"
id="primary-navigation"
data-open={String(open)}
>
{navLinks.map(({ href, label }) => {
const active = isActive(href);
return (
<Link
key={href}
href={href}
aria-current={active ? "page" : undefined}
className={active ? "active" : undefined}
onClick={() => setOpenPath(null)}
>
{label}
</Link>
);
})}
</nav>
</div>
</header>
<header className="municipality-header"><div className="container header-bar">
<Link href="/" className="municipality-brand" aria-label={`${siteName} – Startseite`}>
<Image src={coatOfArms} alt="Wappen der Gemeinde Goldebek" className="brand-mark" priority />
<span><strong>Gemeinde</strong><b>Goldebek</b></span>
</Link>
<button className="menu-button" type="button" aria-expanded={open} aria-controls="primary-navigation" onClick={() => setOpen((value) => !value)}><span aria-hidden="true" className="menu-icon"><i /><i /><i /></span><span>Menü</span></button>
<nav id="primary-navigation" className="primary-navigation" data-open={open} aria-label="Hauptnavigation">
{navLinks.map(({ href, label }) => { const active = pathname === href || pathname.startsWith(`${href}/`); return <Link key={href} href={href} aria-current={active ? "page" : undefined} onClick={() => setOpen(false)}>{label}</Link>; })}
<Link className="contact-link" href="/kontakt" onClick={() => setOpen(false)}>Kontakt</Link>
</nav>
</div></header>
);
}
+5
View File
@@ -0,0 +1,5 @@
import PageHeader from "./PageHeader";
export default function LegalPlaceholder({ title, intro, children }: { title:string; intro:string; children:React.ReactNode }) {
return <><PageHeader eyebrow="Rechtliche Information" title={title} intro={intro} breadcrumbs={[{label:title}]} /><div className="container narrow-content"><div className="editorial-warning" role="note"><strong>Redaktioneller Platzhalter – nicht rechtsverbindlich</strong><p>Die vollständige Fassung muss vor Veröffentlichung von der Gemeinde bereitgestellt und rechtlich freigegeben werden.</p></div><div className="prose">{children}</div></div></>;
}
+5
View File
@@ -0,0 +1,5 @@
import Breadcrumbs, { type Crumb } from "./Breadcrumbs";
export default function PageHeader({ eyebrow, title, intro, breadcrumbs }: { eyebrow: string; title: string; intro: string; breadcrumbs: Crumb[] }) {
return <header className="page-hero"><div className="container"><Breadcrumbs items={breadcrumbs} /><p className="eyebrow">{eyebrow}</p><h1>{title}</h1><p className="page-lead">{intro}</p></div></header>;
}
+4
View File
@@ -0,0 +1,4 @@
export default function SourceNote({ lastVerified, sourceName, sourceUrl }: { lastVerified: string; sourceName?: string; sourceUrl?: string }) {
const date = new Intl.DateTimeFormat("de-DE", { day: "2-digit", month: "2-digit", year: "numeric" }).format(new Date(`${lastVerified}T12:00:00Z`));
return <p className="source-note">Stand: {date}{sourceName && sourceUrl ? <> · <a href={sourceUrl} target="_blank" rel="noreferrer">{sourceName} <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a></> : null}</p>;
}
+18
View File
@@ -0,0 +1,18 @@
import eventsJson from "../../../content/events/events.json";
import newsJson from "../../../content/news/spielplatz-am-langbarg.json";
import sourcesJson from "../../../data/sources.json";
import { assertUnique, eventSchema, newsSchema, sourceSchema, type Event, type NewsItem, type Source } from "./schemas";
const events = eventSchema.array().parse(eventsJson);
const news = newsSchema.array().parse([newsJson]);
const sources = sourceSchema.array().parse(sourcesJson);
assertUnique(events, (item) => item.slug, "Termin-Slug");
assertUnique(news, (item) => item.slug, "News-Slug");
assertUnique(sources, (item) => item.id, "Quellen-ID");
export function getEvents(): Event[] { return events; }
export function getEvent(slug: string): Event | undefined { return events.find((event) => event.slug === slug); }
export function getNews(): NewsItem[] { return news.filter((item) => item.status === "published").sort((a, b) => b.publishedAt.localeCompare(a.publishedAt)); }
export function getNewsItem(slug: string): NewsItem | undefined { return getNews().find((item) => item.slug === slug); }
export function getSource(id: string): Source | undefined { return sources.find((source) => source.id === id); }
export function getSources(): Source[] { return sources; }
+46
View File
@@ -0,0 +1,46 @@
import { z } from "zod";
const isoDate = z.string().refine((value) => {
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return false;
const date = new Date(`${value}T00:00:00Z`);
return !Number.isNaN(date.valueOf()) && date.toISOString().startsWith(value);
}, "Ungültiges ISO-Datum");
const time = z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/);
export const eventSchema = z.object({
id: z.string().min(1), slug: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/), title: z.string().min(1),
summary: z.string().optional(), startDate: isoDate, startTime: time.optional(), endDate: isoDate.optional(), endTime: time.optional(),
timezone: z.literal("Europe/Berlin"), location: z.string().optional(), organizer: z.string().optional(),
sourceUrl: z.string().url().optional(), sourceName: z.string().optional(), lastVerified: isoDate,
status: z.enum(["verified", "dynamic", "needs-verification", "archived"]), privacyApproved: z.boolean().optional(),
}).superRefine((event, context) => {
if ((event.endDate ?? event.startDate) < event.startDate) context.addIssue({ code: "custom", message: "Das Enddatum liegt vor dem Startdatum." });
if (event.location && /\b\d+[a-z]?\b/i.test(event.location) && event.privacyApproved !== true) context.addIssue({ code: "custom", path: ["privacyApproved"], message: "Eine Adresse benötigt privacyApproved=true." });
if (["verified", "dynamic"].includes(event.status) && (!event.sourceName || !event.sourceUrl)) context.addIssue({ code: "custom", path: ["sourceUrl"], message: "Veröffentlichte Termine benötigen eine Quelle." });
});
export const newsSchema = z.object({
id: z.string().min(1), slug: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/), title: z.string().min(1), teaser: z.string().min(1), body: z.string().min(1),
publishedAt: isoDate, updatedAt: isoDate.optional(),
image: z.object({ src: z.string(), alt: z.string().min(1), copyright: z.string().optional() }).optional(),
sourceUrl: z.string().url().optional(), sourceName: z.string().optional(), lastVerified: isoDate,
status: z.enum(["published", "draft", "archived"]),
});
export const sourceSchema = z.object({
id: z.string().min(1), name: z.string().min(1), url: z.string().url(), type: z.string().min(1), lastVerified: isoDate,
});
export type Event = z.infer<typeof eventSchema>;
export type NewsItem = z.infer<typeof newsSchema>;
export type Source = z.infer<typeof sourceSchema>;
export function assertUnique<T>(items: T[], key: (item: T) => string, label: string): void {
const seen = new Set<string>();
for (const item of items) {
const value = key(item);
if (seen.has(value)) throw new Error(`Doppelter ${label}: ${value}`);
seen.add(value);
}
}
+36
View File
@@ -0,0 +1,36 @@
import type { Event } from "@/lib/content/schemas";
import { Temporal } from "@js-temporal/polyfill";
export function dateInBerlin(now = new Date()): string {
const parts = new Intl.DateTimeFormat("en-CA", { timeZone: "Europe/Berlin", year: "numeric", month: "2-digit", day: "2-digit" }).formatToParts(now);
const value = Object.fromEntries(parts.map((part) => [part.type, part.value]));
return `${value.year}-${value.month}-${value.day}`;
}
export function formatGermanDate(date: string, options: Intl.DateTimeFormatOptions = {}): string {
return new Intl.DateTimeFormat("de-DE", { timeZone: "Europe/Berlin", weekday: "long", day: "2-digit", month: "long", year: "numeric", ...options }).format(new Date(`${date}T12:00:00Z`));
}
export function formatShortDate(date: string): string {
return new Intl.DateTimeFormat("de-DE", { timeZone: "Europe/Berlin", day: "2-digit", month: "2-digit", year: "numeric" }).format(new Date(`${date}T12:00:00Z`));
}
export function eventDateTimeIso(date: string, time?: string): string {
if (!time) return date;
const [year, month, day] = date.split("-").map(Number);
const [hour, minute] = time.split(":").map(Number);
return Temporal.ZonedDateTime.from({ timeZone: "Europe/Berlin", year, month, day, hour, minute }).toString({ timeZoneName: "never", calendarName: "never" });
}
export function isPastEvent(event: Event, today = dateInBerlin()): boolean {
return (event.endDate ?? event.startDate) < today;
}
export function sortEvents(events: Event[]): Event[] {
return [...events].sort((a, b) => `${a.startDate}T${a.startTime ?? "00:00"}`.localeCompare(`${b.startDate}T${b.startTime ?? "00:00"}`));
}
export function partitionEvents(events: Event[], today = dateInBerlin()) {
const visible = events.filter((event) => event.status === "verified" || event.status === "dynamic");
return { upcoming: sortEvents(visible.filter((event) => !isPastEvent(event, today))), archive: sortEvents(visible.filter((event) => isPastEvent(event, today))).reverse() };
}
+22
View File
@@ -0,0 +1,22 @@
import type { Event } from "@/lib/content/schemas";
function escapeIcs(value: string): string { return value.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/,/g, "\\,").replace(/;/g, "\\;"); }
function compactDate(value: string): string { return value.replaceAll("-", ""); }
function compactTime(value: string): string { return value.replace(":", "") + "00"; }
export function eventToIcsLines(event: Event): string[] {
const lines = ["BEGIN:VEVENT", `UID:${escapeIcs(event.id)}@goldebek.de`, `DTSTAMP:${compactDate(event.lastVerified)}T120000Z`];
if (event.startTime) lines.push(`DTSTART;TZID=Europe/Berlin:${compactDate(event.startDate)}T${compactTime(event.startTime)}`);
else lines.push(`DTSTART;VALUE=DATE:${compactDate(event.startDate)}`);
if (event.endTime) lines.push(`DTEND;TZID=Europe/Berlin:${compactDate(event.endDate ?? event.startDate)}T${compactTime(event.endTime)}`);
else if (event.endDate) lines.push(`DTEND;VALUE=DATE:${compactDate(event.endDate)}`);
lines.push(`SUMMARY:${escapeIcs(event.title)}`);
if (event.summary) lines.push(`DESCRIPTION:${escapeIcs(event.summary)}`);
if (event.location && event.privacyApproved === true) lines.push(`LOCATION:${escapeIcs(event.location)}`);
lines.push("END:VEVENT");
return lines;
}
export function eventsToIcs(events: Event[]): string {
return ["BEGIN:VCALENDAR", "VERSION:2.0", "PRODID:-//Gemeinde Goldebek//Termine//DE", "CALSCALE:GREGORIAN", "METHOD:PUBLISH", ...events.flatMap(eventToIcsLines), "END:VCALENDAR", ""].join("\r\n");
}
+2 -2
View File
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
import { SITE_NAME, toAbsoluteUrl } from "./site";
const DEFAULT_OG_IMAGE = "/logo.svg";
const DEFAULT_OG_IMAGE = "/og.png";
interface PageMetadataOptions {
title: string;
@@ -37,7 +37,7 @@ export function createPageMetadata({
images: [imageUrl],
},
twitter: {
card: "summary",
card: "summary_large_image",
title,
description,
images: [imageUrl],
+5 -5
View File
@@ -18,14 +18,14 @@ function normalizeSiteUrl(value: string | undefined): string {
}
}
export const SITE_NAME = readEnvironment("APP_NAME", "Example Website");
export const SITE_NAME = readEnvironment("APP_NAME", "Gemeinde Goldebek");
export const SITE_URL = normalizeSiteUrl(process.env.APP_URL);
export const COMPANY_NAME = readEnvironment("COMPANY_NAME", "Example Company");
export const CONTACT_EMAIL = readEnvironment("CONTACT_EMAIL", "info@example.com");
export const CONTACT_PHONE = readEnvironment("CONTACT_PHONE", "+49 000 000000");
export const COMPANY_NAME = readEnvironment("COMPANY_NAME", "Gemeinde Goldebek");
export const CONTACT_EMAIL = readEnvironment("CONTACT_EMAIL", "info@amnf.de");
export const CONTACT_PHONE = readEnvironment("CONTACT_PHONE", "04671 9192-0");
export const CONTACT_ADDRESS = readEnvironment(
"CONTACT_ADDRESS",
"Example Street 1, 12345 Example City",
"über Amt Mittleres Nordfriesland, Theodor-Storm-Straße 2, 25821 Bredstedt",
);
export function toAbsoluteUrl(pathname: string): string {
+67
View File
@@ -0,0 +1,67 @@
@font-face { font-family: "Goldebek Sans"; src: url("/fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Goldebek Sans"; src: url("/fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Goldebek Sans"; src: url("/fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --blue-950:#082d46; --blue-800:#0d4668; --blue-700:#126084; --green-700:#376c43; --green-100:#e7efe6; --gold-500:#d5a32f; --ink:#17262e; --muted:#5c6b72; --paper:#fffdf8; --line:#dce2dd; --shadow:0 18px 50px rgb(8 45 70 / 12%); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:"Goldebek Sans",system-ui,sans-serif; line-height:1.65; }
a { color:inherit; } h1,h2,h3,p { margin-top:0; } h1,h2,h3 { line-height:1.15; letter-spacing:-.025em; } h1 { font-size:clamp(3rem,8vw,6.7rem); margin-bottom:1.5rem; } h2 { font-size:clamp(2rem,4vw,3.2rem); } h3 { font-size:1.25rem; }
.container { width:min(1180px,calc(100% - 2.5rem)); margin-inline:auto; }
.skip-link { position:fixed; top:.5rem; left:.5rem; z-index:100; padding:.7rem 1rem; background:white; transform:translateY(-200%); } .skip-link:focus { transform:none; }
a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outline-offset:4px; }
.app-shell { min-height:100vh; display:flex; flex-direction:column; } main { flex:1; }
.municipality-header { background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.header-bar { min-height:88px; display:flex; align-items:center; gap:2rem; }
.municipality-brand { display:inline-flex; align-items:center; gap:.8rem; text-decoration:none; margin-right:auto; }
.municipality-brand span { display:grid; line-height:1.05; } .municipality-brand strong { font-size:.7rem; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); } .municipality-brand b { font-size:1.35rem; color:var(--blue-950); }
.brand-mark { width:auto; height:58px; object-fit:contain; }
.primary-navigation { display:flex; align-items:center; gap:clamp(.7rem,1.7vw,1.4rem); }
.primary-navigation a { text-decoration:none; font-size:.86rem; font-weight:600; } .primary-navigation a:hover,.primary-navigation a[aria-current="page"] { color:var(--blue-700); }
.primary-navigation .contact-link { padding:.65rem .9rem; color:white; background:var(--blue-950); }
.menu-button { display:none; border:0; background:none; font:inherit; }
.municipality-hero { overflow:hidden; position:relative; background:#e8eee9; }
.hero-photo { position:absolute; inset:0; } .hero-photo img { object-fit:cover; object-position:center 44%; filter:saturate(.82); }
.municipality-hero::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgb(239 244 238 / 98%) 0%,rgb(239 244 238 / 91%) 48%,rgb(8 45 70 / 18%) 100%); }
.municipality-hero__grid { position:relative; z-index:2; min-height:650px; display:grid; grid-template-columns:1.5fr .75fr; gap:clamp(3rem,8vw,8rem); align-items:center; padding-block:7rem; }
.eyebrow,.section-kicker,.welcome-card__kicker { text-transform:uppercase; letter-spacing:.16em; font-size:.75rem; font-weight:700; color:var(--green-700); }
.lead { max-width:760px; font-size:clamp(1.1rem,2vw,1.35rem); color:#344850; }
.button-row { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2.5rem; } .button { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:.75rem 1.15rem; text-decoration:none; font-weight:700; } .button--primary { color:white; background:var(--blue-950); } .button--secondary { color:var(--blue-950); border:1px solid var(--blue-950); background:rgb(255 255 255 / 65%); }
.welcome-card { padding:clamp(1.7rem,4vw,2.6rem); background:var(--paper); box-shadow:var(--shadow); border-top:5px solid var(--gold-500); } .welcome-card h2 { font-size:1.8rem; } .text-link { font-weight:700; color:var(--blue-800); text-underline-offset:5px; }
.facts { position:relative; z-index:3; background:var(--blue-950); color:white; } .facts__grid { display:grid; grid-template-columns:repeat(4,1fr); } .fact { min-height:125px; padding:1.5rem clamp(1rem,3vw,2rem); display:flex; flex-direction:column; justify-content:center; border-left:1px solid rgb(255 255 255 / 18%); } .fact:last-child { border-right:1px solid rgb(255 255 255 / 18%); } .fact strong { font-size:clamp(1.15rem,2.3vw,1.7rem); } .fact span { font-size:.8rem; color:rgb(255 255 255 / 70%); }
.home-intro { padding-block:clamp(5rem,10vw,8rem); } .quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:2.5rem; } .quick-card { min-height:230px; padding:1.6rem; border:1px solid var(--line); background:white; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; } .quick-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); } .quick-card__number { display:block; margin-bottom:2.8rem; color:var(--gold-500); font-weight:700; } .quick-card p { color:var(--muted); }
.municipality-footer { padding-block:3rem; background:#061f30; color:white; } .footer-grid { display:flex; justify-content:space-between; gap:2rem; } .footer-brand { font-size:1.2rem; font-weight:700; margin-bottom:.2rem; } .footer-grid nav { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; } .footer-grid a { text-underline-offset:5px; }
.footer-note{color:rgb(255 255 255 / 62%);font-size:.78rem}.footer-grid nav{max-width:660px;justify-content:flex-end}
@media(max-width:980px){ .menu-button{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem;cursor:pointer}.menu-icon{display:grid;gap:4px}.menu-icon i{display:block;width:22px;height:2px;background:currentColor}.primary-navigation{display:none;position:absolute;inset:88px 0 auto;padding:1.3rem max(1.25rem,calc((100vw - 1180px)/2));background:var(--paper);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.primary-navigation[data-open="true"]{display:flex}.primary-navigation a{padding:.6rem 0;font-size:1rem}.municipality-hero__grid{min-height:auto;grid-template-columns:1fr;gap:3rem;padding-block:5rem}.welcome-card{max-width:580px}}
@media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero::before{background:rgb(239 244 238 / 91%)}.municipality-hero__grid{padding-block:3.7rem}.facts__grid{grid-template-columns:1fr 1fr}.fact:nth-child(odd){border-left:0}.fact{border-bottom:1px solid rgb(255 255 255 / 18%)}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-hero{padding:clamp(3.5rem,8vw,6.5rem) 0;background:linear-gradient(120deg,#edf2ec,#f8f2e5);border-bottom:1px solid var(--line)}
.page-hero h1{max-width:950px;font-size:clamp(2.7rem,7vw,5.6rem);margin-bottom:1.4rem}.page-lead{max-width:800px;font-size:clamp(1.08rem,2vw,1.35rem);color:#3f535b}
.breadcrumbs{margin-bottom:clamp(2.2rem,5vw,4.5rem);font-size:.82rem;color:var(--muted)}.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem;padding:0;margin:0}.breadcrumbs li+li::before{content:"/";margin-right:.45rem;color:#91a09c}.breadcrumbs a{text-underline-offset:4px}
.page-content{padding-block:clamp(4rem,8vw,7rem)}.narrow-content{width:min(800px,calc(100% - 2.5rem));margin-inline:auto;padding-block:clamp(4rem,8vw,7rem)}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.section-heading h2{margin-bottom:0}
.content-section{max-width:850px;padding-block:2.6rem;border-bottom:1px solid var(--line)}.content-section:first-of-type{padding-top:0}.content-section h2{font-size:clamp(1.7rem,3vw,2.4rem)}.content-section p,.content-section li,.prose p{font-size:1.03rem;color:#3f535b}.content-section li+li{margin-top:.45rem}
.link-list{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.5rem}.link-list a{display:inline-flex;align-items:center;min-height:46px;padding:.65rem .9rem;border:1px solid var(--blue-800);color:var(--blue-800);font-weight:700;text-underline-offset:4px}
.source-note{margin-top:3rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}.source-note a{text-underline-offset:4px}
.event-list{display:grid;gap:.75rem}.event-card{display:grid;grid-template-columns:80px 1fr;gap:1.4rem;padding:1.4rem;background:white;border:1px solid var(--line)}.event-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80px;color:white;background:var(--blue-950);text-transform:uppercase}.event-date span{font-size:.75rem;letter-spacing:.08em}.event-date strong{font-size:1.8rem}.event-card h3{margin:.15rem 0 .4rem;font-size:1.3rem}.event-card h3 a{text-decoration:none}.event-card p{margin-bottom:.4rem;color:var(--muted)}.event-meta{font-size:.78rem;font-weight:700;color:var(--green-700)!important}.archive-section{margin-top:5rem}.event-list--archive{opacity:.82}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.news-card{padding:clamp(1.5rem,3vw,2.2rem);background:white;border:1px solid var(--line)}.news-card h2,.news-card h3{font-size:clamp(1.3rem,2.2vw,1.8rem)}.news-card h2 a,.news-card h3 a{text-decoration:none}.news-card p{color:var(--muted)}.news-date,.card-label{font-size:.72rem!important;text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--green-700)!important}
.detail-list{display:grid;gap:0;margin:0}.detail-list div{display:grid;grid-template-columns:minmax(130px,.35fr) 1fr;gap:1rem;padding:1.2rem 0;border-bottom:1px solid var(--line)}.detail-list dt{font-size:.76rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}.detail-list dd{margin:0;font-weight:600}
.home-section{padding-block:clamp(5rem,9vw,7.5rem)}.home-section--tinted{background:#f1f4f0}.home-section--blue{background:var(--blue-950);color:white}.home-section--blue h2{color:white}.home-section--blue .section-kicker{color:#e9bf58}
.quick-grid--four{grid-template-columns:repeat(4,1fr)}
.discover-section{display:grid;grid-template-columns:1fr 1fr;background:#e7eee7}.discover-photo{position:relative;min-height:570px}.discover-photo img{object-fit:cover}.discover-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,8vw,7rem)}.discover-copy>p{max-width:620px}.discover-copy .link-list{max-width:650px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.feature-grid>a{min-height:240px;padding:2rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-decoration:none}.feature-grid span{display:block;margin-bottom:3rem;color:var(--gold-500);font-weight:700}.feature-grid p{color:var(--muted)}
.project-links{display:grid;grid-template-columns:repeat(3,1fr);margin-top:2.5rem;border-top:1px solid rgb(255 255 255 / 22%)}.project-links a{display:flex;flex-direction:column;padding:1.5rem 1.2rem;border-bottom:1px solid rgb(255 255 255 / 22%);text-decoration:none}.project-links strong{font-size:1.25rem}.project-links span{color:rgb(255 255 255 / 68%)}
.contact-band{display:flex;align-items:center;justify-content:space-between;gap:2rem}.contact-band>div{max-width:720px}.contact-band h2{margin-bottom:1rem}
.content-image{max-width:860px;margin:0 0 4rem}.content-image img{display:block;width:100%;height:auto;max-height:580px;object-fit:cover}.content-image figcaption,.coat-of-arms figcaption{margin-top:.5rem;color:var(--muted);font-size:.76rem}
.coat-of-arms{max-width:260px;margin:0 0 4rem}.coat-of-arms img{width:100%;height:auto}
.data-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:0 0 3.5rem}.data-grid>div{min-height:145px;padding:1.3rem;background:#f1f4f0;border-top:4px solid var(--green-700);display:flex;flex-direction:column}.data-grid dt{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.data-grid dd,.data-grid strong{margin:.6rem 0 0;font-size:1.35rem;font-weight:700}.data-grid small{margin-top:auto;color:var(--muted)}
.timeline{max-width:850px;list-style:none;padding:0;margin:0 0 4rem}.timeline li{display:grid;grid-template-columns:130px 1fr;gap:2rem;padding:0 0 2.3rem;position:relative}.timeline li::before{content:"";position:absolute;left:121px;top:.4rem;bottom:0;border-left:1px solid var(--line)}.timeline time{font-weight:700;color:var(--green-700)}.timeline h3{margin-bottom:.35rem}.timeline p{color:var(--muted)}
.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin-bottom:3rem}.info-card{padding:1.6rem;border:1px solid var(--line);background:white}.info-card h2{font-size:1.35rem}
.contact-panel{max-width:650px;padding:2rem;margin-bottom:3rem;background:var(--blue-950);color:white}.contact-panel h2{color:white}.contact-panel address{font-style:normal}.contact-panel a{text-underline-offset:4px}
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}.people-grid article{padding:1.4rem;border:1px solid var(--line)}.people-grid article>span{display:grid;place-items:center;width:48px;height:48px;margin-bottom:2rem;border-radius:50%;background:var(--green-100);color:var(--green-700);font-weight:700}.people-grid h3{margin-bottom:.3rem}.people-grid p{color:var(--muted);font-size:.85rem}
.route-number{display:inline-flex;align-items:center;gap:1rem;padding:1.2rem 1.8rem;margin-bottom:3rem;color:white;background:var(--blue-950)}.route-number span{text-transform:uppercase;letter-spacing:.1em;font-size:.72rem}.route-number strong{font-size:2rem}
.editorial-warning{padding:1.4rem;margin-bottom:2.5rem;border:2px solid #a86a00;background:#fff7df}.editorial-warning p{margin:.4rem 0 0}
.prose h2{font-size:1.6rem}.prose p{max-width:720px}
@media(max-width:900px){.news-grid,.quick-grid--four,.data-grid,.people-grid{grid-template-columns:repeat(2,1fr)}.discover-section{grid-template-columns:1fr}.discover-photo{min-height:420px}.feature-grid,.project-links{grid-template-columns:1fr}.feature-grid>a{min-height:auto}.feature-grid span{margin-bottom:1.5rem}}
@media(max-width:620px){.news-grid,.quick-grid--four,.data-grid,.people-grid,.card-grid{grid-template-columns:1fr}.section-heading,.contact-band{align-items:flex-start;flex-direction:column}.event-card{grid-template-columns:64px 1fr;padding:1rem;gap:1rem}.event-date{min-height:70px}.detail-list div{grid-template-columns:1fr;gap:.25rem}.timeline li{grid-template-columns:1fr;gap:.4rem;padding-left:1.5rem}.timeline li::before{left:0}.discover-photo{min-height:300px}}