/* WsIS-Portal – gemeinsames Design (Farben wie die WsIS-Programme) */
:root {
  --blau: #1F4E79; --blau-hell: #2E75B6; --rot: #C00000; --gruen: #2E7D32; --orange: #D9822B; --grau: #6B7280;
  --bg: #F3F5F8; --karte: #FFFFFF; --text: #1F2937; --linie: #E5E7EB; --weich: #EEF3F9;
  --radius: 12px; --schatten: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111827; --karte: #1F2937; --text: #E5E7EB; --linie: #374151; --weich: #1E2A3B; --grau: #9CA3AF;
          --blau-hell: #5B9BD5; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blau-hell); }
.kopf { background: var(--blau); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  border-top: 4px solid var(--rot); }
.kopf h1 { font-size: 18px; margin: 0; font-weight: 600; flex: 1; }
.kopf a, .kopf button.link { color: #fff; opacity: .85; text-decoration: none; font-size: 14px; background: none;
  border: 0; cursor: pointer; }
.karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px;
  margin-bottom: 14px; }
.karte h2 { font-size: 15px; margin: 0 0 10px; color: var(--grau); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; }
button, .knopf { font: inherit; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  background: var(--blau); color: #fff; font-weight: 600; text-decoration: none; display: inline-block; }
button.zweit { background: var(--weich); color: var(--text); }
button.rot { background: var(--rot); }
button.gruen { background: var(--gruen); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 8px;
  background: var(--karte); color: var(--text); width: 100%; }
label { display: block; font-size: 13px; color: var(--grau); margin: 10px 0 4px; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.reihe > * { flex: 1; min-width: 120px; }
.klein { font-size: 13px; color: var(--grau); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--grau); }
.st-da .punkt, .punkt.st-da { background: var(--gruen); }
.st-pause .punkt, .punkt.st-pause { background: var(--orange); }
.st-urlaub .punkt, .punkt.st-urlaub { background: #8E7CC3; }
.st-abwesend .punkt, .punkt.st-abwesend { background: var(--rot); }
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff;
  padding: 12px 18px; border-radius: 10px; z-index: 50; max-width: 90vw; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.meldung.fehler { background: var(--rot); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 12px; color: var(--grau); text-transform: uppercase; }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; }
.hinweis { color: var(--orange); font-size: 13px; }
.versteckt { display: none !important; }
.tabelle-scroll { overflow-x: auto; }
.marke { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px;
  background: var(--rot); color: #fff; vertical-align: middle; margin-left: 4px; }
.marke.blau { background: var(--blau-hell); }
.banner { background: #FFF4E5; color: #7A4A00; border-left: 4px solid var(--orange); padding: 12px 14px;
  border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .banner { background: #3A2A12; color: #F5D9A8; } }
.dok { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.dok:last-child { border-bottom: 0; }
.dok .text { flex: 1; min-width: 0; }
.dok .text b { display: block; overflow: hidden; text-overflow: ellipsis; }
.dok .knopfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dok .knopfe a, .dok .knopfe button { padding: 7px 11px; font-size: 14px; }
.knopf.zweit { background: var(--weich); color: var(--text); }
.mitteilung { border-left: 4px solid var(--blau-hell); }
.mitteilung.angeheftet { border-left-color: var(--rot); }
.mitteilung .inhalt { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.mitteilung img { max-width: 100%; border-radius: 8px; margin-top: 6px; }
.mitteilung .aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mitteilung .aktionen button { padding: 7px 12px; font-size: 14px; }
.lnk { background: none; color: var(--blau-hell); padding: 0; font-weight: 500; }
textarea { min-height: 120px; resize: vertical; }
