/* Copyright (c) 2026 Aconomi GmbH. Alle Rechte vorbehalten. */
/* CI-Farben: Signalgrün RAL 6032 #00855a, Mausgrau RAL 7005 #6d7270 */

/* ---- Farbmodus Standard -------------------------------------------------- */
:root {
  color-scheme: light;
  --flaeche: #ffffff;         /* Seitenhintergrund */
  --flaeche-2: #f1f2f2;       /* Tabellenkopf, ruhige Flächen */
  --flaeche-3: #fafafa;       /* Wochenende */
  --text: #1f2422;
  --text-2: #6d7270;          /* Nebentext (Mausgrau) */
  --linie: #d5d8d7;
  --rand: #6d7270;            /* Ränder von Eingabefeldern und Knöpfen */
  --akzent: #00855a;          /* Signalgrün: Kopfzeile, Knöpfe */
  --akzent-stark: #006b48;    /* Knopf unter dem Mauszeiger */
  --akzent-text: #006b48;     /* Links und grüner Text auf der Seite */
  --akzent-hell: #e6f3ee;
  --auf-akzent: #ffffff;      /* Text auf Akzentfläche */
  --rot: #c62828;             /* rote Flächen und Ränder */
  --rot-text: #c62828;
  --rot-hell: #fdecea;
  --warn: #e0a800;
  --warn-hell: #fff6dc;
  --t-flaeche: #6d7270;       /* Terminal-Hintergrund */
  --t-text: #ffffff;
  --t-gehen: #4a4f4d;
}

/* ---- Farbmodus Dunkel ---------------------------------------------------- */
:root[data-farbmodus="dunkel"] {
  color-scheme: dark;
  --flaeche: #161a19;
  --flaeche-2: #232827;
  --flaeche-3: #1c2120;
  --text: #e6e9e8;
  --text-2: #a3aaa7;
  --linie: #3a403e;
  --rand: #8a918e;
  --akzent: #00855a;
  --akzent-stark: #009c6a;
  --akzent-text: #4fd1a1;
  --akzent-hell: #12372b;
  --auf-akzent: #ffffff;
  --rot: #b3261e;
  --rot-text: #ff9a90;
  --rot-hell: #45201d;
  --warn: #e0a800;
  --warn-hell: #3f3410;
  --t-flaeche: #101312;
  --t-text: #e6e9e8;
  --t-gehen: #2c3130;
}

/* ---- Farbmodus Hoher Kontrast -------------------------------------------- */
:root[data-farbmodus="kontrast"] {
  color-scheme: dark;
  --flaeche: #000000;
  --flaeche-2: #1a1a1a;
  --flaeche-3: #000000;
  --text: #ffffff;
  --text-2: #ffffff;
  --linie: #ffffff;
  --rand: #ffffff;
  --akzent: #ffff00;
  --akzent-stark: #ffffff;
  --akzent-text: #ffff00;
  --akzent-hell: #003a28;
  --auf-akzent: #000000;
  --rot: #b00000;
  --rot-text: #ffffff;
  --rot-hell: #5c0000;
  --warn: #ffff00;
  --warn-hell: #3d3000;
  --t-flaeche: #000000;
  --t-text: #ffffff;
  --t-gehen: #1a1a1a;
}
:root[data-farbmodus="kontrast"] a,
:root[data-farbmodus="kontrast"] button.link { text-decoration: underline; }
:root[data-farbmodus="kontrast"] .knopf,
:root[data-farbmodus="kontrast"] .status,
:root[data-farbmodus="kontrast"] .stempel { font-weight: 700; }
:root[data-farbmodus="kontrast"] .status,
:root[data-farbmodus="kontrast"] .stempel,
:root[data-farbmodus="kontrast"] .t-ergebnis > div { border: 2px solid currentColor; }
:root[data-farbmodus="kontrast"] .t-ergebnis > div { padding: 4vh 6vw; border-width: 6px; border-radius: 14px; }

/* ---- Farbmodus Wheeldealer ----------------------------------------------- */
/* Blau #0069b4, Grün #96c11f, Rot #b50c0c, Schwarz, Weiß.
   Weiße Schrift steht nur auf Blau, auf dem Grün steht dunkle Schrift (Lesbarkeit). */
:root[data-farbmodus="wheel"] {
  color-scheme: light;
  --zweit: #96c11f;
  --auf-zweit: #101410;
  --flaeche: #ffffff;
  --flaeche-2: #eef1f4;
  --flaeche-3: #f7f9fa;
  --text: #1a1a1a;
  --text-2: #5a636b;
  --linie: #d3d9de;
  --rand: #5a636b;
  --akzent: #0069b4;
  --akzent-stark: #00528d;
  --akzent-text: #005a9c;
  --akzent-hell: #e3f0f9;
  --auf-akzent: #ffffff;
  --rot: #b50c0c;
  --rot-text: #b50c0c;
  --rot-hell: #fbe9e9;
  --warn: #e0a800;
  --warn-hell: #fff6dc;
  --t-flaeche: #0069b4;
  --t-text: #ffffff;
  --t-gehen: #1a1a1a;
}

/* ---- Farbmodus Accounting Software --------------------------------------- */
/* Aus einem Screenshot (15.11.2026, Pixelwerte): Orange #f36717
   (Knöpfe, Kennzeilen), Schrift #272525 und #726e6e, Pfirsich #fde1d1, Orange-Rot
   #e14214, helles Orange #f9a570 (Verlauf), Trennlinie #f7f3f2. Weiße Schrift erreicht
   auf dem Orange nur 3,1 : 1, daher steht dort dunkle Schrift (4,9 : 1). Abgeleitet:
   Linkfarbe #af4609 (dunkleres Orange, 5,7 : 1 auf Weiß), #fef0e8 und #d5d4d4 (Mischungen). */
:root[data-farbmodus="accounting"] {
  color-scheme: light;
  --zweit: #e14214;           /* Band unter der Kopfzeile, ohne Schrift */
  --flaeche: #ffffff;
  --flaeche-2: #f7f3f2;
  --flaeche-3: #fef0e8;
  --text: #272525;
  --text-2: #726e6e;
  --linie: #d5d4d4;
  --rand: #726e6e;
  --akzent: #f36717;
  --akzent-stark: #f9a570;    /* unter dem Mauszeiger heller, die dunkle Schrift bleibt lesbar */
  --akzent-text: #af4609;
  --akzent-hell: #fde1d1;
  --auf-akzent: #272525;
  --rot: #c62828;
  --rot-text: #c62828;
  --rot-hell: #fdecea;
  --warn: #e0a800;
  --warn-hell: #fff6dc;
  --t-flaeche: #f9a570;       /* Terminal im helleren Orange (Vorgabe Auftraggeber), dunkle Schrift 7,7 : 1 */
  --t-text: #272525;
  --t-gehen: #565151;         /* Gehen-Bestätigung mit weißer Schrift (7,8 : 1) */
}

/* ---- Farbmodus Load Carrier ---------------------------------------------- */
/* Aus einem Screenshot (15.11.2026, Pixelwerte):
   Orange #f4963d (Überschriften, Plakette), Anthrazit #292929 (Band), Schrift #262626 und
   #464646, Logo-Grau #575756, Grau #f4f4f4. Weiße Schrift erreicht auf dem Orange nur
   2,3 : 1, daher Kopfzeile und Knöpfe in Anthrazit mit weißer Schrift (14,6 : 1) und das
   Orange als Zweitfarbe mit dunkler Schrift (6,7 : 1). Terminal hell (#f4f4f4).
   Abgeleitet: Linkfarbe #a65509 (dunkleres Orange, 5,4 : 1), #fdead8, #cdcdcc, #fafafa. */
:root[data-farbmodus="carrier"] {
  color-scheme: light;
  --zweit: #f4963d;
  --auf-zweit: #262626;
  --flaeche: #ffffff;
  --flaeche-2: #f4f4f4;
  --flaeche-3: #fafafa;
  --text: #262626;
  --text-2: #575756;
  --linie: #cdcdcc;
  --rand: #575756;
  --akzent: #292929;
  --akzent-stark: #464646;
  --akzent-text: #a65509;
  --akzent-hell: #fdead8;
  --auf-akzent: #ffffff;
  --rot: #c62828;
  --rot-text: #c62828;
  --rot-hell: #fdecea;
  --warn: #e0a800;
  --warn-hell: #fff6dc;
  --t-flaeche: #f4f4f4;
  --t-text: #262626;
  --t-gehen: #464646;         /* Gehen-Bestätigung mit weißer Schrift (9,4 : 1) */
}

/* ---- Farbmodus Vakuum Lifter --------------------------------------------- */
/* Aus einem Screenshot (15.11.2026, Pixelwerte):
   Blau #00476a (Überschrift, Knöpfe), Gelb #f7cd00 (Pfeil-Quadrate, Dreiecke),
   Blaugrau #eef2f5, #e4ebef, #dae2e9, Schrift #000000. Auf Gelb steht Blau (6,5 : 1) wie
   im Screenshot, auf Blau Weiß (10 : 1). Terminal hell (#dae2e9) mit blauer Schrift.
   Abgeleitet: Nebentext #336c88 (aufgehelltes Blau, 5,1 : 1 auf #eef2f5), Hover #003550, #f6f8fa. */
:root[data-farbmodus="vakuum"] {
  color-scheme: light;
  --zweit: #f7cd00;
  --auf-zweit: #00476a;
  --flaeche: #ffffff;
  --flaeche-2: #eef2f5;
  --flaeche-3: #f6f8fa;
  --text: #000000;
  --text-2: #336c88;
  --linie: #dae2e9;
  --rand: #336c88;
  --akzent: #00476a;
  --akzent-stark: #003550;
  --akzent-text: #00476a;
  --akzent-hell: #e4ebef;
  --auf-akzent: #ffffff;
  --rot: #c62828;
  --rot-text: #c62828;
  --rot-hell: #fdecea;
  --warn: #e0a800;
  --warn-hell: #fff6dc;
  --t-flaeche: #dae2e9;
  --t-text: #00476a;
  --t-gehen: #00476a;         /* Gehen-Bestätigung mit weißer Schrift (10 : 1) */
}

/* Kundenfarben: Band in der Zweitfarbe unter der Kopfzeile; Zweitfarbe mit dunkler
   Schrift für "anwesend", den aktiven Stempelmodus und die Kommen-Bestätigung.
   Ein weiterer Kundenmodus braucht einen Farbblock wie oben und seine Selektoren hier.
   Accounting Software nutzt nur das Band; "anwesend" usw. stehen dort im Orange der Akzentfarbe. */
:root[data-farbmodus="wheel"] .kopf, :root[data-farbmodus="wheel"] .t-kopf,
:root[data-farbmodus="accounting"] .kopf, :root[data-farbmodus="accounting"] .t-kopf,
:root[data-farbmodus="carrier"] .kopf, :root[data-farbmodus="carrier"] .t-kopf,
:root[data-farbmodus="vakuum"] .kopf, :root[data-farbmodus="vakuum"] .t-kopf { border-bottom: 6px solid var(--zweit); }
:root[data-farbmodus="wheel"] .status.da,
:root[data-farbmodus="wheel"] .t-modus button.aktiv,
:root[data-farbmodus="wheel"] .t-ergebnis.kommen,
:root[data-farbmodus="carrier"] .status.da,
:root[data-farbmodus="carrier"] .t-modus button.aktiv,
:root[data-farbmodus="carrier"] .t-ergebnis.kommen,
:root[data-farbmodus="vakuum"] .status.da,
:root[data-farbmodus="vakuum"] .t-modus button.aktiv,
:root[data-farbmodus="vakuum"] .t-ergebnis.kommen {
  background: var(--zweit); border-color: var(--zweit); color: var(--auf-zweit);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--flaeche);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--akzent-text); }

/* ---- Kopf / Fuß --------------------------------------------------------- */
.kopf {
  background: var(--akzent);
  color: var(--auf-akzent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 16px;
}
.kopf a { color: var(--auf-akzent); text-decoration: none; }
.kopf a:hover { text-decoration: underline; }
.kopf .marke { font-weight: 700; font-size: 1.15rem; }
.kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; flex: 1; }
.kopf form { margin: 0; }
/* Menügruppen in der Kopfzeile */
.menue { position: relative; }
.menue summary { cursor: pointer; list-style: none; white-space: nowrap; }
.menue summary::-webkit-details-marker { display: none; }
.menue summary::after { content: " ▾"; font-size: 0.8em; }
.menue summary:hover { text-decoration: underline; }
.menue[open] summary { text-decoration: underline; }
.menue-inhalt {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 20;
  min-width: 210px; padding: 6px 0;
  background: var(--flaeche); color: var(--text);
  border: 1px solid var(--rand); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.menue-inhalt.rechts { left: auto; right: 0; }
.kopf .menue-inhalt a, .menue-inhalt button, .menue-inhalt label {
  display: block; width: 100%; padding: 9px 16px; text-align: left;
  color: var(--text); background: none; border: none; font: inherit; text-decoration: none; cursor: pointer;
}
.kopf .menue-inhalt a:hover, .menue-inhalt button:hover { background: var(--flaeche-2); text-decoration: none; }
.menue-inhalt .zaehler { background: var(--akzent); color: var(--auf-akzent); }
.menue-inhalt label { cursor: default; font-size: 0.85rem; color: var(--text-2); }
.farbmodus select {
  display: block; width: 100%; margin-top: 4px;
  font: inherit; padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--rand); background: var(--flaeche); color: var(--text);
}
.menue.konto summary small { opacity: 0.85; }

main { flex: 1; width: 100%; max-width: 1300px; margin: 0 auto; padding: 16px; }
.schmal { max-width: 420px; margin: 24px auto; }

.fuss {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-2);
  border-top: 1px solid var(--linie);
}

h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; color: var(--text-2); }

.titelzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- Bausteine ---------------------------------------------------------- */
.karte { border: 1px solid var(--linie); border-radius: 8px; padding: 16px; margin: 16px 0; overflow-x: auto; }

.knopf {
  display: inline-block;
  background: var(--akzent);
  color: var(--auf-akzent);
  border: 1px solid var(--akzent);
  border-radius: 6px;
  padding: 9px 16px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--akzent-stark); border-color: var(--akzent-stark); }
.knopf.zweit { background: var(--flaeche); color: var(--text-2); border-color: var(--rand); }
.knopf.zweit:hover { background: var(--flaeche-2); }

button.link {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--akzent-text); text-decoration: underline; cursor: pointer;
}

.meldung { padding: 10px 14px; border-radius: 6px; background: var(--akzent-hell); border-left: 4px solid var(--akzent); }
.meldung.error { background: var(--rot-hell); border-left-color: var(--rot); }
.meldung.warning { background: var(--warn-hell); border-left-color: var(--warn); }

.hinweis { color: var(--text-2); font-size: 0.9rem; }

.status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.85rem; margin-right: 8px; }
.status.da { background: var(--akzent); color: var(--auf-akzent); }
.status.weg { background: var(--flaeche-2); color: var(--text-2); }

/* ---- Tabellen ----------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--flaeche-2); color: var(--text-2); font-weight: 600; white-space: nowrap; }
tfoot th { border-top: 2px solid var(--text-2); }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td form { margin: 0; }

/* Tabellen nutzen die volle Breite; auf schmalen Bildschirmen wird seitlich geschoben. */
main { overflow-x: auto; }

.zeiten tr.wochenende td { background: var(--flaeche-3); color: var(--text-2); }
.zeiten tr.feiertag td { background: var(--akzent-hell); }
.zeiten tr.fehler td { background: var(--rot-hell); color: var(--rot-text); }

.stempel { display: inline-block; margin: 1px 6px 1px 0; padding: 1px 8px; border-radius: 4px; font-size: 0.9rem; white-space: nowrap; }
.stempel.K { background: var(--akzent-hell); color: var(--akzent-text); }
.stempel.G { background: var(--flaeche-2); color: var(--text-2); }

/* ---- Formulare ---------------------------------------------------------- */
.formular { max-width: 560px; }
.formular label { display: block; font-weight: 600; margin: 14px 0 4px; }
.formular input[type=text], .formular input[type=password], .formular input[type=email],
.formular input[type=number], .formular input[type=date], .formular input[type=time],
.formular select, .formular textarea,
.filter select, .filter input {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--rand);
  border-radius: 6px;
  background: var(--flaeche);
}
.formular input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--akzent); }
.formular small { display: block; color: var(--text-2); margin-top: 3px; }
.formular .fehlertext { color: var(--rot-text); }
.formular .mit-fehler input, .formular .mit-fehler select { border-color: var(--rot-text); }
.aktionen { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0 16px; }
.filter label { font-size: 0.85rem; color: var(--text-2); }
.filter select, .filter input { display: block; width: auto; margin-top: 3px; }

/* ---- Terminal ----------------------------------------------------------- */
body.terminal {
  background: var(--t-flaeche);
  color: var(--t-text);
  height: 100vh;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}
.t-kopf { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: clamp(1rem, 2.2vw, 1.5rem); background: rgba(0, 0, 0, 0.15); }
.t-mitte { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 16px; text-align: center; }
.t-uhr { font-size: clamp(5rem, 24vw, 16rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.t-aufforderung { font-size: clamp(1.2rem, 3.5vw, 2.4rem); margin: 0; }
.t-fuss { text-align: center; padding: 10px; font-size: 0.85rem; opacity: 0.8; }

.t-modus { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2vh; }
.t-modus button, .t-pin-knopf, .t-abbrechen, .t-namen button, .t-tasten button {
  font: inherit; font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  min-height: 64px; padding: 12px 28px;
  border-radius: 10px; border: 2px solid var(--t-text);
  background: transparent; color: var(--t-text); cursor: pointer;
}
.t-modus button.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.t-pin-knopf { border-style: dashed; margin-top: 1vh; font-size: clamp(1rem, 2vw, 1.3rem); }

.t-ebene { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); padding: 16px; }
.t-ebene[hidden] { display: none; }
.t-dialog { background: var(--flaeche); color: var(--text); border: 2px solid var(--linie); border-radius: 14px; padding: 24px; width: min(560px, 100%); max-height: 100%; overflow-y: auto; text-align: center; }
.t-dialog h2 { color: var(--text); font-size: 1.6rem; }
.t-namen { display: grid; gap: 10px; }
.t-namen button, .t-abbrechen { color: var(--text); border-color: var(--rand); width: 100%; }
.t-abbrechen { margin-top: 16px; border: none; text-decoration: underline; min-height: 48px; }
.t-pin-anzeige { height: 48px; font-size: 2rem; letter-spacing: 8px; border-bottom: 2px solid var(--rand); margin-bottom: 16px; }
.t-tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t-tasten button { color: var(--text); border-color: var(--rand); min-height: 72px; padding: 8px; font-size: 1.8rem; }
.t-tasten button.ok { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }

.t-ergebnis { text-align: center; color: #ffffff; }
.t-ergebnis.kommen { background: var(--akzent); color: var(--auf-akzent); }
.t-ergebnis.gehen { background: var(--t-gehen); }
.t-ergebnis.fehler { background: var(--rot); }
.t-ergebnis-art { font-size: clamp(3rem, 12vw, 8rem); font-weight: 700; }
.t-ergebnis-name { font-size: clamp(1.6rem, 6vw, 4rem); margin-top: 1vh; }
.t-ergebnis-zeit { font-size: clamp(1.4rem, 5vw, 3rem); margin-top: 1vh; }

/* ---- Stufe 2: Anträge, Konten ------------------------------------------- */
.zaehler { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 10px; background: var(--auf-akzent); color: var(--akzent); font-weight: 700; text-align: center; font-size: 0.85rem; }
.minus { color: var(--rot-text); }
.zeiten tr.zukunft td { color: var(--text-2); }
.stempel.abw { background: var(--warn-hell); color: var(--text); border: 1px solid var(--warn); }
.stempel.abw.offen { border-style: dashed; }
.stempel.korrigiert { font-style: italic; }
.status.s-B { background: var(--warn-hell); color: var(--text); border: 1px solid var(--warn); }
.status.s-F { background: var(--akzent); color: var(--auf-akzent); }
.status.s-A, .status.s-S { background: var(--flaeche-2); color: var(--text-2); text-decoration: line-through; }
.konten { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.kontokachel { border: 1px solid var(--linie); border-radius: 8px; padding: 12px 16px; min-width: 180px; }
.kontoname { color: var(--text-2); font-size: 0.9rem; }
.kontostand { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kontostand small { font-size: 0.9rem; font-weight: 400; color: var(--text-2); }
.entscheiden { display: flex; gap: 6px; flex-wrap: wrap; }
.entscheiden .knopf { padding: 5px 10px; }

/* Monatsansicht: bis zu vier Stempelungen stehen in einer Zeile nebeneinander */
.zeiten td.buchungen, .zeiten td.fest { white-space: nowrap; }

.downloads { margin: 0 0 14px; }

/* ---- Sicherung und Zurücksetzen ----------------------------------------- */
.karte.gefahr { border-color: var(--rot); }
.gefahr-titel { color: var(--rot-text); margin-top: 28px; }
.knopf.rot { background: var(--rot); border-color: var(--rot); color: #ffffff; }
.knopf.rot:hover { filter: brightness(0.9); }
code { background: var(--flaeche-2); padding: 1px 5px; border-radius: 4px; }

/* Monatsansicht: feste Spaltenbreiten, damit nichts springt oder abgeschnitten wird.
   Die Buchungsspalte ist auf vier Stempelungen nebeneinander ausgelegt. Die Tabelle
   passt ab 1200 Pixel Fensterbreite (mit Bildlaufleiste) ohne seitliches Rollen. */
.zeiten { table-layout: fixed; min-width: 1130px; font-size: 0.9rem; }
.zeiten th, .zeiten td { padding: 6px 6px; }
.zeiten .stempel { margin-right: 4px; padding: 1px 6px; }
.zeiten col.s-tag { width: 86px; }
.zeiten col.s-buchungen { width: 480px; }
.zeiten col.s-zahl { width: 50px; }
.zeiten col.s-arbeit { width: 64px; }
.zeiten col.s-pause { width: 62px; }
.zeiten col.s-gutschrift { width: 94px; }
.zeiten col.s-aktion { width: 94px; }
/* s-hinweis bekommt den restlichen Platz; lange Hinweise brechen um */
/* Bei noch schmaleren Fenstern rollt die Tabelle in ihrem eigenen Bereich, und
   „Bearbeiten“ bleibt am rechten Rand stehen. */
.rollen { overflow-x: auto; }
.zeiten tr > :last-child { position: sticky; right: 0; background: var(--flaeche); box-shadow: -1px 0 0 var(--linie); }
.zeiten thead tr > :last-child { background: var(--flaeche-2); }

h3 { font-size: 1rem; margin: 18px 0 4px; }

div.meldung { margin: 12px 0; }
.meldung ul { margin: 6px 0; padding-left: 22px; }

/* ---- Sicherheit: Schlüsselanzeige, Protokolle ---------------------------- */
code.schluessel { display: inline-block; padding: 6px 10px; font-size: 1.05rem; word-break: break-all; user-select: all; }
.reiter { display: flex; flex-wrap: wrap; gap: 8px; }
pre.protokoll {
  margin: 0; padding: 12px; overflow-x: auto; font-size: 0.85rem; line-height: 1.5;
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px;
}

/* ---- Fristen des 1:1-Zeittopfes, Störungen, Salden am Terminal ----------- */
table.schmal-tabelle { width: auto; min-width: 50%; }
table tr.fehler td { background: var(--rot-hell); }
.t-ergebnis-konten { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5vh 3vw; margin-top: 4vh; }
.t-ergebnis-konten div { border: 2px solid currentColor; border-radius: 12px; padding: 1.2vh 2.5vw; }
.t-ergebnis-konten span { display: block; font-size: clamp(0.9rem, 2.2vw, 1.4rem); opacity: 0.85; }
.t-ergebnis-konten strong { display: block; font-size: clamp(1.3rem, 3.6vw, 2.4rem); font-variant-numeric: tabular-nums; }
