/* Aufbau ähnlich Plancraft (Henning, 19.10.2026): dunkle Seitenleiste, helle Fläche, weiße Karten, farbige Status-Etiketten. Farben: Blautöne, dazu die Markenfarbe aus dem Logo (--marke dunkles Braun, --holz helles Braun) für Logo und Markierungen. */ :root { --marke: #451e0c; --holz: #a26e3a; --leiste: #13294a; --leiste-text: #b9c7da; --leiste-aktiv: #234a7c; --bg: #f2f4f8; --fl: #ffffff; --text: #18202c; --leise: #5f6b7a; --linie: #e0e5ec; --akzent: #1d5fa8; --akzent-hover: #174d89; --akzent-text: #ffffff; --akzent-hell: #e4eefa; --warn: #b42318; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; } @media (prefers-color-scheme: dark) { :root { --leiste: #0d1a2e; --leiste-aktiv: #1d3a62; --bg: #111822; --fl: #1a2331; --text: #e8edf4; --leise: #9aa7b8; --linie: #2b3747; --akzent: #5a9be0; --akzent-hover: #78b0ea; --akzent-text: #0d1a2e; --akzent-hell: #1d3352; --warn: #f97066; } } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); display: flex; min-height: 100vh; } /* Seitenleiste */ #seitenleiste { width: 200px; flex: none; background: var(--leiste); color: var(--leiste-text); display: flex; flex-direction: column; padding: 14px 10px; position: sticky; top: 0; height: 100vh; } #marke { background: #fff; border-radius: 10px; padding: 10px 14px; margin: 0 4px 18px; display: grid; place-items: center; } #marke img { width: 96px; height: auto; display: block; } #reiter { display: flex; flex-direction: column; gap: 2px; flex: 1; } #reiter button { display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 9px 10px; border-radius: 8px; color: inherit; cursor: pointer; font: inherit; text-align: left; } #reiter button svg { width: 19px; height: 19px; flex: none; } #reiter button:hover { background: rgb(255 255 255 / 0.06); color: #fff; } #reiter button.aktiv { background: var(--leiste-aktiv); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--holz); } #version { font-size: 12px; padding: 8px 10px 0; opacity: 0.7; } /* Inhalt */ main { flex: 1; min-width: 0; padding: 22px 28px; max-width: 1280px; } .kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; } .kopf h1 { font-size: 24px; margin: 0; flex: 1; color: var(--text); } h2 { font-size: 16px; margin: 26px 0 10px; } .leiste { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; } .leiste select, .leiste input { padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--fl); color: var(--text); font: inherit; } button.haupt { background: var(--akzent); color: var(--akzent-text); border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; } button.haupt:hover { background: var(--akzent-hover); } button.neben, a.neben { display: inline-block; background: var(--fl); color: var(--text); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; text-decoration: none; } button.neben:hover, a.neben:hover { border-color: var(--leise); } /* Tabellen als Karte */ table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; } th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--linie); vertical-align: middle; } tbody tr:last-child td { border-bottom: 0; } th { font-size: 13px; color: var(--leise); font-weight: 600; } td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; } td .unter { display: block; color: var(--leise); font-size: 13px; margin-top: 2px; } tr.klickbar { cursor: pointer; } tr.klickbar:hover td { background: var(--bg); } .nur-schmal { display: none; } td { overflow-wrap: break-word; } td.zahl { white-space: nowrap; } .anzahl { color: var(--leise); font-size: 13px; margin: 10px 2px; } /* Status-Etiketten */ .etikett { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; white-space: nowrap; background: #eef1f5; color: #4a5565; } .etikett.angebot { background: #e4eefa; color: #1d5fa8; } .etikett.auftrag { background: #d7ecfa; color: #0b5f96; } .etikett.ausfuehrung { background: #fcefc3; color: #7a5600; } .etikett.abgerechnet { background: #dcf1f4; color: #0f6674; } .etikett.gewaehrleistung { background: #e6e8fb; color: #3c47a8; } .etikett.abgeschlossen { background: #daf3e3; color: #19703f; } .hinweis { color: var(--leise); } .fehler { color: var(--warn); } /* Dialoge */ #dialog-huelle { position: fixed; inset: 0; background: rgb(10 20 35 / 0.4); display: grid; place-items: center; padding: 16px; z-index: 10; } #dialog-huelle[hidden] { display: none; } .dialog { background: var(--fl); border-radius: 12px; padding: 22px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 12px 34px rgb(0 0 0 / 0.25); } .dialog h2 { font-size: 18px; margin: 0 0 14px; } .dialog label { display: block; font-size: 13px; color: var(--leise); margin: 12px 0 4px; } .dialog input, .dialog select, .dialog textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--fl); color: var(--text); font: inherit; } .dialog input:focus, .dialog select:focus, .dialog textarea:focus { outline: 2px solid var(--akzent-hell); border-color: var(--akzent); } .dialog .knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; } .dialog .knoepfe .links { margin-right: auto; } /* Schmale Bildschirme: Leiste oben, waagerecht scrollbar */ @media (max-width: 800px) { body { flex-direction: column; } #seitenleiste { width: auto; height: auto; position: static; flex-direction: row; align-items: center; padding: 8px; gap: 6px; overflow-x: auto; } #marke { padding: 4px 6px; margin: 0 4px 0 0; } #marke img { width: 34px; } #version { display: none; } #reiter { flex-direction: row; } #reiter button { padding: 8px 10px; white-space: nowrap; } main { padding: 16px; } th.optional, td.optional { display: none; } .nur-schmal { display: inline; } th, td { padding: 11px 10px; } td .unter { font-size: 12px; } } /* Terminplan (Gantt) */ 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: 520px; 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 34px 92px 26px; 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; } .g-zeit .reihe.tage > div { padding: 3px 0; text-align: center; } .g-zeit .tage .frei, .g-zeit .tage .feiertag { color: var(--warn); } .g-zeit .tage .reserve { color: var(--holz); } .g-koerper { position: relative; } .g-zeile { position: absolute; left: 0; right: 0; height: 34px; border-bottom: 1px solid var(--linie); } .g-zeile.p .g-links { font-weight: 600; background: var(--bg); } .g-zeile.p { background: var(--bg); } .g-zeile .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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; } .g-links .klapp, .g-links .plus { background: none; border: 0; color: var(--leise); cursor: pointer; font: inherit; padding: 0; width: 22px; height: 22px; border-radius: 5px; } .g-links .plus { font-size: 17px; color: var(--akzent); } .g-links .klapp:hover, .g-links .plus:hover { background: var(--akzent-hell); } .g-links .griff { cursor: grab; color: var(--leise); user-select: none; text-align: center; } .g-balken { position: absolute; height: 34px; left: var(--links); right: 0; pointer-events: none; z-index: 1; } .balken { position: absolute; top: 9px; height: 16px; border-radius: 4px; color: #fff; font-size: 11px; line-height: 16px; padding-left: 5px; white-space: nowrap; overflow: hidden; pointer-events: auto; } .balken.projekt { top: 14px; height: 6px; padding: 0; pointer-events: none; } .balken.abschnitt { top: 12px; height: 10px; opacity: 0.55; padding: 0; pointer-events: none; } .balken.vorgang { cursor: grab; touch-action: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); } .balken.zieht { cursor: grabbing; opacity: 0.8; outline: 2px solid var(--akzent); } .balken .griff-rechts { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: rgb(255 255 255 / 0.35); } .balken.meilenstein { width: 14px; height: 14px; top: 10px; transform: rotate(45deg); border-radius: 2px; padding: 0; cursor: grab; touch-action: none; } .g-schatten { position: absolute; top: 0; bottom: 0; left: var(--links); } .g-schatten i { position: absolute; top: 0; bottom: 0; } .g-schatten .frei { background: rgb(120 130 150 / 0.10); } .g-schatten .feiertag { background: rgb(180 35 24 / 0.10); } .g-schatten .reserve { background: repeating-linear-gradient(135deg, rgb(162 110 58 / 0.10) 0 4px, transparent 4px 8px); } .g-schatten .heute { width: 2px; background: var(--warn); } .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) { display: none; } }