/* cafetario – Aussehen der ventario Suite: warme Fläche, dunkle Kopfzeile in Erdbraun, Aktionen in Blattgrün.
   Rot nur für die Kirsche im Logo. Für das Handy gebaut: große Knöpfe, eine Spalte. */
:root{
  --bg:#f6f1ea; --card:#fffdf9; --ink:#2a2320; --muted:#6e645b; --line:#e6ddd1;
  --head:#2f2622; --head-ink:#f3ece4; --accent:#3d7a3a; --accent-hover:#33672f; --accent-soft:#e7f0e4;
  --ok:#2e7d4f; --warn:#a86a00; --bad:#a83232; --radius:14px;
  --f-logo:'Bricolage Grotesque',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-size:16px; color:var(--ink);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);-webkit-tap-highlight-color:transparent}
a{color:var(--accent)}
header#top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;height:54px;padding:0 14px;background:var(--head);color:var(--head-ink)}
.brand{display:flex;align-items:center;gap:8px;color:var(--head-ink);text-decoration:none}
.wm{font-family:var(--f-logo);font-weight:800;font-size:21px;letter-spacing:-.5px}
.wm.big{font-size:38px;color:var(--head)}
.spacer{flex:1}
.net{font-size:14px;padding:4px 8px;border-radius:99px;background:#ffffff14;white-space:nowrap}
.net.on{color:#9fd49a}.net.off{color:#f0b37e}.net.busy{opacity:.6}
.icon{background:none;border:0;color:inherit;font-size:24px;padding:4px 8px;cursor:pointer}
nav#nav{position:sticky;top:54px;z-index:4;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:8px;background:var(--card);border-bottom:1px solid var(--line)}
nav#nav a{padding:13px 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:600}
nav#nav a.on{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
main{max-width:720px;margin:0 auto;padding:16px 14px 80px}
h1{font-size:24px;margin:6px 0 14px}h2{font-size:17px;margin:4px 0 10px}h3{font-size:15px;margin:14px 0 6px}
.muted{color:var(--muted)}.small{font-size:13px}.flex{display:flex;align-items:center;gap:8px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:12px}
.card.warn{border-color:#e3b23c;background:#fff8e6}.card.bad{border-color:#e7b4b4;background:#fdf1f1}
label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted);margin-bottom:10px}
input,select,textarea{font:inherit;font-size:16px;max-width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);min-height:46px;width:100%}
input:focus,select:focus{outline:2px solid color-mix(in srgb,var(--accent) 50%,transparent);border-color:var(--accent)}
input[readonly]{background:#f3eee8}
input.qty{font-size:24px;font-weight:700;text-align:right;padding:4px 12px;height:46px}
.row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.row2>*{min-width:0}
button,.btn{font:inherit;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:10px 16px;
  border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;text-decoration:none}
button.primary,.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
button.primary:active,.btn.primary:active{background:var(--accent-hover)}
button.danger{color:var(--bad);border-color:#e7b4b4}
.big{width:100%;min-height:54px;font-size:17px;margin-top:8px}
.huge{display:flex;width:100%;min-height:70px;font-size:20px;margin-bottom:14px;border-radius:16px}
.small-btn{min-height:36px;padding:6px 12px;font-size:14px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px;margin-top:8px}
.stats div{display:flex;flex-direction:column}.stats b{font-size:21px}.stats span{font-size:12px;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.tile{display:flex;flex-direction:column;gap:4px;padding:16px 12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none;font-weight:700}
.tile span{font-weight:400;font-size:13px;color:var(--muted)}
.list{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;text-align:left;font-weight:400}
.item .grow{flex:1;min-width:0}.item small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.item .num{text-align:right;white-space:nowrap;font-weight:650}
.item.void{opacity:.55}.item.void b{text-decoration:line-through}
.av{border-radius:50%;object-fit:cover;flex:none;background:#e8e0d6}
.av.big{border-radius:18px}
.clist{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px}
.clist button{justify-content:flex-start;gap:10px;text-align:left;font-weight:400;padding:8px 10px}
.clist small{display:block;color:var(--muted)}
.picked{display:flex;align-items:center;gap:12px;padding:10px;border:2px solid var(--accent);border-radius:12px;background:var(--accent-soft);margin-bottom:12px}
.picked>div{flex:1}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.seg button.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.sum{font-size:18px;margin:4px 0 12px}.sum b{font-size:22px}
.fotobox{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.hrow,.hrow2{display:grid;grid-template-columns:90px 1fr auto auto;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px;align-items:center}
.hrow2{grid-template-columns:1fr 1fr auto;border:0}
.hrow.void{opacity:.5;text-decoration:line-through}.hrow.tot{font-weight:700;border:0}
.num{text-align:right;font-variant-numeric:tabular-nums}
.rej{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f0d3d3}
.login{max-width:420px;margin:0 auto}
.wordmark{display:flex;align-items:center;justify-content:center;gap:12px;margin:40px 0 22px}
.modal{position:fixed;inset:0;z-index:20;background:#0007;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px}
.bon{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px 10px;margin:8px auto 10px;width:fit-content;max-width:100%;
  font:13px/1.35 ui-monospace,"Courier New",monospace;box-shadow:0 2px 10px #0001;overflow-x:auto}
.bon .bl{white-space:pre}.bon .b{font-weight:700}.bon .big{font-size:20px;line-height:1.3}
.void-box{margin-top:10px}.void-box summary{color:var(--bad);font-weight:650;padding:10px 0;cursor:pointer}
#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:30;background:var(--head);color:#fff;padding:12px 18px;border-radius:12px;
  opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;text-align:center}
#toast.on{opacity:1}#toast.err{background:var(--bad)}
details summary{cursor:pointer}
.urow{display:grid;grid-template-columns:1fr;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.urow .chk{flex-direction:row;align-items:center;gap:6px;margin:0}.urow .chk input{width:auto;min-height:0}
@media(min-width:600px){.urow{grid-template-columns:1.3fr 1fr auto 1fr auto;align-items:center}}
.navver{grid-column:1/-1;display:flex!important;align-items:center;gap:6px;font-size:13px;font-weight:500!important;color:var(--muted)!important;border-top:1px solid var(--line);border-radius:0!important}
.changelog h2{font-size:17px;margin:18px 0 4px}.changelog h2:first-child{margin-top:0}.changelog h3{font-size:14px;color:var(--muted);margin:10px 0 2px}
.changelog ul{margin:2px 0;padding-left:20px}.changelog li{margin:3px 0}.changelog p{margin:4px 0}
.langsel{width:auto;min-height:36px;padding:6px 10px;font-size:14px;display:inline-block}

/* Layout-Korrekturen (schmale Handys 360 px bis Tablet) */
input[type=date]{min-width:0;-webkit-appearance:none;appearance:none;display:block}
.fotobox{align-items:flex-start}
.fotobox img.av{width:112px;height:112px;flex:none}
.fotobox>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.fotobox .btn{min-height:42px}
.stats{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}
.bigsum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.bigsum span{font-size:13px;color:var(--muted)}.bigsum b{font-size:24px;white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--muted)}.chips b{color:var(--ink)}
.chips .strong{margin-left:auto;font-weight:750;color:var(--ink);font-size:17px;white-space:nowrap}
.flex.head{margin-bottom:12px}.flex.head h1{margin:0}
.item .grow b{overflow-wrap:anywhere}
.item .num{flex:none;max-width:45%;line-height:1.3}
.item .num small{white-space:nowrap}
.tiles .tile{min-width:0;overflow-wrap:normal;hyphens:auto}
.hrow2{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
@media (max-width:380px){main{padding:12px 10px 80px}.card{padding:12px}.tiles{gap:8px}.tile{padding:12px 10px}}
@media (min-width:760px){main{max-width:760px}.list .item{padding:12px 16px}}
.card>input+.row2,.card>input+select{margin-top:10px}
@media (max-width:400px){.tile{font-size:14px}.tile span{font-size:12px}}

/* Sprachwahl in der Kopfzeile (wie Benventario) */
.langpick{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-width:38px;height:32px;
  padding:0 8px;border:1px solid rgba(255,255,255,.35);border-radius:16px;color:#fff;font-weight:700;font-size:13px;letter-spacing:.04em;margin-right:6px}
.langpick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
/* Belegliste, Korrekturen */
.flex.wrap{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.card.warn{border-left:4px solid #c08a1e;background:#fbf5e6}
.edit-box{margin:10px 0}
.edit-box summary{cursor:pointer;font-weight:600;padding:8px 0}
.hrow3{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:6px 0;border-top:1px solid #eee}
.hrow3 .muted{grid-column:1/-1;font-size:13px}
.st-pendiente{color:#a06d00;font-weight:600}.st-aprobada{color:#2d6a2b;font-weight:600}.st-rechazada{color:#8a3a2e;font-weight:600}

/* Pflückarten unter Ajustes: Name in eigener Zeile, darunter Preis Lata | Preis Libra | aktiv | speichern */
.catrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto 44px;gap:4px 8px;align-items:end;padding:10px 0;border-top:1px solid #eee}
.catrow [data-kn]{grid-column:1/-1;font-weight:650}
.catrow label{margin:0}
.catrow .chk{display:flex;flex-direction:column;align-items:center;gap:6px}
.catrow input[type=checkbox]{width:22px;height:22px;margin:0 0 10px}
.catrow .full{grid-column:1/-1}
.catrow.new [data-kn]{font-weight:400}
.seg.cats{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}
.seg.cats button{line-height:1.15;padding-left:4px;padding-right:4px}

.catrow.nolb{grid-template-columns:minmax(0,1fr) auto 44px}
label.toggle{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--ink);margin:8px 0 6px;cursor:pointer}
label.toggle input{width:22px;height:22px;margin:0;flex:none}

/* Kopfzeile: Sprache, Verbindung und Menü gleich hoch und auf einer Linie */
header#top{gap:8px}
header#top .langpick,header#top .net,header#top #menuBtn{box-sizing:border-box;height:36px;min-width:36px;margin:0;padding:0 10px;
  display:inline-flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);line-height:1;font-size:14px;font-weight:700;color:#fff;vertical-align:middle}
header#top .net{font-size:13px;gap:4px}
header#top .net.on{color:#9fd49a}header#top .net.off{color:#f0b37e}
header#top #menuBtn{width:40px;min-height:36px;max-height:36px;padding:0;font-size:20px}
header#top #menuBtn[hidden]{display:none}
header#top .brand img{display:block}
/* Preiszeile: Beschriftungen oben auf einer Linie, Felder, Häkchen und Knopf unten auf einer Linie */
.catrow{align-items:stretch}
.catrow label{justify-content:space-between}
.catrow .chk{justify-content:space-between}
.catrow input[type=checkbox]{margin:0 0 12px}
.catrow [data-ks]{align-self:end;height:46px}
.catrow input[type=checkbox],label.toggle input{min-height:0;padding:0}
input[type=checkbox],input[type=radio]{min-height:0;width:22px;height:22px;padding:0;accent-color:var(--accent)}

/* Tagesabschluss */
a.cierre-card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink)}
.warn-txt{color:#a06d00}
.danger-outline{border-color:var(--bad);color:var(--bad);margin-top:8px}
