/* madplanen.dk - køleskabslågen: dyb petrol, sennepsgul og koral */
@font-face { font-family: "Gloock"; src: url("/assets/fonts/gloock-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("/assets/fonts/red-hat-mono-vf.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --papir: #fbf8f1;
  --papir-2: #f1ebdc;
  --hvid: #ffffff;
  --petrol: #17363a;
  --petrol-2: #24494e;
  --daempet: #4d5f61;
  --sennep: #e2b13c;
  --sennep-lys: #f7e6b8;
  --koral: #d2603f;
  --mynte: #d4e6df;
  --linje: #e2dccb;
  --display: "Gloock", Georgia, serif;
  --tekst: "Figtree", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --rund: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--petrol); font-family: var(--tekst); font-size: 1.07rem; line-height: 1.62; }
::selection { background: var(--sennep-lys); }
img, svg { max-width: 100%; }
a { color: #1d6b70; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--koral); outline-offset: 2px; border-radius: 3px; }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--petrol); color: #fff; padding: .5rem .9rem; z-index: 10; }
.spring:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.6vw, 4.3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.1rem); margin: 2.2em 0 .55em; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1em; }
.overlinje { font-family: var(--mono); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--koral); margin-bottom: .8rem; }
.indledning { font-size: clamp(1.12rem, 2.1vw, 1.27rem); line-height: 1.55; max-width: 44ch; }
.note { font-size: .97rem; background: var(--mynte); border-radius: var(--rund); padding: .9rem 1.05rem; }

/* Top */
.top { background: var(--petrol); color: var(--papir); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.6rem; padding-block: .95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .55rem; color: var(--papir); text-decoration: none; font-family: var(--display); font-size: 1.55rem; }
.ordmaerke:hover { color: var(--papir); }
.maerke-ikon { width: 1.65rem; height: 1.65rem; color: var(--sennep); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.menu a { color: #d4e2e1; text-decoration: none; font-weight: 600; font-size: .97rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: #4f7579; }
.menu a[aria-current="page"] { color: var(--sennep); border-bottom-color: var(--sennep); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.knap { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--rund); border: 2px solid var(--sennep); background: var(--sennep); color: var(--petrol); font: 800 1rem/1 var(--tekst); text-decoration: none; transition: background-color .15s ease-out; }
.knap:hover { background: #ecc35e; color: var(--petrol); }
.knap-lys { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.knap-lys:hover { background: var(--papir-2); color: var(--petrol); }

/* Helt */
.helt { background: var(--papir-2); }
.helt-ind { display: grid; gap: 2.2rem; padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.mini-uge { list-style: none; padding: 1rem; margin: 0; background: var(--hvid); border-radius: var(--rund); box-shadow: 0 1px 0 var(--linje), 0 12px 30px -18px rgba(23,54,58,.45); display: grid; gap: 0; transform: rotate(1.2deg); }
.mini-uge li { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px dashed var(--linje); }
.mini-uge li:last-child { border-bottom: 0; }
.mini-uge .dag { font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--koral); text-transform: uppercase; }
.mini-uge strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.mini-uge .ekstra { font-size: .85rem; color: var(--daempet); text-align: right; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.3fr 1fr; } }
@media (max-width: 420px) { .mini-uge li { grid-template-columns: 2.6rem 1fr; } .mini-uge .ekstra { grid-column: 2; text-align: left; } }

/* Sektioner */
.sektion { padding-block: clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.sektion-moerk { background: var(--petrol); padding-block: clamp(2.5rem, 6vw, 4rem); }
.vaner { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); counter-reset: v; }
@media (min-width: 1000px) { .vaner { grid-template-columns: repeat(5, 1fr); } }
.vaner li { counter-increment: v; background: var(--hvid); border-radius: var(--rund); padding: 1.3rem; border: 1px solid var(--linje); }
.vaner li::before { content: "0" counter(v); display: block; font-family: var(--mono); font-weight: 600; color: var(--koral); margin-bottom: .4rem; }
.vaner p { margin: 0; color: var(--daempet); }
.genveje { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.genvej { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem; background: var(--petrol-2); border-radius: var(--rund); color: #c9dad8; text-decoration: none; transition: transform .15s ease-out, background-color .15s ease-out; }
.genvej:hover { background: #2d575d; color: #e0ecea; transform: translateY(-2px); }
.genvej-titel { font-family: var(--display); font-size: 1.35rem; color: var(--sennep); }

/* Tekstsider */
.tekstside { padding-bottom: 4.5rem; }
.side-top { padding-block: clamp(2.3rem, 6vw, 4rem) 1.2rem; }
.artikel { max-width: 66ch; }
.punkter { padding-left: 1.3rem; } .punkter li { margin-bottom: .55rem; } .punkter li::marker { color: var(--koral); font-weight: 700; }

/* Budget */
.budget { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 860px) { .budget { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.felter { display: grid; gap: 1rem; background: var(--hvid); border: 1px solid var(--linje); border-radius: var(--rund); padding: 1.3rem; }
.felter label { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; font-weight: 700; font-size: .96rem; }
.felter .enhed { font-family: var(--mono); font-weight: 500; font-size: .85rem; color: var(--daempet); }
.felter input[type=number] { grid-column: 1 / -1; width: 100%; font: 500 1.05rem var(--mono); padding: .6rem .7rem; border: 1px solid #cbc3ad; border-radius: 8px; background: var(--papir); color: var(--petrol); }
.felter input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--koral); }
.felter input:focus { border-color: var(--petrol); }
.to { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.felt-hjaelp { font-size: .92rem; color: var(--daempet); margin: 0; }
.kvittering { background: var(--hvid); border-radius: 4px; padding: 1.4rem 1.4rem 1.1rem; font-family: var(--mono); box-shadow: 0 1px 0 var(--linje), 0 14px 32px -20px rgba(23,54,58,.5); position: relative; }
.kvittering::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px 0, var(--hvid) 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x; }
.kv-hoved { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-align: center; padding-bottom: .8rem; border-bottom: 1.5px dashed var(--linje); }
.kvittering dl { margin: 0; }
.kvittering dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--linje); font-size: .95rem; }
.kvittering dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.kvittering .kv-stor { flex-wrap: wrap; background: var(--sennep-lys); margin: .4rem -.6rem; padding: .7rem .6rem; border-radius: 6px; border-bottom: 0; }
.kvittering .kv-stor dd { font-size: 1.5rem; }
.kv-fod { font-size: .8rem; color: var(--daempet); margin: .9rem 0 0; text-align: center; }

/* Ugeskabelon */
.uge { list-style: none; padding: 0; margin: .5rem 0 2rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.uge li { background: var(--hvid); border: 1px solid var(--linje); border-radius: var(--rund); padding: 1.15rem 1.2rem 1rem; display: flex; flex-direction: column; }
.uge-dag { font-family: var(--mono); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--koral); margin: 0 0 .2rem; }
.uge h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.uge li > p:not(.uge-dag):not(.uge-eks) { color: var(--daempet); }
.uge-eks { margin: auto 0 0; padding-top: .7rem; border-top: 1px dashed var(--linje); font-size: .95rem; }
.uge-eks span { font-family: var(--mono); font-weight: 600; color: #1d6b70; }

/* Indkøb */
.raad { list-style: none; padding: 0; margin: .5rem 0 2rem; display: grid; gap: 0; max-width: 54rem; counter-reset: r; }
.raad li { counter-increment: r; display: grid; grid-template-columns: 3rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--linje); }
.raad li::before { content: counter(r); grid-row: span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--sennep); }
.raad h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.raad p { margin: 0; }
.sten { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.sten li { background: var(--mynte); border-radius: 999px; padding: .3rem .85rem; font-weight: 600; font-size: .96rem; }

/* Tabel */
.tabel-ramme { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--linje); border-radius: var(--rund); background: var(--hvid); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--linje); vertical-align: top; }
thead th { font-family: var(--mono); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--daempet); background: var(--papir); }
tbody th { white-space: nowrap; font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Bund */
.bund { background: var(--petrol); color: #c9dad8; padding-block: 2.4rem; font-size: .95rem; border-top: 1px solid #2d575d; }
.bund-ind { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 800px) { .bund-ind { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.bund-navn { font-family: var(--display); font-size: 1.25rem; color: #fff; margin-bottom: .4rem; }
.bund-note { max-width: 46ch; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bund a { color: #e4eeec; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
