/* Völkers Zeiterfassung – Handy. Farben aus dem Völkers-Design (tokens.json).
   Große Knöpfe (56 px) für Baustellenhände und Sonnenlicht. */
:root {
  --petrol: #14566B; --petrol-dunkel: #0F4354; --knopf-text: #FFFFFF;
  --text: #1E2422; --text-leise: #5B6663; --hintergrund: #FFFFFF; --flaeche-2: #F5F6F4; --linie: #E2E5E1;
  --ok: #15A34A; --warnung: #D97706; --fehler: #DC2626;
  color-scheme: light;
}
.logo.logo-dunkel { display: none; }   /* .logo.… schlägt .logo { display: block } */
@media (prefers-color-scheme: dark) {
  :root {
    --petrol: #5FB3C9; --petrol-dunkel: #7FC4D6; --knopf-text: #15191B;
    --text: #E8EBE9; --text-leise: #A3ADAA; --hintergrund: #15191B; --flaeche-2: #1E2427; --linie: #2E3639;
    color-scheme: dark;
  }
  .logo.logo-hell { display: none; }
  .logo.logo-dunkel { display: block; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--hintergrund); color: var(--text);
  font: 17px/1.45 system-ui, 'Segoe UI', sans-serif;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; }
/* Kopf mit Logo und Status bleibt beim Scrollen oben stehen (Thomas, 08.10.2026) */
.kopf {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 8px 12px; flex-wrap: wrap; margin: 0 -16px 4px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--hintergrund); border-bottom: 1px solid var(--linie);
}
.logo { height: 44px; width: auto; display: block; }
.status { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-leise); }
.status.gruen { color: var(--ok); }
.status.gelb { color: var(--warnung); }
.status.rot { color: #FFFFFF; background: var(--fehler); cursor: pointer; }
h1, h2 { font-size: 20px; margin: 20px 0 8px; }
.karte { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 12px; padding: 16px; margin: 12px 0; font-size: 18px; }
.knoepfe { display: grid; gap: 10px; margin: 12px 0; }
.knopf {
  display: block; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--petrol); color: var(--knopf-text); font: inherit; font-weight: 600; line-height: 56px;
  text-align: center; text-decoration: none; cursor: pointer;
}
.knopf:active { background: var(--petrol-dunkel); }
.knopf:disabled { opacity: 0.45; cursor: default; }
.knopf:focus-visible, .feld:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.knopf.zweit { background: var(--hintergrund); color: var(--petrol); border: 2px solid var(--petrol); line-height: 52px; }
.knopf.dunkel { background: var(--text); color: var(--hintergrund); }
.feld {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px;
}
.feld.gross { font-size: 24px; letter-spacing: 3px; text-align: center; text-transform: uppercase; }
label { display: block; margin: 10px 0; color: var(--text-leise); font-size: 15px; }
/* Ablauf scrollt für sich – bei vielen Baustellen am Tag bleiben die Knöpfe oben sichtbar */
.kette {
  list-style: none; padding: 0; margin: 0; max-height: 40vh; overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.kette li { padding: 12px 4px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.zeit { display: inline-block; min-width: 3.4em; font-weight: 600; font-variant-numeric: tabular-nums; }
.summe { font-weight: 600; font-variant-numeric: tabular-nums; }
.hinweis, .leise { color: var(--text-leise); font-size: 14px; }
.fehler { color: var(--fehler); }
dialog {
  width: min(560px, calc(100vw - 16px)); max-height: 92vh; padding: 16px; border: 0; border-radius: 16px;
  background: var(--hintergrund); color: var(--text);
}
dialog::backdrop { background: rgb(0 0 0 / 0.45); }
/* Baustellensuche als Aufklappliste; die gewählte Baustelle steht danach im Feld, mit Haken */
.suchfeld { position: relative; margin: 10px 0; }
.suchfeld input::-webkit-search-cancel-button { display: none; }
.suchfeld.ok .feld { border: 2px solid var(--petrol); padding-right: 40px; font-weight: 600; background: var(--hintergrund); }
.suchfeld.ok::after { content: '✓'; position: absolute; right: 14px; top: 11px; color: var(--petrol); font-weight: 700; font-size: 20px; }
.treffer {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 2; list-style: none; padding: 0; margin: 4px 0 0;
  max-height: 45vh; overflow-y: auto; background: var(--hintergrund);
  border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}
.treffer li { padding: 12px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.treffer li:last-child { border-bottom: 0; }
.treffer li:active { background: var(--flaeche-2); }
.code-gross { font-size: 28px; font-weight: 700; letter-spacing: 3px; color: var(--petrol); }
.schritte { padding-left: 22px; }
.schritte li { margin: 10px 0; }
.einladung .code { font-size: 36px; font-weight: 700; letter-spacing: 4px; text-align: center; color: var(--petrol); }
[hidden] { display: none !important; }
