style.css
Pfad: public/css/style.css
Ext: css
Größe: 3506 Bytes
Geändert: 2026-07-16 10:04:39+02
:root {
--fg: #14213d;
--bg: #ffffff;
--muted: #6b7280;
--accent: #0057b8;
--border: #e5e7eb;
--tabelle-rahmen: #d9d9d9;
--maxw: 60rem;
}
@media (prefers-color-scheme: dark) {
:root {
--fg: #e8e8e8;
--bg: #14213d;
--muted: #9aa4b2;
--border: #2b3b57;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.6;
color: var(--fg);
background: var(--bg);
}
.site-header {
border-bottom: 1px solid var(--border);
}
.site-nav {
max-width: var(--maxw);
margin-inline: auto;
padding: 0.75rem 1rem;
display: flex;
gap: 1.25rem;
}
.site-nav a {
color: var(--accent);
text-decoration: none;
font-weight: 600;
}
.site-nav a[aria-current="page"] {
text-decoration: underline;
}
.site-main {
max-width: var(--maxw);
margin-inline: auto;
padding: 1.5rem 1rem;
}
a {
color: var(--accent);
}
a:focus-visible,
button:focus-visible,
[contenteditable]:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Globale Tabellen: Inhalt links oben, 1px hellgrauer Rahmen je Zelle. */
.tabelle {
width: 100%;
border-collapse: collapse;
}
.tabelle th,
.tabelle td {
text-align: left;
vertical-align: top;
padding: 0.5rem 0.75rem;
border: 1px solid var(--tabelle-rahmen);
}
.tabelle th[data-sort] {
cursor: pointer;
user-select: none;
}
.tabelle-filter {
width: 100%;
max-width: 20rem;
padding: 0.4rem 0.6rem;
margin-bottom: 1rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
}
.doku-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.doku-toolbar button {
padding: 0.25rem 0.6rem;
border: 1px solid var(--border);
background: transparent;
color: var(--fg);
border-radius: 0.25rem;
cursor: pointer;
}
.doku-editor {
min-height: 16rem;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
}
.code-block {
overflow: auto;
white-space: pre-wrap;
background: #f8fafc;
border: 1px solid var(--border);
padding: 0.75rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.9rem;
border-radius: 0.375rem;
}
.doku-speichern {
padding: 0.5rem 1.25rem;
border: 0;
background: var(--accent);
color: #fff;
border-radius: 0.375rem;
cursor: pointer;
font-weight: 600;
}
.fluss-wrap {
overflow-x: auto;
margin: 1rem 0;
}
.fluss {
max-width: 100%;
height: auto;
}
.fluss-knoten {
fill: var(--bg);
stroke: var(--accent);
stroke-width: 1.5;
}
.fluss-aufruf {
stroke-dasharray: 5 3;
stroke-width: 2;
}
a:hover .fluss-knoten {
fill: color-mix(in srgb, var(--accent) 12%, var(--bg));
}
.fluss-name {
fill: var(--fg);
font: 600 13px system-ui, sans-serif;
}
.fluss-meta {
fill: var(--muted);
font: 11px system-ui, sans-serif;
}
.fluss-kante {
stroke: var(--muted);
stroke-width: 1.5;
}
.fluss-pfeil {
fill: var(--muted);
}
.fluss-ausgang {
fill: var(--fg);
font: 11px system-ui, sans-serif;
}
.schritt-karte {
border: 1px solid var(--tabelle-rahmen);
border-radius: 0.375rem;
padding: 0.75rem 1rem;
margin: 0.75rem 0;
}
.schritt-meta {
color: var(--muted);
margin: 0.25rem 0;
}
.artefakte {
margin: 0.5rem 0 0;
}