/* Hallmark · v2.0.0 · build · locked: Skog och Guld (repots CLAUDE.md), ingen tema-dragning · shape: Workbench (produkten byggs i hjälten) · genre: editorial · job: boka platsbesök, i hjälten, efter processen och i formuläret längst ned · hero: Stage, text vänster och tornbyggaren höger · nav: logga och en knapp · footer: kort mast med kontakt, KEYTO-bandet ovanför · signature: SAJ HS5-tornet som besökaren bygger själv, modul för modul, av riktiga produktbilder · material: real (manualen EK70, garantin, Stakks produktbilder och miljöbilder, Reco-omdömen) · absent (kundcitat, installationsantal, pris) */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: R, datatabellen och skyddslistan är båda listor; skyddslistan står bredvid en stor produktbild och tabellen ensam på mörk botten så de inte läses som samma sak */
/* Hallmark · dismissed 25 · stegtexterna är en mening var under en rubrik, bildtexter snarare än löptext, och står i fyra spalter */
/* Hallmark · answered F15 · tre spaltavstånd är medvetna: 32 i reglaget, 48 mellan tabellerna, 64 mellan text och bild; ett gemensamt avstånd gjorde tabellerna för glesa */

/* Sajtens egna typsnitt, självhostade (samma filer som style.css). */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap;
  src: url('/assets/brand/keyto-band/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap;
  src: url('/assets/brand/keyto-band/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/brand/keyto-band/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/brand/keyto-band/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0; }

:root {
  /* Skog och Guld v4.2 */
  --color-forest: #103e2a;
  --color-forest-2: #0b2c1e;
  --color-green: #1b6b43;
  --color-green-hover: #155a38;
  --color-green-active: #104a2e;
  --color-cream: #f6f4ef;
  --color-paper: #fbfaf6;
  --color-gold: #d9c89a;
  --color-gold-hover: #e6d8b1;
  --color-gold-active: #c9b582;
  --color-star: #8a6a12;
  --color-white: #ffffff;
  --color-ink: #14231b;
  --color-ink-2: #46564c;
  --color-line: #d9d5c8;
  --color-line-dark: #2c5a44;
  --color-on-dark: #f6f4ef;
  --color-on-dark-2: #c3d1c8;
  --color-shadow: rgba(16, 32, 24, 0.22);
  --color-error: #a3261b;
  --color-error-on-dark: #ffb4a8;
  --color-focus: #1b6b43;
  --color-focus-on-dark: #d9c89a;

  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --text-title: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-section: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  --text-figure: clamp(3rem, 2rem + 4vw, 5.5rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 136px;
  --space-11: 168px;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --control-h: 48px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; }
b, strong { font-weight: 600; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.h5-mork :focus-visible { outline-color: var(--color-focus-on-dark); }
[id] { scroll-margin-top: 96px; }
.h5-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.h5-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h5-hoppa { position: absolute; left: var(--space-4); top: -100px; background: var(--color-forest); color: var(--color-on-dark); padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); z-index: 50; }
.h5-hoppa:focus-visible { top: var(--space-4); outline-color: var(--color-focus); }

/* Knappar: åtta lägen, samma höjd som fälten. */
.h5-knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-5);
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--color-green); color: var(--color-on-dark);
  transition: background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.h5-knapp:hover { background: var(--color-green-hover); }
.h5-knapp:active { background: var(--color-green-active); transform: translateY(1px); }
.h5-knapp:disabled, .h5-knapp[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; }
.h5-knapp--guld { background: var(--color-gold); color: var(--color-forest); }
.h5-knapp--guld:hover { background: var(--color-gold-hover); }
.h5-knapp--guld:active { background: var(--color-gold-active); }
.h5-lank {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  color: var(--color-green); white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.h5-lank:hover { text-decoration-thickness: 2px; }
.h5-lank:active { color: var(--color-green-active); }

/* Navigering: logga, telefon, en knapp. */
.h5-nav { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-cream); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease-out); }
.h5-nav.h5-nav-skrollad { border-bottom-color: var(--color-line); }
.h5-nav .h5-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 80px; }
.h5-nav-logo { display: block; padding-block: 4px; }
.h5-nav-logo img { height: 46px; width: auto; } /* samma som --logga-h i assets/style.css */
.h5-nav-hoger { display: flex; align-items: center; gap: var(--space-5); }
.h5-nav-tel { display: inline-block; padding-block: 10px; font-weight: 600; text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.h5-nav-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hjälten: text till vänster, tornbyggaren till höger. */
.h5-hero { position: relative; padding: var(--space-4) 0 var(--space-6); }
.h5-hero .h5-wrap {
  display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: center;
  gap: var(--space-8); align-items: center;
  min-height: min(calc(100svh - 80px - var(--space-6) - var(--space-4)), 740px);
}
.h5-hero h1 { font-size: var(--text-hero); color: var(--color-forest); text-wrap: pretty; }
.h5-hero-lede { font-size: var(--text-lede); color: var(--color-ink-2); max-width: 34ch; margin-top: var(--space-5); line-height: 1.5; }
.h5-hero-knappar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-6); }
.h5-hero-fakta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-7) 0 0; padding: 0; list-style: none; color: var(--color-ink-2); font-size: var(--text-small); }
.h5-hero-fakta strong { display: block; font-weight: 800; font-family: var(--font-display); font-size: 1.375rem; color: var(--color-forest); line-height: 1.2; }

/* Tornbyggaren. Modulerna är samma frilagda produktbild, staplad. */
.h5-bygg { display: grid; grid-template-columns: auto auto; gap: var(--space-7); align-items: end; justify-content: start; }
.h5-scen {
  --scen-h: 580px;
  position: relative; height: var(--scen-h); margin: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.h5-scen::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 22px;
  border-radius: 50%; background: var(--color-shadow); filter: blur(12px); z-index: 0;
}
.h5-torn {
  position: relative; z-index: 1; margin: 0;
  width: min(270px, calc(var(--scen-h) * 640 / 1543));
  display: flex; flex-direction: column;
}
.h5-torn img { width: 100%; height: auto; }
.h5-torn .h5-modul { margin-top: -1px; position: relative; z-index: 0; }
.h5-torn > img:first-child { position: relative; z-index: 2; }
/* Uppbyggnaden när sidan öppnas styrs här och inte i skriptet, så första målningen redan är startläget.
   Nedersta modulen landar först, växelriktaren sist som ett lock. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.h5-byggd) .h5-torn .h5-modul:not(.h5-ny):not(.h5-ut), .js:not(.h5-byggd) .h5-torn > img:first-child { animation-name: h5-landa; animation-duration: 0.55s; animation-timing-function: var(--ease-out); animation-fill-mode: both; }
  .js .h5-torn .h5-modul:nth-last-child(2) { animation-delay: 0.25s; }
  .js .h5-torn .h5-modul:nth-last-child(3) { animation-delay: 0.37s; }
  .js .h5-torn .h5-modul:nth-last-child(4) { animation-delay: 0.49s; }
  .js .h5-torn .h5-modul:nth-last-child(5) { animation-delay: 0.61s; }
  .js .h5-torn > img:first-child { animation-delay: 0.75s; }
  /* En modul som läggs till glider in under locket, en som tas bort lyfts ut bakom det. */
  .js .h5-torn .h5-modul.h5-ny { animation: h5-in-kort 0.3s var(--ease-out) both; z-index: 1; }
  .js .h5-torn .h5-modul.h5-ut { position: absolute; left: 0; width: 100%; z-index: 1; animation: h5-ut-kort 0.3s linear both; }
}
@keyframes h5-landa { from { transform: translateY(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes h5-in-kort { from { opacity: 0; } }
@keyframes h5-ut-kort { from, 60% { opacity: var(--fran, 1); } to { opacity: 0; } }

.h5-reglage { display: grid; gap: var(--space-5); min-width: 220px; padding-bottom: var(--space-4); }
html:not(.js) .h5-reglage, html:not(.js) .h5-form { display: none; }
.h5-summa { font-family: var(--font-display); font-weight: 800; font-size: var(--text-figure); line-height: 0.95; color: var(--color-forest); font-variant-numeric: tabular-nums; }
.h5-summa b { font-weight: 800; }
.h5-summa span { font-size: 0.42em; font-weight: 800; margin-left: var(--space-1); }
.h5-summa-text { color: var(--color-ink-2); font-size: var(--text-small); margin-top: var(--space-2); }
.h5-falt-namn { display: block; font-size: var(--text-small); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-2); }
.h5-steg { display: inline-grid; grid-template-columns: var(--control-h) 3ch var(--control-h); align-items: center; border: 1px solid var(--color-ink-2); border-radius: var(--radius-pill); }
.h5-steg output { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.h5-steg button {
  width: var(--control-h); height: var(--control-h); border: 0; border-radius: 50%;
  background: transparent; color: var(--color-forest); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.15s var(--ease-out);
}
.h5-steg button svg { width: 20px; height: 20px; }
.h5-steg button:hover { background: var(--color-line); }
.h5-steg button:active { background: var(--color-gold); }
.h5-steg button[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; background: transparent; }
.h5-val { display: inline-flex; border: 1px solid var(--color-ink-2); border-radius: var(--radius-pill); padding: var(--space-1); }
.h5-val label { position: relative; }
.h5-val input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.h5-val span {
  display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.h5-val label:hover span { background: var(--color-line); }
.h5-val input:checked + span { background: var(--color-forest); color: var(--color-on-dark); }
.h5-val label:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-pill); }
.h5-val input:active + span { background: var(--color-gold); color: var(--color-forest); }
.h5-val input:disabled + span { opacity: 0.4; cursor: not-allowed; }

/* Sektioner */
.h5-sektion { padding: var(--space-10) 0; }
.h5-sektion h2 { font-size: var(--text-section); color: var(--color-forest); max-width: 18ch; }
.h5-ingress { font-size: var(--text-lede); color: var(--color-ink-2); max-width: 44ch; margin-top: var(--space-5); line-height: 1.5; }
.h5-mork { background: var(--color-forest); color: var(--color-on-dark); }
.h5-mork h2, .h5-mork h3 { color: var(--color-on-dark); }
.h5-mork .h5-ingress { color: var(--color-on-dark-2); }
.h5-mork .h5-lank { color: var(--color-gold); }

/* Nödström: stor miljöbild och två siffror. */
.h5-nod { padding: 0; }
.h5-nod-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.h5-nod-bild { margin: 0; position: relative; min-height: 560px; }
.h5-nod-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.h5-nod-text { padding: var(--space-10) var(--gutter) var(--space-10) var(--space-8); max-width: 640px; align-self: center; }
.h5-siffror { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); margin: var(--space-7) 0 0; }
.h5-siffror dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-figure); line-height: 1; color: var(--color-gold); font-variant-numeric: tabular-nums; }
.h5-siffror dd { margin: var(--space-2) 0 0; color: var(--color-on-dark-2); font-size: var(--text-small); max-width: 22ch; }
.h5-not { margin-top: var(--space-6); color: var(--color-on-dark-2); font-size: var(--text-small); max-width: 46ch; }

/* Databladet: tabell i två kolumner. */
.h5-blad-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-8); align-items: start; }
.h5-blad-tabeller { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
.h5-tabell { width: 100%; border-collapse: collapse; }
.h5-tabell caption { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); color: var(--color-forest); padding-bottom: var(--space-3); }
.h5-tabell th, .h5-tabell td { text-align: left; vertical-align: top; padding: var(--space-3) 0; border-top: 1px solid var(--color-line); font-size: 0.9375rem; }
.h5-tabell th { font-weight: 400; color: var(--color-ink-2); padding-right: var(--space-4); width: 46%; }
.h5-tabell td { font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.h5-blad-torn { margin: var(--space-7) 0 0; }
.h5-blad-torn img { width: min(300px, 70%); filter: drop-shadow(0 24px 24px var(--color-shadow)); }
.h5-kalla { margin-top: var(--space-5); font-size: var(--text-small); color: var(--color-ink-2); max-width: 40ch; }

/* Säkerheten: produkt i vinkel och nio skydd. */
.h5-skydd-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: center; }
.h5-skydd-bild { margin: 0; display: flex; justify-content: center; }
.h5-skydd-bild img { width: min(360px, 80%); filter: drop-shadow(0 28px 28px var(--color-shadow)); }
.h5-skydd-listor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); margin-top: var(--space-7); }
.h5-skydd-listor h3 { font-size: var(--text-title); color: var(--color-forest); margin-bottom: var(--space-3); }
.h5-skydd-listor ol { list-style: none; margin: 0; padding: 0; counter-reset: skydd var(--start, 0); }
.h5-skydd-listor li { counter-increment: skydd; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: var(--space-3) 0; border-top: 1px solid var(--color-line); }
.h5-skydd-listor li::before { content: counter(skydd); font-family: var(--font-display); font-weight: 800; color: var(--color-green); font-variant-numeric: tabular-nums; }

/* Så går det till: fyra steg på en linje. */
.h5-process { background: var(--color-paper); }
.h5-steg-lista { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: steg; }
.h5-steg-lista li { counter-increment: steg; padding-top: var(--space-5); border-top: 2px solid var(--color-forest); }
.h5-steg-lista li::before { content: counter(steg); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--color-green); margin-bottom: var(--space-4); }
.h5-steg-lista h3 { font-size: var(--text-title); color: var(--color-forest); margin-bottom: var(--space-3); }
.h5-steg-lista p { color: var(--color-ink-2); font-size: 0.9875rem; max-width: 30ch; }
.h5-process-slut { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-8); }

/* Omdömena får en egen ljus yta före bokningen. */
.h5-omdomen { background: var(--color-paper); }
.h5-omdomen > .h5-wrap > p { margin-top: var(--space-3); }
/* Recos widget är alltid vit och går inte att färga om, så den får ett vitt kort.
   Höjderna är uppmätta per iframebredd 2026-11-25 (minsta höjd plus marginal för
   andra systemtypsnitt): liggande karusell från 701 px, stående lista med fem
   hela omdömen under det. */
.h5-reco { margin-top: var(--space-6); background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-4); }
.h5-reco iframe { width: 100%; border: 0; display: block; }
.h5-reco-bred { height: 236px; }
.h5-reco .h5-reco-smal { display: none; height: 954px; }
@media (min-width: 1100px) { .h5-reco-bred { height: 210px; } }
@media (max-width: 700px) { .h5-reco .h5-reco-bred { display: none; } .h5-reco .h5-reco-smal { display: block; } }
.h5-reco:focus-within { outline: 3px solid var(--color-forest); outline-offset: 3px; }
.h5-reco-lank { display: inline-block; margin-top: var(--space-4); }
.h5-google { margin-top: var(--space-8); }
.h5-google-snitt { font-size: var(--text-title); color: var(--color-forest); }
.h5-google-snitt strong { font-family: var(--font-display); font-size: 1.6em; margin-right: var(--space-1); }
.h5-google-lista { list-style: none; margin: var(--space-5) 0 var(--space-4); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.h5-google-lista li { background: var(--color-cream); border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.h5-google-stj { color: var(--color-star); letter-spacing: 2px; }
.h5-google-lista blockquote { margin: 0; color: var(--color-ink); flex: 1; }
.h5-google-lista p { font-size: var(--text-small); color: var(--color-ink-2); font-weight: 600; }
@media (max-width: 900px) {
  /* Mobil: korten sveps i sidled i stället för att staplas på höjden. */
  .h5-google-lista { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
  .h5-google-lista li { scroll-snap-align: start; }
}

/* Bokningen */
.h5-boka { background: var(--color-forest); color: var(--color-on-dark); }
.h5-boka-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.h5-boka h2 { color: var(--color-on-dark); }
.h5-boka-kontakt { margin-top: var(--space-6); color: var(--color-on-dark-2); }
.h5-boka-kontakt a { color: var(--color-gold); font-weight: 600; display: inline-block; padding-block: 12px; }
.h5-form { display: grid; gap: var(--space-4); background: var(--color-forest-2); border: 1px solid var(--color-line-dark); border-radius: var(--radius-m); padding: var(--space-7); }
.h5-form-rad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.h5-form label { display: grid; gap: var(--space-2); font-size: var(--text-small); font-weight: 600; color: var(--color-on-dark); }
.h5-form input[type="text"], .h5-form input[type="tel"], .h5-form input[type="email"], .h5-form textarea {
  width: 100%; min-height: var(--control-h); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-on-dark-2); border-radius: var(--radius-s);
  background: var(--color-forest); color: var(--color-on-dark);
  font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color 0.15s var(--ease-out);
}
.h5-form textarea { min-height: 96px; resize: vertical; }
.h5-form input:hover, .h5-form textarea:hover { border-color: var(--color-on-dark); }
.h5-form input:focus-visible, .h5-form textarea:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 1px; }
.h5-form input:disabled, .h5-form textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.h5-form [aria-invalid="true"] { border-color: var(--color-error-on-dark); }
.h5-valt-torn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-line-dark); border-radius: var(--radius-s); color: var(--color-on-dark-2); font-size: var(--text-small); }
.h5-valt-torn strong { color: var(--color-on-dark); }
.h5-valt-torn[hidden] { display: none; }
.h5-samtycke { grid-template-columns: 22px minmax(0, 1fr) !important; align-items: start; font-weight: 400 !important; color: var(--color-on-dark-2) !important; }
.h5-samtycke input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-gold); }
.h5-samtycke a { color: var(--color-gold); }
.h5-fel { min-height: 1.5em; color: var(--color-error-on-dark); font-size: var(--text-small); font-weight: 600; }
.h5-form .h5-knapp { justify-self: start; }
.h5-falla { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fast knapp på mobilen, visas efter hjälten. */
.h5-fast { display: none; }

/* Sidfot */
.h5-fot { background: var(--color-paper); border-top: 1px solid var(--color-line); padding: var(--space-8) 0 var(--space-7); font-size: var(--text-small); color: var(--color-ink-2); }
.h5-fot .h5-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: end; }
.h5-fot-logo img { height: 40px; width: auto; margin-bottom: var(--space-4); }
.h5-fot p + p { margin-top: var(--space-2); }
.h5-fot a { color: var(--color-ink); display: inline-block; padding-block: 12px; }
.h5-fot-reco { min-height: 60px; }

/* En sorts avslöjande. Klassen h5-anim sätts av hs5.js, så inget blir osynligt om skriptet faller bort. */
.h5-anim .h5-visa { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.h5-anim .h5-visa.h5-synlig { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .h5-hero .h5-wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-6); }
  .h5-hero h1 { max-width: 14ch; }
  .h5-scen { --scen-h: 440px; }
  .h5-hero .h5-wrap { justify-items: start; }
  .h5-blad-torn { display: none; }
  .h5-nod-grid, .h5-blad-grid, .h5-skydd-grid, .h5-boka-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .h5-nod-bild { min-height: 360px; }
  .h5-nod-text { padding: var(--space-8) var(--gutter); max-width: none; }
  .h5-steg-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --control-h: 48px; }
  .h5-nav { position: relative; }
  .h5-nav .h5-wrap { min-height: 64px; }
  .h5-nav-tel { display: none; }
  .h5-nav-logo img { height: 34px; }
  .h5-hero { padding-top: var(--space-3); }
  .h5-hero-fakta { margin-top: var(--space-4); }
  .h5-hero-fakta li:not(:first-child) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .h5-hero-fakta strong { display: inline; font-size: 1rem; margin-right: var(--space-1); }
  .h5-bygg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
  .h5-scen { --scen-h: 340px; }
  @media (max-width: 370px) { .h5-hero h1 { font-size: 2.15rem; } }
  @media (max-height: 760px) { .h5-scen { --scen-h: 235px; align-self: start; } .h5-hero-fakta { margin-top: var(--space-2); } }
  @media (max-height: 700px) { .h5-scen { --scen-h: 200px; } .h5-hero h1 { font-size: 2.15rem; } .h5-hero { padding-top: var(--space-2); } .h5-hero-fakta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .h5-hero-lede { margin-top: var(--space-2); } .h5-hero-knappar { margin-top: var(--space-3); } }
  @media (max-height: 680px) { .h5-scen { --scen-h: 140px; } .h5-hero-knappar { margin-top: var(--space-2); } .h5-hero h1 { font-size: 2rem; } .h5-hero .h5-reglage { gap: var(--space-3); padding-bottom: 0; } .h5-hero-knappar { row-gap: var(--space-2); } }
  .h5-reglage { min-width: 0; gap: var(--space-4); }
  .h5-summa { font-size: 3rem; }
  .h5-val span { min-width: 44px; padding: 0 var(--space-2); }
  .h5-sektion { padding: var(--space-9) 0; }
  .h5-nod { padding: 0; }
  .h5-siffror { gap: var(--space-4); }
  .h5-blad-tabeller, .h5-skydd-listor, .h5-form-rad, .h5-steg-lista { grid-template-columns: minmax(0, 1fr); }
  .h5-form { padding: var(--space-5); }
  .h5-fot .h5-wrap { grid-template-columns: minmax(0, 1fr); }
  .h5-fast {
    display: flex; position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: var(--z-sticky);
    transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  }
  .h5-fast .h5-knapp { flex: 1; box-shadow: 0 10px 24px var(--color-shadow); }
  .js .h5-fast { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .js .h5-fast.h5-fast-visa { transform: none; opacity: 1; pointer-events: auto; transition-duration: 0.3s; }
  body { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h5-nav, .h5-knapp, .h5-steg button, .h5-val span, .h5-form input, .h5-form textarea, .h5-fast { transition: none; }
  .h5-knapp:active { transform: none; }
  .h5-anim .h5-visa { opacity: 1; transform: none; transition: none; }
  .js .h5-fast { transform: none; opacity: 0; }
  .js .h5-fast.h5-fast-visa { opacity: 1; }
}

/* HS5-priser, fylls på servern ur src/lib/hs5/ (Linus 2026-11-30). */
.hs5-fran { margin-top: var(--space-5); display: grid; gap: 2px; }
.hs5-fran b { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; color: var(--color-forest); font-variant-numeric: tabular-nums; }
.hs5-fran span { font-size: 0.9375rem; color: var(--color-ink-2); }
.hs5-pris-wrap { margin-top: var(--space-6); overflow-x: auto; }
.hs5-pris { width: 100%; max-width: 44rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hs5-pris th, .hs5-pris td { padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.hs5-pris thead th { font-size: 0.875rem; font-weight: 600; color: var(--color-ink-2); }
.hs5-pris th:first-child { text-align: left; padding-left: 0; }
.hs5-pris tbody th { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--color-forest); }
.hs5-pris tbody th span { font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--color-ink-2); margin-left: 4px; }
.hs5-pris td { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--color-ink); }
.hs5-pris-not { margin-top: var(--space-4); font-size: 0.875rem; color: var(--color-ink-2); }
