/* opsalg.dk - købmandens markise: skovgrøn og creme striber, kraftpapir og sennepsgult skilt */
@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --kraft: #efe6d6;
  --kraft-2: #e4d7bf;
  --creme: #fbf7ee;
  --skov: #1f4a3a;
  --skov-dyb: #143327;
  --sennep: #d9a12b;
  --sennep-lys: #f3dfa9;
  --blaek: #22201c;
  --blaek-2: #45413a;
  --daempet: #6c665b;
  --tomat: #b5432a;
  --linje: #d2c4a8;
  --slab: "Rokkitt", Georgia, serif;
  --tekst: "Libre Franklin", system-ui, sans-serif;
  --rund: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kraft); color: var(--blaek); font-family: var(--tekst); font-size: 1.06rem; line-height: 1.62; font-weight: 400; }
img, svg { max-width: 100%; }
a { color: var(--skov); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tomat); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sennep); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--sennep); color: var(--blaek); }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--skov); color: var(--creme); padding: 0.5rem 0.9rem; z-index: 10; border-radius: var(--rund); }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--slab); font-weight: 800; line-height: 1; letter-spacing: -0.005em; text-wrap: balance; color: var(--skov-dyb); }
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 2.1em 0 0.5em; }
h3 { font-size: 1.55rem; margin: 1.4em 0 0.35em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.12rem, 2vw, 1.27rem); line-height: 1.55; max-width: 46ch; color: var(--blaek-2); }
.etiket { display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sennep); color: var(--blaek); padding: 0.3rem 0.65rem; border-radius: 3px; margin: 0 0 1.2rem; }

.top { background: var(--skov); color: var(--creme); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.6rem; padding-block: 0.85rem; }
.ordmaerke { font-family: var(--slab); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--creme); text-decoration: none; letter-spacing: -0.01em; }
.ordmaerke span { color: var(--sennep); }
.ordmaerke:hover { color: var(--creme); }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.menu a { color: #d9e4dc; text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 0.2rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--creme); border-bottom-color: #7fa08f; }
.menu a[aria-current="page"] { color: var(--sennep); border-bottom-color: var(--sennep); }
.markise { height: 30px; background: repeating-linear-gradient(90deg, var(--skov) 0 28px, var(--creme) 28px 56px);
  -webkit-mask: radial-gradient(14px at 50% 16px, #000 98%, transparent) 0 0 / 28px 30px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat;
          mask: radial-gradient(14px at 50% 16px, #000 98%, transparent) 0 0 / 28px 30px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat; }

.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--skov); color: var(--creme); text-decoration: none; font-weight: 700; padding: 0.8rem 1.3rem; border-radius: var(--rund); border: 2px solid var(--skov); line-height: 1.2; }
.knap:hover { background: var(--skov-dyb); border-color: var(--skov-dyb); color: var(--creme); }
.knap-lys { background: transparent; color: var(--skov); }
.knap-lys:hover { background: var(--skov); color: var(--creme); }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }
.pil:hover { text-decoration: underline; }

.helt { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.helt-ind { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.helt-fig { display: flex; justify-content: center; }
.kurv { width: min(100%, 24rem); height: auto; }
.kurv .vare-ny { fill: var(--sennep); }
.kurv .bue { fill: none; stroke: var(--blaek-2); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.kurv .vare-a { fill: var(--tomat); }
.kurv .vare-b { fill: #6f8f5a; }
.kurv .vare-c { fill: var(--creme); stroke: var(--blaek-2); stroke-width: 3; }
.kurv .kurv-krop { fill: var(--skov); }
.kurv .kurv-streg { stroke: #3e6a58; stroke-width: 6; stroke-linecap: round; }
.kurv .kurv-kant { stroke: var(--skov-dyb); stroke-width: 12; stroke-linecap: round; }

.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sektion > .ramme > h2:first-child, .to-spalter h2:first-child { margin-top: 0; }
.tre { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .tre { grid-template-columns: repeat(3, 1fr); } }
.tre article { background: var(--creme); border-radius: var(--rund); padding: 1.4rem 1.4rem 0.6rem; box-shadow: 0 0 0 1px var(--linje); }
.tre h3 { margin-top: 0.6rem; }
.skilt { display: inline-block; margin: 0; font-family: var(--slab); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tomat); }

.sektion-skov { background: var(--skov); color: #dce7df; }
.sektion-skov h2 { color: var(--creme); }
.to-spalter { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .to-spalter { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.liste-lys { list-style: none; padding: 0; margin: 0; }
.liste-lys li { padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.16); position: relative; }
.liste-lys li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--sennep); }
.liste-lys strong { color: var(--creme); }

.genveje { display: grid; gap: 1rem; }
@media (min-width: 640px) { .genveje { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .genveje { grid-template-columns: repeat(4, 1fr); } }
.genvej { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; color: var(--blaek-2); background: var(--creme); border-radius: var(--rund); padding: 1.3rem 1.25rem 1.4rem; box-shadow: 0 0 0 1px var(--linje); transition: box-shadow 0.15s; }
.genvej:hover { color: var(--blaek-2); box-shadow: 0 0 0 2px var(--skov); }
.genvej-titel { font-family: var(--slab); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--skov-dyb); }
.genvej-accent { background: var(--sennep); box-shadow: none; color: var(--blaek); }
.genvej-accent:hover { color: var(--blaek); box-shadow: 0 0 0 2px var(--skov-dyb); }

.tekstside { padding: clamp(2rem, 6vw, 4rem) 0 4rem; }
.side-top { max-width: 50rem; margin-bottom: 1.8rem; }
.artikel { max-width: 44rem; }
.artikel > h2:first-child { margin-top: 0.8em; }
.videre { margin-top: 2.2rem; }
.tjek { list-style: none; padding: 0; margin: 0 0 1.2em; }
.tjek li { position: relative; padding: 0 0 0.6rem 1.7rem; }
.tjek li::before { content: ""; position: absolute; left: 0.1rem; top: 0.4em; width: 0.45rem; height: 0.8rem; border-right: 3px solid var(--skov); border-bottom: 3px solid var(--skov); transform: rotate(40deg); }
.kasse { background: var(--creme); border-radius: var(--rund); padding: 1.3rem 1.4rem 0.5rem; margin: 1.6rem 0; box-shadow: 0 0 0 1px var(--linje); }
.kasse-titel { font-family: var(--slab); font-weight: 800; font-size: 1.35rem; color: var(--skov-dyb); margin-bottom: 0.5rem; }
.kasse ul { padding-left: 1.2rem; margin: 0 0 1em; }
.kasse li { margin-bottom: 0.4rem; }

.ordliste { margin: 0 0 2rem; display: grid; gap: 0.8rem; }
@media (min-width: 760px) { .ordliste { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.ordliste > div { background: var(--creme); border-radius: var(--rund); padding: 1.1rem 1.25rem; box-shadow: 0 0 0 1px var(--linje); }
.ordliste dt { font-family: var(--slab); font-weight: 800; font-size: 1.45rem; color: var(--skov-dyb); line-height: 1.05; margin-bottom: 0.35rem; }
.ordliste dd { margin: 0; color: var(--blaek-2); }

.beregner { display: grid; gap: 1.5rem; margin-bottom: 3rem; align-items: start; }
.beregner > * { min-width: 0; }
@media (min-width: 900px) { .beregner { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.felter { background: var(--creme); border-radius: var(--rund); padding: 1.4rem; box-shadow: 0 0 0 1px var(--linje); display: grid; gap: 1.1rem; }
.felt label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.input-enhed { display: flex; align-items: stretch; border: 2px solid var(--skov); border-radius: var(--rund); overflow: hidden; background: #fff; }
.input-enhed:focus-within { outline: 3px solid var(--sennep); outline-offset: 2px; }
.input-enhed input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.12rem; font-variant-numeric: tabular-nums; padding: 0.6rem 0.8rem; background: transparent; color: var(--blaek); }
.input-enhed input:focus { outline: none; }
.input-enhed span { display: flex; align-items: center; padding: 0 0.9rem; background: var(--kraft-2); font-size: 0.92rem; font-weight: 600; }
.resultat { background: var(--skov); color: #dce7df; border-radius: var(--rund); padding: 1.4rem 1.5rem 0.6rem; }
.resultat-titel { color: var(--sennep); margin: 0 0 0.6rem; font-size: 2rem; }
.res { margin: 0 0 1rem; }
.res > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.res dd { margin: 0; font-weight: 700; color: var(--creme); text-align: right; font-variant-numeric: tabular-nums; flex: none; max-width: 55%; }
.res .stor dd { font-family: var(--slab); font-size: 2rem; color: var(--sennep); line-height: 1; }
.res-tekst { font-size: 0.98rem; }

.bund { background: var(--skov-dyb); color: #c4d3c9; padding: 2.5rem 0 3rem; font-size: 0.96rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bund-ind { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.bund-navn { font-family: var(--slab); font-weight: 800; font-size: 1.6rem; color: var(--creme); margin-bottom: 0.3rem; }
.bund-tekst { max-width: 50ch; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: start; }
.bund a { color: var(--creme); }

@media (prefers-reduced-motion: reduce) { .genvej { transition: none; } }
