This commit is contained in:
Oliver Walter
2026-06-06 15:37:42 +02:00
commit 5f43c19878
26 changed files with 2881 additions and 0 deletions
+270
View File
@@ -0,0 +1,270 @@
/* ---- Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: system-ui, sans-serif;
background: #f4f6f8;
color: #1a1a2e;
font-size: 15px;
}
/* ---- Seite ---- */
.seite { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
/* ---- Kopfzeile ---- */
.kopfzeile {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 1.25rem;
h1 { font-size: 1.6rem; }
}
.kopf-aktionen { display: flex; gap: .6rem; }
/* ---- Buttons ---- */
.btn {
display: inline-flex; align-items: center; gap: .3rem;
padding: .45rem .9rem; border: none; border-radius: 6px;
cursor: pointer; font-size: .9rem; font-weight: 500;
transition: filter .15s;
&:hover { filter: brightness(.92); }
}
.btn-primary { background: #3b82f6; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-klein { padding: .25rem .55rem; font-size: .85rem; }
.btn-sekundaer { background: #e2e8f0; color: #334155; }
.btn-gefahr { background: #fee2e2; color: #b91c1c; }
/* CSV-Upload: verstecktes Input hinter einem Button-Label */
.csv-label { cursor: pointer; }
.csv-input-versteckt { display: none; }
/* ---- Meldungen ---- */
.meldung {
padding: .6rem 1rem; border-radius: 6px; margin-bottom: .75rem; font-size: .9rem;
}
.meldung-erfolg { background: #dcfce7; color: #166534; }
.meldung-fehler { background: #fee2e2; color: #991b1b; }
/* ---- Filter ---- */
.filter-bar {
display: flex; flex-wrap: wrap; gap: .5rem;
background: #fff; padding: .75rem; border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,.08);
margin-bottom: 1rem;
}
.filter-input, .filter-select {
padding: .4rem .65rem; border: 1px solid #cbd5e1;
border-radius: 6px; font-size: .875rem;
background: #fff;
}
.filter-input { min-width: 180px; }
/* ---- Formular ---- */
.form-container {
background: #fff; border-radius: 10px;
padding: 1.5rem; margin-bottom: 1.25rem;
box-shadow: 0 2px 8px rgba(0,0,0,.1);
h2 { margin-bottom: 1rem; font-size: 1.2rem; }
}
.form-gruppe {
display: flex; flex-direction: column; gap: .3rem;
margin-bottom: .85rem;
label { font-size: .85rem; font-weight: 600; color: #475569; }
input[type="text"], input[type="number"], select, textarea {
padding: .45rem .65rem; border: 1px solid #cbd5e1;
border-radius: 6px; font-size: .9rem;
&:focus { outline: 2px solid #3b82f6; border-color: #3b82f6; }
}
textarea { resize: vertical; min-height: 70px; }
}
.anzahl-zeile { display: flex; align-items: center; gap: .75rem; }
.anzahl-input { width: 90px; }
.checkbox-label { display: flex; align-items: center; gap: .35rem; cursor: pointer; font-size: .9rem; }
.form-aktionen { display: flex; gap: .6rem; margin-top: 1rem; }
.fehler-banner {
background: #fee2e2; color: #991b1b;
padding: .5rem .8rem; border-radius: 6px; margin-bottom: .75rem; font-size: .875rem;
}
/* ---- Tabelle ---- */
.tabellen-wrapper { overflow-x: auto; }
.tool-tabelle {
width: 100%; border-collapse: collapse;
background: #fff; border-radius: 10px; overflow: hidden;
box-shadow: 0 1px 4px rgba(0,0,0,.08);
th {
background: #f8fafc; text-align: left;
padding: .65rem .9rem; font-size: .8rem;
text-transform: uppercase; letter-spacing: .04em; color: #64748b;
border-bottom: 2px solid #e2e8f0;
}
td { padding: .6rem .9rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
}
.tool-name { min-width: 160px; }
.tool-notiz { font-size: .8rem; color: #64748b; margin-top: .2rem; }
.tag-zelle { vertical-align: middle; }
.aktionen-zelle { white-space: nowrap; }
/* ---- Badges ---- */
.status-badge, .prio-badge {
display: inline-block; padding: .2rem .55rem;
border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.status-offen { background: #fef3c7; color: #92400e; }
.status-organisiert { background: #dbeafe; color: #1e40af; }
.status-vor-ort { background: #dcfce7; color: #166534; }
.prio-hoch { background: #fee2e2; color: #991b1b; }
.prio-mittel { background: #fef9c3; color: #854d0e; }
.prio-niedrig { background: #f0fdf4; color: #15803d; }
.tag-chip {
display: inline-block;
background: #e0e7ff; color: #3730a3;
padding: .15rem .5rem; border-radius: 999px; font-size: .75rem;
margin: .1rem .2rem .1rem 0;
transition: background .12s, color .12s;
}
.tag-chip-ein {
background: #bfdbfe; color: #1e40af;
outline: 2px solid #3b82f6;
}
.tag-chip-aus {
background: #fecaca; color: #991b1b;
outline: 2px solid #ef4444;
}
/* ---- Tag-Filter-Zeile ---- */
.tag-filter-bereich {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .35rem;
width: 100%;
padding-top: .5rem;
margin-top: .1rem;
border-top: 1px solid #e2e8f0;
}
.tag-filter-label {
font-size: .8rem;
font-weight: 700;
color: #64748b;
white-space: nowrap;
}
.tag-filter-legende {
font-size: .72rem;
color: #94a3b8;
margin-left: .25rem;
white-space: nowrap;
}
/* ---- Sortierbare Spalten ---- */
.th-sortierbar {
cursor: pointer;
user-select: none;
white-space: nowrap;
&:hover { background: #eef2f7; color: #1e40af; }
}
/* ---- Aufklappbare Zeilen ---- */
.toggle-th { width: 36px; }
.toggle-zelle { width: 36px; text-align: center; }
.btn-toggle {
background: none;
border: none;
cursor: pointer;
font-size: .85rem;
color: #94a3b8;
padding: .15rem .35rem;
border-radius: 4px;
line-height: 1;
transition: color .12s, background .12s;
&:hover { background: #e2e8f0; color: #334155; }
}
.tool-zeile > td { transition: background .1s; }
.detail-zeile > td {
background: #f1f5f9;
padding: 0;
border-bottom: 2px solid #e2e8f0;
}
.detail-zeile:hover > td { background: #f1f5f9; } // kein hover-highlight
.detail-inhalt {
padding: .85rem 1rem .85rem 2.75rem !important;
}
.detail-grid {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
}
.detail-block {
display: flex;
flex-direction: column;
gap: .3rem;
min-width: 140px;
}
.detail-label {
font-size: .72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: #94a3b8;
}
.detail-text {
font-size: .875rem;
color: #334155;
white-space: pre-wrap;
margin: 0;
}
.detail-verwendung {
margin: 0 0 0 1rem;
font-size: .875rem;
color: #334155;
li { margin-bottom: .15rem; }
}
.detail-datum {
font-size: .8rem;
color: #94a3b8;
}
/* ---- Modal-Dialog ---- */
.tool-dialog {
// Zuverlässige Zentrierung unabhängig vom Browser-UA-Stylesheet
position: fixed;
inset: 0;
margin: auto;
border: none;
border-radius: 12px;
padding: 0;
width: min(780px, 94vw);
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
.form-container {
box-shadow: none;
border-radius: 12px;
}
&::backdrop {
background: rgba(15, 23, 42, .5);
// backdrop-filter wirkt auf den Inhalt hinter dem Overlay
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}
}
/* ---- Hilfstexte ---- */
.lade-text, .leer-text {
text-align: center; padding: 2rem; color: #94a3b8; font-style: italic;
}