/* ============================================================
   Bygg & Håndverk Design: hero6.css (22.11.2026). The hero of the front page after the picture Sverre sent 22.11.2026 («Lag
   dette som den nye heroen ... prøv å behold alt annet så likt som overhode mulig som det bildet jeg sendte»): the kitchen
   film over the whole screen under a white menu, a night shade on the left with the title (last line red), the review card
   and three proofs, spread evenly down the screen; the form card on the right (css/hf.css, js/hf.js).
   The scroll still walks the camera into the kitchen (js/hero.js, the same engine and gate as H5; «du kan behold det at man
   scrolles inn i kjøkkenet»). Loaded after hero.css, by index.html only. The section keeps the class .hero (the engine's
   states .film-klar and .ferdig and the height of the journey live there); everything inside has its own names (.h6-*).
   ============================================================ */

/* ---------- the menu of the front page: white, with the red button of the picture ---------- */
.forside .meny.meny.meny:not(.apen), .forside .meny.meny.meny.fast:not(.apen) { background: var(--h6-meny); color: var(--tekst); box-shadow: 0 1px 0 var(--linje), 0 10px 30px -18px var(--h6-meny-skygge); }
.forside .meny.meny.meny:not(.apen) .logo-farge { display: block; }
.forside .meny.meny.meny:not(.apen) .logo-lys { display: none; }
.forside .meny.meny.meny:not(.apen) .meny-punkter a { font-weight: 500; }
.forside .meny.meny.meny:not(.apen) .sprak span:not(.pa) { opacity: 0.76; }
.forside .meny.meny.meny:not(.apen) :focus-visible { outline-color: var(--petrol); }
.forside .meny.meny.meny:not(.apen) .meny-befaring, .forside .meny.meny.meny.fast:not(.apen) .meny-befaring { min-height: 3rem; padding: 0 1.15rem 0 1.5rem; gap: 0.35rem; border-radius: var(--radius-pille); background: var(--rod-knapp); color: var(--hvit); font-weight: 600; box-shadow: 0 10px 24px -14px var(--rod-knapp); }
.forside .meny.meny.meny:not(.apen) .meny-befaring::after { display: none; }
.forside .meny.meny.meny:not(.apen) .meny-befaring .knapp-pil { width: 1.6rem; height: 1.6rem; background: none; color: inherit; transition: transform 0.25s var(--mykt); }
.forside .meny.meny.meny:not(.apen) .meny-befaring:hover, .forside .meny.meny.meny:not(.apen) .meny-befaring:focus-visible { background: var(--rod-knapp-2); }
.forside .meny.meny.meny:not(.apen) .meny-befaring:hover .knapp-pil { transform: translateX(3px); }

/* ---------- the scene ---------- */
.hero.h6 { background: var(--h6-natt); color: var(--tekst-lys); }
.h6-scene { position: relative; isolation: isolate; height: 100svh; min-height: 37.5rem; overflow: hidden; background: var(--h6-natt); }
html.js-anim .h6-scene { position: sticky; top: 0; }
.hero.h6 :focus-visible { outline-color: var(--hvit); }
.hero.h6 .hf :focus-visible { outline-color: var(--fokus); }
.h6-film { position: absolute; inset: var(--meny-h) 0 0 0; z-index: -2; overflow: hidden; background: var(--h6-natt); }
.h6-slor { position: absolute; inset: var(--meny-h) 0 0 0; z-index: -1; background: linear-gradient(to top, var(--h6-slor-2) 0%, var(--h6-slor-3) 16%, transparent 34%), linear-gradient(90deg, var(--h6-slor-1) 0%, var(--h6-slor-2) 26%, var(--h6-slor-3) 52%, var(--h6-slor-4) 72%, var(--h6-slor-5) 100%); pointer-events: none; }

.h6-ramme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 36.5%); gap: clamp(1.5rem, 4vw, 5rem); align-items: stretch; height: 100%; padding: calc(var(--meny-h) + clamp(1.1rem, 6svh, 4rem)) var(--kant) clamp(1.1rem, 6svh, 4rem); }
/* the words stand evenly from under the menu to the foot of the screen, and the card in the middle of the same height
   (Sverre 22.11.2026: «fjern denne raden ... gi heller bildet mer plass. og få det til å dekke skjermen så du kan jevne ut teksten nedover») */
.h6-tekst { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-width: 0; }
.hf.h6-skjema { align-self: center; }
.h6-tekst h1 { margin: 0; font-weight: 700; }
.h6-merke { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(0.5rem, 1.6svh, 1rem); font-size: clamp(0.85rem, min(1.1vw, 2.1svh), 1.1rem); font-weight: 500; letter-spacing: 0.05em; line-height: 1.2; text-transform: uppercase; }
.h6-merke::before { content: ""; flex: none; width: clamp(2.6rem, 4.6vw, 4.8rem); height: 2px; background: var(--rod-lys); }
.h6-linje { display: block; font-size: clamp(2.3rem, min(5.05vw, 9.4svh), 6.2rem); line-height: 1.05; letter-spacing: -0.022em; white-space: nowrap; }
.h6-rod { color: var(--rod-lys); padding-bottom: 0.08em; }
.h6-ingress { margin: clamp(0.8rem, 2.9svh, 1.7rem) 0 0; font-size: clamp(1.125rem, min(1.55vw, 2.9svh), 1.6rem); line-height: 1.35; color: var(--tekst-lys); }

.h6-omtale { display: inline-flex; align-items: center; max-width: 100%; margin-top: clamp(1rem, 3.6svh, 2.2rem); padding: clamp(0.65rem, 1.9svh, 1.15rem) clamp(1rem, 1.5vw, 1.5rem); border-radius: 18px; background: var(--h6-kort); color: var(--hf-tekst); box-shadow: 0 22px 50px -26px var(--hf-skygge); }
.h6-omtale-g { display: flex; align-items: center; gap: 0.85rem; padding-right: clamp(1rem, 1.9vw, 1.9rem); }
.h6-omtale-g .g-merke { width: clamp(2.4rem, 3.2vw, 3.1rem); height: clamp(2.4rem, 3.2vw, 3.1rem); }
.h6-omtale-g p { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.h6-omtale-g b { font-size: clamp(1.4rem, 1.9vw, 1.85rem); line-height: 1; font-weight: 600; }
.h6 .stjerner { color: var(--rod-stjerne); }
.h6-sitat { margin: 0; padding-left: clamp(1rem, 1.9vw, 1.9rem); border-left: 1px solid var(--hf-kant-sterk); }
.h6-sitat p { margin: 0; max-width: 17.5em; font-size: clamp(0.98rem, min(1.14vw, 2.2svh), 1.12rem); font-weight: 500; line-height: 1.3; }
.h6-sitat footer { margin-top: 0.2rem; font-size: 0.92rem; color: var(--hf-dempet); }

.h6-bevis { display: flex; margin: clamp(1rem, 3.7svh, 2.3rem) 0 0; padding: 0; list-style: none; }
.h6-bevis li { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; gap: 0.8rem; padding: 0.1rem clamp(0.9rem, 1.9vw, 2.2rem); border-left: 1px solid var(--h6-skille); }
.h6-bevis li:first-child { padding-left: 0; border-left: 0; }
.h6-bevis svg { flex: none; width: clamp(2rem, 2.9vw, 2.8rem); height: clamp(2rem, 2.9vw, 2.8rem); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.h6-bevis p { display: grid; margin: 0; font-size: clamp(0.92rem, min(1.08vw, 2.1svh), 1.08rem); line-height: 1.25; color: var(--tekst-lys); }
.h6-bevis b { font-weight: 600; color: var(--tekst-lys); }

/* ---------- the form card in the hero ---------- */
.hf.h6-skjema { padding: clamp(0.95rem, 3svh, 1.9rem) clamp(1.1rem, 1.9vw, 1.9rem) clamp(0.75rem, 1.9svh, 1.3rem); border-radius: var(--radius-skjema); box-shadow: 0 34px 80px -28px var(--hf-skygge); }
.h6-skjema .hf-topp { gap: 1rem; }
.h6-skjema .hf-fremdrift { flex: 0 1 7rem; }
.h6-skjema .hf-tittel { padding-top: clamp(0.4rem, 1.5svh, 0.9rem); font-size: clamp(1.4rem, min(2.3vw, 4.1svh), 2.25rem); }
.h6-skjema .hf-under { font-size: clamp(0.95rem, min(1.2vw, 2.2svh), 1.16rem); }
.h6-skjema .hf-fliser { gap: clamp(0.4rem, 1.3svh, 0.85rem) clamp(0.5rem, 0.8vw, 0.75rem); margin-top: clamp(0.6rem, 2svh, 1.2rem); }
.h6-skjema .hf-flis { min-height: clamp(44px, 7.4svh, 70px); font-size: clamp(0.88rem, min(1.04vw, 2svh), 1.02rem); gap: clamp(0.45rem, 0.7vw, 0.7rem); padding-left: clamp(0.55rem, 0.8vw, 0.8rem); }
.h6-skjema .hf-flis > span { padding-right: 0.5rem; }
.h6-skjema .hf-flis svg { width: clamp(1.4rem, 2vw, 1.9rem); height: clamp(1.4rem, 2vw, 1.9rem); }
.h6-skjema .hf-felt textarea { min-height: 5.5rem; max-height: 11rem; }
.h6-skjema .hf-takk { min-height: clamp(16rem, 46svh, 24rem); }

/* a low window */
@media (min-width: 1024px) and (max-height: 699px) {
  .h6-ramme { padding-top: calc(var(--meny-h) + 1rem); padding-bottom: 1rem; }
}

/* ---------- a phone, a standing screen and a very low window: no journey, the form under the words ---------- */
@media (max-width: 1023px), (max-aspect-ratio: 13/10), (max-height: 579px) {
  html.js-anim .hero.h6 { height: auto; }
  html.js-anim .h6-scene, .h6-scene { position: relative; height: auto; min-height: 0; }
  .h6-film { inset: var(--meny-h) 0 auto 0; height: min(88svh, 44rem); }
  .h6-slor { inset: var(--meny-h) 0 auto 0; height: min(88svh, 44rem); background: linear-gradient(180deg, var(--h6-slor-2) 0%, var(--h6-slor-2) 55%, var(--h6-natt) 100%); }
  .h6-ramme { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; height: auto; max-width: 46rem; margin: 0 auto; padding: calc(var(--meny-h) + 1.6rem) var(--kant) 2rem; }
  .h6-tekst { padding-top: 0; }
  .h6-linje { font-size: clamp(2.1rem, 9.6vw, 4rem); white-space: normal; }
  .h6-omtale { margin-top: 1.4rem; }
  .h6-bevis { margin-top: 1.5rem; }
  .h6-skjema .hf-flis, .h6-skjema .hf-neste, .h6-skjema .hf-tilbake { min-height: 56px; }
  .h6-skjema .hf-tilbake { width: 56px; }
  .hero.h6 .hero-pause { top: calc(var(--meny-h) + 0.6rem); right: 0.6rem; bottom: auto; z-index: 3; }
}
@media (max-width: 559px) {
  .h6-omtale { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .h6-sitat { padding-left: 0; padding-top: 0.7rem; border-left: 0; border-top: 1px solid var(--hf-kant); }
  .h6-merke { padding-right: 3.4rem; }   /* the pause button of the clip stands in the corner */
  /* a phone: the three proofs under each other, so none of them breaks into four lines */
  .h6-bevis { display: grid; gap: 0.8rem; }
  .h6-bevis li, .h6-bevis li:first-child { padding: 0; border-left: 0; }
  .h6-bevis svg { width: 1.9rem; height: 1.9rem; }
  .h6-bevis p { font-size: 0.95rem; }
  .hf.h6-skjema { padding-inline: 0.95rem; }
}

/* ---------- without JavaScript, or when js/hf.js did not load: every step of the form shows, so the hero is as tall as the
   card and nothing is cut (code review 22.11.2026: the card was 1519 px in a scene of 778 px with overflow hidden) ---------- */
html:not(.js) .hero.h6, html.hf-uten .hero.h6 { height: auto; }
html:not(.js) .h6-scene, html.hf-uten .h6-scene { position: relative; height: auto; min-height: 100svh; }
html:not(.js) .h6-film, html.hf-uten .h6-film, html:not(.js) .h6-slor, html.hf-uten .h6-slor { inset: var(--meny-h) 0 auto 0; height: calc(100svh - var(--meny-h)); }
html:not(.js) .h6-ramme, html.hf-uten .h6-ramme { height: auto; align-items: start; }
html:not(.js) .h6-tekst, html.hf-uten .h6-tekst { justify-content: flex-start; gap: clamp(1.2rem, 4svh, 2.4rem); }
html:not(.js) .hf.h6-skjema, html.hf-uten .hf.h6-skjema { align-self: start; }
