/* ============================================================
   Foodiego — Shared chrome for marketing / landing pages
   Load AFTER assets/styles.css (+ inline #fg-palette brand lock).
   Uses the design-system tokens; adds only what styles.css lacks.
   Powers: fahrer-werden · foodiego-business · gruppenbestellung
           · freunde-werben · magazin
   ============================================================ */

/* ---------- Header ---------- */
.fp-head { position: sticky; top: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.fp-head.scrolled { box-shadow: var(--shadow-sm); }
.fp-head .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.fp-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.fp-logo .fmark { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--primary); color: var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1;
  box-shadow: 0 4px 12px -5px color-mix(in srgb, var(--accent) 60%, transparent); }
.fp-logo b { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.fp-logo .plabel { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-700); background: var(--gold-tint); border-radius: 999px; padding: 4px 10px; }
.fp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.fp-nav a.lnk { font-weight: 600; font-size: 15px; color: var(--ink-soft); padding: 9px 13px; border-radius: 999px; transition: color .15s, background .15s; white-space: nowrap; }
.fp-nav a.lnk:hover { color: var(--ink); background: var(--surface-2); }
.fp-nav .btn { margin-left: 8px; }
.fp-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; align-items: center; justify-content: center; color: var(--ink); }
.fp-burger:hover { background: var(--surface-2); }
.fp-burger svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .fp-nav { display: none; } .fp-burger { display: inline-flex; } }

/* ---------- Mobile drawer ---------- */
.fp-menu { position: fixed; inset: 0; z-index: 320; display: none; }
.fp-menu.open { display: block; }
.fp-menu .scrim { position: absolute; inset: 0; background: rgba(8,16,11,.48); }
.fp-menu .panel { position: absolute; top: 0; right: 0; width: min(340px, 87vw); height: 100%; background: var(--bg);
  box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto;
  animation: fpDraw .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fpDraw { from { transform: translateX(24px); opacity: .4; } }
.fp-menu .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fp-menu .mclose { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-soft); background: var(--surface-2); }
.fp-menu .mclose:hover { color: var(--ink); }
.fp-menu .mclose svg { width: 22px; height: 22px; }
.fp-menu .panel a { padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: 16.5px; color: var(--ink); text-decoration: none; }
.fp-menu .panel a:hover { background: var(--surface-2); }
.fp-menu .panel a.mcta { margin-top: 12px; text-align: center; justify-content: center; background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.fp-menu .panel a.mcta:hover { filter: brightness(1.12); background: var(--primary); }
.fp-menu .mhr { height: 1px; background: var(--line); margin: 9px 0; }
.fp-menu .mlabel { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
body.fp-menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.fp-hero { position: relative; overflow: hidden; padding: clamp(40px,6vw,84px) 0 clamp(30px,4vw,52px); }
.fp-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(54% 60% at 88% -6%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 62%),
              radial-gradient(46% 52% at -6% 108%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); }
.fp-hero > .wrap { position: relative; z-index: 2; }
.fp-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-tint); border-radius: 999px; padding: 7px 15px; }
.fp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.fp-hero h1 { font-size: clamp(38px,6vw,68px); line-height: .98; margin: 18px 0 0; letter-spacing: -.018em; }
.fp-hero h1 .accent { color: var(--accent); font-style: italic; }
.fp-hero h1 .green { color: var(--primary); }
.fp-hero .lead { font-size: clamp(17px,2.2vw,21px); color: var(--ink-soft); line-height: 1.5; margin: 20px 0 0; max-width: 540px; }
.fp-hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.fp-trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.fp-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm); }
.fp-trust svg { width: 15px; height: 15px; color: var(--primary); flex: none; }

/* ---------- Split layout ---------- */
.fp-split { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px,4vw,56px); align-items: center; }
@media (max-width: 900px) { .fp-split { grid-template-columns: 1fr; } }

/* ---------- Feature cards ---------- */
.fp-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .fp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fp-features { grid-template-columns: 1fr; } }
.fp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.fp-feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-700); margin-bottom: 15px; }
.fp-feature .ic svg { width: 23px; height: 23px; }
.fp-feature:nth-child(3n+2) .ic { background: var(--primary-tint); color: var(--primary-700); }
.fp-feature:nth-child(3n) .ic { background: var(--gold-tint); color: var(--gold-700); }
.fp-feature h3 { font-size: 19px; margin-bottom: 7px; }
.fp-feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Numbered steps ---------- */
.fp-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 820px) { .fp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fp-steps { grid-template-columns: 1fr; } }
.fp-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); position: relative; }
.fp-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-size: 18px; display: grid; place-items: center; margin-bottom: 14px; }
.fp-step h3 { font-size: 18px; margin-bottom: 6px; }
.fp-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Panel (calculators, forms, aside cards) ---------- */
.fp-panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.fp-panel-h { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.fp-panel-h .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.fp-panel-h h3 { font-size: 22px; margin-top: 5px; }

/* ---------- Info / preview note ---------- */
.fp-note { display: flex; gap: 13px; align-items: flex-start; background: var(--gold-tint); border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent); border-radius: 14px; padding: 15px 18px; }
.fp-note svg { width: 22px; height: 22px; color: var(--gold-700); flex: none; margin-top: 1px; }
.fp-note p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.fp-note b { color: var(--ink); }

/* ---------- CTA band ---------- */
.fp-cta { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--accent), var(--accent-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(38px,6vw,68px); text-align: center; }
.fp-cta h2 { color: #fff; font-size: clamp(28px,4.4vw,48px); letter-spacing: -.015em; }
.fp-cta p { color: rgba(255,255,255,.92); max-width: 560px; margin: 14px auto 26px; font-size: 17.5px; }
.fp-cta .acts { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.fp-cta .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.fp-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Footer ---------- */
.fp-foot { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, white); border-top: 2px solid var(--gold-700); }
.fp-foot .wrap { padding: 42px 0 30px; }
.fp-foot .frow { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.fp-foot .frow a { color: color-mix(in srgb, var(--bg) 80%, white); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.fp-foot .frow a:hover { color: var(--gold); }
.fp-foot .fbrand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.fp-foot .fbrand .fmark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.fp-foot .fbrand b { color: #fff; font-family: var(--font-display); font-size: 18px; }
.fp-foot .legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: color-mix(in srgb, var(--bg) 55%, white); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fp-foot .legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fp-foot .legal a:hover { color: var(--gold); }

/* ---------- Range sliders (calculators) ---------- */
.fp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); outline: none; }
.fp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 2px 8px -1px color-mix(in srgb, var(--accent) 60%, transparent); cursor: pointer; }
.fp-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }
.fp-ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 9px; }
.fp-ctrl label b { font-family: var(--font-display); font-size: 18px; color: var(--ink); font-weight: 700; white-space: nowrap; padding-left: 12px; }

/* ---------- Forms ---------- */
.fp-form-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .fp-form-grid { grid-template-columns: 1fr; } }
.fp-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,3vw,32px); box-shadow: var(--shadow); }
.fp-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
@media (max-width: 560px) { .fp-frow { grid-template-columns: 1fr; } }
.fp-field { display: flex; flex-direction: column; gap: 6px; }
.fp-field.full { grid-column: 1 / -1; }
.fp-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.fp-field input, .fp-field select, .fp-field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--bg); color: var(--ink); width: 100%; min-height: 46px; }
.fp-field textarea { min-height: 92px; resize: vertical; }
.fp-field input:focus, .fp-field select:focus, .fp-field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.fp-consent { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; margin-bottom: 6px; }
.fp-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.fp-consent a { color: var(--primary-700); font-weight: 700; }
.fp-aside { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 28px 26px; position: sticky; top: 92px; }
.fp-aside h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.fp-aside ul { list-style: none; display: grid; gap: 13px; margin: 0; padding: 0; }
.fp-aside li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.86); }
.fp-aside li svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 1px; }
.fp-aside .ph { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13.5px; color: rgba(255,255,255,.72); }
.fp-aside .ph a { color: #fff; font-weight: 700; }
@media (max-width: 900px) { .fp-aside { position: static; } }
.fp-form-ok { display: none; text-align: center; padding: 14px; }
.fp-form-ok.on { display: block; }
.fp-form-ok .ck { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; }
.fp-form-ok .ck svg { width: 30px; height: 30px; }
.fp-form.sent .fp-form-body { display: none; }
.fp-form.sent .fp-form-ok { display: block; }

/* ---------- FAQ (mirror of styles.css .faq for pages that need it standalone) ---------- */
.fp-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.fp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.fp-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: "+"; font-size: 24px; color: var(--gold-700); font-weight: 400; line-height: 1; transition: transform .2s; }
.fp-faq details[open] summary::after { transform: rotate(45deg); }
.fp-faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Reveal on scroll ---------- */
html.js .fp-reveal { opacity: 0; transform: translateY(22px) scale(.99); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
html.js .fp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .fp-reveal { opacity: 1 !important; transform: none !important; } }
