:root {
  --bg: #f2ede1;
  --card: #fbf8f1;
  --text: #20302a;
  --muted: #66756c;
  --line: #ddd4c1;
  --brand: #20302a;
  --accent: #4a7a5b;
  --accent-text: #ffffff;
  --ok: #3b6449;
  --ok-bg: #e1ece0;
  --warn: #9a6420;
  --warn-bg: #f6e7cf;
  --bad: #b1452e;
  --bad-bg: #f7e1da;
  --radius: 14px;
  --nav-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16211d;
    --card: #1e2b26;
    --text: #ece7da;
    --muted: #9aa79e;
    --line: #30413a;
    --brand: #121b17;
    --accent: #8fae8e;
    --accent-text: #13201a;
    --ok: #8fc49a;
    --ok-bg: #1d3527;
    --warn: #e0a95a;
    --warn-bg: #3a2c14;
    --bad: #e88a76;
    --bad-bg: #3d1f19;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
header#top { position: sticky; top: 0; z-index: 5; background: var(--brand); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
header#top h1 { flex: 1; margin: 0; padding: 0 16px 4px; font-size: 19px; font-weight: 650; letter-spacing: .2px; }
header#top .badge { margin-right: 14px; }
main#view { flex: 1; padding: 14px 14px 120px; }
nav#tabs { flex: 0 0 100%; display: flex; background: transparent; border-top: 1px solid rgba(255,255,255,.12); }
nav#tabs button { flex: 1; height: 54px; border: 0; border-bottom: 3px solid transparent; background: none; color: rgba(255,255,255,.65); font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; }
nav#tabs button .ic { font-size: 20px; line-height: 1; }
nav#tabs button.on { color: #fff; font-weight: 650; border-bottom-color: #8fae8e; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card h2 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 28px 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.sb { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }

label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  padding: 0 14px; font: inherit; font-size: 18px; appearance: none; -webkit-appearance: none;
}
input.big { font-size: 28px; height: 62px; font-weight: 650; letter-spacing: .5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea { height: 76px; padding: 10px 14px; font-size: 16px; resize: vertical; }

button.btn { height: 52px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-text); font: inherit; font-size: 17px; font-weight: 650; padding: 0 18px; cursor: pointer; width: 100%; }
button.btn.sec { background: var(--bg); color: var(--text); border: 1.5px solid var(--line); font-weight: 550; }
button.btn.danger { background: var(--bad-bg); color: var(--bad); }
button.btn.sm { height: 38px; font-size: 14px; width: auto; padding: 0 12px; border-radius: 10px; }
button.btn:disabled { opacity: .55; }
.badge { background: var(--warn-bg); color: var(--warn); border: 0; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 650; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

.hint { margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; background: var(--bg); color: var(--muted); }
.hint.ok { background: var(--ok-bg); color: var(--ok); }
.hint.warn { background: var(--warn-bg); color: var(--warn); }
.hint.bad { background: var(--bad-bg); color: var(--bad); }

.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.item .nr { min-width: 46px; font-size: 20px; font-weight: 700; }
.item .main { flex: 1; min-width: 0; }
.item .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.item.done { opacity: .75; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--text); padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 650; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--ok); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }

#toast { position: fixed; left: 12px; right: 12px; bottom: 96px; max-width: 616px; margin: 0 auto; z-index: 20; padding: 13px 16px; border-radius: 12px; background: #20302a; color: #fff; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
#toast.bad { background: var(--bad); color: #fff; }
#overlay { position: fixed; inset: 0; z-index: 30; background: rgba(14, 22, 18, .72); display: flex; align-items: flex-end; justify-content: center; }
#overlay .sheet { background: var(--card); width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 16px 16px 96px; max-height: 88vh; overflow: auto; }
#overlay img { width: 100%; border-radius: 12px; display: block; }
.thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
.login { max-width: 380px; margin: 8vh auto 0; }
.login h1 { font-size: 24px; margin: 0 0 4px; }
a.lnk, button.lnk { background: none; border: 0; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.check input { width: 22px; height: 22px; }

#lang { margin-right: 6px; }
.langbar { display: flex; gap: 2px; justify-content: flex-end; }
.lg { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 7px; border-radius: 10px; opacity: .45; cursor: pointer; }
.lg.on { opacity: 1; background: rgba(127,127,127,.22); }
.login .langbar { margin-bottom: 14px; }

/* Liste / Bon */
.paper { padding: 12px; background: #fff; color: #000; }
#printArea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #000; margin: 0 auto; }
#printArea.w58 { width: 58mm; max-width: 100%; }
#printArea.w80 { width: 80mm; max-width: 100%; }
#printArea.wa4 { width: 100%; }
#printArea .ph { font-weight: 700; font-size: 16px; }
#printArea .ps { font-size: 12px; margin-bottom: 4px; }
#printArea table { width: 100%; border-collapse: collapse; margin-top: 6px; }
#printArea th { color: #000; text-align: left; border-bottom: 1px dashed #000; font-size: 12px; padding: 2px 0; }
#printArea td { padding: 2px 0; border: 0; color: #000; }
#printArea td.num, #printArea th:not(:first-child) { text-align: right; }
#printArea .pf { margin-top: 8px; padding-top: 4px; border-top: 1px dashed #000; font-size: 12px; }
#printArea .pd { border: 0; margin-top: 2px; font-size: 11px; }
@media print {
  header#top, nav#tabs, .noprint, #toast, #overlay { display: none !important; }
  html, body { background: #fff !important; }
  #app, main#view { max-width: none; padding: 0 !important; margin: 0; }
  .card.paper { border: 0; padding: 2mm; margin: 0; background: #fff; }
  #printArea { font-size: 11pt; }
  #printArea.w58 { width: 54mm; }
  #printArea.w80 { width: 76mm; }
}

/* Platztypen */
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip.tour:not(.on) { border-style: dashed; }
details.card > summary.sumh { font-weight: 650; font-size: 16px; cursor: pointer; list-style: none; }
details.card > summary.sumh::before { content: '▸ '; color: var(--accent); }
details.card[open] > summary.sumh::before { content: '▾ '; }
