/* BRABUS: modellvelger og delekonfigurator */
/* --- velg modell: fem G-er på samme gulv --- */
.bl-topp { background: #0c0c0d; }
.bl-hode { max-width: var(--maks); margin: 0 auto; padding: clamp(1.4rem, 3.2vh, 2.6rem) 16px; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.bl-hode h1 { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; margin: 0; } .bl-hode > p { max-width: 430px; margin: 0; color: #c9c9cd; } .bl-hode .overtittel { color: #fff; margin-bottom: .5rem; }
.bl-opp { display: flex; gap: 4px; } .bl-gen { flex: var(--n); min-width: 0; } .bl-gen h2 { margin: 0; padding: .55rem 16px .6rem; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: #fff; border-top: 5px solid var(--rod); } .bl-gen h2 small { font: 400 1rem var(--brod); color: #c9c9cd; text-transform: none; letter-spacing: 0; margin-left: .4em; }
.bl-merke { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font: 700 clamp(2.6rem, 4.6vw, 4.8rem)/1 var(--tittel); color: #0c0c0d; }
.bl-rad { display: flex; gap: 4px; height: clamp(400px, 62vh, 680px); }
.bl { --cw: 250px; position: relative; flex: 1; min-width: 0; overflow: hidden; background: linear-gradient(#fff 0 70%, #e9e9eb 100%); color: #0c0c0d; text-decoration: none; transition: flex .5s cubic-bezier(.2,.8,.2,1); }
.bl-bil { position: absolute; left: 50%; bottom: 122px; width: var(--cw); } .bl-bil img { position: absolute; max-width: none; height: auto; width: calc(var(--cw) / var(--bred)); left: calc(var(--cw) / -2 + var(--cw) / 2 - var(--cw) / var(--bred) * var(--midt)); bottom: calc(var(--cw) / var(--bred) * var(--hoy) * (var(--bunn) - 1)); mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: calc(var(--midt) * 100%) calc(var(--bunn) * 100%); }
.bl-tekst { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 8px 1.2rem; text-align: center; transition: background .25s, color .25s; } .bl-tekst strong { display: block; font: 700 clamp(1.5rem, 2.3vw, 2.3rem)/1.05 var(--tittel); } .bl-tekst em { font-style: normal; font-size: .9rem; color: #55555b; transition: color .25s; }
@media (hover: hover) { .bl:hover { flex: 1.45; } .bl:hover .bl-bil img { transform: scale(1.16); } .bl:hover .bl-tekst { background: var(--rod); color: #fff; } .bl:hover em { color: #fff; } }
.bl:focus-visible { outline: 4px solid var(--rod); outline-offset: -4px; }
/* --- modellside --- */
.bm { position: relative; overflow: hidden; height: clamp(460px, 72vh, 800px); background: linear-gradient(#fff 0 62%, #dcdce0 100%); color: #0c0c0d; isolation: isolate; }
.bm h1 { position: absolute; inset: 0 0 auto; margin: 0; text-align: center; white-space: nowrap; font: 700 min(11.5vw, 24vh)/1.1 var(--tittel); color: #0c0c0d; text-transform: none; letter-spacing: -.01em; }
.bm-bil { --cw: clamp(280px, 49vh, 540px); position: absolute; max-width: none; height: auto; width: calc(var(--cw) / var(--bred)); left: calc(50% - var(--cw) / var(--bred) * var(--midt)); bottom: 24px; transform: translateY(calc((1 - var(--bunn)) * 100%)); mix-blend-mode: multiply; animation: bm-inn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes bm-inn { from { opacity: 0; scale: .94; } }
.bm-tekst { position: absolute; left: max(16px, calc((100vw - var(--maks)) / 2 + 16px)); bottom: 34px; max-width: 320px; } .bm-tekst .bm-gen { font: 700 clamp(2.6rem, 5vw, 4.4rem)/1 var(--tittel); color: #0c0c0d; margin-bottom: .15em; } .bm-tekst p { margin: 0; color: #3c3c42; } .bm-tekst p.bm-gen { color: #0c0c0d; margin-bottom: .15em; } .bm-tekst p:first-child { font: 600 1rem var(--tittel); letter-spacing: .14em; color: var(--rod); }
.bm-bytt { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #d3d3d8; } .bm-bytt a { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .5rem .6rem; color: #3c3c42; text-decoration: none; border-bottom: 4px solid transparent; font: 600 1.1rem/1.1 var(--tittel); } .bm-bytt b { display: block; color: var(--rod); font-weight: 700; } .bm-bytt img { width: 92px; height: auto; mix-blend-mode: multiply; } .bm-bytt small { display: block; font: 400 .78rem var(--brod); color: #66666c; } .bm-bytt a:hover { background: #f1f1f3; } .bm-bytt [aria-current] { border-bottom-color: var(--rod); color: #0c0c0d; }
.bn { position: sticky; top: 77px; z-index: 20; display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; background: #0c0c0d; border-bottom: 1px solid #2c2c30; padding: 0 max(16px, calc((100vw - 1500px) / 2)); } .bn-faner { display: flex; overflow-x: auto; scrollbar-width: none; } .bn-faner button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; color: #b6b6bb; font: 600 1.12rem var(--tittel); letter-spacing: .04em; padding: 1.1rem 1.3rem 1rem; cursor: pointer; } .bn-faner small { margin-left: .5em; font: 400 .82rem var(--brod); color: #8a8a90; } .bn-faner button:hover, .bn-faner [aria-current] { color: #fff; } .bn-faner [aria-current] { border-bottom-color: var(--rod); }
.bn-sok { flex: 0 1 270px; align-self: center; } .bn-sok input { width: 100%; background: #1b1b1e; border: 1px solid #4a4a50; border-radius: 99px; color: #fff; font: 400 .95rem var(--brod); padding: .6rem 1.1rem; } .bn-sok input::placeholder { color: #a5a5aa; } .bn-tom { text-align: center; padding: 5rem 16px; }
.bk { scroll-margin-top: 77px; padding-bottom: 4rem; } .bk-topp { display: flex; align-items: end; min-height: clamp(260px, 48vh, 520px); background: #1b1b1e center/cover; position: relative; isolation: isolate; } .bk-topp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(12,12,13,.1) 30%, rgba(12,12,13,.65) 75%, #0c0c0d); } .bk-topp h2 { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 16px 1.4rem; font-size: clamp(2.8rem, 7.5vw, 7rem); line-height: .95; text-transform: none; } .soker .bk-topp { min-height: 0; background-image: none !important; background: none; padding-top: 2rem; } .soker .bk-topp::after { display: none; } .soker .bk-topp h2 { font-size: 2.2rem; } .soker .bm, .soker .bm-bytt { display: none; }
.bg { max-width: 1500px; margin: 0 auto; padding: 2rem 16px 0; } .bg header { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; } .bg h3 { margin: 0; font-size: 1.7rem; text-transform: none; } .bg header > span { color: #a5a5aa; }
.bg-rute { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; grid-auto-flow: dense; }
.bd { position: relative; background: #17171a; min-width: 0; } .bd.stor { grid-column: span 2; grid-row: span 2; } .bd-apne { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: 600 1.2rem/1.15 var(--tittel); } .bd-apne img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; flex: none; } .bd.stor img { aspect-ratio: auto; flex: 1 1 0; min-height: 0; height: 0; } .bd-apne span { padding: .85rem 64px 0 1rem; min-height: 2.3em; box-sizing: content-box; } .bd.stor .bd-apne span { font-size: 1.7rem; min-height: 0; } .bd-apne small { padding: .1rem 1rem .9rem; font: 400 .8rem var(--brod); color: #a5a5aa; }
.bd.stor.lys img { object-fit: contain; background: #fff; } .bv-galleri.lys { background: #fff; }
.bd-apne img { transition: filter .25s; } .bd-apne:hover img { filter: brightness(1.12); } .bd.valgt { outline: 3px solid var(--rod); outline-offset: -3px; } .bd.valgt::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--rod); pointer-events: none; }
.bd-pluss { position: absolute; right: 10px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #77777d; background: #0c0c0d; cursor: pointer; } .bd-pluss::before, .bd-pluss::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; background: #fff; transition: transform .25s; } .bd-pluss::after { transform: rotate(90deg); } .bd-pluss:hover, .bd-pluss[aria-pressed=true] { background: var(--rod); border-color: var(--rod); } .bd-pluss[aria-pressed=true]::before { transform: rotate(45deg) translate(1px, 0); left: 12px; right: 24px; top: 24px; } .bd-pluss[aria-pressed=true]::after { transform: rotate(-50deg); left: 17px; right: 11px; top: 21px; }
.bg.hjul { max-width: none; background: #fff; color: #0c0c0d; margin-top: 2.5rem; padding: 2rem 0 1rem; } .bg.hjul header { max-width: 1500px; margin: 0 auto; padding: 0 16px; } .bg.hjul h3 { color: #0c0c0d; font-size: clamp(2rem, 4vw, 3.4rem); } .bg.hjul header > span { color: #66666c; } .bg-pil { margin-left: auto; display: flex; gap: 8px; } .bg-pil button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #99999f; background: #fff; color: #0c0c0d; font-size: 1.6rem; line-height: 1; padding-bottom: 4px; cursor: pointer; } .bg-pil button:hover { background: #0c0c0d; color: #fff; }
.hjul .bg-rute { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: max(16px, calc((100vw - 1500px) / 2 + 16px)); padding: 0 max(16px, calc((100vw - 1500px) / 2 + 16px)) 1rem; gap: 10px; } .hjul .bd { flex: 0 0 clamp(290px, 34vw, 520px); scroll-snap-align: start; background: #fff; border: 1px solid #e3e3e7; } .hjul .bd-apne { color: #0c0c0d; } .hjul .bd-apne img { aspect-ratio: 16/10; object-fit: contain; } .hjul .bd-apne small { color: #66666c; } .hjul .bd-apne:hover img { filter: none; } .hjul .bd-pluss { background: #fff; } .hjul .bd-pluss::before, .hjul .bd-pluss::after { background: #0c0c0d; } .hjul .bd-pluss:hover, .hjul .bd-pluss[aria-pressed=true] { background: var(--rod); } .hjul .bd-pluss:hover::before, .hjul .bd-pluss:hover::after, .hjul .bd-pluss[aria-pressed=true]::before, .hjul .bd-pluss[aria-pressed=true]::after { background: #fff; }
.bd[hidden], .bg[hidden], .bk[hidden], .kf-linje[hidden], .kf-pil[hidden] { display: none; }
.har-bygg { padding-bottom: 84px; }
/* --- delvisning --- */
.bv { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0c0d; color: var(--tekst); } .bv[open] { display: grid; grid-template-columns: minmax(0, 1fr) 440px; } .bv::backdrop { background: #000; } .bv-lukk { position: absolute; z-index: 3; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #55555b; background: #0c0c0d; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.bv-galleri { position: relative; display: flex; min-height: 0; overflow: hidden; background: #111113; touch-action: pan-y; } .bv-galleri > img { width: 100%; height: 100%; object-fit: contain; } .bv-galleri > img.inn { animation: bv-inn .35s; } @keyframes bv-inn { from { opacity: 0; } } .bv-mini { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; padding: 0 16px; } .bv-mini button { padding: 0; width: 82px; border: 2px solid transparent; background: none; cursor: pointer; } .bv-mini [aria-current] { border-color: #fff; } .bv-mini img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.bv-info { overflow-y: auto; padding: 4.6rem 2rem 2rem; border-left: 1px solid #2c2c30; } .bv-info .overtittel { color: #ff5468; text-transform: none; letter-spacing: .04em; } .bv-info h2 { font-size: 2.5rem; line-height: 1.02; text-transform: none; margin-bottom: .25em; } .bv-nr { color: #a5a5aa; font-size: .88rem; } .bv-var { display: flex; gap: .8rem; align-items: start; border: 2px solid #35353a; padding: .8rem 1rem; margin-bottom: .4rem; cursor: pointer; } .bv-var:has(:checked) { border-color: var(--rod); background: #1d1416; } .bv-var input { accent-color: var(--rod); width: 18px; height: 18px; flex: none; margin: 3px 0 0; } .bv-var small { display: block; color: #a5a5aa; font-size: .8rem; } .bv-kjop { display: flex; align-items: center; gap: 1.1rem; margin: 1.3rem 0 1.6rem; font-size: .92rem; } .bv-kjop .knapp { cursor: pointer; } .bv-tekst { font-size: .97rem; color: #d6d6d8; } .bv-tekst li p { margin: 0; } .bv-neste { display: flex; justify-content: space-between; border-top: 1px solid #2c2c30; margin-top: 1.6rem; padding-top: 1rem; } .bv-neste button { background: none; border: 0; color: #fff; font: 600 1.05rem var(--tittel); padding: .7rem 0; cursor: pointer; } .bv-neste button:hover { color: #ff5468; }
.bs-modell { color: #c9c9cd; } .bs-liste { max-height: 40vh; overflow-y: auto; margin-bottom: 1.4rem; } .bs-liste div { display: grid; grid-template-columns: 78px 1fr 44px; gap: .9rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #333338; } .bs-liste img { width: 78px; height: 52px; object-fit: cover; } .bs-liste p { margin: 0; font-weight: 600; line-height: 1.3; } .bs-liste small { display: block; font-weight: 400; color: #a5a5aa; } .bs-liste button { height: 44px; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
#br :focus-visible, .bv :focus-visible { outline: 3px solid #ff5468; outline-offset: 2px; }
@media (max-width: 1080px) { .bg-rute { grid-template-columns: repeat(3, 1fr); } .bl { --cw: 160px; } .bm-bytt { display: flex; overflow-x: auto; } .bm-bytt a { flex: 0 0 auto; } }
@media (max-width: 820px) {
  .bl-hode { display: block; } .bl-hode > p { margin-top: .8rem; } .bl-opp { display: block; } .bl-rad { height: auto; flex-wrap: wrap; } .bl { --cw: 132px; flex: 1 0 calc(50% - 2px); height: 315px; } .bl-gen .bl:nth-child(3) { flex-basis: 100%; } .bl-bil { bottom: 98px; } .bl-tekst { padding-bottom: .8rem; }
  .bm { height: 480px; } .bm-bil { --cw: 210px; bottom: 175px; } .bm h1 { font-size: 14vw; top: 10px; } .bm-tekst { bottom: 20px; right: 16px; max-width: none; }
  .bn { display: block; padding: 0; top: 73px; } .bn-faner button { padding: .9rem 16px .8rem; font-size: 1.02rem; } .bn-sok { display: block; padding: 0 16px .7rem; }
  .bk { scroll-margin-top: 73px; } .bg-rute { grid-template-columns: 1fr 1fr; } .bd.stor { grid-row: auto; } .bd.stor img { height: auto; aspect-ratio: 3/2; flex: none; } .bd-apne { font-size: 1.02rem; } .bd-apne span { padding: .6rem .6rem 0; min-height: 3.5em; } .bd-apne small { padding: 0 60px .9rem .6rem; overflow-wrap: anywhere; min-height: 46px; } .hjul .bd { flex-basis: 78vw; }
  .bv[open] { display: block; overflow-y: auto; } .bv-galleri { height: 46vh; } .bv-info { overflow: visible; padding: 1.4rem 16px 3rem; border: 0; } .bv-mini button { width: 52px; } .bv-lukk { position: fixed; } .bl-linje .knapp { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .bm-bil, .bv-galleri > img.inn { animation: none; } .bl, .bl-bil img { transition: none; } }
