/* Budgetgryden - styling. Mobil først; på computer bliver navigationen en topbjælke. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Fersken & salvie */
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f2eee5;
  --ink: #3b4640;
  --heading: #2b3530;
  --muted: #5f6b64;
  --line: #e5e0d5;
  --brand: #a9502b;
  --brand-2: #8a3f20;
  --brand-soft: #fbe5d8;
  --btn: #eb8a5c;
  --btn-hover: #e07a48;
  --on-btn: #2b3530;
  --on-brand: #ffffff;
  --sage: #d6e6cc;
  --save: #3d6b35;
  --save-soft: #d6e6cc;
  --warn: #8a5a00;
  --warn-soft: #fff1cc;
  --danger: #b03a2e;
  --danger-soft: #f8e3df;
  --dark: #2b3530;
  --shadow: 0 1px 2px rgb(43 53 48 / 5%), 0 6px 20px rgb(43 53 48 / 6%);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161b18; --surface: #1f2622; --surface-2: #29312c; --ink: #e3e9e3; --heading: #f3f6f2; --muted: #a5b1a9; --line: #343e38;
    --brand: #f0a47e; --brand-2: #f6bb9c; --brand-soft: #3a291f; --btn: #eb8a5c; --btn-hover: #f29b70; --on-btn: #1d2420; --on-brand: #1d2420;
    --sage: #2b3a2e; --save: #a8d49a; --save-soft: #26372a; --warn: #f3c969; --warn-soft: #3a2f12; --danger: #ff8a7a; --danger-soft: #3d1a16; --dark: #0f1311;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161b18; --surface: #1f2622; --surface-2: #29312c; --ink: #e3e9e3; --heading: #f3f6f2; --muted: #a5b1a9; --line: #343e38;
  --brand: #f0a47e; --brand-2: #f6bb9c; --brand-soft: #3a291f; --btn: #eb8a5c; --btn-hover: #f29b70; --on-btn: #1d2420; --on-brand: #1d2420;
  --sage: #2b3a2e; --save: #a8d49a; --save-soft: #26372a; --warn: #f3c969; --warn-soft: #3a2f12; --danger: #ff8a7a; --danger-soft: #3d1a16; --dark: #0f1311;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; }
h2 { font-size: 1.3rem; font-weight: 850; }
h3 { font-size: 1.05rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Ramme ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.logo .logo-img { width: 44px; height: auto; }
.logo span b { color: var(--brand); }
.topnav { display: none; gap: 4px; margin-left: 16px; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover { background: var(--surface-2); }
.topnav a.on { background: var(--brand-soft); color: var(--brand-2); }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

main { max-width: 1120px; margin: 0 auto; padding: 20px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 800;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--brand); }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 8px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

@media (min-width: 860px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  main { padding-bottom: 48px; padding-top: 28px; }
}

/* ---------- Knapper og formularer ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--btn); color: var(--on-btn);
}
.btn:hover { background: var(--btn-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: .875rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

label { display: block; font-weight: 800; font-size: .9rem; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.error-box { background: var(--danger-soft); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 700; }

/* ---------- Kort og layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section { margin: 32px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.narrow { max-width: 460px; margin: 0 auto; }
.mid { max-width: 760px; margin: 0 auto; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .8rem; font-weight: 800; }
.chip.save { background: var(--save-soft); color: var(--save); }
.chip.brand { background: var(--brand-soft); color: var(--brand-2); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chain-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill { text-decoration: none; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Forside ---------- */
.hero {
  display: grid; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
  border-radius: 24px; padding: 28px 20px; overflow: hidden; position: relative;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.3fr 1fr; padding: 40px; } }
.steps3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps3 .card { position: relative; padding-top: 22px; }
.steps3 .num { width: 34px; height: 34px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; font-weight: 900; margin-bottom: 8px; }

/* ---------- Ugens faste madplaner ---------- */
.featured-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan-card.featured { border-width: 2px; }
.featured-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.featured-days li { display: flex; gap: 8px; font-size: .95rem; white-space: normal; overflow: visible; }
.featured-days li b { width: 34px; flex: none; color: var(--muted); }

/* ---------- Madplankort ---------- */
.plan-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .12s; }
.plan-card:hover { transform: translateY(-2px); }
.plan-card .price { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.plan-card .price small { font-size: .85rem; font-weight: 700; color: var(--muted); }
.plan-card ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.plan-card li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-card .meta { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: .9rem; }

.price-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.price-box > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 6px; }
.price-box b { display: block; font-size: 1.3rem; font-weight: 900; }
.price-box span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.price-box .save b { color: var(--save); }

.day-list { display: grid; gap: 10px; }
.day {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  text-decoration: none; color: inherit;
}
a.day:hover { border-color: var(--brand); }
.day .dname { font-weight: 900; font-size: .9rem; }
.day .dname small { display: block; color: var(--muted); font-weight: 700; }
.day .dtitle { font-weight: 800; }
.day .dmeta { color: var(--muted); font-size: .85rem; }
.emoji { font-size: 1.6rem; line-height: 1; }
/* Min uge: knapperne kommer under retten på smalle skærme */
.day.mine { grid-template-columns: 74px 1fr; }
.day.mine > .row { grid-column: 1 / -1; justify-content: flex-end; }
@media (min-width: 600px) {
  .day.mine { grid-template-columns: 74px 1fr auto; }
  .day.mine > .row { grid-column: auto; }
}
@media (min-width: 860px) {
  .day-list.week7 { grid-template-columns: repeat(7, 1fr); }
  .day-list.week7 .day { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: start; min-height: 170px; }
}

/* Madplan: opskrifter til venstre, indkøbsliste til højre */
.plan-layout { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.plan-shop-in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.plan-daywrap { margin-bottom: 18px; }
.plan-daylabel { font-size: .85rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.plan-daylabel span { color: var(--muted); font-weight: 700; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.recipe-tile { position: relative; padding: 0; overflow: hidden; }
.tile-art { display: grid; place-items: center; height: 150px; font-size: 4.5rem; text-decoration: none; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.tile-body { padding: 12px 16px 14px; }
.tile-body h3 { margin: 0 0 4px; }
.tile-body h3 a { color: inherit; text-decoration: none; }
.recipe-tile .day-swap { position: absolute; top: 10px; right: 10px; background: var(--surface); box-shadow: var(--shadow); width: 38px; height: 38px; }
.recipe-tile .day-swap svg { width: 18px; height: 18px; }

/* Karrusel: ét kort ad gangen, pile og swipe */
.carousel { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 100%; scroll-snap-align: start; padding: 4px; }
@media (min-width: 640px) { .alt-full .car-item { flex-basis: 50%; } }
@media (min-width: 1000px) { .alt-full .car-item { flex-basis: 33.333%; } }
.car-item .card { height: 100%; }
.carousel .icon-btn:disabled { opacity: .3; cursor: default; }
.car-count { grid-column: 1 / -1; text-align: center; }

/* ---------- Opskrifter ---------- */
.recipe-card { text-decoration: none; color: inherit; display: flex; gap: 14px; align-items: flex-start; }
.recipe-card .emoji-tile { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.8rem; }
.recipe-card h3 { margin: 0 0 4px; }
.recipe-head { display: grid; gap: 16px; }
.recipe-head .emoji-big { font-size: 4rem; line-height: 1; }
.recipe-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow); }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 860px) {
  .recipe-head.has-photo { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); align-items: center; }
  .recipe-head.has-photo .btn-row { grid-column: 1 / -1; }
}
/* Billeder i stedet for emoji, når opskriften har et */
.emoji-tile, .tile-art, .rs-art { overflow: hidden; }
.emoji-tile img, .tile-art img, .rs-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-art:has(img) { padding: 0; }
.next-week { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border: 2px solid var(--brand-soft); }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ing-list li:last-child { border-bottom: 0; }
.ing-list .amt { flex: none; width: 82px; font-weight: 800; }
.ing-list .main::after { content: "★"; color: var(--brand); margin-left: 4px; font-size: .8em; }
.steps-list { padding-left: 1.2em; }
.steps-list li { margin-bottom: 10px; padding-left: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font: inherit; font-size: 1.2rem; font-weight: 900; color: var(--ink); cursor: pointer; }
.stepper span { min-width: 34px; text-align: center; font-weight: 900; }
@media (min-width: 860px) {
  .recipe-body { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
}

/* ---------- Indkøbsliste ---------- */
.shop-group { margin-top: 16px; }
.shop-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.shop-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-item input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.shop-item .what { font-weight: 800; }
.shop-item .sub { font-size: .85rem; color: var(--muted); }
.shop-item .cost { font-weight: 900; text-align: right; white-space: nowrap; }
.shop-item .cost s { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.shop-item.done .what, .shop-item.done .cost { text-decoration: line-through; opacity: .5; }
.locked { position: relative; }
.locked .blur { filter: blur(5px); pointer-events: none; user-select: none; }
.locked .lock-cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.lock-cta .card { max-width: 380px; }

/* Indkøbsliste med billeder */
.shop-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.shop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.shop-row.checkable { grid-template-columns: auto minmax(0, 1fr) auto 52px; cursor: pointer; font-weight: 400; margin: 0; }
.shop-row > input { width: 22px; height: 22px; accent-color: var(--brand); }
.shop-name { font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .01em; }
.shop-name .qty { display: inline-block; min-width: 2em; text-transform: none; }
.shop-meta { font-size: .8rem; color: var(--muted); }
.price-line { color: var(--save); }
.offer-line { color: var(--save); font-weight: 700; }
.offer-line s { color: var(--muted); font-weight: 400; }
.shop-price { font-weight: 800; white-space: nowrap; font-size: .95rem; }
.shop-img { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.8rem; line-height: 1; }
.shop-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; }
.pantry-img { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.pantry-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 6px; }
.shop-badge { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--save); color: #fff; font-size: .58rem; font-weight: 900; padding: 1px 5px; border-radius: 999px; text-transform: uppercase; }
/* Klik på en vare streger den over (afkrydsningsfeltet er skjult, men findes for skærmlæsere og tastatur) */
.shop-row.checkable { grid-template-columns: minmax(0, 1fr) auto 52px; position: relative; user-select: none; -webkit-tap-highlight-color: transparent; }
.shop-row.checkable > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.shop-row.checkable:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.shop-row.done .shop-main, .shop-row.done .shop-price { opacity: .5; text-decoration: line-through; }
.shop-row.done .shop-meta, .shop-row.done .shop-name { text-decoration: line-through; }
.shop-row.done .shop-img { opacity: .7; }
.shop-row.no-img, .shop-row.checkable.no-img { grid-template-columns: minmax(0, 1fr) auto; }
.shop-sum { font-size: 1.1rem; }
.shop-sub { margin-top: 2px; }
.save-txt { color: var(--save); }
.pantry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.pantry-list li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
@media print {
  .topbar, .tabbar, footer.site, .btn, .filters, details.more, [data-extra] { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .shop-img { width: 44px; height: 44px; font-size: 1.5rem; }
  .no-print, .stepper button, .recipe-tile .day-swap { display: none !important; }
  .stepper { border: 0; }
  .recipe-head.has-photo { grid-template-columns: 220px 1fr; align-items: center; }
  .recipe-photo { box-shadow: none; }
  .recipe-body { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; }
  .recipe-body .card { padding: 0; }
  .recipe-body [data-offers] { display: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Tilbud ---------- */
.offer { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer .p { font-weight: 900; text-align: right; }
.offer .p s { font-weight: 600; color: var(--muted); font-size: .8rem; display: block; }

/* ---------- Vinduer og beskeder ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgb(20 28 24 / 45%); display: grid; place-items: end center; padding: 0; }
.modal { background: var(--bg); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-back { place-items: center; padding: 20px; } .modal { border-radius: 22px; } }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (min-width: 860px) { .toast { bottom: 24px; } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .emoji { font-size: 2.6rem; margin-bottom: 8px; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upsell { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
/* Budgetniveauer og faste dage */
.level-cards { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.level-card { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; }
.level-card input { position: absolute; opacity: 0; pointer-events: none; }
.level-card b { font-size: 1rem; }
.level-card span { font-size: .8rem; color: var(--muted); }
.level-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.level-card:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 420px) { .level-cards { grid-template-columns: 1fr; } }
.chain-cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
@media (max-width: 420px) { .chain-cards { grid-template-columns: 1fr; } }
details.more { position: relative; }
details.more > summary { list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > .stack { position: absolute; z-index: 5; right: 0; min-width: 280px; background: var(--bg); padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.people { display: grid; gap: 8px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; font-weight: 800; }
.person-row .stepper input { width: 44px; min-height: 38px; border: 0; background: transparent; text-align: center; font-weight: 900; padding: 0; -moz-appearance: textfield; }
.person-row .stepper input::-webkit-outer-spin-button, .person-row .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.allergy-box summary { cursor: pointer; }
.allergy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.allergy-grid .check { margin: 4px 0; font-weight: 600; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.pw-eye:hover { color: var(--ink); }
.fixed-day { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fixed-day .check { flex: 1; min-width: 200px; }
.fixed-day select { width: auto; min-width: 140px; }
.fixed-day select:disabled { opacity: .45; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700; }

/* ---------- Priser ---------- */
.price-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card { text-align: center; position: relative; }
.price-card.best { border: 2px solid var(--brand); }
.price-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.price-card .amount { font-size: 2.4rem; font-weight: 900; }
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 6px 0 6px 28px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 4px; color: var(--save); font-weight: 900; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl input, .tbl select { min-height: 36px; padding: 6px 8px; font-size: .9rem; }
.tbl-wrap { overflow-x: auto; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; background: var(--surface); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--btn); transition: width .3s; }
.ok-dot { color: var(--save); font-weight: 900; }
.no-dot { color: var(--muted); }
.plan-edit select { font-size: .85rem; }

/* ================= Forside ================= */
.hero2 { display: grid; gap: 28px; align-items: center; padding: 28px 22px; border-radius: 28px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 45%),
              radial-gradient(circle at 0% 100%, color-mix(in srgb, #f7b733 25%, transparent), transparent 45%), var(--surface-2); }
@media (min-width: 860px) { .hero2 { grid-template-columns: 1.25fr 1fr; padding: 48px; } }
.hero2 h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; }
.hero2 .hl { color: var(--brand); display: inline-block; }
.hero2 .lead { font-size: 1.12rem; color: var(--muted); max-width: 33em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); background: var(--surface); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.btn.big { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; }
.btn.light { background: #fff; color: var(--brand-2); }
.btn.light:hover { background: var(--brand-soft); }
.store-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.store-btn { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: var(--shadow); transition: transform .12s; }
.store-btn:hover { transform: translateY(-2px); border-color: var(--c); }
.store-btn .chain-dot { background: var(--c); width: 14px; height: 14px; }
.store-btn b { font-size: 1.15rem; }
.store-btn span:last-child { font-size: .85rem; color: var(--muted); font-weight: 700; }

.phone { position: relative; justify-self: center; width: min(300px, 86vw); }
.phone-in { background: var(--surface); border: 10px solid #2b3530; border-radius: 34px; padding: 18px 14px 16px; box-shadow: 0 30px 60px rgb(60 30 0 / 25%); transform: rotate(2.5deg); }
.phone-top { font-weight: 900; font-size: .9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.phone-day { display: grid; grid-template-columns: 34px 26px 1fr; align-items: center; gap: 4px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.phone-day b { color: var(--muted); font-size: .78rem; }
.phone-day .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.phone-cart { margin-top: 10px; background: var(--btn); color: var(--on-btn); border-radius: 12px; text-align: center; padding: 9px; font-weight: 900; font-size: .9rem; }
.sticker { position: absolute; top: -18px; right: -14px; width: 104px; height: 104px; border-radius: 50%; background: #ffd27a; color: #7a3a00;
  display: grid; place-content: center; text-align: center; font-weight: 900; font-size: 1.2rem; transform: rotate(-12deg); box-shadow: var(--shadow); line-height: 1.1; }
.sticker small { display: block; font-size: .7rem; font-weight: 800; }

.perks { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; padding: 18px 8px; font-weight: 800; font-size: .92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; }
.stats b { display: block; font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 900; color: var(--brand); letter-spacing: -.02em; }
.stats span { font-size: .82rem; color: var(--muted); font-weight: 700; }

.store-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.store-plan { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s; }
.store-plan:hover { transform: translateY(-3px); }
.sp-head { background: var(--c); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1.2rem; }
.store-plan[style*="#f2b705"] .sp-head { color: #2b3530; }
.sp-week { font-size: .85rem; background: rgb(255 255 255 / 25%); padding: 3px 10px; border-radius: 999px; }
.sp-body { padding: 16px 18px; flex: 1; }
.sp-emojis { display: flex; gap: 6px; font-size: 1.9rem; flex-wrap: wrap; margin-bottom: 10px; }
.sp-price { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.sp-price small { font-size: .85rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.sp-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-weight: 900; color: var(--brand); }

.offer-strip, .recipe-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.offer-tile { position: relative; flex: 0 0 165px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.offer-tile .pct { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; font-weight: 900; font-size: .78rem; padding: 3px 8px; border-radius: 999px; }
.ot-emoji { font-size: 2.6rem; margin: 4px 0 6px; }
.ot-name { font-weight: 800; font-size: .92rem; line-height: 1.25; min-height: 2.5em; }
.ot-price { font-weight: 900; font-size: 1.1rem; margin-top: 6px; color: var(--save); }
.ot-price s { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ot-chain { font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: 4px; }

.how-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.how-steps > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 10px; }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature > span { font-size: 1.8rem; }
.feature h3 { margin: 6px 0 4px; }
.feature p { margin: 0; }
.rs-card { flex: 0 0 180px; scroll-snap-align: start; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rs-art { height: 110px; display: grid; place-items: center; font-size: 3.4rem; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.rs-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.rs-body b { font-size: .92rem; line-height: 1.25; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.cta-band { margin: 36px 0 8px; border-radius: 24px; padding: 28px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; opacity: .9; }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 14px; }
  .feature h3 { font-size: .95rem; }
  .how-steps > div { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; padding: 14px; }
  .how-steps .how-ic { width: 48px; height: 48px; grid-row: span 2; margin: 0; font-size: 1.5rem; }
  .how-steps h3 { margin: 2px 0; }
  .how-steps p { margin: 0; font-size: .9rem; }
  .stats span { font-size: .72rem; }
}

/* ================= Forside v2 ================= */
.hero3 { display: grid; gap: 24px; align-items: center; border-radius: 28px; padding: 30px 22px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(circle at 85% 20%, #f59e0b 0, transparent 40%), linear-gradient(135deg, #9a3412, #c2410c 55%, #ea580c); }
@media (min-width: 860px) { .hero3 { grid-template-columns: 1.2fr 1fr; padding: 52px; } }
.hero3 h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.07; letter-spacing: -.03em; margin-bottom: 16px; }
.hero3 .hl { color: #ffd27a; }
.hero3 .checks li { color: #fff; }
.hero3 .checks li::before { background: #fff; color: var(--brand-2); }
.hero-note { opacity: .9; margin-top: 10px; }
.btn.ghost-light { background: rgb(255 255 255 / 14%); color: #fff; border-color: rgb(255 255 255 / 45%); }
.btn.ghost-light:hover { background: rgb(255 255 255 / 24%); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--save); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 900; }

.plate-art { position: relative; justify-self: center; width: min(340px, 82vw); aspect-ratio: 1; }
.plate { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #fffaf3 0 52%, #f3e5d3 53% 60%, #fffaf3 61%);
  box-shadow: 0 30px 60px rgb(0 0 0 / 30%), inset 0 0 0 10px rgb(255 255 255 / 60%); }
.plate span { position: absolute; left: 50%; top: 50%; font-size: clamp(2.2rem, 9vw, 3.2rem);
  transform: rotate(calc(var(--i) * 51.4deg)) translate(0, -118%) rotate(calc(var(--i) * -51.4deg)); margin: -.6em 0 0 -.6em; }
.plate-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(3.4rem, 14vw, 5rem); }
.badge-price { position: absolute; right: -6px; bottom: 6%; background: #ffd27a; color: #7a3a00; border-radius: 50%; width: 112px; height: 112px;
  display: grid; place-content: center; text-align: center; font-weight: 900; font-size: 1.15rem; line-height: 1.1; transform: rotate(-10deg); box-shadow: 0 10px 25px rgb(0 0 0 / 25%); }
.badge-price small { display: block; font-size: .72rem; }

.calc-wrap { display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .calc-wrap { grid-template-columns: 1fr 1.1fr; } }
.calc-intro h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.calc { border-radius: 24px; padding: 22px; background: #1f2a44; color: #f6ede2; border: 0; }
.calc label, .calc b { color: #fff; }
.calc-people { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.calc .stepper { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 20%); }
.calc .stepper button, .calc .stepper span { color: #fff; }
.calc-now { font-size: 1.5rem; font-weight: 900; margin: 6px 0; }
.calc input[type=range] { width: 100%; accent-color: #ffd27a; height: 28px; }
.calc-res { text-align: center; background: rgb(255 255 255 / 8%); border-radius: 18px; padding: 14px; margin: 14px 0; }
.calc-res span { display: block; font-size: .85rem; opacity: .8; }
.calc-res b { display: block; font-size: clamp(2rem, 8vw, 2.8rem); color: #ffd27a; letter-spacing: -.02em; }
.calc-res small { opacity: .8; }
.calc-tbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .92rem; }
.calc-tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; padding-bottom: 6px; }
.calc-tbl td { padding: 6px 0; border-top: 1px solid rgb(255 255 255 / 12%); }
.calc-tbl td:last-child { text-align: right; font-weight: 800; }
.calc-tbl tr.us td { color: #ffd27a; font-weight: 900; }
.calc .muted { color: rgb(246 237 226 / 70%); }

.type-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.type-card { flex: 0 0 210px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tc-art { height: 10px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.type-card h3 { margin: 12px 14px 4px; }
.type-card p { margin: 0 14px 14px; }

.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; } }
.big-h { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }

.how4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.how4 > div { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px 18px; }
.how-num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-weight: 900; display: grid; place-items: center; }
.how4 .how-ic { margin: 4px auto 10px; width: 64px; height: 64px; border-radius: 50%; background: var(--save-soft); font-size: 1.9rem; display: grid; place-items: center; }
.how4 h3 { margin: 0 0 4px; }
.how4 p { margin: 0; }
@media (max-width: 600px) { .how4 { grid-template-columns: 1fr 1fr; } .how4 > div { padding: 20px 10px 14px; } }

.price-sec { background: linear-gradient(135deg, #312e81, #4f46e5); border-radius: 28px; padding: 32px 18px; color: #fff; }
.price-sec h2 { color: #fff; }
.price-card2 { max-width: 420px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px rgb(0 0 0 / 25%); }
.pc-top { background: var(--save); color: #fff; text-align: center; padding: 16px; font-size: 1.4rem; font-weight: 900; }
.pc-top small { display: block; font-size: .85rem; opacity: .9; }
.price-card2 .checks { padding: 18px 20px 4px; }
.price-card2 .btn, .price-card2 > p { margin-left: 20px; margin-right: 20px; width: calc(100% - 40px); }
.price-card2 > p { padding-bottom: 16px; }

footer.site2 { margin-top: 48px; background: #1f2a44; color: #e7dccd; border-radius: 24px 24px 0 0; padding: 28px 22px 18px; }
.f-cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.f-cols h4 { color: #fff; margin: 0 0 8px; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.f-cols a { display: block; color: #e7dccd; text-decoration: none; padding: 5px 0; border-bottom: 1px solid rgb(255 255 255 / 10%); font-weight: 600; }
.f-cols a:hover { color: #fff; }
.f-cols p { margin: 8px 0 0; font-size: .9rem; opacity: .85; }
.f-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; color: #fff; }
.f-logo .logo-img { width: 36px; height: auto; }
.f-copy { margin: 20px 0 0; font-size: .8rem; opacity: .7; }
@media print { footer.site2 { display: none; } }

/* ================= Animationer ================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .plate { animation: plate-spin 60s linear infinite; }
  .plate span { animation: plate-counter 60s linear infinite; }
  .plate-mid { animation: plate-mid 60s linear infinite; }
  .badge-price, .sticker { animation: wobble 4s ease-in-out infinite; }
  .hero3-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero3-text > *:nth-child(2) { animation-delay: .12s; }
  .hero3-text > *:nth-child(3) { animation-delay: .24s; }
  .hero3-text > *:nth-child(4) { animation-delay: .36s; }
  .plate-art { animation: pop .9s .2s cubic-bezier(.2, .9, .3, 1.2) both; }
  .phone-day { animation: day-in .5s both; }
  .phone-day:nth-child(2) { animation-delay: .3s; } .phone-day:nth-child(3) { animation-delay: .45s; } .phone-day:nth-child(4) { animation-delay: .6s; }
  .phone-day:nth-child(5) { animation-delay: .75s; } .phone-day:nth-child(6) { animation-delay: .9s; } .phone-day:nth-child(7) { animation-delay: 1.05s; } .phone-day:nth-child(8) { animation-delay: 1.2s; }
  .phone-cart { animation: pulse 2.4s 1.6s ease-in-out infinite; }
  .offer-tile .pct { animation: pulse 3s ease-in-out infinite; }
  .how4 .how-ic { transition: transform .3s; }
  .how4 > div:hover .how-ic { transform: scale(1.12) rotate(-6deg); }
  .store-btn, .store-plan, .type-card, .rs-card, .offer-tile { transition: transform .15s, box-shadow .15s; }
  .type-card:hover, .rs-card:hover, .offer-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
@keyframes plate-spin { to { transform: rotate(360deg); } }
@keyframes plate-counter { from { rotate: 0deg; } to { rotate: -360deg; } }
@keyframes plate-mid { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 7deg; scale: 1.06; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes day-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Skift butik i Min madplan */
.store-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; max-width: none; }
.store-opt { margin: 0 !important; align-content: start; display: grid; gap: 4px; justify-items: start; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 2px solid var(--line); padding: 14px; }
.store-opt:hover { border-color: var(--brand); }
.store-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.store-opt[disabled] { opacity: .5; cursor: default; }
.store-name { font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }
.store-price { font-weight: 900; font-size: 1.5rem; }

/* ---------- Min madplan: dage til venstre, indkøbsliste til højre ---------- */
.mp-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mp-top h1 { margin-bottom: 6px; }
.mp-week { display: flex; align-items: center; gap: 10px; letter-spacing: .06em; }
.mp-week .icon-btn { width: 34px; height: 34px; }
.mp-house { margin: 8px 0 0; }
.mp-house a { color: var(--brand); font-weight: 700; text-decoration: none; }
.mp-actions { justify-content: flex-start; }
.mp-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .mp-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
  .mp-shop { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.mp-days { display: grid; gap: 14px; }
.mp-day { padding: 14px 16px 16px; }
.mp-dayhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-dname { flex: 1; font-weight: 800; letter-spacing: .06em; }
.mp-dname small { font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.mp-srv { background: var(--brand-soft); border-color: transparent; }
.mp-srv button { width: 32px; height: 32px; }
.mp-srv span { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; justify-content: center; }
.btn.danger-soft { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border-color: transparent; }
.btn.danger-soft svg { width: 15px; height: 15px; }
.mp-meal { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); }
.mp-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; font-size: 3rem; text-decoration: none; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.mp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-info h3 { margin: 0 0 8px; }
.mp-info h3 a { color: inherit; text-decoration: none; }
.mp-tools { display: flex; flex-direction: column; align-items: center; justify-content: space-between; align-self: stretch; gap: 6px; }
.mp-move { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mp-move .icon-btn { width: 32px; height: 28px; }
.mp-move .icon-btn[disabled] { opacity: .3; cursor: default; }
.mp-grip { cursor: grab; touch-action: none; }
.mp-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transform: rotate(-1deg); }
.mp-dragging { opacity: .35; }
.mp-day.mp-drop { box-shadow: 0 0 0 3px var(--btn, #EB8A5C); }
.mp-add { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); border-radius: 14px; background: transparent; color: var(--brand); font: inherit; font-weight: 800; cursor: pointer; }
.mp-add svg { width: 26px; height: 26px; flex: none; }
.mp-add:hover { border-color: var(--brand); background: var(--brand-soft); }
.mp-shophead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mp-shophead h2 { margin: 0; font-size: 1.6rem; }
@media (max-width: 560px) {
  .mp-meal { grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; }
  .mp-top { align-items: flex-start; }
  .mp-actions { justify-content: flex-start; }
}
@media print {
  .mp-days, .mp-top, .mp-shop .btn-row { display: none !important; }
  .mp-layout { display: block; }
  .mp-shop { position: static; max-height: none; overflow: visible; }
}
.mp-day { margin: 0 !important; }
.mp-dname { white-space: nowrap; }
.mp-dayhead { flex-wrap: nowrap; }
@media (max-width: 560px) {
  .mp-rydtxt { display: none; }
  .mp-dname small { display: block; margin: 2px 0 0; }
  .mp-dayhead .btn.danger-soft { padding: 0; width: 34px; height: 34px; justify-content: center; }
}

.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
.hh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Madplaner: valg af type og budget, og kort i samme størrelse */
.plan-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; max-width: 640px; margin: 4px 0 16px; }
.plan-filters .field { margin: 0; }
@media (max-width: 560px) { .plan-filters { grid-template-columns: 1fr; } }
.cards > .card + .card { margin-top: 0; }
.cards > .plan-card { height: 100%; }

/* Skjulte rullebjælker på de vandrette striber */
.type-strip::-webkit-scrollbar, .offer-strip::-webkit-scrollbar, .recipe-strip::-webkit-scrollbar { display: none; }
@media (min-width: 860px) {
  .type-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: visible; }
  .type-strip .type-card { flex: none; }
}
.strip-wrap { position: relative; }
.strip-arrow { display: none; position: absolute; top: 50%; transform: translateY(-60%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / 12%); cursor: pointer; place-items: center; z-index: 2; }
.strip-arrow svg { width: 20px; height: 20px; }
.strip-arrow.l { left: -22px; }
.strip-arrow.r { right: -22px; }
@media (min-width: 860px) and (hover: hover) { .strip-arrow { display: grid; } }

/* Luft mellem overskrift og nummererede bokse */
.how4 { margin-top: 28px; }

/* Min madplan ved siden af kontoen */
.top-week.on { box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 859px) { .top-week[href="/min-madplan"] { display: none; } .top-week svg { display: none; } }
@media (max-width: 420px) {
  .logo { font-size: 1.05rem; gap: 6px; }
  .logo .logo-img { width: 38px; }
  .top-right { gap: 4px; }
  .top-right .btn.small { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 370px) { .topbar-in:has(.top-week[href="/medlem"]) .logo span { display: none; } }

/* Forsidens illustration */
.hero-art { position: relative; justify-self: center; width: min(400px, 84vw); }
.hero-art::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgb(255 244 228 / 55%) 0 38%, rgb(255 244 228 / 0) 70%); }
.hero-art img { filter: drop-shadow(0 14px 22px rgb(80 20 0 / 30%)); }
.hero-art img { position: relative; display: block; width: 100%; height: auto; }
.hero-art .badge-price { right: -10px; bottom: 2%; }

/* ================= Fersken & salvie ================= */
/* Banner: lys salvie med mørke overskrifter og rustbrune fremhævelser */
.hero3 { color: var(--ink); background: var(--sage); }
.hero3 h1 { color: var(--heading); }
.hero3 .hl { color: var(--brand); }
.hero3 .checks li { color: var(--ink); }
.hero3 .checks li::before { background: var(--heading); color: var(--sage); }
.hero3 .btn.ghost-light { background: rgb(255 255 255 / 55%); color: var(--heading); border: 1.5px solid var(--heading); }
.hero3 .btn.ghost-light:hover { background: var(--surface); }
:root[data-theme="dark"] .hero3 .btn.ghost-light { background: transparent; border-color: var(--ink); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero3 .btn.ghost-light { background: transparent; border-color: var(--ink); color: var(--ink); } }
.hero-note { opacity: 1; color: var(--muted); }
.hero-art::before { background: radial-gradient(circle, rgb(255 255 255 / 60%) 0 38%, rgb(255 255 255 / 0) 70%); }
.hero-art img { filter: drop-shadow(0 14px 22px rgb(43 53 48 / 22%)); }
.badge-price { background: #fbe3a4; color: #2b3530; box-shadow: 0 10px 25px rgb(43 53 48 / 18%); }

/* Spareberegner: hvidt kort, salvie bag besparelsen, rustbrun skyder */
.calc { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc label, .calc b { color: var(--heading); }
.calc .stepper { background: var(--surface); border-color: var(--line); }
.calc .stepper button, .calc .stepper span { color: var(--heading); }
.calc input[type=range] { accent-color: var(--brand); }
.calc-res { background: var(--sage); }
.calc-res span, .calc-res small { opacity: 1; color: var(--ink); }
.calc-res b { color: var(--heading); }
.calc-tbl th { opacity: 1; color: var(--muted); }
.calc-tbl td { border-top-color: var(--line); }
.calc-tbl tr.us td { color: var(--heading); background: var(--sage); }
.calc-tbl tr.us td:first-child { padding-left: 8px; border-radius: 6px 0 0 6px; }
.calc-tbl tr.us td:last-child { padding-right: 8px; border-radius: 0 6px 6px 0; }
.calc .muted { color: var(--muted); }

/* Madplanskort: tydelig ugepris */
.sp-price { color: var(--heading); }

/* Pris og opfordring */
.price-sec { background: var(--dark); }
.cta-band { background: var(--brand); }
.cta-band .btn.light { color: var(--brand-2); }

/* Footer: dyb grøn-grå med lys tekst */
footer.site2 { background: var(--dark); color: #e4eae3; }
.f-cols a { color: #e4eae3; }

/* ================= Skrifttyper: Bricolage Grotesque + DM Sans ================= */
:root { --font-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; }
h1, h2, h3, h4, .logo, .f-logo, .sp-price, .calc-res b, .calc-now, .price-card .amount, .stats b, .badge-price, .how-num {
  font-family: var(--font-head); font-optical-sizing: auto; }
h1 { font-weight: 700; letter-spacing: -.025em; }
h2 { font-weight: 700; letter-spacing: -.015em; }
h3 { font-weight: 650; }
.logo { font-weight: 750; }
.hero3 h1 { font-weight: 700; letter-spacing: -.03em; }
.sp-price, .calc-res b, .calc-now { font-weight: 700; }
b, strong { font-weight: 700; }
.btn { font-weight: 700; }

/* Banner: lettere tekst under knapperne, cremefarvet prismærke, mindre skygge */
.hero-note { color: var(--ink); }
.hero-art img { filter: drop-shadow(0 8px 12px rgb(43 53 48 / 14%)); }
.badge-price { width: auto; height: auto; border-radius: 18px; padding: 10px 16px; background: var(--bg); color: #2b3530;
  border: 1px solid var(--line); transform: rotate(-4deg); box-shadow: 0 6px 16px rgb(43 53 48 / 14%); font-size: 1.25rem; }
.badge-price small { font-family: "DM Sans", system-ui, sans-serif; font-weight: 600; color: var(--ink); }
.hero-art .badge-price { right: 0; bottom: 6%; }
:root[data-theme="dark"] .badge-price { background: #fbf8f2; border-color: transparent; }
:root[data-theme="dark"] .badge-price small { color: #3b4640; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-price { background: #fbf8f2; border-color: transparent; } :root:not([data-theme="light"]) .badge-price small { color: #3b4640; } }

/* Madplanskort: foto, lille butiksmærke, stor ugepris */
.sp-photo { position: relative; height: 150px; background: var(--sage); overflow: hidden; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-photo img.sp-fallback { width: 96px; height: auto; margin: 26px auto 0; object-fit: contain; }
.sp-chain { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--heading);
  font-weight: 700; font-size: .85rem; padding: 4px 10px 4px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.sp-chain i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sp-photo .sp-week { position: absolute; right: 12px; top: 12px; background: rgb(255 255 255 / 92%); color: #2b3530; font-weight: 700; }
.sp-price { font-size: 2.2rem; }

/* Medlemskort: salvie overskrift med mørk tekst */
.pc-top { background: var(--sage); color: var(--heading); }

/* Animationer: hurtigere og mere diskrete */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
.sticker { width: auto; height: auto; border-radius: 18px; padding: 10px 16px; background: var(--bg); color: #2b3530; border: 1px solid var(--line);
  transform: rotate(-4deg); box-shadow: 0 6px 16px rgb(43 53 48 / 14%); font-family: var(--font-head); font-weight: 700; }

/* Animationer: indholdet er synligt med det samme, kun en kort glidning */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; transform: translateY(6px); transition: transform .18s ease-out; }
  .reveal.in { transform: none; }
}

/* Medlemssektion i to kolonner */
.price-sec { display: grid; gap: 24px; align-items: center; padding: 32px 22px; }
.ps-intro h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 12px; }
.ps-intro p { color: #e4eae3; font-size: 1.05rem; max-width: 30em; }
.ps-intro .ps-small { font-size: .95rem; color: #c3cec6; }
.ps-art { width: min(260px, 70%); height: auto; margin-top: 8px; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 25%)); }
.price-sec .price-card2 { margin: 0 auto; width: 100%; }
@media (min-width: 860px) {
  .price-sec { grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 52px 56px; }
  .price-sec .price-card2 { margin: 0 0 0 auto; }
}
@media (max-width: 859px) { .ps-art { display: none; } }

/* Madplaner: alle typer grupperet */
.plan-group + .plan-group { margin-top: 26px; }
.plan-group-h { font-size: 1.2rem; margin: 0 0 10px; }
.plan-group-h small { font-family: "DM Sans", system-ui, sans-serif; font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.personal-note { margin: -4px 0 14px; }

/* Lange ord (fx "Flæskestegssandwich") må aldrig gå ud af kortene */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.recipe-card > div:last-child { min-width: 0; }
.recipe-card h3, .card h3, .rs-body b, .store-plan li, .cards li { overflow-wrap: anywhere; hyphens: auto; }

/* ================= Opskrifter: filtre og store kort ================= */
.rf-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 6px 0 12px; }
.rf-top select { width: auto; min-width: 130px; }
.rf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.rf-panel > summary { list-style: none; cursor: pointer; padding: 10px 0; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.rf-panel > summary::-webkit-details-marker { display: none; }
.rf-panel > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.rf-panel[open] > summary::after { transform: rotate(-135deg); }
.rf-panel > summary b { color: var(--brand); }
.rf-groups { display: grid; gap: 12px; padding: 2px 0 14px; }
.rf-group { display: grid; gap: 6px; }
.rf-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-opts .pill { cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; }
@media (min-width: 900px) {
  .rf-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
}
.rf-status { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 12px; color: var(--muted); font-weight: 600; font-size: .92rem; }

.recipe-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.recipe-tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.recipe-tile + .recipe-tile { margin-top: 0; }
.recipe-tile:hover { transform: translateY(-2px); }
.rt-art { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; font-size: 3.6rem; overflow: hidden; }
.rt-art img { width: 100%; height: 100%; object-fit: cover; }
.rt-art.no-photo { background: linear-gradient(135deg, var(--sage), var(--surface-2)); }
.rt-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.rt-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.rt-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.rt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }

/* Næring på opskriften */
.nutri { margin-top: 16px; }
.nutri h2 { margin: 0 0 6px; }
.nutri-kcal { font-size: 15px; margin-bottom: 10px; }
.nutri-kcal b { font-family: var(--font-head); font-size: 30px; color: var(--heading); line-height: 1; }
.nutri-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0 0 14px; }
.nutri-list div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.nutri-list dt { color: var(--muted); }
.nutri-list dd { margin: 0; font-weight: 700; color: var(--heading); }
.nutri-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.nutri-bar span { display: block; height: 100%; }
.nutri .np { background: var(--brand); }
.nutri .nf { background: var(--btn); }
.nutri .nc { background: var(--save); }
.nutri-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); }
.nutri-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
@media print { .nutri-bar, .nutri-legend { display: none; } }

/* pantreo (madlager-appen) */
.pantreo-box p { margin: 0 0 8px; }
.list-chip { background: var(--surface-2, #F1ECE3); color: var(--ink); font-size: .72rem; padding: 1px 8px; margin-left: 4px; vertical-align: middle; }
.pantreo-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.pantreo-done p { margin: 2px 0 0; }
.have-chip { background: var(--save-soft); color: var(--ink); font-size: .72rem; padding: 1px 8px; margin-left: 4px; vertical-align: middle; }
