Neues Erscheinungsbild: ruhig und erwachsen statt verspielt

Angelehnt an die Gestaltung der Ledder Werkstätten:
- Farbpaar aus dunkler Hauptfarbe und Akzent (Standard Indigo/Pflaume),
  alle weiteren Töne daraus abgeleitet; weißer Grund, Lavendel-Flächen
- Montserrat (selbst gehostet) statt Atkinson/Bricolage
- Startseite: randloses Titelbild mit Akzentkreis, umlaufendem Text und
  Hinweis-Fahne; Platzhalter in der Markenfarbe statt Illustration
- Bereiche als ruhige Pillen statt bunter Kacheln, Termine als Farbblock
- Gesperrte Kleinzeilen mit Punktlinie, Punkt-Trenner in der Navigation
- Redaktion: Akzentfarbe und Kreistext in den Einstellungen,
  Farbauswahl bei Kacheln/Seiten entfällt
- Demo-Titelbilder als ruhige Farbflächen

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-30 14:48:05 +00:00
parent 6f706dfa49
commit 562fa56228
44 changed files with 563 additions and 517 deletions

View file

@ -8,12 +8,13 @@ Tablet und Desktop.
**App (öffentlich)** **App (öffentlich)**
- Startseite mit Begrüßung, Suche, frei konfigurierbaren Kacheln, Neuigkeiten und nächsten Terminen - Startseite mit großem Titelbild, Akzentkreis mit umlaufendem Text, Hinweis-Fahne (Schließzeit oder
angeheftete Meldung), Suche, Bereichen, Neuigkeiten und Terminen
- Meldungen mit Titelbild, Galerie, Video (datensparsam erst nach Klick), Dateien und Ansprechpartnern - Meldungen mit Titelbild, Galerie, Video (datensparsam erst nach Klick), Dateien und Ansprechpartnern
- Infoseiten in beliebiger Tiefe (z. B. „Dienste → Sozialer Dienst“) - Infoseiten in beliebiger Tiefe (z. B. „Dienste → Sozialer Dienst“)
- Termine & Schließzeiten, gruppiert nach Monat, mit Kalender-Abo (`/termine.ics`) - Termine & Schließzeiten, gruppiert nach Monat, mit Kalender-Abo (`/termine.ics`)
- Ansprechpartner-Verzeichnis, Kontaktformular, Volltextsuche - Ansprechpartner-Verzeichnis, Kontaktformular, Volltextsuche
- **Barrierearm:** gut lesbare Schrift (Atkinson Hyperlegible), 3 Schriftgrößen, Hell/Dunkel, - **Barrierearm:** klare Schrift (Montserrat, selbst gehostet), 3 Schriftgrößen, Hell/Dunkel,
**Vorlesen**-Funktion, **Leichte Sprache** pro Seite/Meldung **Vorlesen**-Funktion, **Leichte Sprache** pro Seite/Meldung
- Merkliste (lokal auf dem Gerät), Teilen, offline lesbar, als App installierbar - Merkliste (lokal auf dem Gerät), Teilen, offline lesbar, als App installierbar
- Keine Werbung, kein Tracking, keine externen Schriften oder CDNs - Keine Werbung, kein Tracking, keine externen Schriften oder CDNs
@ -25,8 +26,8 @@ Tablet und Desktop.
- Text-Editor mit Formatierungen, Links und Bildern - Text-Editor mit Formatierungen, Links und Bildern
- Bilder werden automatisch gedreht, verkleinert und als WebP gespeichert - Bilder werden automatisch gedreht, verkleinert und als WebP gespeichert
- Rollen: **Redakteur** (Inhalte) und **Administrator** (zusätzlich Benutzer & Einstellungen) - Rollen: **Redakteur** (Inhalte) und **Administrator** (zusätzlich Benutzer & Einstellungen)
- Einstellungen: App-Name, Logo, Markenfarbe, Texte, Impressum, Datenschutz – das App-Symbol - Einstellungen: App-Name, Logo, Farbpaar (Haupt- und Akzentfarbe), Titelbild, Texte, Impressum,
wird daraus automatisch erzeugt Datenschutz – das App-Symbol wird daraus automatisch erzeugt
## Technik ## Technik
@ -68,7 +69,8 @@ Ohne Docker: `npm ci && npm run build && ORIGIN=https://… BODY_SIZE_LIMIT=30M
erzeugt eine Migration in `drizzle/`, die beim nächsten Start automatisch eingespielt wird. erzeugt eine Migration in `drizzle/`, die beim nächsten Start automatisch eingespielt wird.
- **Admin-Bereiche** folgen alle demselben Muster: `src/routes/admin/(panel)/<bereich>/` - **Admin-Bereiche** folgen alle demselben Muster: `src/routes/admin/(panel)/<bereich>/`
mit Liste (`+page`) und Bearbeiten (`[id]/+page`, `neu` = anlegen). Bausteine liegen in `src/lib/admin/`. mit Liste (`+page`) und Bearbeiten (`[id]/+page`, `neu` = anlegen). Bausteine liegen in `src/lib/admin/`.
- **Icons** für Kacheln/Seiten: `src/lib/icons.ts`, **Farben**: `src/lib/palette.ts` + `.tone-*` in `src/app.css`. - **Icons** für Bereiche/Seiten: `src/lib/icons.ts`. **Farben** kommen aus den Einstellungen; alle übrigen
Töne leitet `src/app.css` daraus ab.
- **Öffentliche Seiten:** `src/routes/(app)/`, Datenabfragen gebündelt in `src/lib/server/content.ts`. - **Öffentliche Seiten:** `src/routes/(app)/`, Datenabfragen gebündelt in `src/lib/server/content.ts`.
## Ideen für später ## Ideen für später

19
package-lock.json generated
View file

@ -14,8 +14,7 @@
"sharp": "^0.35.5" "sharp": "^0.35.5"
}, },
"devDependencies": { "devDependencies": {
"@fontsource-variable/atkinson-hyperlegible-next": "^5.3.0", "@fontsource-variable/montserrat": "^5.3.0",
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
"@lucide/svelte": "^1.48.0", "@lucide/svelte": "^1.48.0",
"@sveltejs/adapter-node": "^5.5.7", "@sveltejs/adapter-node": "^5.5.7",
"@sveltejs/kit": "^2.70.3", "@sveltejs/kit": "^2.70.3",
@ -935,20 +934,10 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/@fontsource-variable/atkinson-hyperlegible-next": { "node_modules/@fontsource-variable/montserrat": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource-variable/atkinson-hyperlegible-next/-/atkinson-hyperlegible-next-5.3.0.tgz", "resolved": "https://registry.npmjs.org/@fontsource-variable/montserrat/-/montserrat-5.3.0.tgz",
"integrity": "sha512-UnLzNUy1RWoLDfydAatP4NaRm99X/WbQEph7q/PymJnCFIOOwKOx3pBmp5ys8trO0dM+CKGuJgeZP9fAR4mQpA==", "integrity": "sha512-7PaZoxaxrWLAyrhO46v65An9LhUhfkTExWLhfbywYZCnZEgg/W1rEHnlNmZKjNZ3nJTVYyicqxlJt10z/26yTA==",
"dev": true,
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource-variable/bricolage-grotesque": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource-variable/bricolage-grotesque/-/bricolage-grotesque-5.3.0.tgz",
"integrity": "sha512-TLi9Q4hJjS2UvoTMRSS2nHu6c4R56lAw60NR9QYtVRCHn0XtsFpiEhNffZ8Glsoxu6wEEwLKBP8lb94J52PNBA==",
"dev": true, "dev": true,
"license": "OFL-1.1", "license": "OFL-1.1",
"funding": { "funding": {

View file

@ -24,8 +24,7 @@
"sharp": "^0.35.5" "sharp": "^0.35.5"
}, },
"devDependencies": { "devDependencies": {
"@fontsource-variable/atkinson-hyperlegible-next": "^5.3.0", "@fontsource-variable/montserrat": "^5.3.0",
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
"@lucide/svelte": "^1.48.0", "@lucide/svelte": "^1.48.0",
"@sveltejs/adapter-node": "^5.5.7", "@sveltejs/adapter-node": "^5.5.7",
"@sveltejs/kit": "^2.70.3", "@sveltejs/kit": "^2.70.3",

View file

@ -28,6 +28,8 @@ if (db.select().from(s.pages).all().length && !force) {
} }
if (force) { if (force) {
for (const t of [s.tiles, s.posts, s.pages, s.events, s.contacts, s.messages, s.media, s.settings]) db.delete(t).run(); for (const t of [s.tiles, s.posts, s.pages, s.events, s.contacts, s.messages, s.media, s.settings]) db.delete(t).run();
// alte Upload-Dateien mit entfernen
for (const f of fs.readdirSync(UPLOAD_DIR)) fs.rmSync(path.join(UPLOAD_DIR, f), { force: true });
} }
// ─── Hilfen ────────────────────────────────────────────────────────────────── // ─── Hilfen ──────────────────────────────────────────────────────────────────
@ -44,17 +46,14 @@ const daysAgo = (n: number, hour = 9) => {
return d; return d;
}; };
/** Erzeugt ein freundliches, abstraktes Titelbild (keine echten Fotos in der Demo). */ /** Erzeugt ein ruhiges Demo-Titelbild: Farbfläche mit großem Kreisausschnitt (keine echten Fotos in der Demo). */
async function illustration(a: string, b: string, seed: number, name: string) { async function illustration(a: string, b: string, seed: number, name: string) {
const rnd = (n: number) => ((Math.sin(seed * 9301 + n * 49297) + 1) / 2); const cx = [1350, 250, 1500, 900, 150][seed % 5];
const circles = Array.from({ length: 6 }, (_, i) => { const cy = [820, 900, 150, 1000, 100][seed % 5];
const r = 80 + rnd(i) * 260;
return `<circle cx="${rnd(i + 10) * 1600}" cy="${rnd(i + 20) * 900}" r="${r}" fill="white" fill-opacity="${0.06 + rnd(i + 30) * 0.12}"/>`;
}).join('');
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900"> const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900">
<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="${a}"/><stop offset="1" stop-color="${b}"/></linearGradient></defs> <rect width="100%" height="100%" fill="${a}"/>
<rect width="100%" height="100%" fill="url(#g)"/>${circles} <circle cx="${cx}" cy="${cy}" r="560" fill="${b}"/>
<rect x="${200 + rnd(40) * 900}" y="${520 + rnd(41) * 200}" width="${300 + rnd(42) * 200}" height="40" rx="20" fill="white" fill-opacity="0.18"/> <circle cx="${cx}" cy="${cy}" r="700" fill="none" stroke="#ffffff" stroke-opacity="0.12" stroke-width="3"/>
</svg>`; </svg>`;
const base = `${Date.now().toString(36)}-${randomBytes(6).toString('hex')}`; const base = `${Date.now().toString(36)}-${randomBytes(6).toString('hex')}`;
const img = sharp(Buffer.from(svg)); const img = sharp(Buffer.from(svg));
@ -79,10 +78,14 @@ db.insert(s.settings)
value: { value: {
appName: 'Lindenhof App', appName: 'Lindenhof App',
orgName: 'Lindenhof Werkstätten (Demo)', orgName: 'Lindenhof Werkstätten (Demo)',
greeting: 'Schön, dass du da bist!', greeting: 'Willkommen auf dem Lindenhof!',
intro: 'Neuigkeiten, Termine, Speisepläne und Ansprechpartner – alles an einem Ort.', intro: 'Neuigkeiten, Termine, Speisepläne und Ansprechpartner – alles an einem Ort.',
brandColor: '#0e7c66', brandColor: '#2e2672',
accentColor: '#85357c',
logoId: null, logoId: null,
heroEnabled: true,
heroImageId: null,
heroTagline: 'Arbeit, Bildung, Teilhabe',
website: 'https://example.org', website: 'https://example.org',
contactEmail: 'app@example.org', contactEmail: 'app@example.org',
contactIntro: 'Du hast Fragen, Lob oder Ideen für die App? Schreib uns – wir freuen uns!', contactIntro: 'Du hast Fragen, Lob oder Ideen für die App? Schreib uns – wir freuen uns!',
@ -180,33 +183,33 @@ tileDefs.forEach(([label, icon, color, href], i) => db.insert(s.tiles).values({
const postDefs = [ const postDefs = [
{ {
title: 'Sommerfest 2026: Danke für einen tollen Tag!', slug: 'sommerfest-2026', ago: 0, colors: ['#0e7c66', '#7cc3a5'], title: 'Sommerfest 2026: Danke für einen tollen Tag!', slug: 'sommerfest-2026', ago: 0, colors: ['#2e2672', '#85357c'],
teaser: 'Musik, Grillen und viele Begegnungen – rund 400 Gäste feierten mit uns.', teaser: 'Musik, Grillen und viele Begegnungen – rund 400 Gäste feierten mit uns.',
content: '<p>Bei strahlendem Sonnenschein haben wir am Samstag unser Sommerfest gefeiert. Rund <strong>400 Gäste</strong> – Beschäftigte, Angehörige, Nachbarn und Freunde – kamen auf den Lindenhof.</p><p>Die Band „Lindenblüten“ sorgte für Stimmung, am Grill gab es Würstchen und Gemüsespieße, und die Kreativwerkstatt zeigte ihre neuesten Werke.</p><h2>Ein großes Dankeschön</h2><p>An alle Helferinnen und Helfer, die das Fest möglich gemacht haben!</p>', content: '<p>Bei strahlendem Sonnenschein haben wir am Samstag unser Sommerfest gefeiert. Rund <strong>400 Gäste</strong> – Beschäftigte, Angehörige, Nachbarn und Freunde – kamen auf den Lindenhof.</p><p>Die Band „Lindenblüten“ sorgte für Stimmung, am Grill gab es Würstchen und Gemüsespieße, und die Kreativwerkstatt zeigte ihre neuesten Werke.</p><h2>Ein großes Dankeschön</h2><p>An alle Helferinnen und Helfer, die das Fest möglich gemacht haben!</p>',
contentEasy: '<p>Wir haben ein Sommer·fest gefeiert.</p><p>Es waren viele Gäste da.</p><p>Es gab Musik und Essen vom Grill.</p><p>Danke an alle Helfer!</p>', contentEasy: '<p>Wir haben ein Sommer·fest gefeiert.</p><p>Es waren viele Gäste da.</p><p>Es gab Musik und Essen vom Grill.</p><p>Danke an alle Helfer!</p>',
pinned: true, gallery: 3 pinned: true, gallery: 3
}, },
{ {
title: 'Neue Außenarbeitsplätze im Gartenbau', slug: 'aussenarbeitsplaetze-gartenbau', ago: 3, colors: ['#6f9b17', '#c8dd6b'], title: 'Neue Außenarbeitsplätze im Gartenbau', slug: 'aussenarbeitsplaetze-gartenbau', ago: 3, colors: ['#3d3590', '#878eb7'],
teaser: 'Drei Beschäftigte arbeiten jetzt bei einer Gärtnerei in Musterstadt.', teaser: 'Drei Beschäftigte arbeiten jetzt bei einer Gärtnerei in Musterstadt.',
content: '<p>Seit diesem Monat arbeiten drei Beschäftigte aus der Gartengruppe auf <strong>betriebsintegrierten Arbeitsplätzen</strong> bei der Gärtnerei Grünschnabel.</p><p>Du interessierst dich auch für einen Außenarbeitsplatz? Der Fachdienst Übergang berät dich gerne.</p>', content: '<p>Seit diesem Monat arbeiten drei Beschäftigte aus der Gartengruppe auf <strong>betriebsintegrierten Arbeitsplätzen</strong> bei der Gärtnerei Grünschnabel.</p><p>Du interessierst dich auch für einen Außenarbeitsplatz? Der Fachdienst Übergang berät dich gerne.</p>',
contacts: [5] contacts: [5]
}, },
{ {
title: 'Café Linde: Neue Herbstkarte', slug: 'cafe-linde-herbstkarte', ago: 6, colors: ['#d98a06', '#f3c969'], title: 'Café Linde: Neue Herbstkarte', slug: 'cafe-linde-herbstkarte', ago: 6, colors: ['#85357c', '#c98bbf'],
teaser: 'Kürbissuppe, Apfelkuchen und hausgemachter Chai.', teaser: 'Kürbissuppe, Apfelkuchen und hausgemachter Chai.',
content: '<p>Ab sofort gibt es im Café Linde die neue Herbstkarte. Probiert unbedingt den <em>Apfelkuchen mit Streuseln</em> – die Äpfel stammen aus unserem eigenen Garten!</p>', content: '<p>Ab sofort gibt es im Café Linde die neue Herbstkarte. Probiert unbedingt den <em>Apfelkuchen mit Streuseln</em> – die Äpfel stammen aus unserem eigenen Garten!</p>',
contacts: [2] contacts: [2]
}, },
{ {
title: 'Werkstattrat-Wahl: Das sind die Ergebnisse', slug: 'werkstattrat-wahl', ago: 12, colors: ['#4b56cc', '#9aa3f0'], title: 'Werkstattrat-Wahl: Das sind die Ergebnisse', slug: 'werkstattrat-wahl', ago: 12, colors: ['#1f1a52', '#5d6073'],
teaser: 'Der neue Werkstattrat hat seine Arbeit aufgenommen.', teaser: 'Der neue Werkstattrat hat seine Arbeit aufgenommen.',
content: '<p>Die Wahl zum Werkstattrat ist abgeschlossen. Die Wahlbeteiligung lag bei 71 Prozent – herzlichen Dank an alle, die gewählt haben!</p><p>Jonas Pieper wurde zum Vorsitzenden gewählt.</p>', content: '<p>Die Wahl zum Werkstattrat ist abgeschlossen. Die Wahlbeteiligung lag bei 71 Prozent – herzlichen Dank an alle, die gewählt haben!</p><p>Jonas Pieper wurde zum Vorsitzenden gewählt.</p>',
contentEasy: '<p>Wir haben den Werkstatt·rat gewählt.</p><p>Viele Menschen haben mit·gemacht.</p><p>Jonas Pieper ist jetzt der Chef vom Werkstatt·rat.</p>', contentEasy: '<p>Wir haben den Werkstatt·rat gewählt.</p><p>Viele Menschen haben mit·gemacht.</p><p>Jonas Pieper ist jetzt der Chef vom Werkstatt·rat.</p>',
contacts: [3] contacts: [3]
}, },
{ {
title: 'Erste-Hilfe-Kurs für Beschäftigte', slug: 'erste-hilfe-kurs', ago: 20, colors: ['#cf3f74', '#f29bbb'], title: 'Erste-Hilfe-Kurs für Beschäftigte', slug: 'erste-hilfe-kurs', ago: 20, colors: ['#4a3f9e', '#b9bde0'],
teaser: 'Im November gibt es wieder freie Plätze.', teaser: 'Im November gibt es wieder freie Plätze.',
content: '<p>Im Erste-Hilfe-Kurs lernst du, was im Notfall zu tun ist: Notruf absetzen, stabile Seitenlage, Pflaster und Verband. Anmeldung beim Sozialen Dienst.</p>', content: '<p>Im Erste-Hilfe-Kurs lernst du, was im Notfall zu tun ist: Notruf absetzen, stabile Seitenlage, Pflaster und Verband. Anmeldung beim Sozialen Dienst.</p>',
contacts: [0] contacts: [0]

View file

@ -1,59 +1,68 @@
@import 'tailwindcss'; @import 'tailwindcss';
@import '@fontsource-variable/atkinson-hyperlegible-next'; @import '@fontsource-variable/montserrat';
@import '@fontsource-variable/bricolage-grotesque'; @import '@fontsource-variable/montserrat/wght-italic.css';
@plugin '@tailwindcss/typography'; @plugin '@tailwindcss/typography';
/* ─── Design-Tokens ────────────────────────────────────────────────────────── /* ─── Design-Tokens ──────────────────────────────────────────────────────────
Alle Farben laufen über CSS-Variablen, damit Hell/Dunkel und die Zwei Markenfarben aus den Einstellungen (--brand, --accent), alles andere
Markenfarbe aus den Einstellungen überall automatisch greifen. */ wird daraus abgeleitet. So passt das Farbschema zu jeder Einrichtung. */
:root { :root {
--brand: #0e7c66; --brand: #2e2672;
--bg: #f7f5f0; --accent: #85357c;
--bg: #ffffff;
--surface: #ffffff; --surface: #ffffff;
--surface-2: #f0ede6; /* ruhige Flächen: Lavendel, aus der Markenfarbe abgeleitet */
--ink: #1d2024; --surface-2: color-mix(in oklab, var(--brand) 8%, white);
--ink-2: #545b64; --ink: color-mix(in oklab, var(--brand) 92%, black);
--ink-3: #7c848e; --ink-2: color-mix(in oklab, var(--brand) 40%, #5d6073);
--line: #e4e0d7; --ink-3: color-mix(in oklab, var(--brand) 22%, #7f84a3);
--shadow: 0 1px 2px rgb(40 30 10 / 0.05), 0 6px 20px -8px rgb(40 30 10 / 0.12); --line: color-mix(in oklab, var(--brand) 13%, white);
--shadow-lg: 0 2px 4px rgb(40 30 10 / 0.05), 0 18px 40px -16px rgb(40 30 10 / 0.25); --shadow: 0 1px 2px rgb(20 16 60 / 0.05), 0 8px 24px -12px rgb(20 16 60 / 0.14);
--brand-soft: color-mix(in oklab, var(--brand) 12%, var(--surface)); --shadow-lg: 0 2px 6px rgb(20 16 60 / 0.06), 0 24px 48px -20px rgb(20 16 60 / 0.3);
--brand-ink: color-mix(in oklab, var(--brand) 80%, black); --brand-soft: color-mix(in oklab, var(--brand) 10%, white);
--danger: #c2412d; --brand-ink: var(--brand);
--accent-soft: color-mix(in oklab, var(--accent) 11%, white);
--accent-ink: var(--accent);
--on-brand: #ffffff;
--danger: #b3261e;
color-scheme: light; color-scheme: light;
} }
:root[data-theme='dark'] { :root[data-theme='dark'] {
--bg: #111315; --bg: #131129;
--surface: #1a1d20; --surface: #1b1839;
--surface-2: #23272b; --surface-2: #242050;
--ink: #eef0f2; --ink: #efedfb;
--ink-2: #b4bac1; --ink-2: #bdb9dc;
--ink-3: #8a929b; --ink-3: #8f8bb8;
--line: #2e3338; --line: #302b63;
--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px -8px rgb(0 0 0 / 0.5); --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px -16px rgb(0 0 0 / 0.7); --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 48px -20px rgb(0 0 0 / 0.75);
--brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface)); --brand-soft: color-mix(in oklab, var(--brand) 45%, var(--surface));
--brand-ink: color-mix(in oklab, var(--brand) 55%, white); --brand-ink: color-mix(in oklab, var(--brand) 35%, white);
--danger: #f08a78; --accent-soft: color-mix(in oklab, var(--accent) 35%, var(--surface));
--accent-ink: color-mix(in oklab, var(--accent) 45%, white);
--danger: #f2a39b;
color-scheme: dark; color-scheme: dark;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root[data-theme='system'] { :root[data-theme='system'] {
--bg: #111315; --bg: #131129;
--surface: #1a1d20; --surface: #1b1839;
--surface-2: #23272b; --surface-2: #242050;
--ink: #eef0f2; --ink: #efedfb;
--ink-2: #b4bac1; --ink-2: #bdb9dc;
--ink-3: #8a929b; --ink-3: #8f8bb8;
--line: #2e3338; --line: #302b63;
--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px -8px rgb(0 0 0 / 0.5); --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px -16px rgb(0 0 0 / 0.7); --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 48px -20px rgb(0 0 0 / 0.75);
--brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface)); --brand-soft: color-mix(in oklab, var(--brand) 45%, var(--surface));
--brand-ink: color-mix(in oklab, var(--brand) 55%, white); --brand-ink: color-mix(in oklab, var(--brand) 35%, white);
--danger: #f08a78; --accent-soft: color-mix(in oklab, var(--accent) 35%, var(--surface));
--accent-ink: color-mix(in oklab, var(--accent) 45%, white);
--danger: #f2a39b;
color-scheme: dark; color-scheme: dark;
} }
} }
@ -64,8 +73,8 @@
:root[data-size='xl'] { font-size: 132%; } :root[data-size='xl'] { font-size: 132%; }
@theme inline { @theme inline {
--font-sans: 'Atkinson Hyperlegible Next Variable', ui-sans-serif, system-ui, sans-serif; --font-sans: 'Montserrat Variable', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
--font-display: 'Bricolage Grotesque Variable', 'Atkinson Hyperlegible Next Variable', ui-sans-serif, sans-serif; --font-display: 'Montserrat Variable', ui-sans-serif, system-ui, sans-serif;
--color-bg: var(--bg); --color-bg: var(--bg);
--color-surface: var(--surface); --color-surface: var(--surface);
@ -77,6 +86,10 @@
--color-brand: var(--brand); --color-brand: var(--brand);
--color-brand-soft: var(--brand-soft); --color-brand-soft: var(--brand-soft);
--color-brand-ink: var(--brand-ink); --color-brand-ink: var(--brand-ink);
--color-accent: var(--accent);
--color-accent-soft: var(--accent-soft);
--color-accent-ink: var(--accent-ink);
--color-on-brand: var(--on-brand);
--color-danger: var(--danger); --color-danger: var(--danger);
--color-tone: var(--tone); --color-tone: var(--tone);
--color-tone-soft: var(--tone-soft); --color-tone-soft: var(--tone-soft);
@ -86,30 +99,30 @@
--shadow-float: var(--shadow-lg); --shadow-float: var(--shadow-lg);
} }
/* ─── Farbtöne für Kacheln & Seiten (siehe src/lib/palette.ts) ─────────────── */ /* ─── Signalfarben für die Redaktion (Status, Statistik) ───────────────────── */
.tone-coral { --tone: #e2553a; } .tone-coral { --tone: #c0442b; }
.tone-amber { --tone: #d98a06; } .tone-amber { --tone: #b86e00; }
.tone-lime { --tone: #6f9b17; } .tone-lime { --tone: #5c8a12; }
.tone-emerald { --tone: #1b9164; } .tone-emerald { --tone: #1b8a5e; }
.tone-teal { --tone: #0d8589; } .tone-teal { --tone: #0d7f83; }
.tone-sky { --tone: #1f7fca; } .tone-sky { --tone: #1f6fb8; }
.tone-indigo { --tone: #4b56cc; } .tone-indigo { --tone: #3d45b8; }
.tone-violet { --tone: #8448c8; } .tone-violet { --tone: #7a3fb8; }
.tone-rose { --tone: #cf3f74; } .tone-rose { --tone: #b83468; }
.tone-slate { --tone: #56647a; } .tone-slate { --tone: #56647a; }
[class*='tone-'] { [class*='tone-'] {
--tone-soft: color-mix(in oklab, var(--tone) 13%, var(--surface)); --tone-soft: color-mix(in oklab, var(--tone) 12%, var(--surface));
--tone-ink: color-mix(in oklab, var(--tone) 78%, var(--ink)); --tone-ink: color-mix(in oklab, var(--tone) 85%, var(--ink));
} }
:root[data-theme='dark'] [class*='tone-'] { :root[data-theme='dark'] [class*='tone-'] {
--tone-soft: color-mix(in oklab, var(--tone) 24%, var(--surface)); --tone-soft: color-mix(in oklab, var(--tone) 26%, var(--surface));
--tone-ink: color-mix(in oklab, var(--tone) 45%, white); --tone-ink: color-mix(in oklab, var(--tone) 45%, white);
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root[data-theme='system'] [class*='tone-'] { :root[data-theme='system'] [class*='tone-'] {
--tone-soft: color-mix(in oklab, var(--tone) 24%, var(--surface)); --tone-soft: color-mix(in oklab, var(--tone) 26%, var(--surface));
--tone-ink: color-mix(in oklab, var(--tone) 45%, white); --tone-ink: color-mix(in oklab, var(--tone) 45%, white);
} }
} }
@ -125,81 +138,96 @@
background: var(--bg); background: var(--bg);
color: var(--ink); color: var(--ink);
font-family: var(--font-sans); font-family: var(--font-sans);
line-height: 1.55; font-weight: 500;
line-height: 1.6;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
h1, h2, h3, .font-display { h1, h2, h3, .font-display {
font-family: var(--font-display); font-family: var(--font-display);
font-optical-sizing: auto; font-weight: 700;
letter-spacing: -0.015em; letter-spacing: -0.01em;
line-height: 1.15; line-height: 1.2;
text-wrap: balance;
} }
:focus-visible { :focus-visible {
outline: 3px solid var(--brand); outline: 3px solid var(--accent);
outline-offset: 2px; outline-offset: 2px;
border-radius: 6px; border-radius: 6px;
} }
::selection { ::selection {
background: color-mix(in oklab, var(--brand) 30%, transparent); background: color-mix(in oklab, var(--accent) 25%, transparent);
} }
} }
@layer components { @layer components {
.card { .card {
background: var(--surface); background: var(--surface);
border-radius: 1.25rem; border-radius: 1rem;
box-shadow: var(--shadow); border: 1px solid var(--line);
border: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
} }
.pressable { .pressable {
transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease; transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
} }
.pressable:hover { .pressable:hover {
box-shadow: var(--shadow-lg); box-shadow: var(--shadow);
} border-color: color-mix(in oklab, var(--brand) 25%, var(--line));
.pressable:active {
transform: scale(0.98);
} }
.btn { .btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0.5rem; gap: 0.55rem;
min-height: 2.75rem; min-height: 2.75rem;
padding: 0.5rem 1.1rem; padding: 0.5rem 1.25rem;
border-radius: 999px; border-radius: 999px;
font-weight: 600; font-weight: 700;
transition: background-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
white-space: nowrap; white-space: nowrap;
} }
.btn:active { transform: scale(0.97); }
.btn-primary { .btn-primary {
background: var(--brand); background: var(--brand);
color: white; color: var(--on-brand);
box-shadow: 0 6px 16px -8px var(--brand);
} }
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 88%, black); } .btn-primary:hover { background: color-mix(in oklab, var(--brand) 85%, black); }
.btn-accent {
background: var(--accent);
color: #fff;
}
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 85%, black); }
.btn-soft { .btn-soft {
background: var(--brand-soft); background: var(--brand-soft);
color: var(--brand-ink); color: var(--brand-ink);
} }
.btn-soft:hover { background: color-mix(in oklab, var(--brand) 20%, var(--surface)); } .btn-soft:hover { background: color-mix(in oklab, var(--brand) 16%, var(--surface)); }
.btn-ghost { .btn-ghost {
color: var(--ink-2); color: var(--ink-2);
} }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); } .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: color-mix(in oklab, var(--danger) 14%, var(--surface)); color: var(--danger); } .btn-danger { background: color-mix(in oklab, var(--danger) 12%, var(--surface)); color: var(--danger); }
.btn-danger:hover { background: color-mix(in oklab, var(--danger) 22%, var(--surface)); } .btn-danger:hover { background: color-mix(in oklab, var(--danger) 20%, var(--surface)); }
.btn-sm { min-height: 2.25rem; padding: 0.3rem 0.85rem; font-size: 0.9rem; } .btn-sm { min-height: 2.25rem; padding: 0.3rem 0.95rem; font-size: 0.9rem; }
.btn-icon { padding: 0; width: 2.75rem; } .btn-icon { padding: 0; width: 2.75rem; }
/* Gesperrte Kleinzeile in Großbuchstaben */
.eyebrow { .eyebrow {
font-size: 0.78rem; font-size: 0.78rem;
font-weight: 700; font-weight: 500;
letter-spacing: 0.08em; letter-spacing: 0.2em;
text-transform: uppercase; text-transform: uppercase;
color: var(--ink-3); color: var(--ink-2);
}
/* … mit gepunkteter Linie bis zum Rand */
.eyebrow-rule {
display: flex;
align-items: center;
gap: 0.9rem;
}
.eyebrow-rule::after {
content: '';
flex: 1;
max-width: 16rem;
border-bottom: 2px dotted var(--line);
} }
/* Fließtext aus dem Editor */ /* Fließtext aus dem Editor */
@ -207,19 +235,21 @@
@apply prose max-w-none; @apply prose max-w-none;
--tw-prose-body: var(--ink); --tw-prose-body: var(--ink);
--tw-prose-headings: var(--ink); --tw-prose-headings: var(--ink);
--tw-prose-links: var(--brand-ink); --tw-prose-links: var(--accent-ink);
--tw-prose-bold: var(--ink); --tw-prose-bold: var(--ink);
--tw-prose-bullets: var(--brand); --tw-prose-bullets: var(--accent);
--tw-prose-counters: var(--ink-2); --tw-prose-counters: var(--ink-2);
--tw-prose-quotes: var(--ink-2); --tw-prose-quotes: var(--ink-2);
--tw-prose-quote-borders: var(--brand); --tw-prose-quote-borders: var(--accent);
--tw-prose-hr: var(--line); --tw-prose-hr: var(--line);
font-size: 1.08rem; font-size: 1.05rem;
line-height: 1.7; line-height: 1.75;
font-weight: 500;
} }
.rich :where(h2, h3) { font-family: var(--font-display); } .rich :where(h2, h3) { font-family: var(--font-display); font-weight: 700; }
.rich :where(strong) { font-weight: 700; }
.rich :where(img) { border-radius: 1rem; } .rich :where(img) { border-radius: 1rem; }
.rich :where(a) { text-underline-offset: 3px; } .rich :where(a) { text-underline-offset: 3px; font-weight: 600; }
.rich :where(p:first-child) { margin-top: 0; } .rich :where(p:first-child) { margin-top: 0; }
/* Formularfelder (öffentlich & Admin) */ /* Formularfelder (öffentlich & Admin) */
@ -227,23 +257,24 @@
display: block; display: block;
width: 100%; width: 100%;
min-height: 2.75rem; min-height: 2.75rem;
padding: 0.6rem 0.9rem; padding: 0.6rem 0.95rem;
border-radius: 0.8rem; border-radius: 0.75rem;
border: 1.5px solid var(--line); border: 1.5px solid var(--line);
background: var(--surface); background: var(--surface);
color: var(--ink); color: var(--ink);
font-weight: 500;
transition: border-color 0.15s, box-shadow 0.15s; transition: border-color 0.15s, box-shadow 0.15s;
} }
.field:focus { .field:focus {
outline: none; outline: none;
border-color: var(--brand); border-color: var(--brand);
box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent);
} }
.field::placeholder { color: var(--ink-3); } .field::placeholder { color: var(--ink-3); }
.label { .label {
display: block; display: block;
font-weight: 600; font-weight: 700;
font-size: 0.92rem; font-size: 0.9rem;
margin-bottom: 0.35rem; margin-bottom: 0.35rem;
} }
.hint { .hint {

View file

@ -1,8 +1,8 @@
<script lang="ts"> <script lang="ts">
import Icon from '$lib/components/Icon.svelte'; import Icon from '$lib/components/Icon.svelte';
import { ICONS } from '$lib/icons'; import { ICONS } from '$lib/icons';
import { TONES, toneNames } from '$lib/palette';
/** Symbol-Auswahl für Kacheln und Seiten. Die Farbe bleibt gespeichert, wird aber nicht mehr gewählt. */
let { icon = $bindable('star'), color = $bindable('sky'), label = '' }: { icon?: string; color?: string; label?: string } = $props(); let { icon = $bindable('star'), color = $bindable('sky'), label = '' }: { icon?: string; color?: string; label?: string } = $props();
let showAll = $state(false); let showAll = $state(false);
</script> </script>
@ -11,36 +11,18 @@
<input type="hidden" name="icon" value={icon} /> <input type="hidden" name="icon" value={icon} />
<input type="hidden" name="color" value={color} /> <input type="hidden" name="color" value={color} />
<div class="flex items-center gap-4"> <div class="flex items-center gap-4 rounded-full bg-surface-2 pl-2 pr-5 py-2 max-w-sm">
<div class="tone-{color} flex items-center gap-3 rounded-2xl bg-tone-soft p-3 pr-5"> <span class="grid place-items-center size-12 rounded-full bg-surface text-brand-ink"><Icon name={icon} class="size-[1.35rem]" /></span>
<span class="grid place-items-center size-12 rounded-2xl bg-tone text-white"><Icon name={icon} class="size-6" /></span> <span class="font-bold text-brand-ink truncate">{label || 'Vorschau'}</span>
<span class="font-display font-bold text-tone-ink">{label || 'Vorschau'}</span>
</div>
</div> </div>
<fieldset>
<legend class="label">Farbe</legend>
<div class="flex flex-wrap gap-2">
{#each toneNames as t (t)}
<button
type="button"
class="tone-{t} size-9 rounded-full bg-tone ring-offset-2 ring-offset-surface transition {color === t ? 'ring-3 ring-tone' : 'hover:scale-110'}"
title={TONES[t]}
aria-label={TONES[t]}
aria-pressed={color === t}
onclick={() => (color = t)}
></button>
{/each}
</div>
</fieldset>
<fieldset> <fieldset>
<legend class="label">Symbol</legend> <legend class="label">Symbol</legend>
<div class="grid grid-cols-8 sm:grid-cols-11 gap-1.5 {showAll ? '' : 'max-h-[5.8rem] overflow-hidden'}"> <div class="grid grid-cols-8 sm:grid-cols-11 gap-1.5 {showAll ? '' : 'max-h-[5.8rem] overflow-hidden'}">
{#each Object.entries(ICONS) as [key, def] (key)} {#each Object.entries(ICONS) as [key, def] (key)}
<button <button
type="button" type="button"
class="tone-{color} grid place-items-center aspect-square rounded-xl transition {icon === key ? 'bg-tone text-white' : 'bg-surface-2 text-ink-2 hover:bg-tone-soft hover:text-tone-ink'}" class="grid place-items-center aspect-square rounded-xl transition {icon === key ? 'bg-brand text-on-brand' : 'bg-surface-2 text-ink-2 hover:bg-brand-soft hover:text-brand-ink'}"
title={def.label} title={def.label}
aria-label={def.label} aria-label={def.label}
aria-pressed={icon === key} aria-pressed={icon === key}
@ -50,7 +32,7 @@
</button> </button>
{/each} {/each}
</div> </div>
<button type="button" class="text-sm font-semibold text-brand-ink mt-2" onclick={() => (showAll = !showAll)}> <button type="button" class="text-sm font-bold text-brand-ink mt-2" onclick={() => (showAll = !showAll)}>
{showAll ? 'Weniger anzeigen' : 'Alle Symbole anzeigen'} {showAll ? 'Weniger anzeigen' : 'Alle Symbole anzeigen'}
</button> </button>
</fieldset> </fieldset>

View file

@ -22,7 +22,7 @@
{@const Ico = iconFor(a.file.mimeType)} {@const Ico = iconFor(a.file.mimeType)}
<li> <li>
<a href={a.file.url} target="_blank" rel="noopener" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2"> <a href={a.file.url} target="_blank" rel="noopener" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
<span class="grid place-items-center size-10 rounded-xl bg-brand-soft text-brand-ink shrink-0"><Ico class="size-5" /></span> <span class="grid place-items-center size-10 rounded-full bg-surface-2 text-brand-ink shrink-0"><Ico class="size-5" /></span>
<span class="flex-1 min-w-0"> <span class="flex-1 min-w-0">
<span class="block font-semibold truncate">{a.title}</span> <span class="block font-semibold truncate">{a.title}</span>
<span class="block text-xs text-ink-3">{kind(a.file.mimeType, a.file.name)} · {size(a.file.size)}</span> <span class="block text-xs text-ink-3">{kind(a.file.mimeType, a.file.name)} · {size(a.file.size)}</span>

View file

@ -15,16 +15,16 @@
const tel = $derived(contact.phone.replace(/[^\d+]/g, '')); const tel = $derived(contact.phone.replace(/[^\d+]/g, ''));
</script> </script>
<div class="card p-4 flex gap-4"> <div class="rounded-[1.5rem] bg-surface-2 p-4 flex gap-4">
{#if contact.photo} {#if contact.photo}
<img src={contact.photo.thumb} alt="" class="size-16 rounded-2xl object-cover shrink-0" loading="lazy" /> <img src={contact.photo.thumb} alt="" class="size-16 rounded-full object-cover shrink-0" loading="lazy" />
{:else} {:else}
<div class="size-16 rounded-2xl bg-brand-soft text-brand-ink grid place-items-center font-display font-bold text-xl shrink-0" aria-hidden="true"> <div class="size-16 rounded-full bg-surface text-brand-ink grid place-items-center font-bold text-xl shrink-0" aria-hidden="true">
{initials} {initials}
</div> </div>
{/if} {/if}
<div class="min-w-0 flex-1"> <div class="min-w-0 flex-1">
<p class="font-display font-bold text-lg leading-tight">{contact.name}</p> <p class="font-bold text-lg text-brand-ink leading-tight">{contact.name}</p>
{#if contact.role}<p class="text-sm text-ink-2">{contact.role}</p>{/if} {#if contact.role}<p class="text-sm text-ink-2">{contact.role}</p>{/if}
{#if contact.location} {#if contact.location}
<p class="text-sm text-ink-3 flex items-center gap-1 mt-0.5"><MapPin class="size-3.5" />{contact.location}</p> <p class="text-sm text-ink-3 flex items-center gap-1 mt-0.5"><MapPin class="size-3.5" />{contact.location}</p>
@ -32,10 +32,10 @@
{#if contact.phone || contact.email} {#if contact.phone || contact.email}
<div class="flex flex-wrap gap-2 mt-3"> <div class="flex flex-wrap gap-2 mt-3">
{#if contact.phone} {#if contact.phone}
<a href="tel:{tel}" class="btn btn-soft btn-sm"><Phone class="size-4" />Anrufen</a> <a href="tel:{tel}" class="btn btn-primary btn-sm"><Phone class="size-4" />Anrufen</a>
{/if} {/if}
{#if contact.email} {#if contact.email}
<a href="mailto:{contact.email}" class="btn btn-soft btn-sm"><Mail class="size-4" />E-Mail</a> <a href="mailto:{contact.email}" class="btn bg-surface text-brand-ink hover:bg-brand-soft btn-sm"><Mail class="size-4" />E-Mail</a>
{/if} {/if}
</div> </div>
{/if} {/if}

View file

@ -3,8 +3,8 @@
let { title, children, icon }: { title: string; children?: Snippet; icon?: Snippet } = $props(); let { title, children, icon }: { title: string; children?: Snippet; icon?: Snippet } = $props();
</script> </script>
<div class="card p-8 text-center flex flex-col items-center gap-3"> <div class="rounded-[1.75rem] bg-surface-2 p-10 text-center flex flex-col items-center gap-3">
{#if icon}<div class="grid place-items-center size-14 rounded-2xl bg-brand-soft text-brand">{@render icon()}</div>{/if} {#if icon}<div class="grid place-items-center size-14 rounded-full bg-surface text-brand-ink">{@render icon()}</div>{/if}
<p class="font-display font-bold text-lg">{title}</p> <p class="font-bold text-lg text-brand-ink">{title}</p>
{#if children}<div class="text-ink-2 max-w-sm">{@render children()}</div>{/if} {#if children}<div class="text-ink-2 max-w-sm">{@render children()}</div>{/if}
</div> </div>

View file

@ -1,7 +1,6 @@
<script lang="ts"> <script lang="ts">
import MapPin from '@lucide/svelte/icons/map-pin'; import MapPin from '@lucide/svelte/icons/map-pin';
import Clock from '@lucide/svelte/icons/clock'; import Clock from '@lucide/svelte/icons/clock';
import DoorClosed from '@lucide/svelte/icons/door-closed';
import { dayOfMonth, eventWhen, monthAbbr, weekday } from '$lib/dates'; import { dayOfMonth, eventWhen, monthAbbr, weekday } from '$lib/dates';
import type { EventItem } from '$lib/types'; import type { EventItem } from '$lib/types';
@ -9,22 +8,20 @@
const closure = $derived(event.kind === 'closure'); const closure = $derived(event.kind === 'closure');
</script> </script>
<article class="flex gap-4 p-3 rounded-2xl {closure ? 'tone-amber bg-tone-soft' : 'card'}"> <article class="flex gap-5 py-4">
<div <div
class="shrink-0 w-16 rounded-xl text-center py-2 {closure ? 'bg-tone text-white' : 'bg-brand-soft text-brand-ink'}" class="shrink-0 grid place-items-center content-center size-[4.5rem] rounded-full text-center leading-none {closure ? 'bg-accent text-white' : 'bg-surface-2 text-brand-ink'}"
aria-hidden="true" aria-hidden="true"
> >
<div class="text-xs font-bold uppercase tracking-wide">{weekday(event.startDate)}</div> <span class="text-[0.65rem] font-semibold uppercase tracking-[0.15em] opacity-75">{weekday(event.startDate)}</span>
<div class="font-display text-2xl font-extrabold leading-none my-0.5">{dayOfMonth(event.startDate)}</div> <span class="text-2xl font-bold my-0.5">{dayOfMonth(event.startDate)}</span>
<div class="text-xs font-semibold">{monthAbbr(event.startDate)}</div> <span class="text-[0.7rem] font-semibold uppercase tracking-wider opacity-75">{monthAbbr(event.startDate)}</span>
</div> </div>
<div class="min-w-0 py-0.5"> <div class="min-w-0 pt-1">
{#if closure} {#if closure}
<p class="text-xs font-bold uppercase tracking-wide text-tone-ink flex items-center gap-1"> <p class="eyebrow !text-accent-ink !text-[0.7rem]">Geschlossen</p>
<DoorClosed class="size-3.5" /> Geschlossen
</p>
{/if} {/if}
<h3 class="font-display font-bold text-[1.05rem] leading-snug">{event.title}</h3> <h3 class="font-bold text-lg text-brand-ink leading-snug">{event.title}</h3>
<p class="text-sm text-ink-2 mt-1 flex flex-wrap gap-x-4 gap-y-1"> <p class="text-sm text-ink-2 mt-1 flex flex-wrap gap-x-4 gap-y-1">
<span class="inline-flex items-center gap-1.5"><Clock class="size-4 text-ink-3" />{eventWhen(event)}</span> <span class="inline-flex items-center gap-1.5"><Clock class="size-4 text-ink-3" />{eventWhen(event)}</span>
{#if event.location} {#if event.location}
@ -32,7 +29,7 @@
{/if} {/if}
</p> </p>
{#if expanded && event.description} {#if expanded && event.description}
<p class="text-sm text-ink-2 mt-2 whitespace-pre-line">{event.description}</p> <p class="text-sm text-ink-2 mt-2 whitespace-pre-line max-w-prose">{event.description}</p>
{/if} {/if}
</div> </div>
</article> </article>

View file

@ -0,0 +1,60 @@
<script lang="ts">
import ImageIcon from '@lucide/svelte/icons/image';
import type { MediaItem } from '$lib/types';
type Highlight = { eyebrow: string; title: string; text: string; href: string };
let {
image,
headline,
tagline,
highlight
}: { image: MediaItem | null; headline: string; tagline: string; highlight: Highlight | null } = $props();
</script>
<section class="relative -mx-4 -mt-6 lg:mx-0 lg:mt-0 lg:rounded-[1.75rem] overflow-hidden bg-brand">
<div class="relative h-[31rem] sm:h-[34rem] lg:h-[38rem]">
{#if image}
<img src={image.url} alt={image.alt} class="absolute inset-0 size-full object-cover object-[50%_30%]" fetchpriority="high" />
{:else}
<!-- Platzhalter, bis in den Einstellungen ein Titelbild gewählt ist -->
<div class="absolute inset-0 bg-[linear-gradient(135deg,var(--brand)_0%,color-mix(in_oklab,var(--brand)_60%,var(--accent))_100%)]">
<p class="absolute left-5 top-5 lg:left-8 lg:top-7 inline-flex items-center gap-2 rounded-full bg-white/10 px-3 py-1.5 text-xs font-semibold text-white/75">
<ImageIcon class="size-4" /> Platzhalter für das Titelbild
</p>
</div>
{/if}
{#if highlight}
<a
href={highlight.href}
class="absolute right-0 top-16 lg:top-8 max-w-[80%] sm:max-w-md rounded-l-[2rem] bg-surface-2/95 backdrop-blur-sm pl-6 pr-5 lg:pr-8 py-3 sm:py-4 text-right shadow-float hover:bg-surface transition-colors"
>
<span class="eyebrow block">{highlight.eyebrow}</span>
<span class="block font-bold sm:text-lg text-brand-ink leading-snug mt-1 line-clamp-2">{highlight.title}</span>
{#if highlight.text}<span class="hidden sm:block text-sm text-ink-2 mt-1 line-clamp-2">{highlight.text}</span>{/if}
</a>
{/if}
<!-- Akzentkreis mit umlaufendem Text -->
<div
aria-hidden="true"
class="absolute rounded-full bg-accent size-[25rem] -right-20 -bottom-36 sm:size-[30rem] sm:-bottom-40 lg:size-[36rem] lg:right-0 lg:-bottom-48"
>
{#if tagline}
<svg viewBox="0 0 100 100" class="absolute inset-0 size-full">
<path id="hero-ring" d="M 7.7 58 A 43 43 0 1 1 92.3 58" fill="none" />
<text fill="white" font-size="3.6" font-weight="500" letter-spacing="0.9" text-anchor="middle" style="text-transform: uppercase">
<!-- zentriert knapp rechts der Kreismitte, damit links Platz für die Überschrift bleibt -->
<textPath href="#hero-ring" startOffset="57%">{tagline}</textPath>
</text>
</svg>
{/if}
</div>
<h1
class="absolute left-5 right-10 bottom-10 sm:left-8 sm:right-auto sm:max-w-md lg:left-auto lg:right-16 lg:bottom-16 lg:max-w-[28rem] text-white font-bold text-[2.2rem] sm:text-[2.75rem] lg:text-[3.25rem] leading-[1.1] [text-shadow:0_2px_24px_rgb(0_0_0/0.25)]"
>
{headline}
</h1>
</div>
</section>

View file

@ -25,12 +25,12 @@
bind:this={dialog} bind:this={dialog}
onclose={() => (open = false)} onclose={() => (open = false)}
onclick={(e) => e.target === dialog && (open = false)} onclick={(e) => e.target === dialog && (open = false)}
class="sheet m-0 ml-auto h-dvh max-h-dvh w-full max-w-md bg-bg text-ink p-0 backdrop:bg-black/40 backdrop:backdrop-blur-sm" class="sheet m-0 ml-auto h-dvh max-h-dvh w-full max-w-md bg-surface-2 text-ink p-0 backdrop:bg-black/40 backdrop:backdrop-blur-sm"
aria-label="Menü" aria-label="Menü"
> >
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<div class="flex items-center justify-between px-5 h-16 safe-top border-b border-line/60"> <div class="flex items-center justify-between px-5 h-16 safe-top border-b border-line/60">
<h2 class="font-display text-xl font-bold">Menü</h2> <h2 class="text-xl font-bold text-brand-ink">Menü</h2>
<button class="btn btn-ghost btn-icon" aria-label="Menü schließen" onclick={() => (open = false)}> <button class="btn btn-ghost btn-icon" aria-label="Menü schließen" onclick={() => (open = false)}>
<X class="size-6" /> <X class="size-6" />
</button> </button>
@ -43,11 +43,11 @@
<ul class="card divide-y divide-line/70 overflow-hidden"> <ul class="card divide-y divide-line/70 overflow-hidden">
{#each pages as p (p.id)} {#each pages as p (p.id)}
<li> <li>
<a href="/s/{p.slug}" class="tone-{p.color} flex items-center gap-3 px-4 py-3 hover:bg-surface-2"> <a href="/s/{p.slug}" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
<span class="grid place-items-center size-9 rounded-xl bg-tone-soft text-tone-ink"> <span class="grid place-items-center size-9 rounded-full bg-surface-2 text-brand-ink">
<Icon name={p.icon} class="size-5" /> <Icon name={p.icon} class="size-5" />
</span> </span>
<span class="flex-1 font-semibold">{p.title}</span> <span class="flex-1 font-bold text-brand-ink">{p.title}</span>
<ChevronRight class="size-5 text-ink-3" /> <ChevronRight class="size-5 text-ink-3" />
</a> </a>
</li> </li>

View file

@ -0,0 +1,15 @@
<script lang="ts">
import type { Snippet } from 'svelte';
/** Seitenkopf: gesperrte Kleinzeile mit Punktlinie, darunter die Überschrift. */
let { eyebrow, title, intro = '', actions }: { eyebrow: string; title: string; intro?: string; actions?: Snippet } = $props();
</script>
<header class="mb-8 lg:mb-10 space-y-3">
<p class="eyebrow eyebrow-rule">{eyebrow}</p>
<div class="flex flex-wrap items-end justify-between gap-4">
<h1 class="text-3xl sm:text-4xl text-brand-ink">{title}</h1>
{#if actions}<div class="flex flex-wrap gap-2">{@render actions()}</div>{/if}
</div>
{#if intro}<p class="text-lg text-ink-2 max-w-2xl">{intro}</p>{/if}
</header>

View file

@ -4,46 +4,42 @@
import { relative } from '$lib/dates'; import { relative } from '$lib/dates';
import type { PostCard } from '$lib/types'; import type { PostCard } from '$lib/types';
let { post, variant = 'row' }: { post: PostCard; variant?: 'row' | 'hero' } = $props(); let { post, variant = 'card' }: { post: PostCard; variant?: 'card' | 'row' } = $props();
</script> </script>
{#if variant === 'hero'} {#if variant === 'card'}
<a href="/meldungen/{post.slug}" class="card pressable group block overflow-hidden"> <a href="/meldungen/{post.slug}" class="group block">
<div class="aspect-[16/9] bg-brand-soft overflow-hidden"> <div class="aspect-[3/2] rounded-2xl overflow-hidden bg-surface-2">
{#if post.cover} {#if post.cover}
<img <img
src={post.cover.url} src={post.cover.url}
alt={post.cover.alt} alt={post.cover.alt}
loading="lazy"
class="size-full object-cover transition-transform duration-500 group-hover:scale-[1.03]" class="size-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
/> />
{:else} {:else}
<div class="size-full grid place-items-center text-brand"><Newspaper class="size-14 opacity-50" /></div> <div class="size-full grid place-items-center text-ink-3"><Newspaper class="size-12 opacity-50" /></div>
{/if} {/if}
</div> </div>
<div class="p-5"> <p class="eyebrow !text-accent-ink mt-4 flex items-center gap-1.5">
<p class="text-sm text-ink-3 flex items-center gap-2"> {#if post.pinned}<Pin class="size-3.5" aria-label="Angeheftet" />{/if}
{#if post.pinned}<Pin class="size-4 text-brand" aria-label="Angeheftet" />{/if} {relative(post.publishedAt)}
{relative(post.publishedAt)} </p>
</p> <h3 class="text-xl text-brand-ink mt-1.5 group-hover:underline decoration-2 underline-offset-4 decoration-accent">{post.title}</h3>
<h3 class="font-display text-xl font-bold mt-1">{post.title}</h3> {#if post.teaser}<p class="text-ink-2 mt-2 line-clamp-3">{post.teaser}</p>{/if}
{#if post.teaser}<p class="text-ink-2 mt-2 line-clamp-2">{post.teaser}</p>{/if}
</div>
</a> </a>
{:else} {:else}
<a href="/meldungen/{post.slug}" class="card pressable flex gap-4 p-3 items-center"> <a href="/meldungen/{post.slug}" class="group flex gap-4 items-center">
<div class="size-24 sm:size-28 shrink-0 rounded-2xl overflow-hidden bg-brand-soft"> <div class="size-24 sm:size-28 shrink-0 rounded-2xl overflow-hidden bg-surface-2">
{#if post.cover} {#if post.cover}
<img src={post.cover.thumb} alt={post.cover.alt} class="size-full object-cover" loading="lazy" /> <img src={post.cover.thumb} alt={post.cover.alt} class="size-full object-cover" loading="lazy" />
{:else} {:else}
<div class="size-full grid place-items-center text-brand"><Newspaper class="size-9 opacity-50" /></div> <div class="size-full grid place-items-center text-ink-3"><Newspaper class="size-8 opacity-50" /></div>
{/if} {/if}
</div> </div>
<div class="min-w-0 py-1 pr-1"> <div class="min-w-0">
<p class="text-sm text-ink-3 flex items-center gap-1.5"> <p class="eyebrow !text-accent-ink !text-[0.7rem]">{relative(post.publishedAt)}</p>
{#if post.pinned}<Pin class="size-3.5 text-brand" aria-label="Angeheftet" />{/if} <h3 class="text-[1.05rem] text-brand-ink leading-snug mt-1 line-clamp-2 group-hover:underline decoration-accent underline-offset-4">{post.title}</h3>
{relative(post.publishedAt)}
</p>
<h3 class="font-display font-bold text-[1.08rem] leading-snug mt-0.5 line-clamp-2">{post.title}</h3>
{#if post.teaser}<p class="text-sm text-ink-2 mt-1 line-clamp-2">{post.teaser}</p>{/if} {#if post.teaser}<p class="text-sm text-ink-2 mt-1 line-clamp-2">{post.teaser}</p>{/if}
</div> </div>
</a> </a>

View file

@ -53,7 +53,7 @@
aria-pressed={prefs.current.size === s.value} aria-pressed={prefs.current.size === s.value}
onclick={() => prefs.set({ size: s.value })} onclick={() => prefs.set({ size: s.value })}
> >
<span class="font-display font-bold leading-none {s.scale}">A</span> <span class="font-bold leading-none {s.scale}">A</span>
<span class="text-xs mt-1">{s.label}</span> <span class="text-xs mt-1">{s.label}</span>
</button> </button>
{/each} {/each}

View file

@ -9,7 +9,7 @@
</script> </script>
{#if contentEasy} {#if contentEasy}
<div class="tone-emerald bg-tone-soft text-tone-ink rounded-2xl px-4 py-3 flex items-center gap-3 text-sm"> <div class="bg-accent-soft text-accent-ink rounded-full pl-4 pr-5 py-3 flex items-center gap-3 text-sm font-semibold">
<BookHeart class="size-5 shrink-0" /> <BookHeart class="size-5 shrink-0" />
<span class="flex-1"> <span class="flex-1">
{useEasy ? 'Du liest diesen Text in Leichter Sprache.' : 'Diesen Text gibt es auch in Leichter Sprache.'} {useEasy ? 'Du liest diesen Text in Leichter Sprache.' : 'Diesen Text gibt es auch in Leichter Sprache.'}

View file

@ -1,7 +1,10 @@
<script lang="ts"> <script lang="ts">
import ChevronRight from '@lucide/svelte/icons/chevron-right';
import ArrowUpRight from '@lucide/svelte/icons/arrow-up-right';
import Icon from './Icon.svelte'; import Icon from './Icon.svelte';
let { href, label, icon, color, sub = '' }: { href: string; label: string; icon: string; color: string; sub?: string } = $props(); /** Bereichs-Link: ruhige Pille mit Symbol – führt zu einer Seite, einem Bereich oder einer Website. */
let { href, label, icon, sub = '' }: { href: string; label: string; icon: string; sub?: string } = $props();
const external = $derived(/^https?:\/\//.test(href)); const external = $derived(/^https?:\/\//.test(href));
</script> </script>
@ -9,16 +12,18 @@
{href} {href}
target={external ? '_blank' : undefined} target={external ? '_blank' : undefined}
rel={external ? 'noopener' : undefined} rel={external ? 'noopener' : undefined}
class="tone-{color} pressable group relative flex flex-col justify-between gap-4 rounded-[1.4rem] bg-tone-soft p-4 min-h-32 overflow-hidden" class="group flex items-center gap-4 rounded-full bg-surface-2 hover:bg-brand-soft pl-1.5 pr-4 py-1.5 min-h-14 transition-colors"
> >
<span <span class="grid place-items-center size-11 rounded-full bg-surface text-brand-ink shrink-0 transition-colors group-hover:bg-brand group-hover:text-on-brand">
class="grid place-items-center size-12 rounded-2xl bg-tone text-white shadow-[0_8px_18px_-8px_var(--tone)] transition-transform group-hover:-rotate-6 group-hover:scale-105" <Icon name={icon} class="size-5" strokeWidth={2.1} />
>
<Icon name={icon} class="size-6" />
</span> </span>
<span class="font-display font-bold text-[1.02rem] leading-tight text-tone-ink hyphens-auto" lang="de"> <span class="flex-1 min-w-0 py-1">
{label} <span class="block font-bold text-brand-ink leading-snug hyphens-auto" lang="de">{label}</span>
{#if sub}<span class="block mt-1 font-sans font-normal text-sm text-ink-2">{sub}</span>{/if} {#if sub}<span class="block text-sm text-ink-2 leading-snug mt-0.5 line-clamp-2">{sub}</span>{/if}
</span> </span>
<span aria-hidden="true" class="absolute -right-6 -top-6 size-24 rounded-full bg-tone opacity-[0.07]"></span> {#if external}
<ArrowUpRight class="size-5 text-ink-3 shrink-0" />
{:else}
<ChevronRight class="size-5 text-ink-3 shrink-0 transition-transform group-hover:translate-x-0.5" />
{/if}
</a> </a>

View file

@ -8,12 +8,16 @@ export type AppSettings = {
greeting: string; greeting: string;
/** Kurzer Text unter der Begrüßung */ /** Kurzer Text unter der Begrüßung */
intro: string; intro: string;
/** Markenfarbe als Hex-Wert */ /** Markenfarbe (Schrift, Buttons) als Hex-Wert */
brandColor: string; brandColor: string;
/** Akzentfarbe (Kreis auf der Startseite, Hervorhebungen) */
accentColor: string;
logoId: number | null; logoId: number | null;
/** Großes Bild oben auf der Startseite */ /** Großes Bild oben auf der Startseite */
heroEnabled: boolean; heroEnabled: boolean;
heroImageId: number | null; heroImageId: number | null;
/** Text, der im Kreis auf dem Startbild umläuft (leer = keiner) */
heroTagline: string;
website: string; website: string;
contactEmail: string; contactEmail: string;
contactIntro: string; contactIntro: string;
@ -27,12 +31,14 @@ export type AppSettings = {
export const DEFAULT_SETTINGS: AppSettings = { export const DEFAULT_SETTINGS: AppSettings = {
appName: 'Werkstatt-App', appName: 'Werkstatt-App',
orgName: 'Unsere Werkstätten', orgName: 'Unsere Werkstätten',
greeting: 'Schön, dass du da bist!', greeting: 'Willkommen in deiner Werkstatt!',
intro: 'Hier findest du Neuigkeiten, Termine und alles Wichtige rund um deine Werkstatt.', intro: 'Hier findest du Neuigkeiten, Termine und alles Wichtige rund um deine Werkstatt.',
brandColor: '#0e7c66', brandColor: '#2e2672',
accentColor: '#85357c',
logoId: null, logoId: null,
heroEnabled: true, heroEnabled: true,
heroImageId: null, heroImageId: null,
heroTagline: 'Arbeit, Bildung, Teilhabe',
website: '', website: '',
contactEmail: '', contactEmail: '',
contactIntro: 'Du hast Fragen oder Ideen für die App? Schreib uns gerne!', contactIntro: 'Du hast Fragen oder Ideen für die App? Schreib uns gerne!',

View file

@ -5,7 +5,7 @@
<div class="max-w-md mx-auto text-center py-16 flex flex-col items-center gap-4"> <div class="max-w-md mx-auto text-center py-16 flex flex-col items-center gap-4">
<div class="grid place-items-center size-20 rounded-3xl bg-brand-soft text-brand"><CircleHelp class="size-10" /></div> <div class="grid place-items-center size-20 rounded-3xl bg-brand-soft text-brand"><CircleHelp class="size-10" /></div>
<h1 class="font-display text-3xl font-extrabold">{page.status === 404 ? 'Nicht gefunden' : 'Hoppla!'}</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink">{page.status === 404 ? 'Nicht gefunden' : 'Hoppla!'}</h1>
<p class="text-ink-2">{page.error?.message ?? 'Da ist etwas schiefgelaufen.'}</p> <p class="text-ink-2">{page.error?.message ?? 'Da ist etwas schiefgelaufen.'}</p>
<a href="/" class="btn btn-primary mt-2">Zur Startseite</a> <a href="/" class="btn btn-primary mt-2">Zur Startseite</a>
</div> </div>

View file

@ -17,7 +17,7 @@
const nav = [ const nav = [
{ href: '/', label: 'Start', icon: House }, { href: '/', label: 'Start', icon: House },
{ href: '/meldungen', label: 'Meldungen', icon: Newspaper }, { href: '/meldungen', label: 'Aktuelles', icon: Newspaper },
{ href: '/termine', label: 'Termine', icon: CalendarDays }, { href: '/termine', label: 'Termine', icon: CalendarDays },
{ href: '/merkliste', label: 'Merkliste', icon: Bookmark } { href: '/merkliste', label: 'Merkliste', icon: Bookmark }
]; ];
@ -37,85 +37,85 @@
</a> </a>
<div class="min-h-dvh flex flex-col"> <div class="min-h-dvh flex flex-col">
<header class="sticky top-0 z-30 safe-top bg-bg/80 backdrop-blur-xl border-b border-line/60"> <header class="sticky top-0 z-30 safe-top bg-bg/95 backdrop-blur-md border-b border-line">
<div class="mx-auto max-w-5xl px-4 h-16 flex items-center gap-3"> <div class="mx-auto max-w-6xl px-4 h-16 lg:h-20 flex items-center gap-2">
<a href="/" class="flex items-center gap-3 min-w-0 mr-auto" aria-label="{data.brand.appName} – Startseite"> <a href="/" class="flex items-center gap-3 min-w-0 mr-auto" aria-label="{data.brand.appName} – Startseite">
{#if data.brand.logo} {#if data.brand.logo}
<img src={data.brand.logo.thumb} alt="" class="h-10 w-auto max-w-32 object-contain" /> <img src={data.brand.logo.thumb} alt="" class="h-10 lg:h-12 w-auto max-w-40 object-contain" />
{:else} {:else}
<span class="grid place-items-center size-10 rounded-xl bg-brand text-white font-display font-bold text-lg shadow-card"> <span class="grid place-items-center size-10 rounded-full bg-brand text-on-brand font-bold text-lg">
{data.brand.appName.slice(0, 1)} {data.brand.appName.slice(0, 1)}
</span> </span>
{/if} {/if}
<span class="min-w-0 leading-tight"> <span class="min-w-0 leading-tight">
<span class="block font-display font-bold text-[1.05rem] truncate">{data.brand.appName}</span> <span class="block font-bold text-[1.05rem] text-brand-ink truncate">{data.brand.appName}</span>
<span class="block text-xs text-ink-3 truncate">{data.brand.orgName}</span> <span class="block text-xs text-ink-3 truncate">{data.brand.orgName}</span>
</span> </span>
</a> </a>
<nav class="hidden lg:flex items-center gap-1" aria-label="Hauptnavigation"> <nav class="hidden lg:flex items-center mr-4" aria-label="Hauptnavigation">
{#each nav as item (item.href)} {#each nav as item, i (item.href)}
{#if i > 0}<span aria-hidden="true" class="size-1.5 rounded-full bg-accent mx-3"></span>{/if}
<a <a
href={item.href} href={item.href}
class="btn btn-sm {isActive(item.href) ? 'btn-soft' : 'btn-ghost'}" class="relative py-2 font-bold text-[0.95rem] {isActive(item.href) ? 'text-brand-ink' : 'text-ink-2 hover:text-brand-ink'}"
aria-current={isActive(item.href) ? 'page' : undefined} aria-current={isActive(item.href) ? 'page' : undefined}
> >
{item.label} {item.label}
{#if isActive(item.href)}<span class="absolute inset-x-0 -bottom-0.5 h-0.5 rounded-full bg-accent"></span>{/if}
</a> </a>
{/each} {/each}
</nav> </nav>
<a href="/suche" class="btn btn-ghost btn-icon" aria-label="Suche"> <a href="/suche" class="btn btn-ghost btn-icon text-brand-ink" aria-label="Suche">
<Search class="size-6" /> <Search class="size-6" strokeWidth={2.25} />
</a> </a>
<button class="btn btn-ghost btn-icon" aria-label="Menü öffnen" aria-expanded={menuOpen} onclick={() => (menuOpen = true)}> <button class="btn btn-ghost btn-icon text-brand-ink" aria-label="Menü öffnen" aria-expanded={menuOpen} onclick={() => (menuOpen = true)}>
<Menu class="size-6" /> <Menu class="size-7" strokeWidth={2.25} />
</button> </button>
</div> </div>
</header> </header>
<main id="inhalt" class="flex-1 w-full mx-auto max-w-5xl px-4 pt-5 pb-32 lg:pb-16"> <main id="inhalt" class="flex-1 w-full mx-auto max-w-6xl px-4 pt-6 pb-32 lg:pb-20">
{@render children()} {@render children()}
</main> </main>
<footer class="hidden lg:block border-t border-line py-8 text-sm text-ink-3"> <footer class="hidden lg:block bg-brand text-on-brand/80 py-10 text-sm">
<div class="mx-auto max-w-5xl px-4 flex flex-wrap gap-x-6 gap-y-2"> <div class="mx-auto max-w-6xl px-4 flex flex-wrap items-center gap-x-6 gap-y-2">
<span>© {new Date().getFullYear()} {data.brand.orgName}</span> <span class="font-bold text-on-brand">© {new Date().getFullYear()} {data.brand.orgName}</span>
<a href="/kontakt" class="hover:text-ink">Kontakt</a> <a href="/kontakt" class="hover:text-on-brand">Kontakt</a>
<a href="/impressum" class="hover:text-ink">Impressum</a> <a href="/impressum" class="hover:text-on-brand">Impressum</a>
<a href="/datenschutz" class="hover:text-ink">Datenschutz</a> <a href="/datenschutz" class="hover:text-on-brand">Datenschutz</a>
<a href="/admin" class="ml-auto hover:text-ink">Redaktion</a> <a href="/admin" class="ml-auto hover:text-on-brand">Redaktion</a>
</div> </div>
</footer> </footer>
</div> </div>
<!-- Untere Navigationsleiste (Handy) --> <!-- Untere Navigationsleiste (Handy) -->
<nav <nav
class="lg:hidden fixed bottom-0 inset-x-0 z-30 safe-bottom bg-surface/90 backdrop-blur-xl border-t border-line/70" class="lg:hidden fixed bottom-0 inset-x-0 z-30 safe-bottom bg-surface/95 backdrop-blur-md border-t border-line"
aria-label="Hauptnavigation" aria-label="Hauptnavigation"
> >
<div class="mx-auto max-w-lg grid grid-cols-5 px-2"> <div class="mx-auto max-w-lg grid grid-cols-5 px-1">
{#each nav as item (item.href)} {#each nav as item (item.href)}
{@const active = isActive(item.href)} {@const active = isActive(item.href)}
<a <a
href={item.href} href={item.href}
class="group flex flex-col items-center gap-0.5 pt-2 pb-2.5 text-[0.72rem] font-semibold {active ? 'text-brand-ink' : 'text-ink-3'}" class="flex flex-col items-center gap-1 pt-2.5 pb-2.5 text-[0.7rem] font-bold {active ? 'text-brand-ink' : 'text-ink-3'}"
aria-current={active ? 'page' : undefined} aria-current={active ? 'page' : undefined}
> >
<span class="grid place-items-center h-8 w-14 rounded-full transition-colors {active ? 'bg-brand-soft' : 'group-hover:bg-surface-2'}"> <item.icon class="size-6" strokeWidth={active ? 2.4 : 2} />
<item.icon class="size-[1.35rem]" strokeWidth={active ? 2.4 : 2} />
</span>
{item.label} {item.label}
<span aria-hidden="true" class="size-1.5 rounded-full {active ? 'bg-accent' : 'bg-transparent'}"></span>
</a> </a>
{/each} {/each}
<button <button
class="group flex flex-col items-center gap-0.5 pt-2 pb-2.5 text-[0.72rem] font-semibold text-ink-3" class="flex flex-col items-center gap-1 pt-2.5 pb-2.5 text-[0.7rem] font-bold text-ink-3"
onclick={() => (menuOpen = true)} onclick={() => (menuOpen = true)}
> >
<span class="grid place-items-center h-8 w-14 rounded-full group-hover:bg-surface-2"> <Menu class="size-6" />
<Menu class="size-[1.35rem]" />
</span>
Mehr Mehr
<span aria-hidden="true" class="size-1.5"></span>
</button> </button>
</div> </div>
</nav> </nav>

View file

@ -1,24 +1,38 @@
import { asc } from 'drizzle-orm'; import { and, asc, desc, eq, lte } from 'drizzle-orm';
import { db } from '$lib/server/db'; import { db } from '$lib/server/db';
import { tiles } from '$lib/server/db/schema'; import { posts, tiles } from '$lib/server/db/schema';
import { getMedia, listPosts, upcomingEvents } from '$lib/server/content'; import { getMedia, listPosts, upcomingEvents } from '$lib/server/content';
import { getSettings } from '$lib/server/settings'; import { getSettings } from '$lib/server/settings';
import { addDays, today } from '$lib/dates'; import { addDays, eventWhen, formatLong, today } from '$lib/dates';
/** Hinweis-Fahne auf dem Titelbild: anstehende Schließzeit hat Vorrang, sonst die angeheftete Meldung. */
function highlight() {
const t = today();
const closure = upcomingEvents({ from: t, kind: 'closure', limit: 1 }).find((c) => c.startDate <= addDays(t, 14));
if (closure) {
const multi = closure.endDate && closure.endDate !== closure.startDate;
return { eyebrow: 'Geschlossen', title: closure.title, text: multi ? eventWhen(closure) : formatLong(closure.startDate), href: '/termine?zeige=schliesszeiten' };
}
const pinned = db
.select({ slug: posts.slug, title: posts.title, teaser: posts.teaser })
.from(posts)
.where(and(eq(posts.pinned, true), eq(posts.published, true), lte(posts.publishedAt, new Date())))
.orderBy(desc(posts.publishedAt))
.get();
return pinned ? { eyebrow: 'Aktuell', title: pinned.title, text: pinned.teaser, href: `/meldungen/${pinned.slug}` } : null;
}
export const load = () => { export const load = () => {
const s = getSettings(); const s = getSettings();
const t = today();
return { return {
greeting: s.greeting, greeting: s.greeting,
intro: s.intro, intro: s.intro,
heroEnabled: s.heroEnabled, heroEnabled: s.heroEnabled,
// Ohne eigenes Bild wird der Platzhalter /hero-placeholder.svg gezeigt
hero: getMedia(s.heroImageId), hero: getMedia(s.heroImageId),
heroTagline: s.heroTagline,
highlight: highlight(),
tiles: db.select().from(tiles).orderBy(asc(tiles.sortOrder), asc(tiles.id)).all(), tiles: db.select().from(tiles).orderBy(asc(tiles.sortOrder), asc(tiles.id)).all(),
posts: listPosts({ limit: s.homeNewsCount }).items, posts: listPosts({ limit: s.homeNewsCount }).items,
events: upcomingEvents({ limit: s.homeEventsCount, kind: 'event' }), events: upcomingEvents({ limit: s.homeEventsCount })
// Aktuelle Schließzeit (heute oder in den nächsten 14 Tagen) als Hinweis
closures: upcomingEvents({ from: t, kind: 'closure', limit: 1 }).filter((c) => c.startDate <= addDays(t, 14))
}; };
}; };

View file

@ -1,116 +1,112 @@
<script lang="ts"> <script lang="ts">
import ArrowRight from '@lucide/svelte/icons/arrow-right'; import ArrowRight from '@lucide/svelte/icons/arrow-right';
import Search from '@lucide/svelte/icons/search'; import Search from '@lucide/svelte/icons/search';
import DoorClosed from '@lucide/svelte/icons/door-closed'; import CalendarPlus from '@lucide/svelte/icons/calendar-plus';
import HomeHero from '$lib/components/HomeHero.svelte';
import Tile from '$lib/components/Tile.svelte'; import Tile from '$lib/components/Tile.svelte';
import PostCard from '$lib/components/PostCard.svelte'; import PostCard from '$lib/components/PostCard.svelte';
import EventRow from '$lib/components/EventRow.svelte'; import { dayOfMonth, eventWhen, monthAbbr, weekday } from '$lib/dates';
import { formatLong, eventWhen, TZ } from '$lib/dates';
let { data } = $props(); let { data } = $props();
const hour = Number(new Intl.DateTimeFormat('de-DE', { hour: 'numeric', hour12: false, timeZone: TZ }).format(new Date()));
const daytime = hour < 11 ? 'Guten Morgen' : hour < 17 ? 'Hallo' : 'Guten Abend';
</script> </script>
<svelte:head> <svelte:head>
<title>{data.brand.appName}</title> <title>{data.brand.appName}</title>
</svelte:head> </svelte:head>
<div class="space-y-10"> <div class="space-y-14 lg:space-y-20">
<!-- Begrüßung --> {#if data.heroEnabled}
<section class="overflow-hidden rounded-[1.75rem] bg-brand text-white shadow-float"> <HomeHero image={data.hero} headline={data.greeting} tagline={data.heroTagline} highlight={data.highlight} />
{#if data.heroEnabled} {:else}
<div class="relative h-44 sm:h-64 lg:h-80"> <h1 class="font-bold text-3xl sm:text-4xl text-brand-ink pt-4">{data.greeting}</h1>
<img {/if}
src={data.hero?.url ?? '/hero-placeholder.svg'}
alt={data.hero?.alt ?? ''} <!-- Einleitung & Suche -->
class="size-full object-cover" <section class="grid lg:grid-cols-2 gap-6 lg:gap-16 items-end [&>*]:min-w-0">
fetchpriority="high" <div class="space-y-3">
/> <p class="eyebrow eyebrow-rule">{data.brand.orgName}</p>
<!-- weicher Übergang ins Begrüßungsfeld --> {#if data.intro}<p class="text-lg text-ink-2 max-w-xl">{data.intro}</p>{/if}
<div aria-hidden="true" class="absolute inset-x-0 bottom-0 h-16 bg-gradient-to-b from-transparent to-brand"></div>
</div>
{/if}
<div class="relative overflow-hidden px-6 pb-6 {data.heroEnabled ? 'pt-2' : 'pt-7'}">
<div aria-hidden="true" class="absolute -right-16 -top-20 size-64 rounded-full bg-white/10"></div>
<div aria-hidden="true" class="absolute right-10 -bottom-24 size-48 rounded-full bg-white/[0.07]"></div>
<div class="relative">
<p class="text-white/80 font-semibold">{daytime}!</p>
<h1 class="font-display text-[1.9rem] sm:text-4xl font-extrabold mt-1 max-w-xl">{data.greeting}</h1>
{#if data.intro}<p class="mt-3 text-white/85 max-w-xl">{data.intro}</p>{/if}
<form action="/suche" class="mt-5 max-w-xl" role="search">
<label class="flex items-center gap-2 rounded-2xl bg-white text-ink pl-4 pr-1.5 h-13 shadow-card">
<Search class="size-5 text-ink-3 shrink-0" />
<span class="sr-only">Suchen</span>
<input name="q" type="search" placeholder="Was suchst du?" class="flex-1 min-w-0 bg-transparent outline-none h-full placeholder:text-ink-3" />
<button class="btn btn-primary btn-sm">Suchen</button>
</label>
</form>
</div>
</div> </div>
<form action="/suche" role="search">
<label class="flex items-center gap-3 rounded-full bg-surface-2 pl-5 pr-1.5 h-15 focus-within:ring-4 focus-within:ring-brand/15 transition">
<Search class="size-5 text-brand-ink shrink-0" strokeWidth={2.4} />
<span class="sr-only">Suchen</span>
<input name="q" type="search" placeholder="Was suchst du?" class="flex-1 min-w-0 bg-transparent outline-none h-full font-semibold placeholder:text-ink-3 placeholder:font-medium" />
<button class="btn btn-primary">Suchen</button>
</label>
</form>
</section> </section>
{#each data.closures as c (c.id)} <!-- Bereiche -->
<a href="/termine" class="tone-amber bg-tone-soft text-tone-ink rounded-2xl p-4 flex items-center gap-4 -mt-4">
<span class="grid place-items-center size-11 rounded-xl bg-tone text-white shrink-0"><DoorClosed class="size-5" /></span>
<span>
<span class="block font-bold">{c.title}</span>
<span class="block text-sm">{c.endDate && c.endDate !== c.startDate ? eventWhen(c) : formatLong(c.startDate)}</span>
</span>
</a>
{/each}
<!-- Kacheln -->
{#if data.tiles.length} {#if data.tiles.length}
<section aria-labelledby="bereiche"> <section aria-labelledby="bereiche" class="space-y-5">
<h2 id="bereiche" class="sr-only">Bereiche</h2> <div class="space-y-2">
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3"> <p class="eyebrow eyebrow-rule">Bereiche</p>
<h2 id="bereiche" class="text-2xl sm:text-3xl text-brand-ink">Was möchtest du wissen?</h2>
</div>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-2.5">
{#each data.tiles as t (t.id)} {#each data.tiles as t (t.id)}
<Tile href={t.href} label={t.label} icon={t.icon} color={t.color} /> <Tile href={t.href} label={t.label} icon={t.icon} />
{/each} {/each}
</div> </div>
</section> </section>
{/if} {/if}
<div class="grid lg:grid-cols-5 gap-10 lg:gap-8"> <!-- Neuigkeiten -->
<!-- Meldungen --> <section aria-labelledby="neu" class="space-y-5">
<section class="lg:col-span-3" aria-labelledby="neu"> <div class="flex items-end justify-between gap-4">
<div class="flex items-end justify-between mb-4"> <div class="space-y-2">
<h2 id="neu" class="font-display text-2xl font-bold">Neuigkeiten</h2> <p class="eyebrow eyebrow-rule">Aktuelles</p>
<a href="/meldungen" class="text-sm font-semibold text-brand-ink inline-flex items-center gap-1 hover:gap-2 transition-all"> <h2 id="neu" class="text-2xl sm:text-3xl text-brand-ink">Neuigkeiten</h2>
Alle <ArrowRight class="size-4" />
</a>
</div> </div>
{#if data.posts.length} <a href="/meldungen" class="btn btn-soft btn-sm shrink-0">Alle <ArrowRight class="size-4" /></a>
<div class="space-y-3"> </div>
<PostCard post={data.posts[0]} variant="hero" /> {#if data.posts.length}
{#each data.posts.slice(1) as p (p.id)} <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-8">
<PostCard post={p} /> {#each data.posts as p (p.id)}
{/each} <PostCard post={p} />
</div> {/each}
{:else} </div>
<p class="text-ink-3">Noch keine Meldungen.</p> {:else}
{/if} <p class="text-ink-3">Noch keine Meldungen.</p>
</section> {/if}
</section>
<!-- Termine --> <!-- Termine als Farbblock -->
<section class="lg:col-span-2" aria-labelledby="termine"> <section aria-labelledby="termine" class="relative -mx-4 lg:mx-0 lg:rounded-[1.75rem] overflow-hidden bg-brand text-on-brand">
<div class="flex items-end justify-between mb-4"> <div aria-hidden="true" class="absolute -right-32 -bottom-40 size-[26rem] rounded-full bg-accent"></div>
<h2 id="termine" class="font-display text-2xl font-bold">Nächste Termine</h2> <div class="relative px-5 py-10 sm:px-8 lg:px-12 lg:py-14 grid lg:grid-cols-[1fr_1.4fr] gap-8 lg:gap-14">
<a href="/termine" class="text-sm font-semibold text-brand-ink inline-flex items-center gap-1 hover:gap-2 transition-all"> <div class="space-y-4">
Kalender <ArrowRight class="size-4" /> <p class="eyebrow text-on-brand/70">Termine</p>
</a> <h2 id="termine" class="text-3xl sm:text-4xl">Was steht an?</h2>
<p class="text-on-brand/80 max-w-sm">Veranstaltungen, Versammlungen und Schließzeiten auf einen Blick.</p>
<div class="flex flex-wrap gap-2 pt-2">
<a href="/termine" class="btn bg-white text-brand hover:bg-white/90">Alle Termine</a>
<a href="/termine.ics" class="btn text-on-brand hover:bg-white/10"><CalendarPlus class="size-4" />Kalender abonnieren</a>
</div>
</div> </div>
{#if data.events.length} {#if data.events.length}
<div class="space-y-2.5"> <ul class="divide-y divide-white/15 border-y border-white/15">
{#each data.events as e (e.id)} {#each data.events as e (e.id)}
<EventRow event={e} /> <li class="flex items-center gap-5 py-4">
<span class="w-14 shrink-0 text-center leading-none" aria-hidden="true">
<span class="block text-[0.7rem] font-semibold uppercase tracking-[0.15em] text-on-brand/70">{weekday(e.startDate)}</span>
<span class="block text-3xl font-bold my-1">{dayOfMonth(e.startDate)}</span>
<span class="block text-xs font-semibold uppercase tracking-wider text-on-brand/70">{monthAbbr(e.startDate)}</span>
</span>
<span class="min-w-0">
{#if e.kind === 'closure'}
<span class="inline-block rounded-full bg-accent px-2.5 py-0.5 text-[0.7rem] font-bold uppercase tracking-wider mb-1">Geschlossen</span>
{/if}
<span class="block font-bold text-lg leading-snug">{e.title}</span>
<span class="block text-sm text-on-brand/75">{eventWhen(e)}{e.location ? ` · ${e.location}` : ''}</span>
</span>
</li>
{/each} {/each}
</div> </ul>
{:else} {:else}
<p class="text-ink-3">Gerade keine Termine geplant.</p> <p class="text-on-brand/80 self-center">Gerade sind keine Termine geplant.</p>
{/if} {/if}
</section> </div>
</div> </section>
</div> </div>

View file

@ -5,6 +5,6 @@
<svelte:head><title>Datenschutz · {data.brand.appName}</title></svelte:head> <svelte:head><title>Datenschutz · {data.brand.appName}</title></svelte:head>
<article class="max-w-3xl mx-auto"> <article class="max-w-3xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-6">Datenschutz</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-6">Datenschutz</h1>
<div class="rich">{@html data.html}</div> <div class="rich">{@html data.html}</div>
</article> </article>

View file

@ -8,7 +8,7 @@
<svelte:head><title>Einstellungen · {data.brand.appName}</title></svelte:head> <svelte:head><title>Einstellungen · {data.brand.appName}</title></svelte:head>
<div class="max-w-xl mx-auto space-y-6"> <div class="max-w-xl mx-auto space-y-6">
<h1 class="font-display text-3xl font-extrabold">Einstellungen</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink">Einstellungen</h1>
<div class="card p-5"> <div class="card p-5">
<PrefsControls /> <PrefsControls />
</div> </div>

View file

@ -5,6 +5,6 @@
<svelte:head><title>Impressum · {data.brand.appName}</title></svelte:head> <svelte:head><title>Impressum · {data.brand.appName}</title></svelte:head>
<article class="max-w-3xl mx-auto"> <article class="max-w-3xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-6">Impressum</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-6">Impressum</h1>
<div class="rich">{@html data.html}</div> <div class="rich">{@html data.html}</div>
</article> </article>

View file

@ -11,13 +11,13 @@
<svelte:head><title>Kontakt · {data.brand.appName}</title></svelte:head> <svelte:head><title>Kontakt · {data.brand.appName}</title></svelte:head>
<div class="max-w-xl mx-auto"> <div class="max-w-xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-2">Schreib uns</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-2">Schreib uns</h1>
<p class="text-ink-2 mb-6">{data.intro}</p> <p class="text-ink-2 mb-6">{data.intro}</p>
{#if form?.sent} {#if form?.sent}
<div class="card p-8 text-center flex flex-col items-center gap-3"> <div class="card p-8 text-center flex flex-col items-center gap-3">
<div class="grid place-items-center size-16 rounded-full bg-brand-soft text-brand"><CircleCheck class="size-8" /></div> <div class="grid place-items-center size-16 rounded-full bg-brand-soft text-brand"><CircleCheck class="size-8" /></div>
<p class="font-display text-xl font-bold">Danke für deine Nachricht!</p> <p class="text-xl font-bold text-brand-ink">Danke für deine Nachricht!</p>
<p class="text-ink-2">Wir melden uns so schnell wie möglich.</p> <p class="text-ink-2">Wir melden uns so schnell wie möglich.</p>
<a href="/" class="btn btn-soft mt-2">Zur Startseite</a> <a href="/" class="btn btn-soft mt-2">Zur Startseite</a>
</div> </div>

View file

@ -15,7 +15,7 @@
<svelte:head><title>Ansprechpartner · {data.brand.appName}</title></svelte:head> <svelte:head><title>Ansprechpartner · {data.brand.appName}</title></svelte:head>
<div class="max-w-3xl mx-auto"> <div class="max-w-3xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-2">Ansprechpartner</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-2">Ansprechpartner</h1>
<p class="text-ink-2 mb-5">Hier findest du die richtigen Menschen für deine Fragen.</p> <p class="text-ink-2 mb-5">Hier findest du die richtigen Menschen für deine Fragen.</p>
{#if data.contacts.length > 6} {#if data.contacts.length > 6}

View file

@ -1,28 +1,25 @@
<script lang="ts"> <script lang="ts">
import Newspaper from '@lucide/svelte/icons/newspaper'; import Newspaper from '@lucide/svelte/icons/newspaper';
import PostCard from '$lib/components/PostCard.svelte'; import PostCard from '$lib/components/PostCard.svelte';
import PageTitle from '$lib/components/PageTitle.svelte';
import EmptyState from '$lib/components/EmptyState.svelte'; import EmptyState from '$lib/components/EmptyState.svelte';
let { data } = $props(); let { data } = $props();
</script> </script>
<svelte:head><title>Meldungen · {data.brand.appName}</title></svelte:head> <svelte:head><title>Aktuelles · {data.brand.appName}</title></svelte:head>
<h1 class="font-display text-3xl font-extrabold mb-6">Meldungen</h1> <PageTitle eyebrow="Aktuelles" title="Neuigkeiten" />
{#if data.items.length} {#if data.items.length}
<div class="grid md:grid-cols-2 gap-3"> <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-10">
{#each data.items as p, i (p.id)} {#each data.items as p (p.id)}
{#if i === 0 && data.page === 1} <PostCard post={p} />
<div class="md:col-span-2"><PostCard post={p} variant="hero" /></div>
{:else}
<PostCard post={p} />
{/if}
{/each} {/each}
</div> </div>
{#if data.pages > 1} {#if data.pages > 1}
<nav class="flex items-center justify-center gap-2 mt-8" aria-label="Seiten"> <nav class="flex items-center justify-center gap-2 mt-12" aria-label="Seiten">
{#if data.page > 1}<a class="btn btn-soft" href="?seite={data.page - 1}">Neuere</a>{/if} {#if data.page > 1}<a class="btn btn-soft" href="?seite={data.page - 1}">Neuere</a>{/if}
<span class="px-3 text-ink-3">Seite {data.page} von {data.pages}</span> <span class="px-3 text-ink-3">Seite {data.page} von {data.pages}</span>
{#if data.page < data.pages}<a class="btn btn-soft" href="?seite={data.page + 1}">Ältere</a>{/if} {#if data.page < data.pages}<a class="btn btn-soft" href="?seite={data.page + 1}">Ältere</a>{/if}

View file

@ -22,8 +22,8 @@
<BackLink href="/meldungen" label="Alle Meldungen" /> <BackLink href="/meldungen" label="Alle Meldungen" />
<header class="space-y-3 mb-6"> <header class="space-y-3 mb-6">
<p class="text-ink-3 font-semibold">{formatLong(post.publishedAt)}</p> <p class="eyebrow eyebrow-rule !text-accent-ink">{formatLong(post.publishedAt)}</p>
<h1 class="font-display text-3xl sm:text-4xl font-extrabold">{post.title}</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink">{post.title}</h1>
{#if post.teaser}<p class="text-lg text-ink-2">{post.teaser}</p>{/if} {#if post.teaser}<p class="text-lg text-ink-2">{post.teaser}</p>{/if}
<ArticleActions target="vorlesen" favorite={{ href: `/meldungen/${post.slug}`, title: post.title, kind: 'post' }} /> <ArticleActions target="vorlesen" favorite={{ href: `/meldungen/${post.slug}`, title: post.title, kind: 'post' }} />
</header> </header>
@ -34,7 +34,7 @@
alt={post.cover.alt} alt={post.cover.alt}
width={post.cover.width} width={post.cover.width}
height={post.cover.height} height={post.cover.height}
class="w-full rounded-[1.5rem] shadow-card mb-8 max-h-[70vh] object-cover" class="w-full rounded-2xl mb-8 max-h-[70vh] object-cover"
/> />
{/if} {/if}

View file

@ -14,7 +14,7 @@
<svelte:head><title>Merkliste · {data.brand.appName}</title></svelte:head> <svelte:head><title>Merkliste · {data.brand.appName}</title></svelte:head>
<div class="max-w-3xl mx-auto"> <div class="max-w-3xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-2">Merkliste</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-2">Merkliste</h1>
<p class="text-ink-2 mb-6">Deine gemerkten Seiten – nur auf diesem Gerät gespeichert.</p> <p class="text-ink-2 mb-6">Deine gemerkten Seiten – nur auf diesem Gerät gespeichert.</p>
{#if favorites.items.length} {#if favorites.items.length}

View file

@ -1,6 +1,4 @@
<script lang="ts"> <script lang="ts">
import ChevronRight from '@lucide/svelte/icons/chevron-right';
import Icon from '$lib/components/Icon.svelte';
import Tile from '$lib/components/Tile.svelte'; import Tile from '$lib/components/Tile.svelte';
import ArticleActions from '$lib/components/ArticleActions.svelte'; import ArticleActions from '$lib/components/ArticleActions.svelte';
import RichContent from '$lib/components/RichContent.svelte'; import RichContent from '$lib/components/RichContent.svelte';
@ -18,33 +16,27 @@
</svelte:head> </svelte:head>
<article class="max-w-3xl mx-auto"> <article class="max-w-3xl mx-auto">
<nav aria-label="Brotkrümel" class="flex flex-wrap items-center gap-1 text-sm text-ink-3 mb-4"> <header class="mb-8 space-y-3">
<a href="/" class="hover:text-ink font-semibold">Start</a> <nav aria-label="Brotkrümel" class="eyebrow eyebrow-rule">
{#each p.trail as t (t.slug)} <span class="flex flex-wrap items-center gap-x-2">
<ChevronRight class="size-3.5" /> <a href="/" class="hover:text-brand-ink">Start</a>
<a href="/s/{t.slug}" class="hover:text-ink font-semibold">{t.title}</a> {#each p.trail as t (t.slug)}
{/each} <span aria-hidden="true" class="size-1 rounded-full bg-accent"></span>
</nav> <a href="/s/{t.slug}" class="hover:text-brand-ink">{t.title}</a>
{/each}
<header class="tone-{p.color} mb-6">
<div class="flex items-start gap-4">
<span class="grid place-items-center size-14 rounded-2xl bg-tone text-white shrink-0 shadow-[0_10px_22px_-10px_var(--tone)]">
<Icon name={p.icon} class="size-7" />
</span> </span>
<div class="min-w-0 pt-1"> </nav>
<h1 class="font-display text-3xl sm:text-4xl font-extrabold">{p.title}</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink">{p.title}</h1>
{#if p.teaser}<p class="text-lg text-ink-2 mt-2">{p.teaser}</p>{/if} {#if p.teaser}<p class="text-lg text-ink-2">{p.teaser}</p>{/if}
</div>
</div>
{#if hasText} {#if hasText}
<div class="mt-4"> <div class="pt-2">
<ArticleActions target="vorlesen" favorite={{ href: `/s/${p.slug}`, title: p.title, kind: 'page' }} /> <ArticleActions target="vorlesen" favorite={{ href: `/s/${p.slug}`, title: p.title, kind: 'page' }} />
</div> </div>
{/if} {/if}
</header> </header>
{#if p.cover} {#if p.cover}
<img src={p.cover.url} alt={p.cover.alt} class="w-full rounded-[1.5rem] shadow-card mb-8 max-h-[60vh] object-cover" /> <img src={p.cover.url} alt={p.cover.alt} class="w-full rounded-2xl mb-8 max-h-[60vh] object-cover" />
{/if} {/if}
<div class="space-y-8"> <div class="space-y-8">
@ -53,9 +45,9 @@
{#if p.children.length} {#if p.children.length}
<section class="space-y-3"> <section class="space-y-3">
{#if hasText}<h2 class="eyebrow">Bitte wähle aus</h2>{/if} {#if hasText}<h2 class="eyebrow">Bitte wähle aus</h2>{/if}
<div class="grid grid-cols-2 sm:grid-cols-3 gap-3"> <div class="grid sm:grid-cols-2 gap-3">
{#each p.children as c (c.id)} {#each p.children as c (c.id)}
<Tile href="/s/{c.slug}" label={c.title} icon={c.icon} color={c.color} /> <Tile href="/s/{c.slug}" label={c.title} icon={c.icon} sub={c.teaser} />
{/each} {/each}
</div> </div>
</section> </section>

View file

@ -14,7 +14,7 @@
<svelte:head><title>Suche · {data.brand.appName}</title></svelte:head> <svelte:head><title>Suche · {data.brand.appName}</title></svelte:head>
<div class="max-w-3xl mx-auto"> <div class="max-w-3xl mx-auto">
<h1 class="font-display text-3xl font-extrabold mb-5">Suche</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink mb-5">Suche</h1>
<form role="search" class="flex gap-2 mb-8" data-sveltekit-keepfocus> <form role="search" class="flex gap-2 mb-8" data-sveltekit-keepfocus>
<label class="relative flex-1"> <label class="relative flex-1">
@ -41,8 +41,8 @@
<ul class="card divide-y divide-line/70 overflow-hidden"> <ul class="card divide-y divide-line/70 overflow-hidden">
{#each r.pages as p (p.id)} {#each r.pages as p (p.id)}
<li> <li>
<a href="/s/{p.slug}" class="tone-{p.color} flex items-center gap-3 px-4 py-3 hover:bg-surface-2"> <a href="/s/{p.slug}" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
<span class="grid place-items-center size-10 rounded-xl bg-tone-soft text-tone-ink shrink-0"><Icon name={p.icon} class="size-5" /></span> <span class="grid place-items-center size-10 rounded-full bg-surface-2 text-brand-ink shrink-0"><Icon name={p.icon} class="size-5" /></span>
<span class="min-w-0"> <span class="min-w-0">
<span class="block font-semibold">{p.title}</span> <span class="block font-semibold">{p.title}</span>
{#if p.teaser}<span class="block text-sm text-ink-3 truncate">{p.teaser}</span>{/if} {#if p.teaser}<span class="block text-sm text-ink-3 truncate">{p.teaser}</span>{/if}
@ -56,13 +56,13 @@
{#if r.posts.length} {#if r.posts.length}
<section> <section>
<h2 class="eyebrow mb-3">Meldungen</h2> <h2 class="eyebrow mb-3">Meldungen</h2>
<div class="space-y-3">{#each r.posts as p (p.id)}<PostCard post={p} />{/each}</div> <div class="space-y-4">{#each r.posts as p (p.id)}<PostCard post={p} variant="row" />{/each}</div>
</section> </section>
{/if} {/if}
{#if r.events.length} {#if r.events.length}
<section> <section>
<h2 class="eyebrow mb-3">Termine</h2> <h2 class="eyebrow mb-3">Termine</h2>
<div class="space-y-2.5">{#each r.events as e (e.id)}<EventRow event={e} expanded />{/each}</div> <div class="divide-y divide-line">{#each r.events as e (e.id)}<EventRow event={e} expanded />{/each}</div>
</section> </section>
{/if} {/if}
</div> </div>

View file

@ -28,7 +28,7 @@
<div class="max-w-3xl mx-auto"> <div class="max-w-3xl mx-auto">
<div class="flex flex-wrap items-end justify-between gap-3 mb-5"> <div class="flex flex-wrap items-end justify-between gap-3 mb-5">
<h1 class="font-display text-3xl font-extrabold">Termine</h1> <h1 class="text-3xl sm:text-4xl text-brand-ink">Termine</h1>
<a href="/termine.ics" class="btn btn-soft btn-sm" title="Termine im eigenen Kalender abonnieren"> <a href="/termine.ics" class="btn btn-soft btn-sm" title="Termine im eigenen Kalender abonnieren">
<CalendarPlus class="size-4" /> In meinen Kalender <CalendarPlus class="size-4" /> In meinen Kalender
</a> </a>
@ -51,10 +51,10 @@
<div class="space-y-8"> <div class="space-y-8">
{#each groups as [month, items] (month)} {#each groups as [month, items] (month)}
<section> <section>
<h2 class="font-display text-lg font-bold text-ink-2 mb-3 sticky top-16 bg-bg/90 backdrop-blur py-2 z-10"> <h2 class="eyebrow eyebrow-rule sticky top-16 lg:top-20 bg-bg/95 backdrop-blur py-3 z-10">
{formatMonthYear(`${month}-01`)} {formatMonthYear(`${month}-01`)}
</h2> </h2>
<div class="space-y-2.5"> <div class="divide-y divide-line">
{#each items as e (e.id)}<EventRow event={e} expanded />{/each} {#each items as e (e.id)}<EventRow event={e} expanded />{/each}
</div> </div>
</section> </section>

View file

@ -1,6 +1,8 @@
import { getSettings } from '$lib/server/settings'; import { getSettings } from '$lib/server/settings';
import { getMedia } from '$lib/server/content'; import { getMedia } from '$lib/server/content';
const hex = (v: string, fallback: string) => (/^#[0-9a-f]{6}$/i.test(v) ? v : fallback);
export const load = ({ locals }) => { export const load = ({ locals }) => {
const s = getSettings(); const s = getSettings();
return { return {
@ -8,7 +10,8 @@ export const load = ({ locals }) => {
brand: { brand: {
appName: s.appName, appName: s.appName,
orgName: s.orgName, orgName: s.orgName,
color: /^#[0-9a-f]{6}$/i.test(s.brandColor) ? s.brandColor : '#0e7c66', color: hex(s.brandColor, '#2e2672'),
accent: hex(s.accentColor, '#85357c'),
logo: getMedia(s.logoId) logo: getMedia(s.logoId)
} }
}; };

View file

@ -11,7 +11,7 @@
<svelte:head> <svelte:head>
<meta name="theme-color" content={data.brand.color} /> <meta name="theme-color" content={data.brand.color} />
{@html `<style>:root{--brand:${data.brand.color}}</style>`} {@html `<style>:root{--brand:${data.brand.color};--accent:${data.brand.accent}}</style>`}
</svelte:head> </svelte:head>
{@render children()} {@render children()}

View file

@ -28,8 +28,8 @@
<div class="grid grid-cols-2 lg:grid-cols-4 gap-3 mb-8"> <div class="grid grid-cols-2 lg:grid-cols-4 gap-3 mb-8">
{#each stats as s (s.label)} {#each stats as s (s.label)}
<a href={s.href} class="card pressable p-4 tone-{s.tone}"> <a href={s.href} class="card pressable p-4">
<span class="grid place-items-center size-10 rounded-xl bg-tone-soft text-tone-ink mb-3"><s.icon class="size-5" /></span> <span class="grid place-items-center size-10 rounded-full bg-surface-2 text-brand-ink mb-3"><s.icon class="size-5" /></span>
<p class="font-display text-3xl font-extrabold">{s.value}</p> <p class="font-display text-3xl font-extrabold">{s.value}</p>
<p class="text-sm text-ink-3">{s.label}</p> <p class="text-sm text-ink-3">{s.label}</p>
</a> </a>
@ -37,8 +37,8 @@
</div> </div>
{#if data.messages.length} {#if data.messages.length}
<a href="/admin/postfach" class="card pressable flex items-center gap-4 p-4 mb-8 tone-coral"> <a href="/admin/postfach" class="card pressable flex items-center gap-4 p-4 mb-8">
<span class="grid place-items-center size-11 rounded-xl bg-tone text-white"><Inbox class="size-5" /></span> <span class="grid place-items-center size-11 rounded-full bg-accent text-white"><Inbox class="size-5" /></span>
<span class="flex-1 min-w-0"> <span class="flex-1 min-w-0">
<span class="block font-bold">{data.unread} neue {data.unread === 1 ? 'Nachricht' : 'Nachrichten'}</span> <span class="block font-bold">{data.unread} neue {data.unread === 1 ? 'Nachricht' : 'Nachrichten'}</span>
<span class="block text-sm text-ink-3 truncate">Von {data.messages.map((m) => m.name).join(', ')}</span> <span class="block text-sm text-ink-3 truncate">Von {data.messages.map((m) => m.name).join(', ')}</span>

View file

@ -16,8 +16,9 @@ export const actions = {
const f = fields(await request.formData()); const f = fields(await request.formData());
const appName = f.str('appName', 40); const appName = f.str('appName', 40);
const brandColor = f.str('brandColor', 7); const brandColor = f.str('brandColor', 7);
const accentColor = f.str('accentColor', 7);
if (!appName) return fail(400, { error: 'Die App braucht einen Namen.' }); if (!appName) return fail(400, { error: 'Die App braucht einen Namen.' });
if (!/^#[0-9a-f]{6}$/i.test(brandColor)) return fail(400, { error: 'Die Farbe ist ungültig.' }); if (![brandColor, accentColor].every((c) => /^#[0-9a-f]{6}$/i.test(c))) return fail(400, { error: 'Eine der Farben ist ungültig.' });
const website = f.str('website', 300); const website = f.str('website', 300);
if (website && !/^https?:\/\//.test(website)) return fail(400, { error: 'Die Website muss mit https:// beginnen.' }); if (website && !/^https?:\/\//.test(website)) return fail(400, { error: 'Die Website muss mit https:// beginnen.' });
@ -27,9 +28,11 @@ export const actions = {
greeting: f.str('greeting', 120), greeting: f.str('greeting', 120),
intro: f.str('intro', 400), intro: f.str('intro', 400),
brandColor, brandColor,
accentColor,
logoId: f.int('logoId'), logoId: f.int('logoId'),
heroEnabled: f.bool('heroEnabled'), heroEnabled: f.bool('heroEnabled'),
heroImageId: f.int('heroImageId'), heroImageId: f.int('heroImageId'),
heroTagline: f.str('heroTagline', 40),
website, website,
contactEmail: f.str('contactEmail', 200), contactEmail: f.str('contactEmail', 200),
contactIntro: f.str('contactIntro', 400), contactIntro: f.str('contactIntro', 400),

View file

@ -9,11 +9,21 @@
let { data } = $props(); let { data } = $props();
const s = $derived(data.settings); const s = $derived(data.settings);
let color = $state(''); let color = $state('');
let accent = $state('');
$effect.pre(() => { $effect.pre(() => {
color = s.brandColor; color = s.brandColor;
accent = s.accentColor;
}); });
const presets = ['#0e7c66', '#1f6fb2', '#4b4fc4', '#8a3fbf', '#c2410c', '#b91c5c', '#0f766e', '#3f6212', '#334155']; // Paare aus Hauptfarbe (Schrift, Buttons) und Akzent (Kreis, Hervorhebungen)
const presets = [
['#2e2672', '#85357c'],
['#0f4c5c', '#e36414'],
['#1d3557', '#e63946'],
['#264027', '#b5853f'],
['#3a2e39', '#1e8a78'],
['#12355b', '#d4a017']
];
</script> </script>
<PageHeader title="Einstellungen" description="Name, Aussehen und rechtliche Texte der App." /> <PageHeader title="Einstellungen" description="Name, Aussehen und rechtliche Texte der App." />
@ -39,12 +49,17 @@
<Panel title="Startseite"> <Panel title="Startseite">
<Switch name="heroEnabled" checked={s.heroEnabled} label="Bild oben anzeigen" hint="Großes Bild über der Begrüßung" /> <Switch name="heroEnabled" checked={s.heroEnabled} label="Bild oben anzeigen" hint="Großes Bild über der Begrüßung" />
<div class="max-w-xl"> <div class="max-w-xl space-y-4">
<ImageField name="heroImageId" value={data.hero} label="Startbild" aspect="aspect-[16/7]" /> <ImageField name="heroImageId" value={data.hero} label="Startbild" aspect="aspect-[16/7]" />
<p class="hint"> <p class="hint">
Am besten ein Foto im Querformat, mindestens 1600 px breit. Solange keins gewählt ist, erscheint eine Am besten ein Foto im Querformat, mindestens 1600 px breit. Solange keins gewählt ist, erscheint eine
Platzhalter-Illustration. Platzhalter in der Markenfarbe.
</p> </p>
<div>
<label class="label" for="heroTagline">Text im Kreis</label>
<input id="heroTagline" name="heroTagline" class="field" maxlength="40" value={s.heroTagline} placeholder="z. B. Arbeit, Bildung, Teilhabe" />
<p class="hint">Läuft oben am Farbkreis entlang, höchstens 40 Zeichen. Leer lassen, wenn kein Text erscheinen soll.</p>
</div>
</div> </div>
<div> <div>
<label class="label" for="greeting">Begrüßung</label> <label class="label" for="greeting">Begrüßung</label>
@ -86,23 +101,43 @@
{#snippet aside()} {#snippet aside()}
<Panel title="Aussehen"> <Panel title="Aussehen">
<div> <div>
<span class="label">Markenfarbe</span> <span class="label">Farbpaar</span>
<div class="flex flex-wrap gap-2 mb-3"> <div class="flex flex-wrap gap-2 mb-4">
{#each presets as p (p)} {#each presets as [p, a] (p)}
<button <button
type="button" type="button"
class="size-8 rounded-full ring-offset-2 ring-offset-surface transition {color.toLowerCase() === p ? 'ring-3' : 'hover:scale-110'}" class="flex rounded-full overflow-hidden ring-offset-2 ring-offset-surface transition {color.toLowerCase() === p && accent.toLowerCase() === a ? 'ring-3 ring-ink' : 'hover:scale-105'}"
style="background:{p}; --tw-ring-color:{p}" aria-label="Farbpaar {p} und {a}"
aria-label="Farbe {p}" onclick={() => {
onclick={() => (color = p)} color = p;
></button> accent = a;
}}
>
<span class="size-8" style="background:{p}"></span><span class="size-8" style="background:{a}"></span>
</button>
{/each} {/each}
</div> </div>
<div class="flex items-center gap-2"> <div class="grid grid-cols-2 gap-3">
<input type="color" bind:value={color} class="size-11 rounded-xl border border-line cursor-pointer bg-transparent" aria-label="Eigene Farbe" /> <div>
<input name="brandColor" bind:value={color} class="field font-mono" maxlength="7" /> <label class="label" for="brandColor">Hauptfarbe</label>
<div class="flex items-center gap-2">
<input type="color" bind:value={color} class="size-10 shrink-0 rounded-lg border border-line cursor-pointer bg-transparent" aria-label="Hauptfarbe wählen" />
<input id="brandColor" name="brandColor" bind:value={color} class="field font-mono text-sm px-2" maxlength="7" />
</div>
</div>
<div>
<label class="label" for="accentColor">Akzent</label>
<div class="flex items-center gap-2">
<input type="color" bind:value={accent} class="size-10 shrink-0 rounded-lg border border-line cursor-pointer bg-transparent" aria-label="Akzentfarbe wählen" />
<input id="accentColor" name="accentColor" bind:value={accent} class="field font-mono text-sm px-2" maxlength="7" />
</div>
</div>
</div>
<p class="hint">Die Hauptfarbe sollte dunkel sein, weil Schrift und Buttons sie verwenden.</p>
<div class="mt-3 relative overflow-hidden rounded-2xl p-4 h-24 text-white font-bold" style="background:{color}">
<span class="relative z-10">Vorschau</span>
<span class="absolute -right-6 -bottom-10 size-28 rounded-full" style="background:{accent}"></span>
</div> </div>
<div class="mt-3 rounded-2xl p-4 text-white font-display font-bold" style="background:{color}">Vorschau</div>
</div> </div>
<ImageField name="logoId" value={data.logo} label="Logo" aspect="aspect-[3/1]" /> <ImageField name="logoId" value={data.logo} label="Logo" aspect="aspect-[3/1]" />
<p class="hint -mt-3">Am besten ein PNG mit transparentem Hintergrund. Wird auch als App-Symbol verwendet.</p> <p class="hint -mt-3">Am besten ein PNG mit transparentem Hintergrund. Wird auch als App-Symbol verwendet.</p>

View file

@ -8,33 +8,27 @@
let { data } = $props(); let { data } = $props();
</script> </script>
<PageHeader title="Startseite" description="Die bunten Kacheln auf der Startseite der App – jede führt zu einer Seite, einem Bereich oder einer Website."> <PageHeader title="Startseite" description="Die Bereiche auf der Startseite der App – jede führt zu einer Seite, einem Bereich oder einer Website.">
{#snippet actions()} {#snippet actions()}
<a href="/admin/kacheln/neu" class="btn btn-primary"><Plus class="size-4" />Neue Kachel</a> <a href="/admin/kacheln/neu" class="btn btn-primary"><Plus class="size-4" />Neue Kachel</a>
{/snippet} {/snippet}
</PageHeader> </PageHeader>
{#if data.tiles.length} {#if data.tiles.length}
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3"> <ul class="grid sm:grid-cols-2 xl:grid-cols-3 gap-3">
{#each data.tiles as t, i (t.id)} {#each data.tiles as t, i (t.id)}
<div class="tone-{t.color} relative rounded-[1.4rem] bg-tone-soft p-4 min-h-32 flex flex-col justify-between"> <li class="flex items-center gap-3 rounded-full bg-surface-2 pl-2 pr-2 py-2">
<div class="flex items-start justify-between"> <span class="grid place-items-center size-12 rounded-full bg-surface text-brand-ink shrink-0"><Icon name={t.icon} class="size-[1.35rem]" /></span>
<span class="grid place-items-center size-12 rounded-2xl bg-tone text-white"><Icon name={t.icon} class="size-6" /></span> <span class="flex-1 min-w-0">
<div class="flex items-center gap-1 bg-surface/80 rounded-xl p-0.5"> <span class="block font-bold text-brand-ink leading-tight truncate">{t.label}</span>
<MoveButtons id={t.id} first={i === 0} last={i === data.tiles.length - 1} /> <span class="block text-xs text-ink-3 truncate">{t.href}</span>
</div> </span>
</div> <MoveButtons id={t.id} first={i === 0} last={i === data.tiles.length - 1} />
<div class="flex items-end justify-between gap-2 mt-4"> <a href="/admin/kacheln/{t.id}" class="btn btn-sm btn-icon bg-surface hover:bg-brand-soft shrink-0" aria-label="{t.label} bearbeiten"><Pencil class="size-4" /></a>
<span class="min-w-0"> </li>
<span class="block font-display font-bold text-tone-ink leading-tight">{t.label}</span>
<span class="block text-xs text-ink-3 truncate mt-0.5">{t.href}</span>
</span>
<a href="/admin/kacheln/{t.id}" class="btn btn-sm btn-icon bg-surface/80 hover:bg-surface shrink-0" aria-label="{t.label} bearbeiten"><Pencil class="size-4" /></a>
</div>
</div>
{/each} {/each}
</div> </ul>
<p class="hint mt-4">Die Pfeile ändern die Reihenfolge (oben = weiter vorne).</p> <p class="hint mt-4">Die Pfeile ändern die Reihenfolge auf der Startseite.</p>
{:else} {:else}
<div class="card p-8 text-center text-ink-3">Noch keine Kacheln. Die Startseite zeigt dann nur Neuigkeiten und Termine.</div> <div class="card p-8 text-center text-ink-3">Noch keine Kacheln. Die Startseite zeigt dann nur Neuigkeiten und Termine.</div>
{/if} {/if}

View file

@ -52,7 +52,7 @@
{/if} {/if}
<input type="hidden" name="href" value={target === 'custom' ? custom : target} /> <input type="hidden" name="href" value={target === 'custom' ? custom : target} />
</Panel> </Panel>
<Panel title="Aussehen"> <Panel title="Symbol">
<IconTonePicker bind:icon bind:color {label} /> <IconTonePicker bind:icon bind:color {label} />
</Panel> </Panel>
</EditForm> </EditForm>

View file

@ -23,7 +23,7 @@
<li class="flex items-center gap-3 pr-3 py-1.5 hover:bg-surface-2/60" style="padding-left: {0.75 + p.depth * 1.75}rem"> <li class="flex items-center gap-3 pr-3 py-1.5 hover:bg-surface-2/60" style="padding-left: {0.75 + p.depth * 1.75}rem">
<MoveButtons id={p.id} first={p.first} last={p.last} /> <MoveButtons id={p.id} first={p.first} last={p.last} />
{#if p.depth > 0}<CornerDownRight class="size-4 text-ink-3 -ml-1" />{/if} {#if p.depth > 0}<CornerDownRight class="size-4 text-ink-3 -ml-1" />{/if}
<span class="tone-{p.color} grid place-items-center size-9 rounded-xl bg-tone-soft text-tone-ink shrink-0"><Icon name={p.icon} class="size-[1.1rem]" /></span> <span class="grid place-items-center size-9 rounded-full bg-surface-2 text-brand-ink shrink-0"><Icon name={p.icon} class="size-[1.1rem]" /></span>
<a href="/admin/seiten/{p.id}" class="flex-1 min-w-0 py-2"> <a href="/admin/seiten/{p.id}" class="flex-1 min-w-0 py-2">
<span class="font-semibold truncate block">{p.title}</span> <span class="font-semibold truncate block">{p.title}</span>
</a> </a>

View file

@ -72,7 +72,7 @@
</div> </div>
</div> </div>
</Panel> </Panel>
<Panel title="Aussehen"> <Panel title="Symbol">
<IconTonePicker bind:icon bind:color label={title} /> <IconTonePicker bind:icon bind:color label={title} />
</Panel> </Panel>
<Panel> <Panel>

View file

@ -10,7 +10,7 @@ export const GET = () => {
start_url: '/', start_url: '/',
scope: '/', scope: '/',
display: 'standalone', display: 'standalone',
background_color: '#f7f5f0', background_color: '#ffffff',
theme_color: s.brandColor, theme_color: s.brandColor,
icons: [192, 512].flatMap((size) => [ icons: [192, 512].flatMap((size) => [
{ src: `/app-icon/${size}`, sizes: `${size}x${size}`, type: 'image/png', purpose: 'any' }, { src: `/app-icon/${size}`, sizes: `${size}x${size}`, type: 'image/png', purpose: 'any' },

View file

@ -1,73 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 700" preserveAspectRatio="xMidYMid slice">
<!-- Platzhalter für das Startbild. Eigenes Foto: Redaktion → Einstellungen → Startbild -->
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#cfe9df"/>
<stop offset="1" stop-color="#f6efd9"/>
</linearGradient>
<linearGradient id="hillBack" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#9fcfb5"/>
<stop offset="1" stop-color="#86bfa1"/>
</linearGradient>
<linearGradient id="hillFront" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#4fa37e"/>
<stop offset="1" stop-color="#2f8a66"/>
</linearGradient>
</defs>
<rect width="1600" height="700" fill="url(#sky)"/>
<!-- Sonne -->
<circle cx="1260" cy="170" r="92" fill="#f7cf6b"/>
<circle cx="1260" cy="170" r="140" fill="#f7cf6b" opacity="0.18"/>
<!-- Wolken -->
<g fill="#ffffff" opacity="0.85">
<ellipse cx="330" cy="140" rx="110" ry="30"/>
<ellipse cx="400" cy="120" rx="70" ry="34"/>
<ellipse cx="930" cy="95" rx="80" ry="22"/>
<ellipse cx="975" cy="80" rx="48" ry="24"/>
</g>
<!-- Hügel hinten -->
<path d="M0 470 C 220 380, 420 400, 640 440 S 1100 360, 1320 400 S 1560 430, 1600 420 V700 H0 Z" fill="url(#hillBack)"/>
<!-- Werkstattgebäude mit Sheddach -->
<g transform="translate(560 318)">
<rect x="0" y="92" width="470" height="170" fill="#fbf7ee"/>
<path d="M0 92 L0 40 L94 92 L94 40 L188 92 L188 40 L282 92 L282 40 L376 92 L376 40 L470 92 Z" fill="#e2553a"/>
<path d="M0 40 L0 92 M94 40 L94 92 M188 40 L188 92 M282 40 L282 92 M376 40 L376 92" stroke="#b9432c" stroke-width="6"/>
<g fill="#8fc6e8">
<rect x="34" y="128" width="62" height="46" rx="6"/>
<rect x="126" y="128" width="62" height="46" rx="6"/>
<rect x="282" y="128" width="62" height="46" rx="6"/>
<rect x="374" y="128" width="62" height="46" rx="6"/>
</g>
<rect x="206" y="160" width="58" height="102" rx="8" fill="#d98a06"/>
<circle cx="252" cy="214" r="4" fill="#fbf7ee"/>
<!-- Schornstein -->
<rect x="410" y="0" width="26" height="60" fill="#56647a"/>
</g>
<!-- Linde -->
<g transform="translate(1150 300)">
<rect x="40" y="150" width="26" height="130" rx="8" fill="#7a5a3a"/>
<circle cx="53" cy="110" r="96" fill="#3d9a6e"/>
<circle cx="0" cy="140" r="62" fill="#47a778"/>
<circle cx="110" cy="138" r="66" fill="#338a61"/>
<circle cx="60" cy="50" r="58" fill="#56b485"/>
</g>
<!-- kleiner Baum links -->
<g transform="translate(360 380)">
<rect x="22" y="80" width="16" height="90" rx="6" fill="#7a5a3a"/>
<circle cx="30" cy="62" r="56" fill="#47a778"/>
<circle cx="58" cy="84" r="36" fill="#338a61"/>
</g>
<!-- Hügel vorne -->
<path d="M0 560 C 260 510, 520 600, 820 570 S 1360 520, 1600 560 V700 H0 Z" fill="url(#hillFront)"/>
<!-- Weg -->
<path d="M770 700 C 790 640, 780 610, 800 580 L 830 580 C 820 620, 840 650, 880 700 Z" fill="#e9dcb8" opacity="0.9"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB