/* Gestaltung nach dem Designsystem der Zeiterfassung: gleiche Farben, Schrift, Radien und Schatten. */
@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-latin-wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --font-sans: 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bg: #f4f6f7; --surface: #ffffff; --surface-sunken: #eef1f3; --border: #dfe4e8; --border-strong: #c5ccd2;
  --text: #313942; --text-muted: #5b6570;
  --primary: #13697c; --primary-hover: #0f5565; --on-primary: #ffffff; --primary-soft: #e3f2f6; --on-primary-soft: #0f5565;
  --link: #13697c; --focus: #1b839b;
  --positive: #16635a; --positive-soft: #e6f3ee; --positive-border: #b9dccd;
  --warning: #8a5300; --warning-soft: #fdf1dc; --warning-border: #f1d29a;
  --danger: #b42318;
  --info-soft: #e3f2f6; --info-border: #b8dde7;
  --r-sm: 8px; --r-md: 12px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(20 30 40 / 0.06);
  --shadow-md: 0 1px 2px rgb(20 30 40 / 0.05), 0 4px 14px rgb(20 30 40 / 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181c; --surface: #1a2228; --surface-sunken: #151c21; --border: #2b353d; --border-strong: #3a4650;
    --text: #e6ebee; --text-muted: #9aa5ae;
    --primary: #2ab1cb; --primary-hover: #4cc0d6; --on-primary: #0b1d22; --primary-soft: #16343c; --on-primary-soft: #9fe0ec;
    --link: #5cc6db; --focus: #5cc6db;
    --positive: #6fd3a0; --positive-soft: #15302a; --positive-border: #25574a;
    --warning: #f5c26b; --warning-soft: #33270f; --warning-border: #5c4516;
    --danger: #ff8a80;
    --info-soft: #16343c; --info-border: #255360;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 14px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.45 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.15; margin: 4px 0 16px; }
h2 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
section { margin-bottom: 8px; }

.kopf { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 56px; padding: 6px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.kopf .marke { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.125rem; text-decoration: none; color: var(--text); }
.kopf .marke img { display: block; height: 40px; width: auto; }
.kopf .marke span { padding-left: 12px; border-left: 1px solid var(--border-strong); }
.kopf nav { display: flex; gap: 4px; flex: 1; }
.kopf nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 500; }
.kopf nav a:hover { background: var(--surface-sunken); color: var(--text); }
.kopf nav a[aria-current] { background: var(--primary-soft); color: var(--on-primary-soft); }
.konto { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: 0.875rem; }

.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.filter a { text-decoration: none; padding: 5px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }

.leise { color: var(--text-muted); font-size: 0.875rem; font-weight: 400; }
.leer { color: var(--text-muted); padding: 18px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
.schmal { max-width: 480px; margin: 56px auto; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.hinweis { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid transparent; }
.hinweis.warnung { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.hinweis.info { background: var(--info-soft); color: var(--on-primary-soft); border-color: var(--info-border); }
.marke-stand { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.marke-stand.warnung { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.marke-stand.fertig { background: var(--info-soft); color: var(--on-primary-soft); border-color: var(--info-border); }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
button, .knopf { font: 500 0.9375rem var(--font-sans); min-height: 40px; padding: 8px 18px; border-radius: var(--r-sm); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
button:hover, .knopf:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.zweit { background: var(--surface); color: var(--primary); }
button.zweit:hover { background: var(--primary-soft); }
button.schlicht { background: transparent; color: var(--link); border-color: transparent; min-height: 32px; padding: 4px 8px; }
button.schlicht:hover { background: var(--surface-sunken); }
code { font-size: 0.8125rem; background: var(--surface-sunken); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Startseite */
.begruessung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.begruessung h1 { margin: 0; }
.suche { flex: 1 1 320px; max-width: 520px; }
.suche input { width: 100%; font: inherit; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); color: inherit; }
.suche input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); position: relative; }
.tool:has(h3 a):hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tool h3 { margin: 0; font-size: 1.125rem; }
.tool h3 a { color: var(--text); text-decoration: none; }
.tool h3 a::after { content: " ↗"; color: var(--primary); font-size: 0.9em; }
/* Die ganze Kachel ist klickbar, die Links im Fuß liegen darüber. */
.tool h3 a::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.tool p { margin: 0; color: var(--text-muted); flex: 1; }
.tool .fuss, .tool .pfad { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.tool .pfad code { flex-basis: 100%; }
.tool.gesperrt { opacity: 0.7; box-shadow: none; }
.anleitung-link { font-size: 0.875rem; font-weight: 500; }
.anleitungsgruppe h3 { color: var(--text-muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
ul.anleitungen { list-style: none; margin: 0 0 8px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
ul.anleitungen li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
ul.anleitungen li:last-child { border-bottom: 0; }
ul.anleitungen a { font-weight: 500; text-decoration: none; }
ul.anleitungen a:hover { text-decoration: underline; }
.nr { display: inline-block; min-width: 2.6em; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Anleitung */
.anleitung { max-width: 820px; }
.anleitung .zurueck { margin: 0 0 8px; }
.anleitung h1 { margin-bottom: 4px; }
.anleitung .stand { color: var(--text-muted); font-size: 0.875rem; margin-top: 0; }
.anleitung p, .anleitung li { line-height: 1.6; }
.anleitung li { margin: 4px 0; }
.tabellenrahmen { overflow-x: auto; margin: 12px 0; }
table.liste { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
table.liste th, table.liste td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.liste th { font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; background: var(--surface-sunken); }
table.liste tr:last-child td { border-bottom: 0; }

@media (max-width: 720px) {
  main { padding: 16px 12px 32px; }
  .kopf .marke span { display: none; }
}
@media print {
  .kopf, .zurueck, .knopfzeile { display: none; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
  .hinweis, table.liste { break-inside: avoid; }
}
