/* ============================================================
   Bygg & Håndverk Design: hf.css (22.11.2026). The step form (form.hf) in the hero and in the contact section of the front page,
   and the contact section itself (.k6), built after the two pictures Sverre sent 22.11.2026. The form card is the one from the
   Bygglund site (css/hero.css there, 22.11.2026), in this site's tokens (css/tokens.css, HF-TOKENS). Blue marks a chosen answer
   and the buttons are navy (Sverre 22.11.2026: «gå også for blå i kontaktskjemaet i stedet for rød (psykologi)»).
   ============================================================ */
/* ---------- the form card ---------- */
.hf {
  position: relative; min-width: 0;
  padding: clamp(0.95rem, 2.5svh, 1.6rem) clamp(1.1rem, 1.7vw, 1.65rem) clamp(0.8rem, 1.9svh, 1.25rem);
  border-radius: var(--radius-skjema); background: var(--hf-flate); color: var(--hf-tekst);
  box-shadow: 0 30px 70px -24px var(--hf-skygge), 0 2px 0 var(--hf-kant-lys) inset;
  --fokus: var(--hf-valgt);
  scroll-margin-top: calc(var(--meny-h) + 1rem);
  margin-bottom: clamp(84px, 12.2svh, 128px);
}
.hf-topp { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hf-merke {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.38rem 0.95rem 0.38rem 0.7rem; border-radius: var(--radius-pille);
  background: var(--hf-merke-flate); color: var(--hf-tekst);
  font-size: clamp(0.88rem, min(1.02vw, 1.9svh), 1rem); font-weight: 600; line-height: 1.2;
}
.hf-merke svg { flex: none; width: 1.15em; height: 1.15em; fill: var(--hf-valgt); }
/* how far one has come: a slim bar that fills one part per step (transform only) */
.hf-fremdrift { flex: 0 1 9rem; height: 6px; border-radius: var(--radius-pille); background: var(--hf-kant); overflow: hidden; }
.hf-fremdrift span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--hf-valgt); transform: scaleX(0.2); transform-origin: 0 50%; }
html.js-anim .hf-fremdrift span { transition: transform 0.45s var(--mykt); }

.hf-steg { margin: 0; padding: 0; border: 0; min-width: 0; min-inline-size: 0; }
.hf-steg + .hf-steg { margin-top: 1.4rem; }
.hf-tittel {
  display: block; width: 100%; margin: 0; padding: clamp(0.6rem, 1.9svh, 1.15rem) 0 0;
  font-size: clamp(1.3rem, min(1.92vw, 3.5svh), 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--hf-tekst);
}
.hf-under { margin: clamp(0.2rem, 0.8svh, 0.5rem) 0 0; font-size: clamp(0.95rem, min(1.12vw, 2.05svh), 1.1rem); line-height: 1.35; color: var(--hf-tekst-2); }
.hf-under a { color: inherit; font-weight: 600; white-space: nowrap; }

.hf-fliser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(0.45rem, 1.3svh, 0.85rem) clamp(0.5rem, 0.9vw, 0.9rem); margin-top: clamp(0.65rem, 1.9svh, 1.15rem); }
.hf-fliser.hf-rad { grid-template-columns: minmax(0, 1fr); }
.hf-flis {
  position: relative; display: flex; align-items: center; gap: clamp(0.5rem, 0.85vw, 0.8rem); min-width: 0;
  min-height: clamp(44px, 6.5svh, 64px); padding: 0 clamp(0.55rem, 0.9vw, 0.9rem) 0 clamp(0.65rem, 1.05vw, 1rem);
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font-size: clamp(0.9rem, min(1.14vw, 2.1svh), 1.1rem); font-weight: 500; line-height: 1.15; color: var(--hf-tekst);
  cursor: pointer; transition: border-color 0.2s var(--mykt), background-color 0.2s var(--mykt), box-shadow 0.2s var(--mykt);
}
.hf-flis:hover { border-color: var(--hf-kant-sterk); }
.hf-flis input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hf-flis svg { flex: none; width: clamp(1.4rem, 2.05vw, 1.95rem); height: clamp(1.4rem, 2.05vw, 1.95rem); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hf-flis svg.prikker { fill: currentColor; stroke: none; }
.hf-flis > span { flex: 1; min-width: 0; }
/* the tick: a filled round mark that only shows on the chosen answer */
.hf-flis i {
  position: absolute; right: clamp(0.5rem, 0.8vw, 0.85rem); top: 50%; width: clamp(1.1rem, 1.6vw, 1.45rem); height: clamp(1.1rem, 1.6vw, 1.45rem); margin-top: calc(clamp(1.1rem, 1.6vw, 1.45rem) / -2);
  border-radius: 50%; background: var(--hf-valgt); opacity: 0; transform: scale(0.6); pointer-events: none;
  transition: opacity 0.2s var(--mykt), transform 0.25s var(--mykt);
}
.hf-flis i::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 44%; height: 24%;
  border-left: 2px solid var(--hvit); border-bottom: 2px solid var(--hvit); transform: translate(-50%, -50%) rotate(-45deg);
}
.hf-flis:has(input:checked) { border-color: var(--hf-valgt); background: var(--hf-valgt-flate); box-shadow: 0 0 0 1px var(--hf-valgt); }
.hf-flis:has(input:checked) i { opacity: 1; transform: none; }
.hf-flis:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 2px; }

.hf-felt { margin-top: clamp(0.55rem, 1.6svh, 0.9rem); }
.hf-felt label { display: block; margin-bottom: 0.25rem; font-size: 0.92rem; font-weight: 600; color: var(--hf-tekst-2); }
.hf-felt input {
  display: block; width: 100%; min-height: clamp(44px, 6.3svh, 54px); padding: 0 0.9rem;
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font: inherit; font-size: 1.05rem; color: var(--hf-tekst);
}
.hf-felt input:focus, .hf-felt textarea:focus { outline: none; border-color: var(--hf-valgt); box-shadow: 0 0 0 1px var(--hf-valgt); }
.hf-felt input.har-feil, .hf-felt textarea.har-feil { border-color: var(--hf-feil); box-shadow: 0 0 0 1px var(--hf-feil); }
/* the last step: more about the job, with no limit on the text (the field grows as one writes, then scrolls, and can be dragged
   taller), and the photos */
.hf-felt label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.hf-valgfritt { font-weight: 400; color: var(--hf-dempet); }
.hf-felt textarea {
  display: block; width: 100%; min-height: clamp(6.5rem, 17svh, 9rem); max-height: clamp(9rem, 27svh, 15rem); padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--hf-kant); border-radius: var(--radius-flis); background: var(--hvit);
  font: inherit; font-size: 1.05rem; line-height: 1.45; color: var(--hf-tekst); resize: vertical; overflow-y: auto;
}
.hf .bilder-rad { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.hf .bilder-inndata { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.hf .bilder-knapp {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; min-height: clamp(44px, 6svh, 50px); padding: 0 1.05rem;
  border: 1.5px dashed var(--hf-kant-sterk); border-radius: var(--radius-flis); background: var(--hvit);
  font-size: 1rem; font-weight: 600; color: var(--hf-tekst); cursor: pointer; transition: border-color 0.2s var(--mykt);
}
.hf .bilder-knapp:hover { border-color: var(--hf-valgt); }
.hf .bilder-knapp svg { flex: none; width: 1.3rem; height: 1.3rem; }
.hf .bilder-inndata:focus-visible + .bilder-knapp { outline: 2px solid var(--fokus); outline-offset: 2px; }
.hf .bilder-hint { margin: 0; font-size: 0.9rem; line-height: 1.35; color: var(--hf-dempet); }
.hf .bilder-liste { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0.55rem 0.6rem 0 0; list-style: none; }
.hf .bilder-liste li { position: relative; width: 52px; height: 52px; }
.hf .bilder-liste img, .hf .bilde-tom { display: block; width: 100%; height: 100%; border: 1px solid var(--hf-kant-sterk); border-radius: 8px; object-fit: cover; }
.hf .bilde-tom { background: var(--hf-merke-flate); }
.hf .bilde-fjern {
  position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 2px solid var(--hvit); border-radius: 50%; background: var(--hf-knapp); color: var(--hvit); cursor: pointer;
}
.hf .bilde-fjern svg { width: 13px; height: 13px; }

.hf-feil { margin: 0.7rem 0 0; font-size: 0.95rem; font-weight: 500; line-height: 1.35; color: var(--hf-feil); }
.hf-feil a { color: inherit; font-weight: 600; white-space: nowrap; }

.hf-fot { display: flex; gap: 0.6rem; margin-top: clamp(0.75rem, 2.2svh, 1.4rem); }
.hf-neste, .hf-tilbake {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: clamp(48px, 7svh, 62px); border-radius: var(--radius-pille); cursor: pointer;
  font: inherit; font-size: clamp(1.02rem, min(1.2vw, 2.2svh), 1.18rem); font-weight: 600;
  transition: background-color 0.25s var(--mykt), border-color 0.25s var(--mykt), color 0.25s var(--mykt);
}
.hf-neste { flex: 1; border: 0; background: var(--hf-knapp); color: var(--hvit); }
.hf-neste:hover { background: var(--hf-knapp-2); }
.hf-neste[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.hf-neste svg, .hf-tilbake svg { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--mykt); }
.hf-neste:hover svg { transform: translateX(4px); }
.hf-tilbake { flex: none; width: clamp(48px, 7svh, 62px); padding: 0; border: 1.5px solid var(--hf-kant-sterk); background: transparent; color: var(--hf-tekst); }
.hf-tilbake:hover { border-color: var(--hf-tekst); }

.hf-trygg { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: clamp(0.5rem, 1.5svh, 0.95rem) 0 0; font-size: 0.86rem; color: var(--hf-tekst-2); }
.hf-trygg svg { flex: none; width: 1.05em; height: 1.05em; fill: var(--hf-tekst); stroke: var(--hf-tekst); stroke-width: 1.4; stroke-linejoin: round; fill-opacity: 0.9; }
.hf-trygg a { color: inherit; text-decoration: none; }
.hf-trygg a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hf-takk { display: grid; justify-items: center; align-content: center; text-align: center; min-height: clamp(16rem, 44svh, 24rem); outline: none; }
.hf-takk svg { width: 3.4rem; height: 3.4rem; fill: none; stroke: var(--ja); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hf-takk .hf-tittel { padding-top: 1rem; }
.hf-felle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hf [hidden] { display: none !important; }
/* before the script has started the form (it sets data-hf-na) only the first step shows, so nothing jumps when the others are
   hidden; without JavaScript (no .js on html) every step shows and the form posts as it is */
html.js:not(.hf-uten) .hf:not([data-hf-na]) .hf-steg ~ .hf-steg { display: none; }
/* the button: in the markup it says «Send forespørsel» (what it does without the script); with the script on its way it says
   «Neste steg» from the first paint. If the script file fails to load (.hf-uten, set by the script tag), the plain form stands */
html.js:not(.hf-uten) .hf:not([data-hf-na]) [data-hf-neste-tekst] { display: inline !important; }
html.js:not(.hf-uten) .hf:not([data-hf-na]) [data-hf-send-tekst] { display: none; }
.hf-steg:focus { outline: none; }
/* a browser without :has(): the tick still shows, and the tile one is on gets a ring */
@supports not selector(:has(a)) {
  .hf-flis input:checked ~ i { opacity: 1; transform: none; }
  .hf-flis input:checked ~ span { font-weight: 600; }
  .hf-flis:focus-within { outline: 2px solid var(--fokus); outline-offset: 2px; }
}

/* the step that comes in: a short slide, behind html.js-anim */
html.js-anim .hf-steg.er-ny { animation: hf-inn 0.36s var(--mykt) both; }
html.js-anim .hf-steg.er-ny.bakover { animation-name: hf-inn-bak; }
@keyframes hf-inn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hf-inn-bak { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ---------- this site's own shape of the card ---------- */
.hf { margin-bottom: 0; font-family: var(--skrift); }
/* the focus ring: blue inside the card, white on the night shade round it (code review 22.11.2026: the page's pale timber ring was 1.7 to 1 on the card) */
.k6 :focus-visible { outline-color: var(--hvit); }
.hf :focus-visible, .k6 .hf :focus-visible { outline-color: var(--fokus); }
.hf input, .hf textarea, .hf button { font-family: inherit; }
.hf-merke { display: flex; align-items: center; gap: 0.9rem; margin: 0; padding: 0; border-radius: 0; background: none; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--hf-tekst); }
.hf-merke::before { content: ""; flex: none; width: clamp(2.6rem, 4.6vw, 4.6rem); height: 2px; background: var(--rod-lys); }
.hf-tittel { font-weight: 700; letter-spacing: -0.015em; }
.hf-fliser.hf-uten-ikon .hf-flis { padding-left: clamp(0.9rem, 1.3vw, 1.2rem); }
.hf-flis svg { stroke-width: 1.5; }
.hf-flis > span { padding-right: 1.5rem; }
.hf-to { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(0.6rem, 1vw, 0.95rem); }
.hf-trygg a { text-underline-offset: 3px; }
.hf-takk a, .hf-feil a { color: inherit; font-weight: 600; white-space: nowrap; }

/* ---------- the contact section (.k6): the kitchen out of focus, the words, the form with numbered steps ---------- */
.k6 { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: calc(100svh - var(--meny-h)); padding: clamp(1.4rem, 4.2svh, 4.5rem) var(--kant); background: var(--h6-natt); color: var(--tekst-lys); scroll-margin-top: var(--meny-h); }
.k6-bak { position: absolute; inset: 0; z-index: -2; }
.k6-bak img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k6::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--h6-slor-1) 0%, var(--h6-slor-2) 34%, var(--h6-slor-3) 62%, var(--h6-slor-5) 100%); }
.k6-ramme { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(2rem, 4.6vw, 5.5rem); align-items: center; width: 100%; max-width: 110rem; margin: 0 auto; }
.k6-tekst { min-width: 0; }
.k6-merke { position: relative; display: flex; align-items: center; gap: 1.2rem; margin: 0; font-size: clamp(0.9rem, 1.1vw, 1.08rem); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.k6-merke::before { content: ""; flex: none; width: clamp(2.6rem, 4.2vw, 4.2rem); height: 2px; background: var(--rod-lys); }
.k6-merke::after { content: ""; position: absolute; left: 0; bottom: 50%; width: 1px; height: 60vh; background: linear-gradient(to top, var(--h6-skille), transparent); }
.k6-tittel { margin: clamp(1rem, 3svh, 2rem) 0 0; font-size: clamp(2.3rem, min(5.1vw, 9.6svh), 5.6rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.k6-tittel strong { position: relative; font-weight: 700; white-space: nowrap; }
.k6-tittel strong::after { content: ""; position: absolute; left: -0.02em; right: -0.04em; bottom: -0.16em; height: 0.13em; background: var(--rod-lys); border-radius: 60% 40% 55% 45% / 100% 80% 100% 70%; transform: rotate(-0.6deg); }
.k6-ingress { margin: clamp(1.1rem, 3.4svh, 2.2rem) 0 0; max-width: 24em; font-size: clamp(1.125rem, min(1.6vw, 3svh), 1.6rem); line-height: 1.42; color: var(--tekst-lys-sterk); }
.k6-tillit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 0; margin-top: clamp(1.6rem, 5svh, 3.2rem); }
.k6-google, .k6-mester { display: flex; align-items: center; gap: 0.9rem; }
.k6-google { padding-right: clamp(1.2rem, 2.4vw, 2.6rem); }
.k6-mester { padding-left: clamp(1.2rem, 2.4vw, 2.6rem); border-left: 1px solid var(--h6-skille); }
.k6-tillit p { display: grid; gap: 0.15rem; margin: 0; font-size: clamp(0.95rem, 1.1vw, 1.08rem); line-height: 1.25; color: var(--tekst-lys-sterk); }
.k6-tillit b { font-weight: 600; color: var(--tekst-lys); }
.k6-mester b { font-size: 1.12em; }
.k6-tall { display: flex; align-items: center; gap: 0.6rem; }
.k6-tall b { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1; font-weight: 600; }
.g-merke { flex: none; width: clamp(2.6rem, 3.6vw, 3.5rem); height: clamp(2.6rem, 3.6vw, 3.5rem); }
.stjerner { display: inline-flex; gap: 0.12em; font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1; }
.stjerner svg { width: 1em; height: 1em; fill: currentColor; }
.k6 .stjerner { color: var(--stjerne-gul); }
.k6-mester svg, .k6-bevis svg { flex: none; width: clamp(2.3rem, 3.2vw, 3rem); height: clamp(2.3rem, 3.2vw, 3rem); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.k6-bevis { display: flex; gap: 1rem 0; margin: clamp(1.6rem, 5.4svh, 3.4rem) 0 0; padding: 0; list-style: none; }
.k6-bevis li { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; gap: 0.65rem; padding: 0 clamp(0.7rem, 1.25vw, 1.5rem); border-left: 1px solid var(--h6-skille); }
.k6-bevis li:first-child { padding-left: 0; border-left: 0; }
.k6-bevis svg { width: clamp(2rem, 2.7vw, 2.6rem); height: clamp(2rem, 2.7vw, 2.6rem); }
.k6-bevis p { display: grid; margin: 0; font-size: clamp(0.95rem, 1.1vw, 1.08rem); line-height: 1.25; color: var(--tekst-lys-sterk); }
.k6-bevis b { font-weight: 600; color: var(--tekst-lys); }
/* «Gratis befaring» stands in one element (bygg-sider.py lets «gratis» stand only in that phrase); its first line is the strong one */
.k6-bevis .k6-en { display: block; width: min-content; white-space: normal; }
.k6-bevis .k6-en::first-line { font-weight: 600; color: var(--tekst-lys); }

.hf.k6-skjema { display: flex; flex-direction: column; padding: clamp(1rem, 2.7svh, 2.3rem) clamp(1.2rem, 2.3vw, 2.4rem) clamp(0.8rem, 1.9svh, 1.5rem); box-shadow: 0 34px 80px -30px var(--hf-skygge); scroll-margin-top: calc(var(--meny-h) + 1rem); }
.k6-skjema .hf-fremdrift { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.k6-steg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0 0 clamp(0.7rem, 1.8svh, 1.5rem); border-bottom: 1px solid var(--hf-kant); list-style: none; }
.k6-steg li { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.55rem; padding: 0 0.3rem; text-align: center; font-size: clamp(0.82rem, 1.05vw, 1.02rem); line-height: 1.2; color: var(--hf-dempet); transition: color 0.3s var(--mykt); }
.k6-steg li + li::before { content: ""; position: absolute; top: 1.3rem; right: calc(50% + 1.95rem); width: calc(100% - 3.9rem); height: 1.5px; background: var(--hf-kant-sterk); }
.k6-steg b { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1.5px solid var(--hf-kant-sterk); border-radius: 50%; background: var(--hvit); font-size: 1.05rem; font-weight: 600; color: var(--hf-tekst-2); transition: background-color 0.3s var(--mykt), border-color 0.3s var(--mykt), color 0.3s var(--mykt); }
.k6-steg span { max-width: 9.5em; }
.k6-steg .er-na { color: var(--hf-tekst); font-weight: 600; }
.k6-steg .er-na b, .k6-steg .er-ferdig b { background: var(--hf-knapp); border-color: var(--hf-knapp); color: var(--hvit); }
.k6-skjema .hf-kropp { flex: 1; margin-top: clamp(0.3rem, 1svh, 1.2rem); }
.k6-skjema .hf-tittel { padding-top: clamp(0.35rem, 1.2svh, 1rem); font-size: clamp(1.5rem, min(2.3vw, 4.2svh), 2.3rem); }
.k6-skjema .hf-under { font-size: clamp(1rem, 1.25vw, 1.2rem); }
.k6-skjema .hf-fliser { gap: clamp(0.5rem, 1.25svh, 0.9rem) clamp(0.6rem, 1vw, 0.95rem); }
.k6-skjema .hf-flis { min-height: clamp(46px, 5.9svh, 68px); gap: clamp(0.7rem, 1.2vw, 1.3rem); padding-left: clamp(0.8rem, 1.5vw, 1.6rem); font-size: clamp(1rem, 1.25vw, 1.18rem); }
.k6-skjema .hf-flis svg { width: clamp(1.6rem, 2.3vw, 2.2rem); height: clamp(1.6rem, 2.3vw, 2.2rem); }
.k6-skjema .hf-neste, .k6-skjema .hf-tilbake { min-height: clamp(50px, 6.6svh, 66px); font-size: clamp(1.08rem, 1.3vw, 1.22rem); }
.k6-skjema .hf-tilbake { width: clamp(50px, 6.6svh, 66px); }
.k6-skjema .hf-felt textarea { min-height: 3.6rem; max-height: 16rem; }
.k6-skjema .hf-to + .hf-to .hf-felt { margin-top: clamp(0.45rem, 1.2svh, 0.9rem); }
.k6-skjema .hf-takk { flex: 1; min-height: 20rem; }

/* a low, wide window (1210 x 654): the card still stands whole on the screen */
@media (min-width: 1024px) and (max-height: 699px) {
  .k6 { padding-block: 1rem; }
  .k6-steg b { width: 2.2rem; height: 2.2rem; font-size: 0.95rem; }
  .k6-steg li { gap: 0.35rem; }
  .k6-steg li + li::before { top: 1.1rem; right: calc(50% + 1.6rem); width: calc(100% - 3.2rem); }
  .k6-skjema .hf-flis { min-height: 42px; }
  .k6-skjema .hf-fliser { gap: 0.4rem 0.6rem; }
  .k6-skjema .hf-neste, .k6-skjema .hf-tilbake { min-height: 46px; }
  .k6-skjema .hf-tilbake { width: 46px; }
}
@media (max-width: 1023px) {
  .k6 { min-height: 0; padding: 3rem var(--kant) 3.25rem; }
  .k6::before { background: linear-gradient(180deg, var(--h6-slor-1) 0%, var(--h6-slor-2) 100%); }
  .k6-ramme { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; max-width: 44rem; }
  .k6-merke::after { display: none; }
  /* a phone: the form first, so «Gratis befaring» and «Kontakt» in the menu land on it (QA 22.11.2026: it began under the screen) */
  .hf.k6-skjema { order: -1; }
  .k6-skjema .hf-flis, .k6-skjema .hf-neste, .k6-skjema .hf-tilbake { min-height: 56px; }
  .k6-skjema .hf-tilbake { width: 56px; }
}
@media (max-width: 559px) {
  .k6-tittel { font-size: clamp(2.1rem, 10.5vw, 2.9rem); }
  .k6-mester { padding-left: 0; border-left: 0; }
  .k6-google { padding-right: 1.4rem; }
  /* a phone: the three proofs under each other, so none of them breaks into four lines */
  .k6-bevis { display: grid; gap: 0.85rem; }
  .k6-bevis li, .k6-bevis li:first-child { padding: 0; border-left: 0; gap: 0.8rem; }
  .k6-bevis svg { width: 1.9rem; height: 1.9rem; }
  .hf.k6-skjema { padding-inline: 0.95rem; }
  .k6-steg li { font-size: 0.78rem; }
  .k6-steg b { width: 2.2rem; height: 2.2rem; font-size: 0.95rem; }
  .k6-steg li + li::before { top: 1.1rem; right: calc(50% + 1.5rem); width: calc(100% - 3rem); }
  .hf-fliser { gap: 0.5rem; }
  .hf-flis { padding: 0 0.5rem 0 0.6rem; gap: 0.5rem; font-size: 0.94rem; }
  .hf-flis > span { padding-right: 1.2rem; }
  .hf-flis svg { width: 1.4rem; height: 1.4rem; }
  /* the contact section's tiles follow the same phone sizes (its own rules above are stronger than .hf-flis) */
  .k6-skjema .hf-fliser { gap: 0.5rem; }
  .k6-skjema .hf-flis { padding: 0 0.4rem 0 0.55rem; gap: 0.45rem; font-size: 0.88rem; }
  .k6-skjema .hf-flis > span { padding-right: 0.3rem; overflow-wrap: anywhere; }
  .k6-skjema .hf-flis svg { width: 1.4rem; height: 1.4rem; }
  .hf-to { grid-template-columns: minmax(0, 1fr); }
}
