Rollen (Admin/Mitglied), Seite Kooperationen, Textanpassungen

- Gemeinsame Zugänge mit Rollen: Admin darf alles, Mitglied nutzt Kalender,
  Fahrtplaner, Treffpunkte und bearbeitet Mitglieder (kein Hinzufügen,
  Löschen, Import, keine Patches, keine Statistik-Korrektur)
- Server prüft die Rechte (403), Konten ohne Rolle gelten als Admin
- npm run user: add <name> [admin|mitglied], role <name> <rolle>
- Neue öffentliche Seite Kooperationen mit Titelbild, Anführer,
  Social-Media-Links und Beschreibung, Pflege durch Admin
- Kopfzeile bleibt bei mittlerer Breite einzeilig
- Texte auf Wunsch gekürzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
guyg1474andClaude Opus 5.5 committed 2026-10-12 19:47:03 +02:00
1 parent f46016487d
commit 819219fb2d
18 files changed
+661 -106

No files matched your search

+82 -1
View File
@@ -858,6 +858,84 @@ button.small, .button.small { padding: 5px 11px; font-size: .82rem; }
}
.empty-state svg { width: 56px; height: 56px; color: var(--border); }
/* ---------- Kooperationen ---------- */
.coop-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.coop-card {
display: flex;
flex-direction: column;
text-decoration: none;
color: var(--text);
background: var(--card);
box-shadow: inset 0 0 0 1px var(--border);
clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
transition: background-color .2s;
}
.coop-card:hover { background: var(--card-2); }
.coop-card-img {
aspect-ratio: 16 / 9;
max-width: 100%;
overflow: hidden;
display: grid;
place-items: center;
background: repeating-linear-gradient(135deg, var(--flag) 0 18px, #303b6a 18px 36px);
}
.coop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.coop-card:hover .coop-card-img img { transform: scale(1.05); }
.coop-initials { font-family: var(--font-stencil); font-size: 3.4rem; color: var(--accent); letter-spacing: .1em; }
.coop-card-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.coop-card-body h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.coop-card-body p { margin: 0; }
.coop-card .go { margin-top: 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 14px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.coop-hero {
position: relative;
aspect-ratio: 21 / 9;
max-height: 62vh;
width: 100%;
max-width: 100%;
overflow: hidden;
margin-bottom: 20px;
background: repeating-linear-gradient(135deg, var(--flag) 0 22px, #303b6a 22px 44px);
clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.coop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Abdunklung nur unten, damit der Name auf jedem Foto lesbar bleibt */
.coop-hero::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(13, 17, 38, .9) 0%, rgba(13, 17, 38, .35) 40%, transparent 70%);
pointer-events: none;
}
.coop-hero.no-image::before {
content: attr(data-initials);
position: absolute;
right: 6%;
top: 50%;
transform: translateY(-50%);
font-family: var(--font-stencil);
font-size: clamp(5rem, 16vw, 12rem);
color: var(--accent);
opacity: .35;
}
.coop-hero-text { position: absolute; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 1; }
.coop-hero-text h1 { margin: 0; font-size: clamp(2rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: .03em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
@media (max-width: 600px) { .coop-hero { aspect-ratio: 4 / 3; } }
.coop-info .card { margin: 0; }
.coop-description { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; margin: 0; line-height: 1.65; }
.coop-leader { margin: 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card h2.spaced { margin-top: 24px; }
.coop-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.coop-socials svg { width: 18px; height: 18px; }
.admin-actions { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.socials-fields { border: none; padding: 0; margin: 4px 0 8px; }
.socials-fields legend { font-size: .94rem; color: var(--muted); padding: 0; margin-bottom: 6px; }
.socials-fields .grid2 { gap: 0 12px; }
.dropzone.wide { min-height: 220px; }
.dropzone.wide img { max-height: 260px; width: 100%; object-fit: cover; }
/* ---------- Fahrtplaner ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 14px; }
.car-meet { margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid var(--border); }
@@ -901,7 +979,10 @@ footer .f-brand img { width: 32px; height: 32px; }
/* ---------- Responsiv ---------- */
.nav-toggle { display: none; }
@media (max-width: 960px) {
/* Mittlere Breite: Zusatz neben dem Logo weg, damit alle Menüpunkte in eine Zeile passen */
@media (max-width: 1280px) { .brand small { display: none; } }
@media (max-width: 1040px) {
.site-header { padding: 8px var(--gutter); }
.site-header .inner { gap: 8px; }
.nav-toggle {