/* Ruler */
.rl { position: relative; width: 100%; height: 58px; margin: 2px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.rl-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; }
.rl-track::-webkit-scrollbar { display: none; }
.rl-pad { flex: 0 0 50%; }
.rl-scale { position: relative; flex: none; height: 100%;
  background:
    linear-gradient(90deg, #00000059 1px, transparent 1px) 0 0 / var(--major) 26px repeat-x,
    linear-gradient(90deg, #00000026 1px, transparent 1px) 0 0 / 10px 14px repeat-x; }
.rl-scale span { position: absolute; top: 32px; transform: translateX(-50%); font-family: 'Outfit', -apple-system, sans-serif; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rl-needle { position: absolute; left: 50%; top: -2px; width: 3px; height: 30px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); pointer-events: none; }
.rl-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0; }
.rl-big input { width: 4.2ch; min-width: 0; border: 0; background: none; padding: 0; text-align: center; font-family: 'Outfit', -apple-system, sans-serif; font-weight: 300; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); outline: none; }
.rl-big small { font-size: 14px; color: var(--muted); }
body.aleey-dark .rl-scale { background:
    linear-gradient(90deg, #ffffff6b 1px, transparent 1px) 0 0 / var(--major) 26px repeat-x,
    linear-gradient(90deg, #ffffff2e 1px, transparent 1px) 0 0 / 10px 14px repeat-x; }

/* Produktseite */
.ff-sheet .product-panel.pp { position: relative; display: grid; justify-items: center; text-align: center; padding: 4px 0 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.pp-fav { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0000000d; color: var(--ink); font-size: 17px; }
.pp-fav.active { color: #c79a2c; }
.pp-head small { font-size: 12.5px; color: var(--muted); }
.pp-head h3 { margin: 2px 40px 0; font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.pp-per { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 12px; padding: 9px 16px; border-radius: 18px; background: #0000000a; font-size: 13px; color: var(--muted); }
.pp-per b { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 400; font-size: 16px; color: var(--ink); }
.pp-per i { width: 1px; height: 14px; background: #00000026; }
.pp-per em { flex-basis: 100%; font-style: normal; font-size: 11.5px; letter-spacing: .02em; }
.pp-form { display: grid; justify-items: center; width: 100%; margin-top: 20px; }
.pp-label { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.pp-chips, .pp-meals { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.pp-chips button, .pp-meals button { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: #0000000d; color: var(--ink); font-size: 13px; font-weight: 550; transition: background .2s ease, color .2s ease, transform .15s ease; }
.pp-chips button:active, .pp-meals button:active { transform: scale(.95); }
.pp-chips button.active, .pp-meals button.active { background: var(--ink); color: #fff; }
.pp-meals { margin-top: 16px; }
.pp-meals::before { content: "Meal"; align-self: center; margin-right: 4px; font-size: 13px; color: var(--muted); }
.pp-meals button { width: 34px; padding: 0; }
.pp-result { display: grid; justify-items: center; gap: 8px; width: 100%; margin-top: 18px; padding: 16px 12px 14px; border-radius: 24px; background: #ffffffb3; border: 1px solid #ffffffcc; box-shadow: 0 8px 22px #0000000d; }
.pp-kcal { position: relative; display: flex; align-items: baseline; }
.pp-kcal .bignum { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 300; font-size: 44px; line-height: 1; }
.pp-kcal small { position: absolute; left: 100%; bottom: 5px; margin-left: 5px; font-size: 13px; color: var(--muted); }
.pp-mac { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.pp-mac i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.pp-add { width: 100%; height: 54px; margin-top: 18px; border: 0; border-radius: 27px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; }
.pp-more { width: 100%; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.pp-more summary { list-style: none; cursor: pointer; font-weight: 550; }
.pp-more summary::-webkit-details-marker { display: none; }
.pp-more form, .pp-more[open] { display: grid; gap: 8px; }
.pp-more label { display: grid; gap: 4px; text-align: left; font-size: 12px; }
.pp-more input { height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: #0000000a; font-size: 15px; color: var(--ink); }
.pp-small { height: 40px; border: 0; border-radius: 20px; background: #0000000f; color: var(--ink); font-weight: 600; }
.pp-src { display: block; margin-top: 12px; font-size: 11.5px; color: var(--muted); text-decoration: none; }

/* Stift */
.mf { display: grid; justify-items: center; text-align: center; gap: 0; }
.mf-name { width: 100%; height: 52px; border: 0; border-bottom: 1px solid #0000001a; background: none; text-align: center; font-size: 20px; font-weight: 600; color: var(--ink); outline: none; }
.mf-name::placeholder { color: #00000040; font-weight: 500; }
.mf-hint { margin: 10px 0 6px; font-size: 12.5px; color: var(--muted); }
.mf-kcal { width: 100%; margin-top: 4px; }
.mf-kcal .rl-big input { font-size: 56px; }
.mf-macs { display: grid; gap: 4px; width: 100%; margin-top: 10px; }
.mf-mac { display: grid; justify-items: center; padding: 10px 0 2px; border-radius: 22px; background: #ffffff80; }
.mf-mac > span { font-size: 12.5px; color: var(--muted); }
.mf-mac > span i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.mf-mac .rl-big input { font-size: 30px; }
.mf-mac .rl { height: 50px; }
.mf .pp-more label { margin-top: 4px; }

/* Dark */
body.aleey-dark .pp-fav, body.aleey-dark .pp-per, body.aleey-dark .pp-chips button, body.aleey-dark .pp-meals button, body.aleey-dark .pp-more input, body.aleey-dark .pp-small { background: #ffffff12; color: var(--ink); }
body.aleey-dark .pp-chips button.active, body.aleey-dark .pp-meals button.active, body.aleey-dark .pp-add { background: #f2f2ef; color: #141414; }
body.aleey-dark .pp-result, body.aleey-dark .mf-mac { background: #ffffff0d; border-color: #ffffff14; box-shadow: none; }
body.aleey-dark .pp-per i { background: #ffffff2e; }
body.aleey-dark .mf-name { border-color: #ffffff1f; }
body.aleey-dark .mf-name::placeholder { color: #ffffff47; }
body.aleey-dark .ff-sheet .finder-back { color: var(--ink); }
.pp-form, .mf, .ff-sheet .product-panel.pp, .mf-mac, .mf-kcal { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.rl { min-width: 0; max-width: 100%; }
.rl-big input { width: auto; }
.ff-sheet .mf-name { height: 52px !important; border: 0 !important; border-bottom: 1px solid #0000001a !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; text-align: center !important; font-size: 20px !important; padding: 0 !important; }
body.aleey-dark .ff-sheet .mf-name { border-bottom-color: #ffffff1f !important; color: var(--ink) !important; }
.mf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 18px; }
.mf-seg button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 0; border-radius: 18px; background: #0000000a; color: var(--ink); transition: background .2s ease, transform .15s ease; }
.mf-seg button:active { transform: scale(.96); }
.mf-seg span { font-size: 12px; color: var(--muted); }
.mf-seg span i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.mf-seg b { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 400; font-size: 20px; }
.mf-seg button.active { background: #fff; box-shadow: 0 4px 14px #00000014; }
.mf-macro { width: 100%; margin-top: 4px; }
body.aleey-dark .mf-seg button { background: #ffffff0d; }
body.aleey-dark .mf-seg button.active { background: #ffffff24; box-shadow: none; }
body.aleey-dark .ff-sheet .product-panel.pp { background: none !important; border: 0 !important; box-shadow: none !important; }
.ff-sheet .finder-back { display: inline-block; margin: 0 0 4px; padding: 6px 12px; border: 0; border-radius: 16px; background: #0000000a; font-size: 13px; font-weight: 600; color: var(--ink); }
body.aleey-dark .ff-sheet .finder-back { background: #ffffff12; }
.food-finder.ff-sheet { min-height: min(86vh, 760px); }
/* natives Einrasten wie ein iOS-Picker */
.rl-track { scroll-snap-type: x mandatory; }
.rl-scale u { position: absolute; top: 0; width: 1px; height: 1px; scroll-snap-align: center; scroll-snap-stop: normal; pointer-events: none; }
.rl-needle { transition: transform .12s ease; }
.rl.tick .rl-needle { animation: rlTick .16s ease; }
@keyframes rlTick { 50% { transform: scaleY(1.18); } }
