diff --git a/README.md b/README.md index 82d658e..28d624c 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,13 @@ Tablet und Desktop. **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 - Infoseiten in beliebiger Tiefe (z. B. „Dienste → Sozialer Dienst“) - Termine & Schließzeiten, gruppiert nach Monat, mit Kalender-Abo (`/termine.ics`) - 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 - Merkliste (lokal auf dem Gerät), Teilen, offline lesbar, als App installierbar - Keine Werbung, kein Tracking, keine externen Schriften oder CDNs @@ -25,8 +26,8 @@ Tablet und Desktop. - Text-Editor mit Formatierungen, Links und Bildern - Bilder werden automatisch gedreht, verkleinert und als WebP gespeichert - Rollen: **Redakteur** (Inhalte) und **Administrator** (zusätzlich Benutzer & Einstellungen) -- Einstellungen: App-Name, Logo, Markenfarbe, Texte, Impressum, Datenschutz – das App-Symbol - wird daraus automatisch erzeugt +- Einstellungen: App-Name, Logo, Farbpaar (Haupt- und Akzentfarbe), Titelbild, Texte, Impressum, + Datenschutz – das App-Symbol wird daraus automatisch erzeugt ## 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. - **Admin-Bereiche** folgen alle demselben Muster: `src/routes/admin/(panel)//` 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`. ## Ideen für später diff --git a/package-lock.json b/package-lock.json index 1faa5a1..cb59a1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,7 @@ "sharp": "^0.35.5" }, "devDependencies": { - "@fontsource-variable/atkinson-hyperlegible-next": "^5.3.0", - "@fontsource-variable/bricolage-grotesque": "^5.3.0", + "@fontsource-variable/montserrat": "^5.3.0", "@lucide/svelte": "^1.48.0", "@sveltejs/adapter-node": "^5.5.7", "@sveltejs/kit": "^2.70.3", @@ -935,20 +934,10 @@ "node": ">=18" } }, - "node_modules/@fontsource-variable/atkinson-hyperlegible-next": { + "node_modules/@fontsource-variable/montserrat": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource-variable/atkinson-hyperlegible-next/-/atkinson-hyperlegible-next-5.3.0.tgz", - "integrity": "sha512-UnLzNUy1RWoLDfydAatP4NaRm99X/WbQEph7q/PymJnCFIOOwKOx3pBmp5ys8trO0dM+CKGuJgeZP9fAR4mQpA==", - "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==", + "resolved": "https://registry.npmjs.org/@fontsource-variable/montserrat/-/montserrat-5.3.0.tgz", + "integrity": "sha512-7PaZoxaxrWLAyrhO46v65An9LhUhfkTExWLhfbywYZCnZEgg/W1rEHnlNmZKjNZ3nJTVYyicqxlJt10z/26yTA==", "dev": true, "license": "OFL-1.1", "funding": { diff --git a/package.json b/package.json index 27db5f6..e420e51 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,7 @@ "sharp": "^0.35.5" }, "devDependencies": { - "@fontsource-variable/atkinson-hyperlegible-next": "^5.3.0", - "@fontsource-variable/bricolage-grotesque": "^5.3.0", + "@fontsource-variable/montserrat": "^5.3.0", "@lucide/svelte": "^1.48.0", "@sveltejs/adapter-node": "^5.5.7", "@sveltejs/kit": "^2.70.3", diff --git a/scripts/seed.ts b/scripts/seed.ts index 1e02f18..a2d89f5 100644 --- a/scripts/seed.ts +++ b/scripts/seed.ts @@ -28,6 +28,8 @@ if (db.select().from(s.pages).all().length && !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(); + // alte Upload-Dateien mit entfernen + for (const f of fs.readdirSync(UPLOAD_DIR)) fs.rmSync(path.join(UPLOAD_DIR, f), { force: true }); } // ─── Hilfen ────────────────────────────────────────────────────────────────── @@ -44,17 +46,14 @@ const daysAgo = (n: number, hour = 9) => { 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) { - const rnd = (n: number) => ((Math.sin(seed * 9301 + n * 49297) + 1) / 2); - const circles = Array.from({ length: 6 }, (_, i) => { - const r = 80 + rnd(i) * 260; - return ``; - }).join(''); + const cx = [1350, 250, 1500, 900, 150][seed % 5]; + const cy = [820, 900, 150, 1000, 100][seed % 5]; const svg = ` - - ${circles} - + + + `; const base = `${Date.now().toString(36)}-${randomBytes(6).toString('hex')}`; const img = sharp(Buffer.from(svg)); @@ -79,10 +78,14 @@ db.insert(s.settings) value: { appName: 'Lindenhof App', 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.', - brandColor: '#0e7c66', + brandColor: '#2e2672', + accentColor: '#85357c', logoId: null, + heroEnabled: true, + heroImageId: null, + heroTagline: 'Arbeit, Bildung, Teilhabe', website: 'https://example.org', contactEmail: 'app@example.org', 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 = [ { - 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.', content: '

Bei strahlendem Sonnenschein haben wir am Samstag unser Sommerfest gefeiert. Rund 400 Gäste – Beschäftigte, Angehörige, Nachbarn und Freunde – kamen auf den Lindenhof.

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.

Ein großes Dankeschön

An alle Helferinnen und Helfer, die das Fest möglich gemacht haben!

', contentEasy: '

Wir haben ein Sommer·fest gefeiert.

Es waren viele Gäste da.

Es gab Musik und Essen vom Grill.

Danke an alle Helfer!

', 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.', content: '

Seit diesem Monat arbeiten drei Beschäftigte aus der Gartengruppe auf betriebsintegrierten Arbeitsplätzen bei der Gärtnerei Grünschnabel.

Du interessierst dich auch für einen Außenarbeitsplatz? Der Fachdienst Übergang berät dich gerne.

', 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.', content: '

Ab sofort gibt es im Café Linde die neue Herbstkarte. Probiert unbedingt den Apfelkuchen mit Streuseln – die Äpfel stammen aus unserem eigenen Garten!

', 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.', content: '

Die Wahl zum Werkstattrat ist abgeschlossen. Die Wahlbeteiligung lag bei 71 Prozent – herzlichen Dank an alle, die gewählt haben!

Jonas Pieper wurde zum Vorsitzenden gewählt.

', contentEasy: '

Wir haben den Werkstatt·rat gewählt.

Viele Menschen haben mit·gemacht.

Jonas Pieper ist jetzt der Chef vom Werkstatt·rat.

', 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.', content: '

Im Erste-Hilfe-Kurs lernst du, was im Notfall zu tun ist: Notruf absetzen, stabile Seitenlage, Pflaster und Verband. Anmeldung beim Sozialen Dienst.

', contacts: [0] diff --git a/src/app.css b/src/app.css index db909ee..02c1181 100644 --- a/src/app.css +++ b/src/app.css @@ -1,59 +1,68 @@ @import 'tailwindcss'; -@import '@fontsource-variable/atkinson-hyperlegible-next'; -@import '@fontsource-variable/bricolage-grotesque'; +@import '@fontsource-variable/montserrat'; +@import '@fontsource-variable/montserrat/wght-italic.css'; @plugin '@tailwindcss/typography'; /* ─── Design-Tokens ────────────────────────────────────────────────────────── - Alle Farben laufen über CSS-Variablen, damit Hell/Dunkel und die - Markenfarbe aus den Einstellungen überall automatisch greifen. */ + Zwei Markenfarben aus den Einstellungen (--brand, --accent), alles andere + wird daraus abgeleitet. So passt das Farbschema zu jeder Einrichtung. */ :root { - --brand: #0e7c66; - --bg: #f7f5f0; + --brand: #2e2672; + --accent: #85357c; + --bg: #ffffff; --surface: #ffffff; - --surface-2: #f0ede6; - --ink: #1d2024; - --ink-2: #545b64; - --ink-3: #7c848e; - --line: #e4e0d7; - --shadow: 0 1px 2px rgb(40 30 10 / 0.05), 0 6px 20px -8px rgb(40 30 10 / 0.12); - --shadow-lg: 0 2px 4px rgb(40 30 10 / 0.05), 0 18px 40px -16px rgb(40 30 10 / 0.25); - --brand-soft: color-mix(in oklab, var(--brand) 12%, var(--surface)); - --brand-ink: color-mix(in oklab, var(--brand) 80%, black); - --danger: #c2412d; + /* ruhige Flächen: Lavendel, aus der Markenfarbe abgeleitet */ + --surface-2: color-mix(in oklab, var(--brand) 8%, white); + --ink: color-mix(in oklab, var(--brand) 92%, black); + --ink-2: color-mix(in oklab, var(--brand) 40%, #5d6073); + --ink-3: color-mix(in oklab, var(--brand) 22%, #7f84a3); + --line: color-mix(in oklab, var(--brand) 13%, white); + --shadow: 0 1px 2px rgb(20 16 60 / 0.05), 0 8px 24px -12px rgb(20 16 60 / 0.14); + --shadow-lg: 0 2px 6px rgb(20 16 60 / 0.06), 0 24px 48px -20px rgb(20 16 60 / 0.3); + --brand-soft: color-mix(in oklab, var(--brand) 10%, white); + --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; } :root[data-theme='dark'] { - --bg: #111315; - --surface: #1a1d20; - --surface-2: #23272b; - --ink: #eef0f2; - --ink-2: #b4bac1; - --ink-3: #8a929b; - --line: #2e3338; - --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px -8px rgb(0 0 0 / 0.5); - --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px -16px rgb(0 0 0 / 0.7); - --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface)); - --brand-ink: color-mix(in oklab, var(--brand) 55%, white); - --danger: #f08a78; + --bg: #131129; + --surface: #1b1839; + --surface-2: #242050; + --ink: #efedfb; + --ink-2: #bdb9dc; + --ink-3: #8f8bb8; + --line: #302b63; + --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6); + --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) 45%, var(--surface)); + --brand-ink: color-mix(in oklab, var(--brand) 35%, white); + --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; } @media (prefers-color-scheme: dark) { :root[data-theme='system'] { - --bg: #111315; - --surface: #1a1d20; - --surface-2: #23272b; - --ink: #eef0f2; - --ink-2: #b4bac1; - --ink-3: #8a929b; - --line: #2e3338; - --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px -8px rgb(0 0 0 / 0.5); - --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px -16px rgb(0 0 0 / 0.7); - --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface)); - --brand-ink: color-mix(in oklab, var(--brand) 55%, white); - --danger: #f08a78; + --bg: #131129; + --surface: #1b1839; + --surface-2: #242050; + --ink: #efedfb; + --ink-2: #bdb9dc; + --ink-3: #8f8bb8; + --line: #302b63; + --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6); + --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) 45%, var(--surface)); + --brand-ink: color-mix(in oklab, var(--brand) 35%, white); + --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; } } @@ -64,8 +73,8 @@ :root[data-size='xl'] { font-size: 132%; } @theme inline { - --font-sans: 'Atkinson Hyperlegible Next Variable', ui-sans-serif, system-ui, sans-serif; - --font-display: 'Bricolage Grotesque Variable', 'Atkinson Hyperlegible Next Variable', ui-sans-serif, sans-serif; + --font-sans: 'Montserrat Variable', ui-sans-serif, system-ui, 'Segoe UI', sans-serif; + --font-display: 'Montserrat Variable', ui-sans-serif, system-ui, sans-serif; --color-bg: var(--bg); --color-surface: var(--surface); @@ -77,6 +86,10 @@ --color-brand: var(--brand); --color-brand-soft: var(--brand-soft); --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-tone: var(--tone); --color-tone-soft: var(--tone-soft); @@ -86,30 +99,30 @@ --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-amber { --tone: #d98a06; } -.tone-lime { --tone: #6f9b17; } -.tone-emerald { --tone: #1b9164; } -.tone-teal { --tone: #0d8589; } -.tone-sky { --tone: #1f7fca; } -.tone-indigo { --tone: #4b56cc; } -.tone-violet { --tone: #8448c8; } -.tone-rose { --tone: #cf3f74; } +.tone-coral { --tone: #c0442b; } +.tone-amber { --tone: #b86e00; } +.tone-lime { --tone: #5c8a12; } +.tone-emerald { --tone: #1b8a5e; } +.tone-teal { --tone: #0d7f83; } +.tone-sky { --tone: #1f6fb8; } +.tone-indigo { --tone: #3d45b8; } +.tone-violet { --tone: #7a3fb8; } +.tone-rose { --tone: #b83468; } .tone-slate { --tone: #56647a; } [class*='tone-'] { - --tone-soft: color-mix(in oklab, var(--tone) 13%, var(--surface)); - --tone-ink: color-mix(in oklab, var(--tone) 78%, var(--ink)); + --tone-soft: color-mix(in oklab, var(--tone) 12%, var(--surface)); + --tone-ink: color-mix(in oklab, var(--tone) 85%, var(--ink)); } :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); } @media (prefers-color-scheme: dark) { :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); } } @@ -125,81 +138,96 @@ background: var(--bg); color: var(--ink); font-family: var(--font-sans); - line-height: 1.55; + font-weight: 500; + line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } h1, h2, h3, .font-display { font-family: var(--font-display); - font-optical-sizing: auto; - letter-spacing: -0.015em; - line-height: 1.15; + font-weight: 700; + letter-spacing: -0.01em; + line-height: 1.2; + text-wrap: balance; } :focus-visible { - outline: 3px solid var(--brand); + outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; } ::selection { - background: color-mix(in oklab, var(--brand) 30%, transparent); + background: color-mix(in oklab, var(--accent) 25%, transparent); } } @layer components { .card { background: var(--surface); - border-radius: 1.25rem; - box-shadow: var(--shadow); - border: 1px solid color-mix(in oklab, var(--line) 60%, transparent); + border-radius: 1rem; + border: 1px solid var(--line); } .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 { - box-shadow: var(--shadow-lg); - } - .pressable:active { - transform: scale(0.98); + box-shadow: var(--shadow); + border-color: color-mix(in oklab, var(--brand) 25%, var(--line)); } .btn { display: inline-flex; align-items: center; justify-content: center; - gap: 0.5rem; + gap: 0.55rem; min-height: 2.75rem; - padding: 0.5rem 1.1rem; + padding: 0.5rem 1.25rem; border-radius: 999px; - font-weight: 600; - transition: background-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s; + font-weight: 700; + transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; white-space: nowrap; } - .btn:active { transform: scale(0.97); } .btn-primary { background: var(--brand); - color: white; - box-shadow: 0 6px 16px -8px var(--brand); + color: var(--on-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 { background: var(--brand-soft); 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 { color: var(--ink-2); } .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:hover { background: color-mix(in oklab, var(--danger) 22%, var(--surface)); } - .btn-sm { min-height: 2.25rem; padding: 0.3rem 0.85rem; font-size: 0.9rem; } + .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) 20%, var(--surface)); } + .btn-sm { min-height: 2.25rem; padding: 0.3rem 0.95rem; font-size: 0.9rem; } .btn-icon { padding: 0; width: 2.75rem; } + /* Gesperrte Kleinzeile in Großbuchstaben */ .eyebrow { font-size: 0.78rem; - font-weight: 700; - letter-spacing: 0.08em; + font-weight: 500; + letter-spacing: 0.2em; 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 */ @@ -207,19 +235,21 @@ @apply prose max-w-none; --tw-prose-body: 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-bullets: var(--brand); + --tw-prose-bullets: var(--accent); --tw-prose-counters: 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); - font-size: 1.08rem; - line-height: 1.7; + font-size: 1.05rem; + 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(a) { text-underline-offset: 3px; } + .rich :where(a) { text-underline-offset: 3px; font-weight: 600; } .rich :where(p:first-child) { margin-top: 0; } /* Formularfelder (öffentlich & Admin) */ @@ -227,23 +257,24 @@ display: block; width: 100%; min-height: 2.75rem; - padding: 0.6rem 0.9rem; - border-radius: 0.8rem; + padding: 0.6rem 0.95rem; + border-radius: 0.75rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); + font-weight: 500; transition: border-color 0.15s, box-shadow 0.15s; } .field:focus { outline: none; 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); } .label { display: block; - font-weight: 600; - font-size: 0.92rem; + font-weight: 700; + font-size: 0.9rem; margin-bottom: 0.35rem; } .hint { diff --git a/src/lib/admin/IconTonePicker.svelte b/src/lib/admin/IconTonePicker.svelte index 06f1623..f72db75 100644 --- a/src/lib/admin/IconTonePicker.svelte +++ b/src/lib/admin/IconTonePicker.svelte @@ -1,8 +1,8 @@ @@ -11,36 +11,18 @@ -
-
- - {label || 'Vorschau'} -
+
+ + {label || 'Vorschau'}
-
- Farbe -
- {#each toneNames as t (t)} - - {/each} -
-
-
Symbol
{#each Object.entries(ICONS) as [key, def] (key)}
-
diff --git a/src/lib/components/Attachments.svelte b/src/lib/components/Attachments.svelte index b45f532..38f62d6 100644 --- a/src/lib/components/Attachments.svelte +++ b/src/lib/components/Attachments.svelte @@ -22,7 +22,7 @@ {@const Ico = iconFor(a.file.mimeType)}
  • - + {a.title} {kind(a.file.mimeType, a.file.name)} · {size(a.file.size)} diff --git a/src/lib/components/ContactCard.svelte b/src/lib/components/ContactCard.svelte index 02cb17a..89bd31b 100644 --- a/src/lib/components/ContactCard.svelte +++ b/src/lib/components/ContactCard.svelte @@ -15,16 +15,16 @@ const tel = $derived(contact.phone.replace(/[^\d+]/g, '')); -
    +
    {#if contact.photo} - + {:else} -