/* BDE-Terminal — Handbetrieb (hand.js, Migration 0313). Tokens: /ui/tokens.css.
   Maßstab ist der Handschuh: jede Zeile, auf die man bucht, ist mindestens 64 px hoch,
   die Stückzahl steht groß rechts, und es gibt je Zeile genau eine Wirkung. */

/* Im Handbetrieb ist die Tagesliste aus dem Planungslauf zu. Die Regel steht zusätzlich
   zum JS, damit beim Laden nichts aufblitzt, was gleich wieder verschwindet. */
#ansicht-fas.modus-hand #meine-aufgaben,
#ansicht-fas.modus-hand #ma-warum,
#ansicht-fas.modus-hand #kollegen,
#ansicht-fas.modus-hand #weitere,
#ansicht-fas.modus-hand #stueck-erinnerung { display: none !important; }

.hand-kopf { margin: 0.1rem 0 0.7rem; font-size: 0.95rem; color: var(--text-gedimmt); }
.hand-kopf b { color: var(--text); }

.hand-netz { margin: 0 0 0.7rem; padding: 0.6rem 0.9rem; font-size: 0.9rem;
  background: var(--gelb-flaeche); color: var(--gelb-text);
  border-radius: var(--radius, 10px); }

.hand-suche { width: 100%; font: inherit; font-size: 1.05rem; padding: 0.8rem 1rem;
  margin-bottom: 0.8rem; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--rand-stark); border-radius: 12px; }
.hand-suche:focus { outline: none; border-color: var(--hk-blau); }

.hand-liste { display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- Die FA-Karte: das Teil groß, die Arbeitsfolgen darunter ---------- */
.hand-fa { background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius-gross, 16px); box-shadow: var(--schatten-2);
  overflow: hidden; }
.hfa-kopf { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.8rem; padding: 0.95rem 1.1rem 0.4rem; position: static; background: none;
  border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  flex-wrap: nowrap; overflow: visible; }
.hfa-links { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hfa-teil { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  overflow-wrap: anywhere; }
.hfa-sub { margin-top: 0.15rem; font-size: 0.86rem; color: var(--text-gedimmt);
  overflow-wrap: anywhere; }
.hfa-menge { flex: 0 0 auto; text-align: right; font-size: 1.45rem; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.hfa-menge small { font-size: 0.95rem; font-weight: 600; color: var(--text-gedimmt); }
.hfa-menge em { display: block; font-style: normal; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-gedimmt); }
.hand-fa > .karte-fortschritt { margin: 0.2rem 1.1rem 0.55rem; }

.hfa-folgen { display: flex; flex-direction: column; border-top: 1px solid var(--rand); }

/* ---------- Eine Arbeitsfolge = eine Zeile = ein Knopf ---------- */
.hand-folge { display: flex; align-items: center; gap: 0.8rem; width: 100%;
  min-height: 64px; padding: 0.6rem 1.1rem; text-align: left; font: inherit;
  background: var(--flaeche); color: var(--text); border: 0; border-radius: 0;
  border-bottom: 1px solid var(--rand); cursor: pointer; }
.hand-folge:last-child { border-bottom: 0; }
.hand-folge:active { background: var(--flaeche-hell); }
.hand-folge:focus-visible { outline: 2px solid var(--hk-blau); outline-offset: -2px; }
.hf-nr { flex: 0 0 auto; min-width: 2.6rem; height: 2.6rem; padding: 0 0.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--badge-text); background: var(--badge-bg); border-radius: 10px; }
.hf-mitte { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hf-name { font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.hf-sub { font-size: 0.82rem; color: var(--text-gedimmt); }
/* Was zwischen dieser und der nächsten Folge liegt (JE 16.11.2026) — „abgezogen“. */
.hf-liegt { font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-liegt.leer { font-weight: 600; color: var(--text-gedimmt); }
.hf-stand { flex: 0 0 auto; font-size: 1.25rem; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.hf-stand small { font-size: 0.85rem; font-weight: 600; color: var(--text-gedimmt); }
.hf-plus { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
  color: #fff; background: var(--hk-blau); border-radius: 50%;
  box-shadow: var(--schatten-blau); }
/* Soll erreicht: grün und leiser — buchbar bleibt die Zeile trotzdem. */
.hand-folge.voll .hf-stand { color: var(--gruen-text); }
.hand-folge.voll .hf-plus { background: var(--flaeche-hell); color: var(--text-gedimmt);
  box-shadow: none; }

/* ---------- Nichts aktiv: ein Zustand, keine Störung ---------- */
.hand-leer { background: var(--flaeche); border: 1px solid var(--rand);
  border-left: 4px solid var(--gelb); border-radius: var(--radius-gross, 16px);
  padding: 0.9rem 1.1rem; box-shadow: var(--schatten-1); }
.hand-leer .hl-wort { display: inline-block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gelb-text);
  background: var(--gelb-flaeche); padding: 0.15rem 0.6rem; border-radius: 999px; }
.hand-leer p { margin: 0.55rem 0 0.7rem; font-size: 1rem; line-height: 1.45; }

/* ---------- Das Pad ---------- */
/* Die geerbte Farbe stammt aus dem dunklen Blatt — auf hellem Grund war die Zahl unsichtbar. */
.hand-pad .pad-stand { color: var(--text-gedimmt); }
.hand-pad .pad-stand b { color: var(--text); }
.hand-pad .pad-modus .pad-m b { margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.hand-pad .hand-schnell { grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); }
.hand-pad .hand-rest { white-space: nowrap; }

@media (max-width: 420px) {
  .hfa-teil { font-size: 1.15rem; }
  .hand-folge { padding: 0.55rem 0.8rem; gap: 0.6rem; }
  .hfa-kopf { padding: 0.85rem 0.8rem 0.35rem; }
  .hand-fa > .karte-fortschritt { margin: 0.2rem 0.8rem 0.5rem; }
  .hf-plus { width: 2.5rem; height: 2.5rem; }
}

/* Meine Buchungen heute — Änderung anfragen (0314) */
.hand-meine-platz { margin-top: 0.9rem; }
.hand-meine .log-zeile { flex-wrap: wrap; }
.hm-anfragen { flex: 0 0 auto; padding: 0.45rem 0.7rem; font-size: 0.85rem; }
.hm-stand { flex: 0 0 auto; font-size: 0.8rem; font-weight: 600; color: var(--text-gedimmt); }
.hm-stand.offen { color: var(--gelb-text); }
.hm-stand.anerkannt { color: var(--gruen-text); }
.ha-frage { margin: 0.9rem 0 0.4rem; font-weight: 700; }
.ha-gruende { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.ha-grund { text-align: left; padding: 0.8rem 0.9rem; font-size: 1rem; }
.ha-grund.aktiv { border-color: var(--hk-blau); box-shadow: inset 0 0 0 2px var(--hk-blau); }
.ha-richtig { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.9rem 0 0.4rem;
  font-size: 0.9rem; color: var(--text-gedimmt); }
.ha-richtig input { font: inherit; font-size: 1.2rem; padding: 0.6rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); }
#ha-ok:disabled { opacity: 0.45; }
