/* safebox.dk - boksstål, messing og beton */
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders-display-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-vf.woff2") format("woff2"); font-weight: 100 900; 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 {
  --staal: #1c2026;
  --staal-2: #262b33;
  --staal-3: #3a414b;
  --graa: #8b929c;
  --messing: #c39a3e;
  --messing-lys: #e7cf8c;
  --beton: #efeee9;
  --beton-2: #e2e0d8;
  --hvid: #fbfbf9;
  --blaek: #15171a;
  --daempet: #4d535c;
  --linje: #cdcac0;
  --display: "Big Shoulders", "Public Sans", sans-serif;
  --tekst: "Public Sans", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --maal: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--beton); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--messing-lys); color: var(--staal); }
img, svg { max-width: 100%; }
a { color: #6b4f12; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blaek); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--messing); outline-offset: 2px; }

.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--messing); color: var(--staal); padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); margin: 0 0 1rem; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin: 2.4em 0 0.5em; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; margin: 1.6em 0 0.35em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.12rem, 2.2vw, 1.28rem); line-height: 1.52; max-width: 44ch; }
.kode { font-family: var(--mono); font-size: 0.92em; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

/* Top */
.top { background: var(--staal); color: var(--hvid); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.9rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--hvid); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.ordmaerke:hover { color: var(--hvid); }
.maerke { width: 1.9rem; height: 1.9rem; color: var(--messing); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; }
.menu a { color: #c9ced6; text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--hvid); border-bottom-color: var(--graa); }
.menu a[aria-current="page"] { color: var(--messing-lys); border-bottom-color: var(--messing); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.4rem; border: 2px solid var(--messing); background: var(--messing); color: var(--staal); font: 700 1rem/1 var(--tekst); text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.knap:hover { background: var(--messing-lys); border-color: var(--messing-lys); color: var(--staal); }
.knap:active { transform: translateY(1px); }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }
.knap-lys:hover { background: rgba(255,255,255,.08); color: inherit; border-color: currentColor; }
.tekstside .knap-lys { color: var(--staal); }
.tekstside .knap-lys:hover { background: var(--beton-2); }

/* Forside */
.helt { background: radial-gradient(120% 90% at 85% 40%, var(--staal-3) 0%, var(--staal-2) 45%, var(--staal) 100%); color: var(--hvid); overflow: hidden; }
.helt-ind { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.helt h1 { color: var(--hvid); }
.helt h1 em { font-style: normal; color: var(--messing-lys); }
.helt .indledning { color: #d6dae0; }
.helt-skive { justify-self: center; width: min(100%, 26rem); }
@media (min-width: 880px) { .helt-ind { grid-template-columns: 1.15fr 0.85fr; } .helt-skive { justify-self: end; } }

.skive { display: block; width: 100%; height: auto; }
.skive-ring { fill: #11141a; stroke: #4a525d; stroke-width: 3; }
.skive-flade { fill: #2b3139; }
.skive-streger line { stroke: #b9bfc7; stroke-width: 1.6; }
.skive-streger line.tyk { stroke: var(--messing-lys); stroke-width: 3; }
.skive-tal text { font-family: var(--mono); font-size: 21px; font-weight: 600; fill: #e4e7eb; text-anchor: middle; }
.skive-knop { fill: #1a1e24; stroke: var(--messing); stroke-width: 4; }
.skive-knop-ind { fill: #23282f; }
.skive-pil { fill: var(--messing); }

.sektion { padding-block: clamp(2rem, 5.5vw, 4rem); }
.sektion h2:first-child { margin-top: 0; }
.sektion-moerk { background: var(--staal); color: #e6e9ed; }
.sektion-moerk h2 { color: var(--hvid); }

.lag { display: grid; gap: 0; margin: 1.5rem 0 0; counter-reset: lag; }
.lag li { list-style: none; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.25rem 1rem; padding: 1.2rem 0; border-top: 1px solid var(--linje); counter-increment: lag; }
.lag li::before { content: counter(lag, decimal-leading-zero); font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: #8a6a1f; padding-top: 0.2rem; }
.lag h3 { margin: 0 0 0.3rem; }
.lag p { margin: 0; max-width: var(--maal); }
.lag { padding: 0; }
@media (min-width: 880px) { .lag { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

.fakta { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); background: #3d444e; margin: 1.5rem 0 0; }
.fakta div { background: var(--staal); padding: 1.2rem 1.25rem 1.3rem; }
.fakta dt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; color: var(--messing-lys); margin-bottom: 0.4rem; }
.fakta dd { margin: 0; font-size: 0.97rem; color: #c9ced6; }

.genveje { display: grid; gap: 1rem; }
@media (min-width: 760px) { .genveje { grid-template-columns: repeat(2, 1fr); } }
.genvej { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem 1.5rem 1.5rem; background: var(--hvid); color: var(--blaek); text-decoration: none; border: 1px solid var(--linje); transition: background-color .18s ease-out; }
.genvej:hover { background: #fff; color: var(--blaek); }
.genvej:hover .genvej-titel { color: #6b4f12; }
.genvej-titel { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.side-top { padding-bottom: 1.5rem; border-bottom: 3px solid var(--staal); margin-bottom: 1.25rem; }
.side-top h1 { color: var(--staal); }
.side-top .indledning { max-width: 54ch; }
.artikel { max-width: var(--maal); }
.liste { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.liste li { margin-bottom: 0.65rem; padding-left: 0.2rem; }
.liste li::marker { color: #8a6a1f; }

.tabel-wrap { overflow-x: auto; margin: 1rem 0 1.75rem; border: 1px solid var(--linje); background: var(--hvid); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--beton-2); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--daempet); background: var(--beton); white-space: nowrap; }
td:first-child { white-space: nowrap; font-family: var(--mono); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.note { background: var(--staal); color: #dfe3e8; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.note strong { color: var(--messing-lys); }

/* Tjekliste */
.tjek { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 960px) { .tjek { grid-template-columns: 1fr 19rem; align-items: start; } .status { position: sticky; top: 1rem; } }
.gruppe { margin: 0 0 1.75rem; padding: 0; border: 0; }
.gruppe legend { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.5rem; padding: 0; }
.punkt { display: grid; grid-template-columns: 1fr; gap: 0.5rem; padding: 0.85rem 0; border-top: 1px solid var(--linje); }
@media (min-width: 640px) { .punkt { grid-template-columns: 1fr 13rem; align-items: center; } }
.punkt label { font-weight: 600; }
.punkt .hjaelp { display: block; font-weight: 400; font-size: 0.9rem; color: var(--daempet); }
select { font: 500 1rem/1.3 var(--tekst); color: var(--blaek); background: var(--hvid); border: 2px solid var(--linje); padding: 0.55rem 2rem 0.55rem 0.7rem; width: 100%; min-height: 2.8rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--staal) 50%), linear-gradient(135deg, var(--staal) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus-visible { border-color: var(--messing); }
.status { background: var(--staal); color: #e1e5ea; padding: 1.4rem 1.4rem 1.2rem; }
.status h2 { margin: 0 0 0.75rem; font-size: 1.8rem; color: var(--hvid); }
.status-tal { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--messing-lys); margin: 0 0 0.25rem; font-variant-numeric: tabular-nums; }
.status ul { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.95rem; }
.status li { padding: 0.45rem 0; border-top: 1px solid #3d444e; }
.status li strong { color: var(--hvid); }
.status .knap { width: 100%; margin-top: 1rem; }

/* Bund */
.bund { background: var(--staal); color: #aeb5be; padding-block: 2rem 2.5rem; font-size: 0.95rem; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.bund-navn { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hvid); }
.bund-navn span { display: block; font-family: var(--tekst); font-weight: 400; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: #aeb5be; margin-top: 0.3rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: center; }
.bund a { color: #d8dce1; text-decoration: none; }
.bund a:hover { color: var(--messing-lys); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
