Projektseite, Aufgaben-Kategorien und Terminplan wie MS Project (0.3.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

- Projekt-Detailseite mit Kacheln und Reitern, Baustellenadresse und Notiz (Migration 005)
- Aufgaben mit Projekt, Kunde und Kategorie; Kategorien im Auswahlmenü bearbeiten
- Terminplan: Bearbeitung direkt in der Tabelle, Spalten ausblendbar

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-20 04:40:43 +00:00
parent 7175cd1b75
commit 3dead5bc51
11 changed files with 666 additions and 102 deletions

View File

@@ -107,10 +107,10 @@ td.zahl { white-space: nowrap; }
button.neben.an { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent); font-weight: 600; }
.schalter { display: inline-flex; align-items: center; gap: 6px; color: var(--leise); font-size: 14px; }
.leiste .hinweis { font-size: 13px; margin-left: auto; }
.gantt { --links: 600px; overflow: auto; max-height: calc(100vh - 150px); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; position: relative; }
.gantt { --links: 680px; overflow: auto; max-height: calc(100vh - 150px); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; position: relative; }
.g-inhalt { position: relative; }
.g-kopf { position: sticky; top: 0; z-index: 4; display: flex; background: var(--fl); border-bottom: 1px solid var(--linie); }
.g-links { position: sticky; left: 0; z-index: 2; width: var(--links); flex: none; display: grid; grid-template-columns: 44px 22px 1fr 64px 64px 30px 80px 84px 24px; align-items: center; gap: 4px; padding: 0 6px 0 8px; height: 34px; background: var(--fl); border-right: 1px solid var(--linie); font-size: 13px; }
.g-links { position: sticky; left: 0; z-index: 2; width: var(--links); flex: none; display: grid; grid-template-columns: 44px 22px 1fr 64px 64px 30px 80px 84px 24px 24px; align-items: center; gap: 4px; padding: 0 6px 0 8px; height: 34px; background: var(--fl); border-right: 1px solid var(--linie); font-size: 13px; }
.g-links.kopf { height: 63px; align-items: end; padding-bottom: 6px; font-size: 12px; color: var(--leise); font-weight: 600; z-index: 5; }
.g-zeit .reihe { display: flex; height: 21px; font-size: 11px; color: var(--leise); }
.g-zeit .reihe > div { border-left: 1px solid var(--linie); padding: 3px 4px; white-space: nowrap; overflow: hidden; flex: none; }
@@ -125,7 +125,6 @@ button.neben.an { background: var(--akzent-hell); border-color: var(--akzent); c
.g-zeile .name small { font-weight: 400; color: var(--leise); }
.g-zeile.a .name { font-weight: 600; padding-left: 4px; cursor: pointer; }
.g-zeile.v .name { padding-left: 18px; cursor: pointer; }
.g-zeile .name.vorgang:hover, .g-zeile .name.abschnitt:hover { color: var(--akzent); text-decoration: underline; }
.g-zeile .nr { color: var(--leise); font-variant-numeric: tabular-nums; }
.g-zeile .dat, .g-zeile .at { font-variant-numeric: tabular-nums; color: var(--leise); }
.g-zeile .vg { color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@@ -150,11 +149,6 @@ button.neben.an { background: var(--akzent-hell); border-color: var(--akzent); c
.g-pfeile { position: absolute; top: 0; left: var(--links); pointer-events: none; z-index: 1; overflow: visible; }
.g-pfeile path { fill: none; stroke: var(--leise); stroke-width: 1.2; }
.g-pfeile polygon { fill: var(--leise); }
@media (max-width: 800px) {
.gantt { --links: 220px; }
.g-links { grid-template-columns: 22px 1fr 22px; }
.g-links > :nth-child(1), .g-links > :nth-child(4), .g-links > :nth-child(5), .g-links > :nth-child(6), .g-links > :nth-child(7), .g-links > :nth-child(8) { display: none; }
}
.g-zeile .leute { display: flex; gap: 3px; overflow: hidden; cursor: pointer; white-space: nowrap; }
.g-zeile .leute .leer { color: var(--leise); font-size: 12px; opacity: 0; }
.g-zeile:hover .leute .leer { opacity: 1; }
@@ -217,3 +211,77 @@ tr.ohne .einsatz { background: #fdecea; color: #7a1c14; }
.kalender-link { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.kalender-link b { width: 90px; }
.kalender-link input { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
/* Aufgaben: Kategorien und Filter (G4) */
.kategorie { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); white-space: nowrap; }
ul.aufgaben li .kategorie { margin-left: auto; align-self: center; }
.leiste .schalter { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--leise); }
.dialog.kategorien { z-index: 11; width: min(400px, calc(100% - 32px)); }
.dialog.kategorien ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dialog.kategorien li, .dialog.kategorien form.neu { display: flex; gap: 6px; }
.dialog.kategorien form.neu { margin-top: 12px; }
.dialog.kategorien li .neben, .dialog.kategorien form.neu .neben { flex: none; padding: 6px 12px; }
/* Projektseite (P2): Kopf mit Status, Kacheln, Reiter darunter wie bei Plancraft */
.projekt-kopf h1 { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.projekt-kopf h1 .nummer { font-weight: 500; color: var(--leise); }
.projekt-kopf .zurueck { padding: 6px 12px; font-size: 18px; line-height: 1; }
.projekt-kopf select.etikett { border: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kachel { background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.kachel h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); }
.kachel h3 svg { width: 18px; height: 18px; }
.kachel p { margin: 4px 0; overflow-wrap: anywhere; }
.kachel .gross { font-size: 17px; }
.kachel a { color: var(--akzent); }
.kachel .hinweis { font-size: 13px; }
button.verweis { background: none; border: 0; padding: 0; color: var(--akzent); font: inherit; text-decoration: underline; cursor: pointer; }
dl.werte { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 14px; }
dl.werte dt { color: var(--leise); }
dl.werte dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.projekt-teile { padding: 0; }
.teile-kopf { display: flex; align-items: center; gap: 12px; padding: 8px 16px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.teile { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.teile button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 10px 9px; font: inherit; font-weight: 600; color: var(--leise); cursor: pointer; white-space: nowrap; }
.teile button.aktiv { color: var(--text); border-bottom-color: var(--akzent); }
.teile button small { font-weight: 500; background: var(--bg); border-radius: 999px; padding: 1px 7px; margin-left: 3px; }
#teil-knopf .haupt, #teil-knopf .neben { padding: 7px 14px; margin-bottom: 8px; }
#teil { padding: 12px 16px 16px; }
#teil table { border: 0; border-radius: 0; }
#teil .leer { margin: 8px 0; }
#teil .summe { text-align: right; margin: 10px 16px 0; font-variant-numeric: tabular-nums; }
#teil textarea { width: 100%; padding: 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--fl); color: var(--text); font: inherit; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.etikett.zahlung-gestellt { background: #fcefc3; color: #7a5600; }
.etikett.zahlung-bezahlt { background: #daf3e3; color: #19703f; }
@media (max-width: 800px) {
.kacheln { grid-template-columns: 1fr; }
#teil { padding: 8px 4px 12px; }
}
.aufgaben-tabelle th:first-child, .aufgaben-tabelle td:first-child { width: 1%; padding-right: 4px; }
@media (max-width: 800px) {
.teile { flex-basis: 100%; }
#teil-knopf { margin-left: auto; }
}
/* Bearbeiten in der Tabelle (wie MS Project) */
.gantt.schmal { --links: 360px; }
.gantt.schmal .g-links { grid-template-columns: 44px 22px 1fr 24px 24px; }
.gantt.schmal .g-links > :nth-child(4), .gantt.schmal .g-links > :nth-child(5), .gantt.schmal .g-links > :nth-child(6), .gantt.schmal .g-links > :nth-child(7), .gantt.schmal .g-links > :nth-child(8) { display: none; }
.g-zeile .zelle { cursor: text; border-radius: 4px; padding: 2px 3px; margin: 0 -3px; min-height: 20px; line-height: 20px; }
.g-zeile .zelle:hover { background: var(--akzent-hell); color: var(--text); text-decoration: none; }
.g-zeile .zelle.bearbeitet { padding: 0; background: none; overflow: visible; }
.g-eingabe { width: 100%; min-width: 0; height: 26px; padding: 2px 5px; font: inherit; font-size: 13px; border: 1px solid var(--akzent); border-radius: 4px; background: var(--fl); color: var(--text); box-sizing: border-box; }
.g-zeile.ausgewaehlt { background: var(--akzent-hell); }
.g-zeile.ausgewaehlt .g-links { background: var(--akzent-hell); }
.g-links .weg { background: none; border: 0; color: var(--leise); cursor: pointer; font: inherit; font-size: 12px; padding: 0; width: 22px; height: 22px; border-radius: 5px; opacity: 0; }
.g-zeile:hover .weg, .g-links .weg:focus-visible { opacity: 1; }
.g-links .weg:hover { background: var(--warnung-bg, var(--akzent-hell)); color: var(--warn); }
.g-links .weg.sicher { opacity: 1; width: auto; padding: 0 4px; background: var(--warn); color: #fff; font-weight: 600; font-size: 11px; }
.g-meldung:empty { display: none; }
@media (hover: none) { .g-links .weg { opacity: 1; } }
@media (max-width: 800px) {
.gantt, .gantt.schmal { --links: 240px; }
.g-links, .gantt.schmal .g-links { grid-template-columns: 22px 1fr 24px 24px; }
.g-links > :nth-child(1), .g-links > :nth-child(4), .g-links > :nth-child(5), .g-links > :nth-child(6), .g-links > :nth-child(7), .g-links > :nth-child(8) { display: none; }
}