:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#172431;background:#edf5ef;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}#app{max-width:780px;margin:auto;min-height:100vh;padding:0 14px 90px}.top{display:flex;align-items:center;justify-content:space-between;padding:20px 3px 15px;gap:12px}.top h1{font-size:23px;letter-spacing:-.7px;margin:0}.top small,.muted,small{color:#687786}.status{font-size:11px;background:#eaf3ee;color:#28624a;padding:6px 8px;border-radius:20px;white-space:nowrap}.nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e0e7ec;display:flex;justify-content:center;z-index:10;padding-bottom:env(safe-area-inset-bottom)}.nav button{border:0;background:none;color:#7b8792;min-width:85px;max-width:190px;flex:1;padding:8px 0 7px;font-size:22px;display:grid;gap:1px;justify-items:center}.nav button span{font-size:11px}.nav button.active{color:#126e70;font-weight:700}.card{background:white;border:1px solid #e1e8ed;border-radius:15px;padding:16px;margin-bottom:13px;box-shadow:0 1px 3px #17243108}.card h2,.section-title{font-size:16px;margin:0 0 12px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.metric{background:#f1f5f7;padding:13px 7px;border-radius:11px;text-align:center}.metric strong{display:block;font-size:21px;letter-spacing:-.7px}.metric small{font-size:11px}.green{color:#12795a}.red{color:#b85140}.blue{color:#256a99}.progress{height:11px;background:#e6ecef;border-radius:20px;overflow:hidden;margin:8px 0 4px}.progress>div{height:100%;background:#16857d;border-radius:20px}.progress>div.over{background:#d89439}.nutrient{margin:12px 0}.nutrient .progress{height:7px}.btn{border:0;background:#126e70;color:white;border-radius:10px;padding:11px 14px;font-weight:650}.btn.secondary{background:#e9f0f2;color:#234751}.btn.danger{background:#fff0ef;color:#a34237}.btn.tiny{padding:7px 9px;font-size:12px}.buttons{display:flex;gap:8px;flex-wrap:wrap}.field{display:grid;gap:5px;margin-bottom:12px}.field label{font-size:12px;font-weight:650;color:#465766}input,select,textarea{width:100%;padding:11px;border:1px solid #cdd9df;border-radius:10px;background:#fff;color:#172431;min-width:0}input[type=date]{padding:10px}input[type=checkbox]{width:auto}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.chip{border:1px solid #d5e0e6;background:#fff;border-radius:20px;padding:7px 10px;font-size:12px}.chip.active{background:#dcefed;border-color:#88b9b4}.list-item{padding:10px 0;border-bottom:1px solid #edf0f2}.list-item:last-child{border-bottom:0}.list-item .sub{font-size:12px;color:#687786;margin-top:3px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{padding:9px 7px;border-bottom:1px solid #edf0f2;text-align:right}th:first-child,td:first-child{text-align:left}th{background:#f4f7f8;color:#5d6b75}tfoot{font-weight:700;background:#f2f7f5}.bar-row{display:grid;grid-template-columns:51px 1fr 62px;align-items:center;gap:7px;margin:8px 0;font-size:12px}.bar-track{height:16px;background:#edf1f4;border-radius:4px;overflow:hidden;position:relative}.bar{height:100%;background:#3382aa}.bar.orange{background:#e5a351}.bar.greenbar{background:#239575}.bar-label{text-align:right;font-variant-numeric:tabular-nums}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#63717b;margin-bottom:9px}.dot{width:10px;height:10px;display:inline-block;border-radius:2px;margin-right:4px}.linechart{width:100%;height:150px;display:block}.hint{font-size:12px;color:#63717b;line-height:1.45}.notice{background:#f1f6f7;border-left:3px solid #6a9da0;padding:11px;font-size:12px;border-radius:6px;margin:10px 0}.search-results{max-height:235px;overflow:auto;border:1px solid #e1e7eb;border-radius:10px;margin:8px 0}.search-result{width:100%;border:0;background:white;text-align:left;padding:10px;border-bottom:1px solid #edf0f2;display:flex;justify-content:space-between;gap:8px}.search-result:hover{background:#f2f7f7}.tag{font-size:10px;color:#537d76}.hidden{display:none!important}hr{border:0;border-top:1px solid #e9edf0;margin:14px 0}.pill{background:#e8f3f0;color:#21695e;border-radius:20px;padding:5px 8px;font-size:11px}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#213a42;color:#fff;padding:10px 14px;border-radius:9px;display:none;z-index:20;max-width:90vw;text-align:center;font-size:13px}.date-nav{display:flex;align-items:center;gap:8px}.date-nav input{max-width:155px}.section-space{margin-top:20px}.empty{color:#71818a;font-size:13px;padding:12px 0}.kpi{font-size:25px;font-weight:750}.smalltext{font-size:12px}.food-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.food-grid input{padding:9px 5px;text-align:center}@media(max-width:410px){.metric strong{font-size:18px}.card{padding:13px}.top h1{font-size:21px}.food-grid{grid-template-columns:repeat(3,1fr)}}

/* Version 1.1: jederzeit erreichbare Startseite, dezenter Salbeihintergrund */
body{background:#edf5ef}#app{background:linear-gradient(180deg,#e8f3ec 0,#edf5ef 220px,#edf5ef 100%)}.home-link{border:0;background:transparent;color:#172431;padding:0;text-align:left;font-size:inherit;font-weight:inherit;letter-spacing:inherit;display:flex;align-items:center;gap:9px}.home-link span{font-size:22px;color:#25796b}.home-link:focus-visible,.quick-nav button:focus-visible{outline:3px solid #479d8d;outline-offset:3px}.quick-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:9px 12px;background:#f7fbf7;border:1px solid #d8e8dc;border-radius:12px}.quick-nav button{background:#d9ece1;border:0;border-radius:8px;padding:9px 12px;color:#245e50;font-weight:700;cursor:pointer}.quick-nav span{font-size:11px;color:#668174;text-align:right}.nav{background:#f9fcf9;border-top-color:#d4e4d9}.card{border-color:#dce8df;box-shadow:0 1px 3px #183b2808}.metric{background:#f0f6f1}
