Project_Manager/app/static/css/main.css
2026-06-26 18:21:22 +02:00

485 lines
12 KiB
CSS

/* =========================================================================
Projekt-Hub — Dark-Theme-Basis
Palette & Komponenten aus dem Prototyp (reference/projekte.html) übernommen
und als gemeinsames Theme für den ganzen Hub aufbereitet. Module nutzen
diese Variablen und Komponentenklassen.
========================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #1a1a2e;
--surface: #16213e;
--card: #0f3460;
--accent: #e94560;
--accent2: #f5a623;
--text: #eaeaea;
--muted: #8892a4;
--done: #3a4a5c;
--done-text: #566272;
--overdue: #ff6b6b;
--soon: #f5a623;
--ok: #4ecca3;
--border: rgba(255, 255, 255, 0.07);
--font: 'Segoe UI', system-ui, sans-serif;
}
body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
min-height: 100vh;
}
a { color: var(--accent); }
/* =========================================================================
Hub-Navigation (gemeinsame Leiste über allen Modulen)
========================================================================= */
.hub-nav {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 0.85rem 1.5rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.hub-brand {
font-weight: 700;
font-size: 1.05rem;
letter-spacing: -0.02em;
color: var(--text);
text-decoration: none;
}
.hub-brand span { color: var(--accent); }
.hub-nav-list {
display: flex;
gap: 0.4rem;
list-style: none;
}
.hub-nav-list a {
color: var(--muted);
text-decoration: none;
font-size: 0.85rem;
padding: 0.35rem 0.7rem;
border-radius: 20px;
transition: background 0.15s, color 0.15s;
}
.hub-nav-list a:hover { color: var(--text); background: var(--card); }
.hub-nav-auth { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.hub-user { color: var(--muted); font-size: 0.82rem; }
.hub-nav-auth a {
color: var(--muted);
text-decoration: none;
font-size: 0.82rem;
transition: color 0.15s;
}
.hub-nav-auth a:hover { color: var(--accent); }
.hub-main {
max-width: 760px;
margin: 0 auto;
padding: 2rem 1rem 4rem;
}
.muted { color: var(--muted); }
.hidden { display: none; }
/* Lösch-Formulare in Aufgaben/Projekten sollen das Flex-Layout nicht stören. */
.task form, .project-card-header form { display: inline-flex; }
/* =========================================================================
Flash-Meldungen
========================================================================= */
.flashes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.flash {
padding: 0.65rem 0.9rem;
border-radius: 8px;
border: 1px solid var(--border);
font-size: 0.9rem;
}
.flash-info { background: var(--surface); color: var(--text); }
.flash-success { background: rgba(78, 204, 163, 0.12); border-color: var(--ok); color: var(--ok); }
.flash-error { background: rgba(255, 107, 107, 0.14); border-color: var(--overdue); color: var(--overdue); }
/* =========================================================================
Auth-Karten / Formulare
========================================================================= */
.auth-card {
max-width: 380px;
margin: 3rem auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.75rem;
}
.auth-card h1 { margin-top: 0; margin-bottom: 0.4rem; font-size: 1.4rem; }
.auth-card .muted { margin-bottom: 1.2rem; font-size: 0.88rem; line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.stack label { font-size: 0.85rem; color: var(--muted); }
.stack input[type="text"],
.stack input[type="email"] {
width: 100%;
padding: 0.6rem 0.7rem;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 1rem;
font-family: var(--font);
outline: none;
transition: border-color 0.15s;
}
.stack input:focus { border-color: var(--accent); }
.field-error { color: var(--overdue); font-size: 0.83rem; }
.btn {
margin-top: 0.5rem;
padding: 0.6rem 0.9rem;
background: var(--accent);
border: none;
border-radius: 8px;
color: #fff;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
/* =========================================================================
Modul "Projekte" — Komponenten (aus dem Prototyp)
========================================================================= */
/* ── Seitenkopf ── */
.page-head {
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 2rem;
}
.page-head h1 {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.page-head h1 span { color: var(--accent); }
.today { font-size: 0.8rem; color: var(--muted); }
/* ── Stats-Leiste ── */
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stat {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem 1rem;
font-size: 0.8rem;
color: var(--muted);
}
.stat strong { color: var(--text); font-size: 1.1rem; display: block; }
/* ── Aufgaben-Formular ── */
.add-form {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.2rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 2.5rem;
}
.add-form .row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.add-form input[type="text"],
.add-form input[type="date"],
.add-form select {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
padding: 0.55rem 0.8rem;
font-size: 0.9rem;
font-family: var(--font);
outline: none;
transition: border-color 0.15s;
}
.add-form input[type="text"] { flex: 1; min-width: 180px; }
.add-form input[type="date"] { width: 145px; color-scheme: dark; }
.add-form select { width: 150px; }
.add-form input:focus, .add-form select:focus { border-color: var(--accent); }
.btn-add {
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
padding: 0.55rem 1.2rem;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: opacity 0.15s;
}
.btn-add:hover { opacity: 0.85; }
/* ── Projektverwaltung ── */
.project-mgmt {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
margin-bottom: 1rem;
}
.project-mgmt input[type="text"] {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
padding: 0.4rem 0.7rem;
font-size: 0.85rem;
font-family: var(--font);
outline: none;
width: 160px;
}
.project-mgmt input:focus { border-color: var(--accent); }
.btn-small {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
cursor: pointer;
transition: background 0.15s;
}
.btn-small:hover { background: var(--card); }
/* ── Abschnitte ── */
.section { margin-bottom: 2rem; }
.section-header {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.8rem;
user-select: none;
}
.section-header.clickable { cursor: pointer; }
.section-title {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.section-count {
font-size: 0.7rem;
background: var(--card);
color: var(--muted);
border-radius: 20px;
padding: 0.1rem 0.5rem;
}
.collapse-btn {
margin-left: auto;
background: none;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 0.75rem;
padding: 0;
}
/* ── Projektkarte ── */
.project-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
margin-bottom: 1rem;
overflow: hidden;
}
.project-card-header {
display: flex;
align-items: center;
gap: 0.7rem;
padding: 0.85rem 1rem;
cursor: pointer;
border-bottom: 1px solid var(--border);
}
.project-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.project-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.project-meta { font-size: 0.75rem; color: var(--muted); }
.project-delete {
background: none;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 0.85rem;
padding: 0.2rem 0.4rem;
border-radius: 4px;
transition: color 0.15s;
}
.project-delete:hover { color: var(--accent); }
/* ── Aufgaben-Eintrag ── */
.task-list { padding: 0.4rem 0; }
.task {
display: flex;
align-items: flex-start;
gap: 0.7rem;
padding: 0.55rem 1rem;
border-bottom: 1px solid var(--border);
transition: background 0.1s;
}
.task:last-child { border-bottom: none; }
.task:hover { background: rgba(255, 255, 255, 0.03); }
.task.done { opacity: 0.5; }
.task input[type="checkbox"] {
margin-top: 0.15rem;
width: 16px;
height: 16px;
accent-color: var(--accent);
cursor: pointer;
flex-shrink: 0;
}
.task-body { flex: 1; min-width: 0; }
.task-text { font-size: 0.9rem; line-height: 1.4; word-break: break-word; }
.task.done .task-text { text-decoration: line-through; color: var(--done-text); }
.task-due {
display: inline-block;
margin-top: 0.25rem;
font-size: 0.72rem;
font-weight: 600;
padding: 0.1rem 0.5rem;
border-radius: 20px;
letter-spacing: 0.03em;
}
.due-overdue { background: rgba(255, 107, 107, 0.18); color: var(--overdue); }
.due-soon { background: rgba(245, 166, 35, 0.18); color: var(--soon); }
.due-ok { background: rgba(78, 204, 163, 0.12); color: var(--ok); }
.due-none { background: var(--card); color: var(--muted); }
.task-project-tag {
font-size: 0.68rem;
padding: 0.1rem 0.45rem;
border-radius: 20px;
margin-left: 0.3rem;
font-weight: 600;
}
.task-delete {
background: none;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 0.8rem;
padding: 0.1rem 0.3rem;
border-radius: 4px;
opacity: 0;
transition: opacity 0.15s, color 0.15s;
flex-shrink: 0;
}
.task:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--accent); }
.empty-hint {
text-align: center;
color: var(--muted);
font-size: 0.85rem;
padding: 1.5rem;
}
/* ── Filter-Leiste ── */
.filter-bar {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
margin-bottom: 0.75rem;
}
.filter-btn {
background: var(--surface);
border: 1px solid var(--border);
color: var(--muted);
border-radius: 20px;
padding: 0.3rem 0.8rem;
font-size: 0.78rem;
cursor: pointer;
transition: all 0.15s;
}
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-btn:hover:not(.active) { border-color: var(--muted); color: var(--text); }
.filter-label { font-size: 0.75rem; color: var(--muted); margin-right: 0.2rem; }
/* ── Trenner ── */
.divider { margin-bottom: 2rem; border: none; border-top: 1px solid var(--border); }
/* ── Backup/Sync-Leiste ── */
.sync-bar {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 0.9rem 1.2rem;
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 2.5rem;
}
.sync-label {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
margin-right: 0.25rem;
}
.btn-sync {
background: var(--card);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.4rem 0.9rem;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
display: inline-flex;
align-items: center;
gap: 0.4rem;
text-decoration: none;
}
.btn-sync:hover { background: #1a3a5c; border-color: var(--accent); }
.btn-sync.export { border-color: var(--ok); color: var(--ok); }
.btn-sync.export:hover { background: rgba(78, 204, 163, 0.1); }
.btn-sync.import { border-color: var(--accent2); color: var(--accent2); }
.btn-sync.import:hover { background: rgba(245, 166, 35, 0.1); }
.sync-hint { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
/* ── Toast ── */
.sync-toast {
position: fixed;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%) translateY(80px);
background: var(--card);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.6rem 1.2rem;
font-size: 0.85rem;
font-weight: 500;
pointer-events: none;
transition: transform 0.25s ease, opacity 0.25s ease;
opacity: 0;
z-index: 100;
white-space: nowrap;
}
.sync-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }