:root {
  --tomato: #d7261e;
  --tomato-dark: #a8170f;
  --basil: #1f5c3f;
  --basil-dark: #164530;
  --basil-soft: #e3efe8;
  --cheese: #ffc83d;
  --ink: #232323;
  --muted: #5f655f;
  --line: #e2e5e1;
  --surface: #f4f6f3;
  --paper: #ffffff;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; font: 17px/1.45 var(--text); color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--basil); outline-offset: 2px; }
a { color: var(--basil); }

/* masthead */
.masthead { background: var(--tomato); color: #fff; }
.mast-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.phone { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone::before { content: "Tlf. "; font-weight: 400; opacity: .85; }

/* intro */
.intro { border-bottom: 1px solid var(--line); }
.intro-inner { max-width: 1180px; margin: 0 auto; padding: 28px 16px 22px; }
.intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 9vw, 76px); line-height: .95; letter-spacing: -.03em; margin: 0 0 12px; max-width: 12ch; }
.lede { margin: 0 0 14px; max-width: 46ch; color: var(--muted); }
.deal { display: inline-block; margin: 0 0 14px; background: var(--cheese); padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.hours { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--muted); }
.notice { background: #fff4d6; border-left: 5px solid var(--cheese); padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; font-weight: 700; max-width: 640px; }
.finder { display: block; max-width: 520px; }
.finder span { display: block; font-weight: 700; margin-bottom: 6px; }
.finder input { width: 100%; font-size: 20px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.lastorder { display: inline-block; margin-top: 14px; font-weight: 700; }

/* category nav */
.catnav { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.catnav-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a { flex: none; text-decoration: none; color: var(--ink); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.catnav a:hover { background: var(--basil-soft); color: var(--basil); }

/* layout */
.layout { max-width: 1180px; margin: 0 auto; padding: 0 16px 120px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cartcol { display: none; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; padding-bottom: 60px; }
  .cartcol { display: block; }
  .cartbox { position: sticky; top: 72px; margin-top: 24px; background: var(--surface); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - 96px); overflow: auto; }
  .cartbox h2 { font-family: var(--display); font-size: 24px; margin: 0 0 10px; }
  .cartbar { display: none !important; }
}

/* menu */
.cat { padding-top: 26px; }
.cat h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin: 0 0 2px; }
.cat-note { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.dish { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.dish-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; text-align: left; background: none; border: 0; padding: 14px 0; cursor: pointer; }
.dish-main:hover .dish-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.no { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--tomato); letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.no-long { font-size: 28px; }
.dish-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.dish-name { font-weight: 700; font-size: 18px; }
.dish-desc { color: var(--muted); font-size: 15px; line-height: 1.4; }
.dish-price { font-weight: 700; white-space: nowrap; text-align: right; padding-top: 2px; display: flex; flex-direction: column; }
.fam { font-weight: 400; font-size: 13px; color: var(--muted); }
.add { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--basil); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.add:hover { background: var(--basil-dark); }
.nohit { padding: 30px 0; color: var(--muted); }
@media (max-width: 420px) {
  .dish-main { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .dish-price { grid-column: 2; flex-direction: row; gap: 10px; align-items: baseline; }
  .no { font-size: 28px; }
  .no-long { font-size: 22px; }
}

/* cart bar (mobile) */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--basil); color: #fff; border: 0; border-radius: 14px; padding: 16px 18px; font-weight: 700; font-size: 18px; cursor: pointer; box-shadow: 0 8px 24px rgba(31, 92, 63, .35); }
.cartbar[hidden] { display: none; }

/* buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 2px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; min-height: 48px; }
.btn-main { background: var(--tomato); border-color: var(--tomato); color: #fff; font-size: 18px; white-space: pre; }
.btn-main:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.wide { width: 100%; }

/* cart lines */
.empty { color: var(--muted); margin: 6px 0; }
.lines { list-style: none; margin: 0 0 8px; padding: 0; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ln { display: flex; flex-direction: column; min-width: 0; }
.ln small { color: var(--muted); font-size: 14px; }
.ln .lnote { color: var(--tomato-dark); }
.lp { white-space: nowrap; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; cursor: pointer; border-radius: 50%; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 34px; height: 34px; font-size: 18px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 12px 0 14px; }
.sum dt, .sum dd { margin: 0; }
.sum dd { text-align: right; padding-left: 12px; }
.sum .grand { font-family: var(--display); font-weight: 800; font-size: 24px; padding-top: 6px; border-top: 2px solid var(--ink); margin-top: 4px; }

/* sheets – bevidst uden flexbox, så Safari/iPhone viser indholdet korrekt */
dialog.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; margin: auto auto 0; background: var(--paper); color: var(--ink);
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(20, 20, 20, .55); }
dialog.sheet-tall { height: 94vh; height: 94dvh; max-height: 94vh; max-height: 94dvh; }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 20px; max-height: 90vh; } dialog.sheet-tall { height: auto; max-height: 90vh; } }
#itemForm, .checkout { display: block; margin: 0; }
.sheet-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.sheet-head h3 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0; letter-spacing: -.02em; }
.sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head .no.big { font-size: 44px; }
.x { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--surface); font-size: 26px; cursor: pointer; line-height: 1; }
.sheet-body { padding: 14px 18px 18px; }
.sheet-foot { display: flex; gap: 12px; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--paper); z-index: 2; }
.sheet-foot .btn-main { flex: 1; }

.opt { border: 0; padding: 0; margin: 0 0 16px; }
.opt legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.radio, .check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; }
.radio span, .check span { flex: 1; }
.radio input, .check input { width: 22px; height: 22px; accent-color: var(--basil); margin: 0; }
.radio:has(input:checked), .check:has(input:checked) { border-color: var(--basil); background: var(--basil-soft); }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 700; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 2px solid #cfd4ce; border-radius: 10px; background: var(--paper); font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--basil); outline: none; }
.field small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.ferr { display: block; color: var(--tomato-dark); font-style: normal; font-weight: 700; font-size: 14px; }
.ferr:empty { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

.seg { border: 0; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; }
.seg input:checked + span { border-color: var(--basil); background: var(--basil); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--basil); outline-offset: 2px; }
.seg .na span { color: var(--muted); border-style: dashed; }

.warn { background: #fff4d6; border-left: 5px solid var(--cheese); padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.err { background: #fde8e7; color: var(--tomato-dark); padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.err[hidden] { display: none; }
.pay { color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 30px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* status page */
.status-wrap { max-width: 620px; margin: 0 auto; padding: 28px 16px 60px; }
.status-big { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 9vw, 56px); line-height: 1; letter-spacing: -.03em; margin: 6px 0 14px; }
.status-time { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 20vw, 120px); line-height: .9; color: var(--basil); letter-spacing: -.04em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.status-card { background: var(--surface); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.status-card h2 { margin: 0 0 8px; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.on::before { background: var(--basil); border-color: var(--basil); }
.steps li.now::before { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .steps li.now::before { animation: none; } }
.status-rejected .status-big { color: var(--tomato-dark); }
.quote p { margin: 0 0 12px; }
.quote-ok { background: var(--basil-soft); color: var(--basil); padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.quote-info { color: var(--muted); }
.zones-hint { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
.radio span small, .check span small { display: block; color: var(--muted); font-size: 14px; }
.opt legend .req { font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.opt-err { background: #fde8e7; color: var(--tomato-dark); font-weight: 700; padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; }
.opt-err[hidden] { display: none; }
.sum .hint { grid-column: 1 / -1; color: var(--basil); font-size: 14px; font-weight: 700; }
.qopt { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 6px; padding: 4px 6px 4px 0; }
.qopt.on { border-color: var(--basil); background: var(--basil-soft); }
.qopt .qname { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 10px 6px 10px 14px; font-weight: 400; cursor: pointer; min-height: 44px; }
.qopt .qname small { font-weight: 700; font-size: inherit; color: var(--ink); white-space: nowrap; }
.qopt .stepper { background: var(--paper); flex: none; }
.qopt .stepper button:disabled { opacity: .3; cursor: default; }
.addr-wrap { position: relative; }
.sug { list-style: none; margin: -8px 0 14px; padding: 4px; border: 2px solid var(--basil); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); max-height: 280px; overflow-y: auto; }
.sug[hidden] { display: none; }
.sug li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; }
.sug li span { color: var(--muted); font-size: 14px; }
.sug li:hover, .sug li.act { background: var(--basil-soft); }
.mapbox { margin: 0 0 14px; }
.map { height: 190px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); z-index: 0; }
.map-hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.pin span { display: block; width: 28px; height: 28px; background: var(--tomato); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.sum .vat { font-size: 14px; color: var(--muted); }
.when { gap: 0 12px; }
.when-hint { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.freehint { margin: -2px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--cheese-soft, #fff4d6); font-size: 15px; }
.freehint.done { background: var(--basil-soft); color: var(--basil); }
.ingrhint { margin: -2px 0 10px; color: var(--muted); font-size: 14px; }
.irow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 14px; margin-bottom: 6px; min-height: 48px; background: var(--paper); }
.irow span { flex: 1; }
.irow em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--tomato); margin-left: 6px; }
.irow button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.irow.off { background: var(--surface); }
.irow.off span { color: var(--muted); }
.irow.off button { border-color: var(--basil); color: var(--basil); background: var(--basil-soft); }
.swaphint { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4d6; font-size: 15px; }
.swaphint.done { background: var(--basil-soft); color: var(--basil); }
.swaphint[hidden] { display: none; }
.review-ask { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.review-ask p { margin: 0 0 12px; }
.review-ask .btn-main { text-decoration: none; }
