/* Bygglund: the sections under the hero, and the footer. Flats in order (neighbours never share one): hero kalk ·
   prosjekter betong · tjenester grafitt · slik kalk (css/slik.css) · vurderinger betong (css/vurderinger.css) · om skifer-dyp · spørsmål kalk · kontakt dis · bunn grafitt.
   Motion only under html.js-anim (js/sider.js); without it every section stands whole and still. */

/* ---------- shared ---------- */
.ramme { width: 100%; max-width: var(--maks); margin: 0 auto; padding: 0 var(--marg); }
.seksjon { position: relative; padding: var(--seksjon-luft) 0; background: var(--flate, var(--kalk)); }
.seksjon-tittel {
  font-size: var(--str-h2); font-weight: var(--vekt-tittel); letter-spacing: var(--sporing-tittel);
  line-height: 1.04; text-wrap: balance;
}
.ingress { font-size: var(--str-ingress); line-height: 1.5; color: var(--tekst-dempet); max-width: 36rem; }
/* a short bar in the accent before a section's label */
.merke-linje { margin-bottom: clamp(0.85rem, 1.6vw, 1.25rem); }
.merke-linje::before { content: ""; width: 1.75rem; height: 3px; background: var(--aksent); flex: none; }
.lenke-pil {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--linje-sterk); transition: border-color 0.25s var(--mykt), gap 0.25s var(--mykt);
}
.lenke-pil::after {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lenke-pil:hover { border-bottom-color: currentColor; gap: 0.75rem; }

/* reveals: hidden only once sider.js runs (.sider-klar), so a page without the script stands whole */
html.js-anim.sider-klar [data-vis] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s var(--mykt) var(--forsink, 0s), transform 0.9s var(--mykt) var(--forsink, 0s);
}
html.js-anim.sider-klar [data-vis].vist { opacity: 1; transform: none; }
/* the section titles: each word rises out of its own line (sider.js splits them; --i is the word's place) */
html.js-anim.sider-klar [data-ord] .tord { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.05em 0.14em; margin: 0 -0.05em -0.14em; }
html.js-anim.sider-klar [data-ord] .tord > span {
  display: inline-block; transform: translate3d(0, 112%, 0);
  transition: transform 1s var(--mykt) calc(0.12s + var(--i, 0) * 0.06s);
}
html.js-anim.sider-klar [data-ord].vist .tord > span { transform: none; }

/* ---------- projects: six tall fields side by side, and the scroll opens them one by one, left to right (js/prosjektrad.js), with the
   open job's text standing to the left (Sverre 06.11.2026: «prøv noe helt annerledes og cleanere når du viser frem prosjekter på
   bygglund siden»). Without the script or with reduced motion: a plain grid of cards. On a phone: a row you swipe sideways, which the
   page scrolls straight past. ---------- */
.prosjekter { --flate: var(--betong); --pr-v: clamp(17rem, 21vw, 20rem); --pr-bunn: clamp(0.9rem, 3svh, 1.75rem); background: var(--flate); }
.pr-scene { max-width: var(--maks); margin: 0 auto; padding: var(--seksjon-luft) var(--marg); }
.pr-venstre { display: grid; justify-items: start; gap: 0.9rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.pr-venstre .merke { margin: 0; }
.pr-venstre .seksjon-tittel { margin: 0; }
.pr-rad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
.pr-felt { min-width: 0; --fok: 0.5; }
.pr-bilde { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--betong-2); }
.pr-bilde:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
.pr-indre { position: absolute; inset: 0; display: block; }
.pr-indre img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: calc(var(--fok) * 100%) 50%; }
.pr-par { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--betong); }
.pr-halv { position: relative; display: block; overflow: hidden; min-width: 0; }
.pr-halv img { object-position: 50% 50%; }
.pr-etikett {
  position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.2rem 0.55rem; border-radius: var(--radius); background: var(--slor);
  color: var(--tekst-lys); font-size: 0.82rem; font-weight: 500; line-height: 1.3;
}
.pr-tekst { display: grid; justify-items: start; gap: 0.6rem; margin-top: 1rem; }
.pr-nr { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--aksent); }
.pr-tekst h3 { font-size: var(--str-h3); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.pr-brod { color: var(--tekst-dempet); }
.pr-merker { font-size: 0.92rem; line-height: 1.45; color: var(--tekst-dempet); }
.pr-tekst .lenke-pil { margin-top: 0.2rem; }

@media (max-width: 899px) { .pr-rad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  /* on a phone the six jobs lie under each other, each picture across the whole screen with its own text under it, so all six are
     seen just by scrolling down and each stays on the screen for a long stretch of scroll (Sverre 07.11.2026: «Når man går gjennom
     prosjekte blir bildene for små for fort. de bør være veldig synlige når man scroller forbi de og ha nok tid til å se på de
     nøye.»). The two wide photos keep more of their width */
  .pr-rad { grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-inline: calc(var(--marg) * -1); }
  .pr-bilde { border-radius: 0; }
  .pr-bilde[href$="#terrasse"], .pr-bilde[href$="#enebolig"] { aspect-ratio: 1 / 1; }
  .pr-tekst { padding-inline: var(--marg); }
  .pr-merker { font-size: var(--str-tekst); line-height: 1.5; }
}

/* the moving version, on a screen that can hold it */
@media (min-width: 900px) and (min-height: 560px) {
  html.js-anim .prosjekter { --pr-reise: 5; }   /* about 0.9 of a screen per job: six big pictures take the scroll six big pictures would (Sverre 07.11.2026) */
  html.js-anim .pr-spor { height: calc(100svh * (1 + var(--pr-reise))); }
  html.js-anim .pr-scene {
    position: sticky; top: 0; height: 100svh; max-width: 110rem; overflow: hidden;   /* the fields' full width stays inside the scene */
    display: grid; grid-template-columns: var(--pr-v) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: clamp(1.75rem, 3.2vw, 3.5rem);
    padding: calc(var(--meny-h) + clamp(0.6rem, 2.2svh, 1.25rem)) var(--marg) var(--pr-bunn);
  }
  html.js-anim .pr-venstre { align-content: start; margin: 0; }
  html.js-anim .pr-venstre .seksjon-tittel { font-size: clamp(1.9rem, min(1.1rem + 1.7vw, 6svh), 3.25rem); line-height: 1.08; }
  html.js-anim .pr-rad { display: block; min-width: 0; min-height: 0; }
  html.js-anim .pr-felt { display: block; height: 0; }
  /* js/prosjektrad.js gives each field its place, width and height: the picture stands still and the field opens round it */
  html.js-anim .pr-bilde { position: absolute; left: 0; top: 0; aspect-ratio: auto; background: var(--betong-2); will-change: transform; contain: layout paint; cursor: pointer; }
  html.js-anim .pr-indre { will-change: transform; }
  html.js-anim .pr-tekst {
    position: absolute; left: var(--marg); bottom: var(--pr-bunn); width: var(--pr-v); margin: 0;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.22s var(--mykt), transform 0.22s var(--mykt);
  }
  html.js-anim .pr-felt.aktiv .pr-tekst {
    opacity: 1; transform: none; pointer-events: auto;
    transition: opacity 0.4s var(--mykt) 0.08s, transform 0.4s var(--mykt) 0.08s;
  }
  html.js-anim .pr-tekst h3 { font-size: clamp(1.35rem, min(0.95rem + 0.9vw, 4.2svh), 1.9rem); }
  html.js-anim .pr-brod { font-size: clamp(1.0625rem, 2.7svh, 1.125rem); line-height: 1.5; }
}
/* a lower window: the trades give way to the text */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 619px) {
  html.js-anim .pr-merker { display: none; }
}

/* ---------- services: the four groups in one frame ---------- */
.tjenester { --flate: var(--grafitt); color: var(--tekst-lys); --fokus: var(--is); --aksent: var(--is); }
.tj-topp { display: grid; gap: 1.25rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .tj-topp { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); } }
.tj-ingress { color: var(--tekst-lys-dempet); font-size: var(--str-ingress); line-height: 1.5; }
.tj-rad { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tj-rad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tj-rad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tj-kort { position: relative; display: flex; flex-direction: column; background: var(--grafitt-2); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--meny-h) + 1rem); }
.tj-bilde { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grafitt-3); }
.tj-indre { position: absolute; inset: 0; }
.tj-indre img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--mykt); }
@media (hover: hover) { .tj-kort:hover .tj-indre img { transform: scale(1.05); } }
/* the photo settles from a little close while the card rises into view (sider.js sets --p on the row) */
html.js-anim .tj-indre { transform: scale(calc(1.1 - 0.1 * var(--p, 1))); transform-origin: 50% 70%; }
.tj-tekst { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: clamp(1.25rem, 2vw, 1.75rem); }
.tj-nr { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--aksent); font-variant-numeric: tabular-nums; }
.tj-tekst h3 { font-size: var(--str-h3); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.tj-brod { color: var(--tekst-lys-dempet); font-size: var(--str-tekst); line-height: 1.5; }
.tj-liste { display: grid; gap: 0.35rem; margin-top: 0.25rem; padding-top: 0.9rem; border-top: 1px solid var(--linje-lys); font-size: 0.95rem; }
.tj-liste li { display: flex; gap: 0.6rem; align-items: baseline; }
.tj-liste li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--aksent); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateY(-1px); }
.tj-lenke {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 1rem;
  font-weight: 500; text-decoration: none; color: var(--tekst-lys);
}
.tj-lenke span { border-bottom: 1px solid var(--linje-lys); padding-bottom: 0.2rem; transition: border-color 0.25s var(--mykt); }
.tj-lenke svg { width: 18px; height: 18px; transition: transform 0.25s var(--mykt); }
.tj-lenke:hover span, .tj-kort:hover .tj-lenke span { border-bottom-color: var(--aksent); }
.tj-lenke:hover svg, .tj-kort:hover .tj-lenke svg { transform: translateX(4px); }
/* the whole card is the link to its service page (Sverre 04.11.2026: «Gjør det mulig å trykke på tjenestekortene og at de har
   undersider»); the focus ring goes round the card */
.tj-lenke::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tj-lenke:focus-visible { outline: none; }
.tj-kort:focus-within { outline: 2px solid var(--fokus); outline-offset: 3px; }
/* the smaller cards under the four groups: more of what Bygglund does, each a link to its place on a service page
   (Sverre 04.11.2026: «noen mindre kort under f. eks som sier flere ting hadde vært ideelt») */
/* «Mer vi gjør» lies on a deeper band edge to edge, and the cards are a quiet grid of hairlines instead of raised cards, so
   it stands apart from the four photo cards above (Sverre 05.11.2026: «gi "mer vi gjør" en litt mørkere tone som står i fin
   kontrast til tjenestene over designmessig»). The band runs to the section's foot; box-shadow and clip-path carry it to the
   window's edges without widening the page. */
.tjenester { padding-bottom: 0; }
.tj-smaa {
  --band: var(--skifer-dyp);
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 var(--seksjon-luft);
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.tj-smaa-topp { display: grid; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 900px) { .tj-smaa-topp { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.tj-smaa-tittel { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); font-weight: var(--vekt-tittel); letter-spacing: var(--sporing-tittel); line-height: 1.1; }
.tj-smaa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; color: var(--tekst-lys-dempet); }
.tj-smaa-rad {
  display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--linje-lys); border: 1px solid var(--linje-lys); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 1024px) { .tj-smaa-rad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tj-smaakort {
  display: grid; align-content: start; gap: 0.4rem; height: 100%; padding: clamp(1.1rem, 2vw, 1.6rem);
  background: var(--band); color: var(--tekst-lys); text-decoration: none;
  transition: background-color 0.25s var(--mykt);
}
@media (min-width: 640px) { .tj-smaakort { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.95rem; } }
.tj-smaakort:hover { background: var(--grafitt); }
.tj-smaakort:focus-visible { outline: 2px solid var(--fokus); outline-offset: -4px; }
.tj-ikon { width: 26px; height: 26px; margin-bottom: 0.35rem; color: var(--is); }
@media (min-width: 640px) { .tj-ikon { grid-row: span 2; margin-bottom: 0; } }
.tj-smaa-alle { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--tekst-lys); border-bottom-color: var(--linje-lys); }
.tj-smaa-navn { font-size: 1.1rem; font-weight: var(--vekt-sterk); line-height: 1.25; }
.tj-smaa-tekst { font-size: 1rem; line-height: 1.45; color: var(--tekst-lys-dempet); }

/* ---------- about us: the statement, the facts and the map, on the slate of the evening photo ---------- */
.om { --flate: var(--skifer-dyp); color: var(--tekst-lys); --fokus: var(--is); --aksent: var(--is); }
.om .merke-linje { color: var(--tekst-lys-dempet); }
.om-utsagn {
  max-width: 22ch; font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem); font-weight: var(--vekt-tittel);
  letter-spacing: var(--sporing-tittel); line-height: 1.06; text-wrap: balance;
}
/* the statement's words light up one by one as it rises (sider.js splits it); unlit words stand dim */
html.js-anim .om-utsagn .ord { opacity: 0.42; transition: opacity 0.35s var(--mykt); }   /* 3:1 or better for the large type, also unlit */
html.js-anim .om-utsagn .ord.lys { opacity: 1; }
.om-rad { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) {
  .om-rad { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: stretch; }
  .om-tekst { display: flex; flex-direction: column; }
}
.om-brod { color: var(--tekst-lys-dempet); max-width: 34rem; }
.om-brod + .om-brod { margin-top: 1rem; }
/* the finest house under the text (Sverre 07.11.2026); beside the facts it fills the column, so both columns share top and bottom */
.om-bilde { position: relative; overflow: hidden; margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--grafitt-2); }
.om-bilde img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 1000px) { .om-bilde { flex: 1 1 clamp(17rem, 44svh, 24rem); aspect-ratio: auto; } }
.om-fakta { display: grid; margin: 0; border-top: 1px solid var(--linje-lys); }
.om-fakta > div { display: grid; gap: 0.25rem 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linje-lys); }
@media (min-width: 560px) { .om-fakta > div { grid-template-columns: 10rem minmax(0, 1fr); } }
.om-fakta dt { font-size: var(--str-merke); font-weight: var(--vekt-merke); letter-spacing: var(--sporing-merke); text-transform: uppercase; color: var(--aksent); padding-top: 0.2rem; }
.om-fakta dd { margin: 0; }
.om-fakta a { color: var(--tekst-lys); text-underline-offset: 3px; text-decoration-color: var(--aksent); }

/* ---------- contact: the stack of cards (css/kortstokk.css) on the pale evening sky ---------- */
.kontakt { --flate: var(--dis); scroll-margin-top: var(--meny-h); }
.ko-rad { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .ko-rad { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.ko-tekst .ingress { margin-top: 1.1rem; }
/* a real frame: a fine edge with a light margin inside (as on the Janis site), only where there is room */
.ko-bilde { display: none; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 7px; background: var(--kort-kald); border: 1px solid var(--linje); }
.ko-bilde img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) { .ko-bilde { display: block; } }
.ko-ring { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.ko-etikett, .ko-fakta dt { font-size: var(--str-merke); font-weight: var(--vekt-merke); letter-spacing: var(--sporing-merke); text-transform: uppercase; color: var(--tekst-dempet); }
.ko-nummer {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 0.35rem; text-decoration: none;
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); font-weight: var(--vekt-tittel); letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.ko-ring-ikon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--grafitt); color: var(--tekst-lys); transition: background-color 0.25s var(--mykt); }
.ko-ring-ikon svg { width: 22px; height: 22px; }
.ko-nummer:hover .ko-ring-ikon { background: var(--skifer); }
.ko-fakta { display: grid; gap: 1rem; margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0; }
.ko-fakta dd { margin: 0.2rem 0 0; }
.ko-fakta a { text-underline-offset: 3px; }
.ko-sitat { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding-top: 1.25rem; border-top: 1px solid var(--linje); }
.ko-sitat blockquote { margin: 0; }
.ko-sitat p { font-size: var(--str-tekst); line-height: 1.55; }
.ko-sitat figcaption { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--tekst-dempet); }
/* hero proposal in Røa's style (22.11.2026): the list under the form is gone and the review stands under the form instead,
   at the foot of the column, so both columns start and end on the same lines */
@media (min-width: 900px) {
  .ko-rad { align-items: stretch; }
  .ko-rad > .hs-kolonne { display: flex; flex-direction: column; gap: 2rem; }
  .ko-rad > .hs-kolonne > .ko-sitat { margin-top: auto; }
}

/* the form's own fields inside «Fortell mer» (from the Røa site) */
.felt { display: grid; gap: 0.45rem; min-width: 0; }
.felt label { font-size: 0.98rem; font-weight: 500; }
.felt input, .felt textarea, .felt select {
  width: 100%; min-height: 52px; padding: 0.8rem 0.95rem; font: inherit; font-size: 1.0625rem; color: var(--tekst);
  background: var(--hvit); border: 1px solid var(--linje-sterk); border-radius: var(--radius);
  transition: border-color 0.2s var(--mykt);
}
.felt textarea { min-height: 8rem; resize: vertical; }
.felt input:hover, .felt textarea:hover, .felt select:hover { border-color: var(--skifer); }
.felt input:focus-visible, .felt textarea:focus-visible, .felt select:focus-visible { outline: 2px solid var(--fokus); outline-offset: 1px; border-color: var(--fokus); }
.felt [aria-invalid="true"] { border-color: var(--feil); }
.kontroll-felt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.felt-navn { font-size: 0.98rem; font-weight: 500; }
.bilder-rad { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.felt .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;
}
.felt .bilder-knapp {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--linje-sterk); border-radius: var(--radius); background: var(--hvit);
  color: var(--tekst); font-size: 1.0625rem; font-weight: 400; cursor: pointer; transition: border-color 0.2s var(--mykt);
}
.felt .bilder-knapp:hover { border-color: var(--skifer); }
.bilder-knapp svg { flex: none; width: 20px; height: 20px; }
.bilder-inndata:focus-visible + .bilder-knapp { border-color: var(--fokus); outline: 2px solid var(--fokus); outline-offset: 1px; }
.bilder-liste { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 8px 8px 0 0; }
.bilder-liste li { position: relative; width: 56px; height: 56px; }
.bilder-liste img, .bilde-tom {
  display: block; width: 100%; height: 100%; border: 1px solid var(--linje-sterk); border-radius: var(--radius); object-fit: cover;
}
.bilde-tom { background: var(--dis-lys); }
.bilde-fjern {
  position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 2px solid var(--hvit); border-radius: 50%; background: var(--skifer); color: var(--tekst-lys); cursor: pointer;
}
.bilde-fjern svg { width: 14px; height: 14px; }
.bilde-fjern:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.bilder-hint { font-size: 0.9rem; line-height: 1.4; color: var(--tekst-dempet); }
.skjema-status { min-height: 1.5em; font-size: 1rem; color: var(--tekst); }
.skjema-status.feil { color: var(--feil); }
.skjema-status a { white-space: nowrap; }

/* ---------- footer ---------- */
.bunn { padding: clamp(3rem, 6vw, 4.5rem) 0 0; background: var(--grafitt); color: var(--tekst-lys); --fokus: var(--is); --aksent: var(--is); overflow: hidden; }
.bunn-rad { display: grid; gap: 2rem; }
@media (min-width: 768px) { .bunn-rad { grid-template-columns: 1.4fr 1fr 1fr; } }
.bunn-logo img { width: clamp(150px, 14vw, 200px); height: auto; }
.bunn-slagord { margin-top: 1rem; max-width: 26rem; color: var(--tekst-lys-dempet); }
.bunn-kol .merke { color: var(--tekst-lys-dempet); margin-bottom: 0.9rem; }
.bunn-kol ul { display: grid; gap: 0.5rem; }
.bunn-kol a { text-decoration: none; }
.bunn-kol a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--aksent); }
.bunn-linje { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid var(--linje-lys); font-size: 0.88rem; color: var(--tekst-lys-dempet); }
.bunn-linje a { color: inherit; }
/* the credit: 2 px over the rest of the row (14.08 px becomes 16.08 on PC, 15 becomes 17 on a phone), both names underlined at rest
   (Sverre 19.11.2026: «litt større enn resten av teksten i bunnsekssjonen og XS Nettsider og Frekvens Digital AS skal ha streker under seg») */
.bunn-kreditt { font-size: calc(1em + 2px); }
.bunn-kreditt a { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }
/* the two names sit inside a sentence: no 44 px touch box on a phone (the rule under 768 px), so a broken line reads as body text */
.bunn-linje .bunn-kreditt a { display: inline; min-height: 0; }
/* the name, large, at the very end: the words come up one by one (sider.js lights them) */
.bunn-ord {
  margin: 0; padding: 0 var(--marg); max-width: var(--maks); margin-inline: auto;
  font-size: clamp(4rem, 15vw, 15rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.82;
  color: var(--skifer-2); white-space: nowrap; transform: translateY(0.12em);
}
.bunn-ord span { display: inline-block; }
html.js-anim.sider-klar .bunn-ord span { transform: translateY(0.35em); opacity: 0; transition: transform 0.9s var(--mykt), opacity 0.9s var(--mykt); }
html.js-anim.sider-klar .bunn-ord span:nth-child(2) { transition-delay: 0.12s; }
html.js-anim.sider-klar .bunn-ord.vist span { transform: none; opacity: 1; }

/* reduced motion: reveals stand */
@media (prefers-reduced-motion: reduce) {
  html.js-anim.sider-klar [data-vis] { opacity: 1; transform: none; transition: none; }
  html.js-anim.sider-klar [data-ord] .tord > span { transform: none; transition: none; }
}

/* ---------- Spørsmål og svar (light grey, between the map and Kontakt): the old site's FAQ page, as native details ---------- */
/* the title, the questions and the link in one column, and Bygglund's brass bathroom beside them, exactly as tall as the column:
   both start and end on the same lines (Sverre 06.11.2026: «denne siden så veldig uryddig ut»; a label, title, link and a cropped
   photo stacked beside a shorter list). The photo stays (05.11.2026: «det er ingen grunn til å ikke vise de aller beste bildene»). */
.faq {
  --flate: var(--valnott); color: var(--valnott-tekst); --aksent: var(--valnott-tekst); --fokus: var(--valnott-tekst);
  --tekst: var(--valnott-tekst); --tekst-dempet: var(--valnott-dempet); --linje: var(--valnott-linje); --linje-sterk: var(--valnott-linje);
}
.faq { scroll-margin-top: 2.5rem; }
.faq-rad { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.faq-tekst { display: flex; flex-direction: column; align-items: flex-start; }
.faq-tekst .seksjon-tittel { margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
.faq-tekst .lenke-pil { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); }
.faq-bilde { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--valnott-2); }
.faq-bilde img { width: 100%; height: auto; aspect-ratio: 21 / 20; object-fit: cover; }
.faq-liste { align-self: stretch; border-top: 1px solid var(--linje-sterk); }
.faq-sporsmal { border-bottom: 1px solid var(--linje-sterk); }
.faq-sporsmal summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: var(--vekt-sterk); letter-spacing: -0.01em;
}
.faq-sporsmal summary::-webkit-details-marker { display: none; }
.faq-sporsmal summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--tekst-dempet), var(--tekst-dempet)) center / 14px 2px no-repeat, linear-gradient(var(--tekst-dempet), var(--tekst-dempet)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--mykt);
}
.faq-sporsmal[open] summary::after { transform: rotate(45deg); }
.faq-sporsmal summary:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.faq-sporsmal summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 4px; }
.faq-sporsmal p { padding: 0 0 1.25rem; max-width: 40rem; color: var(--tekst-dempet); font-size: var(--str-tekst); line-height: var(--linjehoyde); }
@media (min-width: 900px) {
  .faq-rad { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .faq-bilde { align-self: stretch; }
  .faq-bilde.faq-fast { align-self: start; position: sticky; top: calc(var(--meny-h) + 1.5rem); height: var(--faq-h); }   /* sider.js */
  .faq-tekst .seksjon-tittel { margin-top: -0.16em; }   /* the capitals, not the line box, start on the photo's top edge */
  .faq-bilde img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .faq-sporsmal summary { padding-block: 0.9rem; }      /* the whole section on one screen at 1210 x 654 */
}

/* ---------- phones (mobile pass 08.11.2026): body text at 17 px, thumb-sized links, and the contact section's framed photo comes back, under
   the form so the form stays high up ---------- */
@media (max-width: 767px) {
  .lenke-pil { min-height: 44px; }
  .tj-brod, .tj-liste, .tj-smaa-tekst { font-size: var(--str-tekst); line-height: 1.5; }
  .tj-liste li { padding-block: 0.1rem; }
  .tj-smaa-navn, .tj-smaa-tekst { overflow-wrap: anywhere; hyphens: auto; }   /* «varmtvannsberedere» in half a 320 px screen */
  .ko-rad { display: flex; flex-direction: column; gap: 0; }
  .ko-tekst { display: contents; }
  .ko-rad > .hs-kolonne { order: 1; margin-top: 2rem; }
  .ko-bilde { display: block; order: 2; margin-top: 2.5rem; }
  .ko-sitat figcaption { font-size: 1rem; }
  .felt label, .felt-navn { font-size: 1rem; }
  .bilder-hint { font-size: 0.9375rem; }
  .bunn-kol ul { gap: 0; }
  .bunn-kol a { display: inline-flex; align-items: center; min-height: 44px; }
  .bunn-linje { font-size: 0.9375rem; }
  .bunn-linje a { display: inline-flex; align-items: center; min-height: 44px; }
}
