/* rabatten.dk - "prisskilt og kassebon": cremet papir, blæksort, tomatrød tilbudsfarve */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin.woff2") format("woff2"); font-weight: 400 600; 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: #f6efe1;
  --papir-2: #ede3cf;
  --bon: #fffdf8;
  --blaek: #1c1a16;
  --blaek-2: #57524a;
  --roed: #d63b26;
  --roed-mork: #a82a18;
  --roed-lys: #fbe1d8;
  --streg: #d8ccb5;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --maal: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font: 400 1.0625rem/1.65 var(--sans); }
::selection { background: var(--roed); color: var(--bon); }
:focus-visible { outline: 2.5px solid var(--roed); outline-offset: 3px; }
a { color: var(--blaek); text-decoration-color: var(--roed); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--roed-mork); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 2.6rem; margin-bottom: .7rem; }
h3 { font-size: 1.45rem; font-weight: 700; margin-top: 1.8rem; margin-bottom: .4rem; }
p, ul, ol { margin: 0 0 1rem; }
.ramme { width: min(1120px, 100% - 32px); margin-inline: auto; }
.smal { width: min(760px, 100% - 32px); }
.spring { position: absolute; left: -999px; top: 0; background: var(--blaek); color: var(--bon); padding: .6rem 1rem; z-index: 10; }
.spring:focus { left: 16px; top: 16px; }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tal { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.top { background: var(--blaek); color: var(--bon); }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding: .85rem 0; flex-wrap: wrap; }
.ordmaerke { display: inline-flex; align-items: center; gap: .5rem; color: var(--bon); text-decoration: none; font: 800 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ordmaerke:hover { color: var(--bon); }
.ordmaerke .logo { width: 30px; height: 30px; color: var(--roed); }
.ordmaerke .logo-hul { fill: var(--blaek); }
.ordmaerke .logo-hul-streg { stroke: var(--blaek); }
.menu { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; font-size: .95rem; font-weight: 600; }
.menu a { color: var(--bon); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: rgba(255, 253, 248, .45); color: var(--bon); }
.menu a[aria-current="page"] { border-bottom-color: var(--roed); }

/* forside */
.helt { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.helt h1 { max-width: 14ch; }
.helt h1 span { color: var(--roed); }
.indledning { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--blaek-2); max-width: 58ch; margin-top: 1.1rem; }

.bonner { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.6rem); align-items: stretch; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.bon {
  position: relative; background: var(--bon); padding: 1.3rem 1.3rem 1.8rem;
  box-shadow: 0 1px 1px rgba(28, 26, 22, .06), 0 10px 24px -14px rgba(28, 26, 22, .35);
  --tak: radial-gradient(circle at 8px 0, transparent 7px, var(--bon) 7.5px);
}
.bon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--tak); background-size: 16px 8px; }
.bon h2 { font-size: 1.7rem; margin: 0 0 .25rem; }
.bon .hvad { color: var(--blaek-2); font-size: .93rem; margin-bottom: 1rem; }
.felt { margin-bottom: .8rem; }
.felt label { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; color: var(--blaek-2); }
.felt .indtast { display: flex; align-items: stretch; border: 1.5px solid var(--blaek); background: var(--bon); }
.felt input { flex: 1; min-width: 0; font: 500 1.15rem var(--mono); padding: .55rem .7rem; border: 0; background: transparent; color: var(--blaek); }
.felt input:focus { outline: none; }
.felt .indtast:focus-within { outline: 2.5px solid var(--roed); outline-offset: 1px; }
.felt .enhed { display: grid; place-items: center; padding: 0 .7rem; font: 500 .95rem var(--mono); background: var(--papir-2); border-left: 1.5px solid var(--blaek); }
.linjer { border-top: 1.5px dashed var(--blaek-2); margin-top: 1rem; padding-top: .8rem; font-family: var(--mono); font-size: .95rem; }
.linjer div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.linjer .total { border-top: 1.5px solid var(--blaek); margin-top: .4rem; padding-top: .5rem; font-size: 1.35rem; font-weight: 700; }
.linjer .total span:last-child { color: var(--roed); }
.fejl { color: var(--roed-mork); font-size: .9rem; margin: .5rem 0 0; min-height: 1.4em; font-family: var(--sans); }

.sektion { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 2px solid var(--blaek); }
.sektion h2:first-child { margin-top: 0; }
.to-spalter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.to-spalter h2 { margin-top: 0; }
.eksempel { font-family: var(--mono); background: var(--bon); padding: .9rem 1rem; margin: 1rem 0; font-size: .95rem; box-shadow: 0 6px 16px -12px rgba(28, 26, 22, .4); }
.eksempel p { margin: 0; }

.genveje { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.genvej { display: block; padding: 1.1rem 1.1rem 1.3rem; background: var(--roed); color: var(--bon); text-decoration: none; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); padding-left: 1.8rem; transition: background .2s ease-out; }
.genvej:hover { background: var(--roed-mork); color: var(--bon); }
.genvej-titel { display: block; font: 800 1.6rem/1 var(--display); text-transform: uppercase; margin-bottom: .35rem; }
.genvej span:last-child { font-size: .93rem; opacity: .92; }

/* tekstsider */
.tekstside { padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.side-top { padding-bottom: 1.4rem; margin-bottom: 1rem; border-bottom: 2px solid var(--blaek); }
.side-top h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); }
.artikel { max-width: var(--maal); }
.artikel ul, .artikel ol { padding-left: 1.2rem; }
.artikel li { margin-bottom: .45rem; }
.artikel li::marker { color: var(--roed); font-weight: 700; }
.regnestykke { font: 500 1.05rem/1.6 var(--mono); background: var(--bon); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; max-width: var(--maal); box-shadow: 0 6px 16px -12px rgba(28, 26, 22, .4); }
.regnestykke p { margin: 0; }
.regnestykke .res { color: var(--roed); font-weight: 700; }
.vaerktoej { max-width: 460px; margin: 1.6rem 0 2.4rem; }

.tabel-wrap { overflow-x: auto; max-width: var(--maal); margin: 1.2rem 0 1.6rem; }
table { border-collapse: collapse; width: 100%; background: var(--bon); font-size: .97rem; }
th, td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--streg); white-space: nowrap; }
th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--blaek); }
td.tal, th.tal { text-align: right; }
td.tal { font-family: var(--mono); }
td:first-child { position: sticky; left: 0; background: var(--bon); }

/* fod */
.bund { background: var(--blaek); color: var(--papir); padding: 2rem 0 2.5rem; font-size: .93rem; }
.bund a { color: var(--papir); }
.bund-ind { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.bund-navn { font: 800 1.4rem var(--display); text-transform: uppercase; margin: 0 0 .3rem; }
.bund-tekst { color: #cfc6b5; max-width: 46ch; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-content: flex-start; }

@media (max-width: 900px) {
  .bonner { grid-template-columns: 1fr 1fr; }
  .genveje { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bonner, .to-spalter, .genveje { grid-template-columns: 1fr; }
  .menu { gap: .1rem 1rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
