Ebene 2 ("Antrag stellen") als einseitiges Formular statt mehrseitigem
Assistenten — jede zusätzliche Seite kostet Zeit, und laut Spezifikation
wird ein Antrag umgangen, wenn er länger als fünf Minuten dauert.
- GET /antraege/neu: Fragebogen-Formular (Abschnitte A-D exakt nach
Spezifikation). Adaptive Folgefragen (C2: welche Art von Entscheidung,
C3: welche Art von Erkennung) werden rein per CSS :has() ein-/
ausgeblendet, kein JavaScript nötig — visuell mit Chromium-Screenshots
verifiziert (unchecked vs. checked).
- POST /antraege: legt an und reicht direkt ein (entwurf->eingereicht in
einem Schritt, kein Zwischenspeichern als Entwurf für v1). Die
antworten-JSON nutzt exakt dieselben Fakten-Schlüssel wie
rules/*.yaml (b1-b7, c1-c5, c2_folge, c3_art) — Schritt 3 kann sie
direkt auswerten, ohne Felder umzubenennen. "Unsicher" wird bewusst
NICHT zu "ja" normalisiert (das ist eine Auswertungsregel für Schritt
3, keine Speicherregel) — der Antrag hält fest, was der Mitarbeiter
tatsächlich geantwortet hat.
- GET /antraege: eigene Anträge (Ebene 2 sieht nur eigene, nicht die
des ganzen Mandanten — dafür neue Store-Methode
ListAntraegeForUser, getrennt von ListAntraegeForAccount für den
späteren Ebene-3-Posteingang).
- GET /antraege/{id}: Detail, fremder Antrag liefert 404 (nicht 403,
gleiches Muster wie überall sonst im Projekt).
- betreiber-Rolle wird von allen Antrags-Routen weggeleitet (Ebene 5
ist technisch getrennt vom Mandantenbereich).
rules/OPEN.md Punkt 3 (fehlende Fragebogen-Unterscheidung für die
"verboten"-Varianten) damit geklärt: c3_art existiert jetzt mit den
bereits in rules/kivo_einstufung.yaml erwarteten Werten.
Volle Testsuite inkl. echter Postgres-Tests grün; End-to-End gegen
einen laufenden Server verifiziert (Antrag anlegen, antworten-JSON in
der DB korrekt, Detail-/Listenansicht, Mandantentrennung).
438 lines
8.0 KiB
CSS
438 lines
8.0 KiB
CSS
/* Deklarix — eigenes, schlankes Stylesheet auf Basis der Design-Tokens
|
|
aus dem enconf Enterprise Light Theme (design/enterprise.css): gleiche
|
|
Marke (Primärblau #1677ff, Inter, Radius-Skala), aber ohne dessen
|
|
Ant-Design-/Desktop-Sidebar-Layout, das für Deklarix nicht passt.
|
|
Mobile-first: Basis-Stile gelten fürs Telefon, @media (min-width)
|
|
erweitert für größere Bildschirme. */
|
|
|
|
@import url('/static/inter.css');
|
|
|
|
:root {
|
|
--branding-primary: #1677ff;
|
|
--radius: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 10px;
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
|
|
--color-bg: #f8fafc;
|
|
--color-text: #334155;
|
|
--color-heading: #0f172a;
|
|
--color-border: #e2e8f0;
|
|
--color-muted: #64748b;
|
|
|
|
--color-hoch: #b91c1c;
|
|
--color-hoch-bg: #fef2f2;
|
|
--color-mittel: #b45309;
|
|
--color-mittel-bg: #fffbeb;
|
|
--color-niedrig: #166534;
|
|
--color-niedrig-bg: #f0fdf4;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
color: var(--color-heading);
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
margin: 0 0 0.5em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 1em;
|
|
}
|
|
|
|
a {
|
|
color: var(--branding-primary);
|
|
}
|
|
|
|
/* Container: volle Breite + Innenabstand auf dem Handy, zentriert mit
|
|
fester Breite ab Tablet-Größe aufwärts. */
|
|
.page {
|
|
padding: 16px;
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 16px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
nav a {
|
|
color: var(--color-muted);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
}
|
|
|
|
nav a:hover {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
/* Formulare: großzügige Touch-Ziele (min. 44px Höhe), volle Breite auf
|
|
dem Handy. */
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
label {
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
color: var(--color-heading);
|
|
margin-top: 12px;
|
|
}
|
|
|
|
input, select, textarea, button {
|
|
font: inherit;
|
|
font-size: 16px; /* verhindert Auto-Zoom beim Fokussieren auf iOS */
|
|
}
|
|
|
|
input, select, textarea {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
background: #fff;
|
|
color: var(--color-text);
|
|
min-height: 44px;
|
|
width: 100%;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
}
|
|
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: 2px solid var(--branding-primary);
|
|
outline-offset: 1px;
|
|
border-color: var(--branding-primary);
|
|
}
|
|
|
|
button {
|
|
margin-top: 16px;
|
|
padding: 12px 20px;
|
|
min-height: 44px;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
background: var(--branding-primary);
|
|
color: #fff;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
button:hover {
|
|
filter: brightness(0.94);
|
|
}
|
|
|
|
button:active {
|
|
filter: brightness(0.88);
|
|
}
|
|
|
|
nav button {
|
|
margin-top: 0;
|
|
background: transparent;
|
|
color: var(--color-muted);
|
|
border: 1px solid var(--color-border);
|
|
box-shadow: none;
|
|
min-height: 36px;
|
|
padding: 6px 14px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.hinweis {
|
|
font-size: 0.8125rem;
|
|
color: var(--color-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.disclaimer {
|
|
font-size: 0.8125rem;
|
|
color: var(--color-muted);
|
|
border-top: 1px solid var(--color-border);
|
|
padding-top: 12px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.fehler {
|
|
background: var(--color-hoch-bg);
|
|
color: var(--color-hoch);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.rueckfrage {
|
|
background: var(--color-mittel-bg);
|
|
color: var(--color-mittel);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
}
|
|
|
|
.keine-findings {
|
|
background: var(--color-niedrig-bg);
|
|
color: var(--color-niedrig);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
}
|
|
|
|
.archiviert {
|
|
background: var(--color-niedrig-bg);
|
|
color: var(--color-niedrig);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
}
|
|
|
|
.findings {
|
|
list-style: none;
|
|
margin: 0 0 16px;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.finding {
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.finding p {
|
|
margin: 6px 0 0;
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.finding-hoch {
|
|
background: var(--color-hoch-bg);
|
|
border-left: 4px solid var(--color-hoch);
|
|
}
|
|
|
|
.finding-mittel {
|
|
background: var(--color-mittel-bg);
|
|
border-left: 4px solid var(--color-mittel);
|
|
}
|
|
|
|
.finding-niedrig {
|
|
background: var(--color-niedrig-bg);
|
|
border-left: 4px solid var(--color-niedrig);
|
|
}
|
|
|
|
.status {
|
|
display: inline-block;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius);
|
|
background: var(--color-border);
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.status-published {
|
|
background: var(--color-niedrig-bg);
|
|
color: var(--color-niedrig);
|
|
}
|
|
|
|
.status-checked,
|
|
.status-mittel {
|
|
background: var(--color-mittel-bg);
|
|
color: var(--color-mittel);
|
|
}
|
|
|
|
.beitraege-liste {
|
|
list-style: none;
|
|
margin: 0 0 16px;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.beitraege-liste li a {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 14px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
background: #fff;
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.beteiligte {
|
|
list-style: none;
|
|
margin: 0 0 16px;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.beteiligter {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
background: #fff;
|
|
}
|
|
|
|
.beteiligter-kopf {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.beteiligter .rolle {
|
|
color: var(--color-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.beteiligter-form {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.beteiligter-form label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-weight: 400;
|
|
margin: 0;
|
|
}
|
|
|
|
.beteiligter-form input[type="checkbox"] {
|
|
width: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.beteiligter form:last-child {
|
|
margin: 0;
|
|
}
|
|
|
|
button.entfernen {
|
|
margin: 0;
|
|
background: transparent;
|
|
color: var(--color-hoch);
|
|
border: 1px solid var(--color-hoch-bg);
|
|
box-shadow: none;
|
|
min-height: 36px;
|
|
padding: 6px 14px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.admin-kacheln {
|
|
list-style: none;
|
|
margin: 0 0 16px;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-kacheln a {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 16px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
background: #fff;
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.kanzlei-eintrag {
|
|
display: block;
|
|
padding: 12px 14px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
background: #fff;
|
|
}
|
|
|
|
.fragebogen fieldset {
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.fragebogen legend {
|
|
font-weight: 500;
|
|
font-size: 0.9375rem;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.fragebogen fieldset label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-weight: 400;
|
|
margin: 4px 12px 4px 0;
|
|
}
|
|
|
|
.fragebogen fieldset input[type="radio"] {
|
|
width: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Adaptive Folgefragen: rein clientseitig per :has() ein-/ausgeblendet,
|
|
kein JavaScript nötig. Siehe templates/antrag_neu.html — die "Ja"-
|
|
Antwort trägt eine eigene Klasse (c2-ja/c3-ja), damit sich die
|
|
jeweilige Folgefrage gezielt zuordnen lässt. */
|
|
.mit-folgefrage .folgefrage {
|
|
display: none;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mit-folgefrage:has(.c2-ja input:checked) .folgefrage,
|
|
.mit-folgefrage:has(.c3-ja input:checked) .folgefrage {
|
|
display: block;
|
|
}
|
|
|
|
/* Ab hier mehr Platz (Tablet/Desktop) — der Container bekommt spürbaren
|
|
Rand statt volle Breite, sonst bleibt alles identisch. */
|
|
@media (min-width: 640px) {
|
|
.page {
|
|
padding: 32px 24px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.75rem;
|
|
}
|
|
}
|