/* kueche.css — the kitchen board (kueche.html) and the guest's status page
   (status.html). Loaded AFTER styles.css and uses only its tokens: --char,
   --paper, --cream, --accent(-bright), --display (Anton), --body (Archivo).
   No new colours, no new type — the board is Rachim's counter, not a
   dashboard (BRIEF-kueche.md, anti-goal 1).

   The reference screen is a tablet at arm's length in a hot kitchen:
   order number and pickup time read from a metre, every button ≥ 52 px. */

/* =================== BOARD: page frame =================== */
body.kitchen {
  background: var(--char);
  color: var(--cream);
  min-height: 100vh;
  --focus: var(--cream);
}

/* =================== BOARD: KOPFLEISTE =================== */
.k-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px var(--pad);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--char);
}
.k-head p { margin: 0; }
.k-brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.01em; }
.k-brand .dot { color: var(--accent-bright); }
.k-where { color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; margin-left: 4px; }
/* "Demo" must be impossible to miss — a prospect may screenshot the board */
.k-demo {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border: 2px dashed var(--accent-bright);
  color: var(--accent-bright);
  padding: 4px 10px 3px;
}
.k-state { color: var(--cream-soft); font-size: 0.95rem; margin-left: auto !important; }
.k-clock { font-family: var(--display); font-size: 1.9rem; line-height: 1; }

/* =================== BOARD: BANNER bei neuer Bestellung =================== */
/* A full-width strip in the rust accent: in a loud kitchen the eye catches
   colour before it reads text. Tapping it jumps to the "Neu" column. */
.k-banner {
  display: block;
  width: 100%;
  min-height: 64px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px var(--pad);
  /* pinned to the bottom edge: always in view whatever the header wraps to,
     and it is where the thumb already is on a tablet */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  animation: k-flash 1s ease-in-out 3;
}
@keyframes k-flash { 50% { background: var(--accent-bright); } }
@media (prefers-reduced-motion: reduce) { .k-banner { animation: none; } }

/* =================== BOARD: START =================== */
.k-start { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 32px var(--pad); }
.k-start-in { max-width: 34em; }
.k-start .kicker { color: var(--accent-bright); }
.k-start h1 { color: var(--cream); }
.k-start-in > p { color: var(--cream-soft); font-size: 1.1rem; }
.k-go { min-height: 56px; font-size: 1.25rem; padding-inline: 32px; }
.k-start-note { margin-top: 18px; font-size: 0.95rem; }

/* =================== BOARD: SPALTEN =================== */
/* Wide screens: five rails side by side, "Abgeholt" narrower because nobody
   works from it. Narrower screens: the rails scroll sideways and snap, one
   rail per swipe on a phone — stacking them would push "Fertig" off the
   first screen. */
.k-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 14px;
  padding: 16px var(--pad) 96px; /* room for the banner */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad); /* snap keeps the page margin, not the bare edge */
  overscroll-behavior-x: contain;
  scrollbar-color: #5a4b3a var(--char); /* a white track would glare on the dark rail */
}
@media (min-width: 1200px) {
  .k-board { grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 0.8fr); overflow-x: visible; }
}
@media (max-width: 560px) {
  .k-board { grid-auto-columns: 86vw; gap: 10px; }
}
.k-col { scroll-snap-align: start; min-width: 0; }
.k-col h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3a2f24;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--cream);
}
.k-col[data-status="neu"] h2 { border-bottom-color: var(--accent-bright); }
.k-count { color: var(--accent-bright); }
.k-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* =================== BOARD: BON (eine Bestellung) =================== */
/* A paper ticket on the dark rail: the same paper as the shop page. */
.k-card {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 14px 12px;
  border-top: 5px solid var(--char-2);
}
.k-col[data-status="neu"] .k-card { border-top-color: var(--accent); }
.k-col-done .k-card { opacity: 0.72; }
.k-card p { margin: 0; }
.k-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.k-no { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.k-time { font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.k-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px !important; font-weight: 700; }
.k-who a { font-weight: 400; color: var(--ink-soft); }
.k-items {
  list-style: none;
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 1.06rem;
  line-height: 1.45;
}
.k-card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.k-sum { font-family: var(--display); font-size: 1.1rem; margin-right: auto !important; }
.k-next { min-height: 52px; padding-inline: 20px; }
/* "Annehmen" is the one tap the whole board exists for */
.k-next.is-accept { background: var(--char); border-color: var(--char); font-size: 1.2rem; flex: 1 1 100%; order: 3; }
.k-next.is-accept:hover { background: var(--accent); border-color: var(--accent); }
.k-back {
  min-height: 52px;
  min-width: 52px;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font: 400 0.95rem var(--body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.k-noscript { padding: 40px var(--pad); font-size: 1.2rem; }

/* =================== STATUS-SEITE (status.html) =================== */
/* The guest's link. Light paper like the shop, one big line that says where
   the order is, and a five-step rail that fills as the kitchen taps. */
.st-main { max-width: 640px; margin: 0 auto; padding: 40px var(--pad) 64px; }
.st-no { font-family: var(--display); font-size: clamp(2.8rem, 10vw, 4.2rem); line-height: 1; margin: 0 0 12px; }
.st-line { font-size: 1.35rem; line-height: 1.35; margin: 0 0 28px; }
.st-line strong { color: var(--accent); font-weight: 700; }
.st-rail { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; }
.st-rail li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  margin-left: 9px;
}
.st-rail li::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--line);
}
.st-rail li.is-done { color: var(--ink); border-left-color: var(--accent); }
.st-rail li.is-done::before { background: var(--accent); border-color: var(--accent); }
.st-rail li.is-now { color: var(--ink); font-weight: 700; }
.st-rail li.is-now::before { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180, 58, 26, 0.18); }
.st-note { color: var(--ink-soft); font-size: 0.95rem; }
.st-note a { color: var(--accent); }
