{food.name} | {isEn ? 'Nutrition' : 'Ernährung'}
{t('nutrition_title', lang)}

{food.nameDe ?? food.name}

{#if food.nameEn && food.nameDe}

{food.nameEn}

{/if}
{food.source === 'bls' ? 'BLS' : 'USDA'} {food.category}
{#if portions.length > 0}
{/if}
{Math.round(scaled(n.calories))} kcal {portionLabel}
{#each [ { pct: macroPercent.protein, label: isEn ? 'Protein' : 'Eiweiß', cls: 'ring-protein', grams: scaled(n.protein) }, { pct: macroPercent.fat, label: isEn ? 'Fat' : 'Fett', cls: 'ring-fat', grams: scaled(n.fat) }, { pct: macroPercent.carbs, label: isEn ? 'Carbs' : 'Kohlenh.', cls: 'ring-carbs', grams: scaled(n.carbs) }, ] as macro}
{macro.pct}% {macro.label} {fmt(macro.grams)}g
{/each}
{isEn ? 'Protein' : 'Eiweiß'} {fmt(scaled(n.protein))} g
{isEn ? 'Fat' : 'Fett'} {fmt(scaled(n.fat))} g
{isEn ? 'Saturated Fat' : 'Ges. Fettsäuren'} {fmt(scaled(n.saturatedFat))} g
{isEn ? 'Carbohydrates' : 'Kohlenhydrate'} {fmt(scaled(n.carbs))} g
{isEn ? 'Sugars' : 'Zucker'} {fmt(scaled(n.sugars))} g
{isEn ? 'Fiber' : 'Ballaststoffe'} {fmt(scaled(n.fiber))} g
{#if showMicros}
{#each microSections as section}

{section.title}

{#each section.rows as row}
{row.label}
{fmt(row.value)} {row.unit} {row.pct}%
{/each}
{/each}
{/if}
{#if hasAminos}
{#if showAminos}
{#each aminoRows as row}
{row.label} {fmt(row.value)} g {#if row.essential} {isEn ? 'essential' : 'essenziell'} {/if}
{/each}
{/if}
{/if} {#if portions.length > 0}

{isEn ? 'Common Serving Sizes' : 'Übliche Portionsgrößen'}

{isEn ? 'Serving' : 'Portion'} kcal {isEn ? 'Protein' : 'Eiweiß'} {isEn ? 'Fat' : 'Fett'} {isEn ? 'Carbs' : 'KH'}
{#each portions as portion} {@const m = portion.grams / 100}
{portion.description} ({portion.grams}g) {Math.round(n.calories * m)} {fmt(n.protein * m)}g {fmt(n.fat * m)}g {fmt(n.carbs * m)}g
{/each}
{/if}