/* Layout: NOCAB Säkerhet Design System. Ljus sida, vit innehållsyta, mörk sidfot. Strama hörn (max 4px), Roboto, röd accent. */
:root {
  --color-primary: #831423;
  --color-mid: #be4b5b;
  --color-light: #ee95a1;
  --color-primary-tint: #f9e8ea;
  --color-bg: #f5f5f5;
  --color-dark: #0d1b2a;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.11);
  --shadow-btn-hover: 0 8px 22px rgba(131,20,35,0.22);
  --shadow-elevated: 0 4px 24px rgba(0,0,0,0.13);
  --radius-btn: 3px;
  --radius-card: 4px;
  --font: Roboto, system-ui, -apple-system, sans-serif;
  --ease: 0.18s ease;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font); font-size: 17px; line-height: 1.72; margin: 0; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-btn); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
.dold { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 20px; height: 20px; flex: none; }

.topp { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--color-white); }
.topp-inre, .vy, .fot-inre { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .topp-inre, .vy, .fot-inre { padding-left: max(clamp(24px, 5vw, 80px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(24px, 5vw, 80px), env(safe-area-inset-right, 0px)); } }
.topp-inre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logga { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--color-text); }
.logga svg { height: 38px; width: auto; display: block; }
.logga .del { font-weight: 500; color: var(--color-muted); font-size: 15px; padding-left: 14px; border-left: 1px solid var(--color-border); }
.knapp, .topp-kontakt { display: inline-block; background: var(--color-primary); color: var(--color-white); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; padding: 11px 20px; border-radius: var(--radius-btn); white-space: nowrap; transition: transform var(--ease), box-shadow var(--ease); }
.knapp:hover, .topp-kontakt:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.topp-kontakt { padding: 9px 16px; }
.topp-sok { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.topp-sok .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-muted); width: 18px; height: 18px; pointer-events: none; }
.topp-sok input { width: 100%; font: inherit; font-size: 15px; padding: 9px 12px 9px 38px; border: 1px solid #8a8a8a; border-radius: var(--radius-btn); background: var(--color-white); color: var(--color-text); }
.topp-sok input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); outline: none; }
.topp-sok .sokresultat { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; margin: 0; max-height: 70vh; overflow-y: auto; }
.topp-sok .sokresultat small { display: block; }

.vy { padding-block: 40px 72px; }
.hjalte { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 8px 48px; }
.hjalte-text { min-width: 0; position: relative; }
.hjalte-text > .sokresultat { position: absolute; left: 0; right: 0; z-index: 20; max-height: 60vh; overflow-y: auto; }
.hjalte-ingress { font-size: 19px; color: var(--color-muted); margin: -8px 0 24px; line-height: 1.6; max-width: 34em; }
.hjalte-genvag { margin: -10px 0 20px; font-weight: 500; }
.hjalte-genvag a { font-weight: 700; }
.hjalte-bild { margin: 0; min-width: 0; }
.hjalte-bild img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.overrad, .etikett { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 700; line-height: 1; color: var(--color-primary); margin: 0 0 14px; }
.hjalte h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 900; letter-spacing: -0.025em; margin-bottom: 24px; }
.sok { position: relative; }
.sok .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-muted); width: 22px; height: 22px; }
.sok input { width: 100%; font: inherit; font-size: 18px; padding: 16px 16px 16px 50px; border: 1px solid #8a8a8a; border-radius: var(--radius-btn); background: var(--color-white); color: var(--color-text); }
.sok input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); outline: none; }
.sokresultat { margin-top: 8px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-elevated); overflow: hidden; }
.sokresultat a { display: block; padding: 12px 16px; text-decoration: none; color: var(--color-text); border-bottom: 1px solid var(--color-border); line-height: 1.5; }
.sokresultat a:last-child { border-bottom: 0; }
.sokresultat a:hover, .sokresultat a:focus-visible { background: var(--color-primary-tint); }
.sokresultat strong { display: block; color: var(--color-primary); }
.sokresultat small { color: var(--color-muted); font-size: 14px; }
.sokresultat .tomt { padding: 14px 16px; margin: 0; color: var(--color-muted); }

.kat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.kat-kort { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 16px; row-gap: 4px; padding: 24px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-decoration: none; color: var(--color-text); transition: box-shadow var(--ease); }
.kat-kort:hover { box-shadow: var(--shadow-card-hover); }
.kat-ikon { width: 44px; height: 44px; padding: 12px; border-radius: 4px; background: var(--color-primary-tint); color: var(--color-primary); grid-row: 1 / 4; transition: background var(--ease), color var(--ease); }
.kat-kort:hover .kat-ikon { background: var(--color-primary); color: var(--color-white); }
.kat-ikon.stor { width: 56px; height: 56px; padding: 14px; }
.kat-namn { font-weight: 700; font-size: clamp(18px, 2vw, 21px); letter-spacing: -0.01em; line-height: 1.3; }
.kat-beskr { color: var(--color-muted); font-size: 15px; line-height: 1.55; }
.kat-antal { font-size: 13px; font-weight: 500; color: var(--color-primary); margin-top: 8px; }

.start-nedre { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 24px; margin-top: 56px; }
.vanligast { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 28px; }
.vanligast h2, .it-kort h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.vanligast ol { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 32px; counter-reset: v; }
.vanligast li { break-inside: avoid; counter-increment: v; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); line-height: 1.45; }
.vanligast li::before { content: counter(v); font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.vanligast a { text-decoration: none; color: var(--color-text); font-weight: 500; }
.vanligast a:hover { color: var(--color-primary); text-decoration: underline; }
.it-kort { background: var(--color-dark); color: var(--color-white); border-radius: var(--radius-card); padding: 28px; }
.it-kort .ic { color: var(--color-light); width: 24px; height: 24px; margin-bottom: 12px; }
.it-kort p { margin: 0 0 16px; color: #c9ced4; font-size: 15px; line-height: 1.6; }
.it-kort a { color: var(--color-light); font-weight: 700; }

.brod { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.brod a { color: var(--color-muted); }
.kat-huvud { display: flex; gap: 20px; align-items: center; margin-bottom: 32px; }
.kat-huvud h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.025em; }
.kat-huvud .ingress { margin: 8px 0 0; }
.artikellista { list-style: none; margin: 0; padding: 0; max-width: 820px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); }
.artikellista li + li { border-top: 1px solid var(--color-border); }
.artikellista a { display: block; padding: 18px 24px; text-decoration: none; color: var(--color-text); line-height: 1.5; transition: background var(--ease); }
.artikellista a:hover { background: var(--color-primary-tint); }
.artikellista strong { display: block; color: var(--color-primary); font-size: 18px; margin-bottom: 2px; }
.artikellista span { color: var(--color-muted); font-size: 15px; }

.artikel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.artikel-kropp { min-width: 0; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 48px); }
.artikel-kropp > * { max-width: 700px; }
.artikel h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.025em; }
.ingress { font-size: 19px; color: var(--color-muted); margin: 14px 0 24px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 32px; padding: 16px 20px; background: var(--color-bg); border-radius: var(--radius-card); }
.meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--color-primary); line-height: 1.8; }
.meta dd { margin: 0; font-weight: 500; line-height: 1.5; }
.text h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; }
.text h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; margin: 26px 0 8px; }
.text p { margin: 0 0 14px; }
.text ul { padding-left: 22px; margin: 0 0 16px; }
.text ul li { margin-bottom: 6px; }
.text ol:not(.steg) { padding-left: 24px; margin: 8px 0 12px; }
.text ol:not(.steg) li { margin-bottom: 4px; }
.text code { font-size: .86em; background: var(--color-bg); border: 1px solid var(--color-border); padding: 1px 6px; border-radius: 3px; overflow-wrap: anywhere; }
ol.steg { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: steg; }
ol.steg > li { counter-increment: steg; position: relative; padding: 0 0 20px 52px; }
ol.steg > li::before { content: counter(steg); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 4px; background: var(--color-primary); color: var(--color-white); font-weight: 700; display: grid; place-items: center; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
ol.steg > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; background: var(--color-border); }
ol.steg > li > p:first-child { margin-bottom: 8px; }
ul.check { list-style: none; padding-left: 0; }
ul.check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
ul.check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--color-primary); flex: none; }
ul.check input:checked + span { color: var(--color-muted); text-decoration: line-through; }

.bild { display: flex; gap: 14px; align-items: center; margin: 12px 0; padding: 14px 18px; background: var(--color-bg); border: 1px dashed #b5b5b5; border-radius: var(--radius-card); color: var(--color-muted); font-size: 15px; font-style: italic; line-height: 1.5; }
.bild .ic { color: var(--color-muted); }
.bild figcaption span { display: block; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 4px; }
.skarmbild { margin: 12px 0 8px; }
.skarmbild img { display: block; max-width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: var(--color-white); }
.skarmbild figcaption { font-size: 14px; color: var(--color-muted); margin-top: 6px; line-height: 1.5; }
.bildrad { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 12px 0 8px; align-items: start; }
.bildrad .skarmbild { margin: 0; }
.bildrad .skarmbild img { width: 100%; height: 220px; object-fit: contain; background: var(--color-bg); }
.modeller { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.modell { margin: 0; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.modell img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 12px; }
.modell figcaption { padding: 14px 16px 16px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.modell strong { font-size: 18px; }
.modell .modell-antal { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--color-primary); }
.modell span:last-child { font-size: 15px; color: var(--color-muted); }
a.epost { font-weight: 700; overflow-wrap: anywhere; }
.video { display: flex; gap: 16px; align-items: center; padding: 20px; margin: 4px 0 28px; border-radius: var(--radius-card); background: var(--color-dark); color: var(--color-white); text-decoration: none; transition: box-shadow var(--ease); }
.video:hover { box-shadow: var(--shadow-card-hover); }
.video .play { width: 44px; height: 44px; color: var(--color-light); }
.video strong { display: block; font-size: 18px; }
.video small { display: block; color: #c9ced4; font-size: 13px; }
.video-inbaddad { margin: 4px 0 28px; }
.video-lank { margin: 8px 0 0; font-size: 14px; }
.video-inbaddad iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-card); display: block; }
.video-inbaddad.staende iframe { max-width: 340px; aspect-ratio: 9 / 16; }
.video-inbaddad figcaption { font-size: 14px; color: var(--color-muted); margin-top: 8px; }

.ruta { margin: 18px 0; padding: 16px 20px; border-radius: var(--radius-card); background: var(--color-bg); border: 1px solid var(--color-border); }
.ruta.tips { background: var(--color-primary-tint); border-color: var(--color-primary-tint); }
.ruta.viktigt { background: var(--color-white); border: 1px solid var(--color-primary); }
.ruta p:last-child { margin-bottom: 0; }
.tabell { overflow-x: auto; margin: 8px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-muted); }

.fastnat { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 44px; padding: 24px; background: var(--color-bg); border-radius: var(--radius-card); }
.fastnat h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.fastnat p { margin: 0; color: var(--color-muted); font-size: 15px; line-height: 1.55; }
.sidomeny { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.sidomeny h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-primary); margin-bottom: 14px; line-height: 1.5; }
.sidomeny ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-border); }
.sidomeny li { font-size: 15px; line-height: 1.4; }
.sidomeny a { display: block; padding: 7px 0 7px 16px; text-decoration: none; color: var(--color-text); }
.sidomeny a:hover { color: var(--color-primary); text-decoration: underline; }

.fot { background: var(--color-dark); color: var(--color-white); }
.fot-inre { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; padding-block: 48px; }
.fot .etikett { color: var(--color-light); margin-bottom: 10px; }
.fot-rubrik { font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin: 0; }
.fot p { margin: 0; }
.fot-kontakt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.fot-kontakt li { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 18px; user-select: all; }
.fot-kontakt .ic { color: var(--color-light); }
.fot-kontakt a { color: var(--color-white); text-decoration: none; }
.fot-kontakt a:hover { text-decoration: underline; }
.fot-liten { flex-basis: 100%; font-size: 13px; color: #c9ced4; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }

.faq { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 32px; align-items: start; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 500; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--color-primary); }
.faq details p { margin: 0 0 8px; color: var(--color-muted); font-size: 15px; line-height: 1.55; }
.faq .las { display: inline-block; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.las-ocksa { margin-top: 44px; }
.las-ocksa h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.las-ocksa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.las-ocksa a { display: block; padding: 14px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-card); text-decoration: none; color: var(--color-text); line-height: 1.5; transition: box-shadow var(--ease); }
.las-ocksa a:hover { box-shadow: var(--shadow-card-hover); }
.las-ocksa strong { display: block; color: var(--color-primary); }
.las-ocksa span { color: var(--color-muted); font-size: 15px; }

a.tillbehor { font-weight: 500; text-decoration-style: dotted; text-decoration-thickness: 1.5px; white-space: nowrap; }
a.tillbehor .tb-ikon { width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px; }
.lightbox { border: 0; padding: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-elevated); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--color-white); color: var(--color-text); }
.lightbox::backdrop { background: rgba(13, 27, 42, 0.72); }
.lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--color-white); }
.lb-saknas { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 260px; background: var(--color-bg); color: var(--color-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.lb-saknas .ic { width: 36px; height: 36px; }
.lightbox.saknas img { display: none; }
.lightbox.saknas .lb-saknas { display: flex; }
.lb-text { margin: 0; padding: 16px 20px 4px; font-weight: 500; line-height: 1.5; }
.lb-order { margin: 0; padding: 0 20px 18px; font-size: 15px; color: var(--color-muted); }
.lb-stang { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-btn); background: var(--color-white); color: var(--color-text); box-shadow: var(--shadow-card); cursor: pointer; }
.lb-stang:hover { color: var(--color-primary); }

@media (max-width: 860px) {
  .artikel-grid, .start-nedre, .hjalte { grid-template-columns: 1fr; }
  .hjalte-bild { order: -1; }
  .hjalte-bild img { aspect-ratio: 16 / 10; }
  .sidomeny { position: static; }
}
@media (max-width: 700px) {
  .topp-inre { flex-wrap: wrap; row-gap: 10px; }
  .topp-sok { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
}
@media (max-width: 520px) {
  .logga .del { display: none; }
  .logga svg { height: 30px; }
  .artikel-kropp { padding: 20px; border-left: 0; border-right: 0; border-radius: 0; margin-inline: -16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .knapp:hover, .topp-kontakt:hover { transform: none; } }
