/*
2026 © Monoform
http://www.monoform.no
*/

/* RESET
----------------------------------------------- */

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent; /* For some Androids */
}

* {
  margin: 0; 
  padding: 0; 
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

img, picture, video, canvas {
  width: 100%;
  height: auto;
  display: block;
  
  vertical-align: middle; 
  font-style: italic;
}

input, button, textarea, select {
  font: inherit; 
}

html, body {
  min-height: 100%; 
  scroll-behavior: smooth;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* FOCUS STYLING
----------------------------------------------- */

*:focus {
  outline-offset: 2px;  /* Kan settes til -4px For å gjøre focusrammen mindre rundt objektet */
}

input:focus {
    outline: 0;
}

/* DEFAULT STYLING
----------------------------------------------- */

:root {
  /* Turn on use of light-dark. Example: color: light-dark(#333b3c, #efefec); */
  color-scheme: light dark;
  
  /* Fonts */
  --ff-primary: 'aktiv-grotesk', sans-serif;  /* 300,400,400italic,500 */
  --fs-primary: clamp(1.8rem, 0.274vw + 1.644rem, 2rem);
  --fw-primary: 300;
  --standard-lineheight: 1.5;
  
  --fs-h1: clamp(2.6rem, 0.822vw + 2.132rem, 3.2rem);
  --fs-h2: clamp(2.2rem, 0.548vw + 1.888rem, 2.6rem);
  --fs-h3: clamp(1.8rem, 0.548vw + 1.488rem, 2.2rem);
  --fs-h4: clamp(1.7rem, 0.411vw + 1.466rem, 2rem);
  --fs-h5: clamp(1.6rem, 0.274vw + 1.444rem, 1.8rem);
  --fs-h6: clamp(1.4rem, 0.274vw + 1.244rem, 1.6rem);
  
  /* Colors */
  --color-text: #222222;
  --color-lightgrey: #F7F7F7;
  --color-grey: #E0E0E0;
  --color-darkgrey: #909090;
  --color-pro: #11BBF3;
  --color-lightpro: #EDFAFE;
  
  /* Spacing, gap */
  --global-spacing: 60px;
  --global-gap: 12px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  :root {
    --global-spacing: 40px;
  }
}

html {
  font-size: 62.5%;
}

body { 
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--ff-primary);
  font-size: var(--fs-primary);
  font-weight: var(--fw-primary);
  line-height: var(--standard-lineheight);
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

/* MARGER, PADDING OG STØRRELSER */

.wrapper-normal {
  margin: 0 auto; 
  width: 88%; 
  max-width: 1500px;
}

.wrapper-small {
  margin: 0 auto; 
  width: 88%; 
  max-width: 1122px;
}

.global-padding {
  padding: var(--global-spacing) 0;
}

.bg-color {
  background-color: var(--color-lightgrey);
  padding-left: clamp(24px, 6%, 50px);
  padding-right: clamp(24px, 6%, 50px);
}

.bg-none + .bg-none,
.bg-color + .bg-color /* Slås av hvis det brukes forskjellige fargede bakgrunner */ {
  margin-top: calc(var(--global-spacing) * -1);
}

/* TEXT STYLING 
Bruk https://geary.co/clamp-calculator/
Min viewport 570px, Max viewport 1300px */

h1 {font-size: var(--fs-h1);}
h2 {font-size: var(--fs-h2);}
h3 {font-size: var(--fs-h3);}
h4 {font-size: var(--fs-h4);}
h5 {font-size: var(--fs-h5);}
h6 {font-size: var(--fs-h6);}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.2;
}

h3, h4, h5, h6 { 
  line-height: 1.35;
}

.titlestyle {
  margin-top: 111px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .titlestyle {
    margin-top: 0;
  }
}

.titlestyle h1 {
  padding-bottom: 1em;
}

.titlestyle h3,
.titlestyle h4, 
.titlestyle h5, 
.titlestyle h6 {
  padding-bottom: 0.8em;
}

.titlestyle h2,
.textstyle h2 {
  padding-bottom: 0.6em;  
}

.textstyle h3 {
  padding-bottom: 0.3em;
}

/* Styling av titler i moduloversikten */
h3 span {
  color: red;
  opacity: 0.5;
  font-weight: 500;
}

/* Order: a, a:visited, a:hover, a:active */

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-text);
}

a[href^="tel"] {
  color: inherit; /* Inherit text color of parent element. */
  text-decoration: none; /* Remove underline. */
  /* Additional css `propery: value;` pairs here */
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
}

.bildetekst {
  color: var(--color-darkgrey);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.textstyle ol, .textstyle ul {
  margin-left: 0;
  padding-left: 0;
}

.textstyle ul {
  list-style: disc;
  padding-left: 1.15em;
}

/*
.textstyle li::marker {
  color: red;
}
*/

.textstyle ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.textstyle p+p, .textstyle ul+p, .textstyle ol+p, .textstyle ol+ul, .textstyle ul+ol, .textstyle p+h3, .textstyle h3+h3, .textstyle ul+h3, .textstyle ol+h3,
.textstyle p+h2, .textstyle h2+h2, .textstyle ul+h2, .textstyle ol+h2, .textstyle p+h1, .textstyle h1+h1, .textstyle ul+h1, .textstyle ol+h1 {
  margin-top: 1.5em;
}

/* JUMP TO MAIN CONTENT */

a.jump-to-main {
  position: absolute;
  left: -2000px;
  top: 10px;
  font-size: 16px;
  background-color: var(--color-text);
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  z-index: 9999;
}

a.jump-to-main:focus-visible {
  left: 10px;
}

/* RESET FORM */

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-darkgrey);
}

/* BUTTON */

.button {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance:none;
  display: inline-block;
  border: 0;
  border-radius: 0.25em;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8em 1.8em;
  margin: 0;
  cursor: pointer;
}

.button-primary {
  background-color: var(--color-text);
  color: #fff;
}

.button-primary:hover {
    background-color: var(--color-darkgrey);
    color: #fff;
}

.button-pro {
  background-color: var(--color-pro);
  color: #fff;
}

.button-pro:hover {
    background-color: var(--color-pro);
    color: #fff;
    opacity: 0.8;
}

.buttonwrapper {
  display: flex;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}

/* STYLING MAGNIFIC-POPUP */

.gallery-arrow {
  font-family: "Font Awesome 6 Pro";
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  position: absolute;
  top: 50%;
  margin-top: -15px;
  display: block;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 1em;
  cursor: pointer;
  z-index: 9999;
}
.gallery-arrow-left{
  left: 30px;
}
.gallery-arrow-left:before{
  content: '\f053'; /* < */
}
.gallery-arrow-right{
  right: 30px;
}
.gallery-arrow-right:before{
  content: '\f054'; /* > */
}

.mfp-title {
  font-size: 1.4rem;
  line-height: 1.4em;
  padding-bottom: 20px;
  padding-right: 50px;
}

/* GRID */

.gridcontent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min-col-size), 100%), 1fr));
  gap: var(--global-gap);
}

/* wrapper-normal */
.grid-4 {
  --grid-min-col-size: 210px;
}

.grid-3 {
  --grid-min-col-size: 260px;
}

.grid-2 {
  --grid-min-col-size: 350px;
}

.grid-manual {
  --grid-min-col-size: 210px;
}

/* SIDELAYOUT */

:root {
  --sidepadding-topp: 70px;
}

.spaltewrapper {
  display: flex;
  gap: 8%;
}

.sidebar,
#menubar {
  padding: var(--sidepadding-topp) 0;
  width: 21%;
  min-width: 225px;
  position: sticky;
  top: 0;
  height: fit-content;
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding-bottom: var(--sidepadding-topp);
}

.content-spacer {
  height: var(--sidepadding-topp);
}

@media only screen and (max-width: 1023px) { /* Mobile Horizontal */
  .spaltewrapper { 
    flex-direction: column;
  }
  
  .content-spacer {
    height: 140px;
  }
}

/* HOVEDFORSIDE */

.hovedforside .innhold-ingress {
  padding-top: 0;
}

.manual-item {
  background-color: var(--color-lightgrey);
  padding: 40px;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  text-align: center;
  align-items: center;  
  justify-content: center;
}

.manual-item:hover {
  background-color: var(--color-lightpro);
}

.monoformlogo {
  max-width: 230px;
  padding: 20px 0;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .hovedforside .sidebar {
    position: relative;
    padding: 0;
    width: 180px;
    min-width: auto;
    margin-bottom: 40px;
    margin-top: 50px;
  }
  
  .content {
    padding-bottom: var(--global-spacing);
  }
  
  .hovedforside .content-spacer {
    display: none;
  }
  
  .manual-item {
    padding: 20px;
    text-align: left;
    justify-content: flex-start;  
  }
}

/* KUNDEFORSIDE */

.kundeforside .innhold-ingress {
  padding-top: 0;
}

.toppbilde {
  margin-bottom: var(--global-spacing);
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .toppbilde {
    margin-top: 99px;
  }
}

/* HOVEDMENY */

.mobile-header { 
  display: none; 
}

.logo-area { 
  text-decoration: none; 
}

.logo-area:hover { 
  color: inherit;
}

.logo-area h2 { 
  font-size: 2.0rem; 
  font-weight: 400; 
  margin-bottom: 2px;
}

.brand-name { 
  color: var(--color-darkgrey);
  margin-bottom: 40px; 
  font-weight: 500; 
  font-size: 3.0rem; 
  line-height: 1.2;
}

.nav-menu {
  margin-bottom: 44px;
}

.nav-menu > li {
  border-bottom: 1px solid var(--color-grey);
}

.nav-item, .kategoritrigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px 8px 0;
    font-size: 2.0rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* --- PLUSSTEGN ANIMASJON --- */
.plusstegn { 
  color: var(--color-darkgrey);
  font-size: 3.0rem; 
  font-weight: 300;
  transition: transform 0.2s ease-in-out;
  display: inline-block;
  line-height: 1;
}

/* Rotasjon når forelderen har klassen .opensubmenu */
.opensubmenu .plusstegn, 
.stayopen .plusstegn {
  transform: rotate(45deg); 
}

.submeny {
  list-style: none;
  padding-left: 15px;
  margin-bottom: 8px;
  display: none; /* Skjult som standard */
}

/* Vises hvis siden er aktiv (EE-logikk) */
.opensubmenu .submeny, 
.stayopen .submeny { 
  display: block; 
}

.submeny li a {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  padding: 4px 0;
  text-decoration: none;
}

.nav-menu a:hover {
  opacity: 0.6;
}

/* --- HAMBURGER ANIMASJON --- */
.menu-toggle {
  --burger-width: 30px;
  --burger-height: 18px;
  --bar-thickness: 2px;
  --bar-radius: 2px;
  --burger-color: #000;
  --transition-speed: 0.3s;

  background: none;
  border: none;
  cursor: pointer;
  width: var(--burger-width);
  height: var(--burger-height);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: var(--bar-thickness);
  background-color: var(--burger-color);
  transition: all var(--transition-speed) ease-in-out;
  border-radius: var(--bar-radius);
}

.menu-toggle.open span:nth-child(1) { 
  transform: translateY(calc((var(--burger-height) / 2) - (var(--bar-thickness) / 2))) rotate(45deg); 
}

.menu-toggle.open span:nth-child(2) { 
  opacity: 0; 
  transform: translateX(calc(var(--burger-width) * -0.5)); 
}

.menu-toggle.open span:nth-child(3) { 
  transform: translateY(calc((var(--burger-height) / -2) + (var(--bar-thickness) / 2))) rotate(-45deg); 
}

@media (max-width: 1023px) {
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 6%;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    z-index: 1001;
  }

  .logo-area h2 { 
    font-size: 2.0rem; 
    font-weight: 400; 
    margin-bottom: 0;
  }
    
  .mobile-brand { 
    font-weight: 500; 
    font-size: 2.4rem; 
    padding-right: 40px;
  }

  #menubar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    z-index: 1000;
    padding: 130px 6% 40px 6%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  #menubar.active { 
    opacity: 1; 
    visibility: visible; 
  }
  
  /* Skjuler innholdet bak menyen. Bug i iOS, 
  som viser innholdet bak nettleserens adressebar */
  .open-menu main {
    opacity: 0;
  }
  
  #menubar .logo-area { 
    display: none; 
  }
  
  .nav-menu a:hover {
    opacity: 1;
  }
}

.sokefelt {
  background-color: var(--color-lightgrey);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.sokefelt button {
  background: transparent;
  cursor: pointer;
  border: 0;
  margin: 0;
  padding: 0;
}

.sokefelt button i {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-darkgrey);
}

.sokefelt input[type=text] {
  background: transparent;
  font-size: 1.6rem;
  color: var(--color-text);
  font-weight: 400;
  width: 100%;
}

.oppdatert-tekst {
  margin-top: 32px;
  font-size: 1.4rem;
}

.oppdatert {
  font-weight: 500;
  margin-bottom: 10px;
}

.kreditering,
.kreditering a {
  color: var(--color-darkgrey);
}

/* SØKERESULTAT */

.search-index {
  border-top: 1px solid var(--color-text);
}

.search-index a {
  display: flex;
  gap: 40px;
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-text);
  align-items: center;
}

.search-data {
  margin-right: auto;
  flex: 1;
}

.kategori-tag {
  background-color: var(--color-lightgrey);
  font-size: 1.6rem;
  padding: 4px 8px;
}

.search-data h3 {
  margin-top: 10px;
  padding-bottom: 2px;
}

.search-index i {
  font-size: 2.8rem;
  font-weight: 300;
}


/* FLUID CONTENT
----------------------------------------------- */

/* HR STYLING */

hr {
  border: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-text);
}

/* Innhold-ingress */

.innhold-ingress {
  font-size: clamp(1.9rem, 0.411vw + 1.666rem, 2.2rem);
  font-weight: 500;
}

.innhold-ingress.bg-none + .innhold-brodtekst.bg-none {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: 1.5em;
}

/* Innhold-tittel */

.innhold-tittel.bg-none + .bg-none {
  margin-top: calc(var(--global-spacing) * -2); 
}

.innhold-tittel.bg-color + .bg-color,
.innhold-tittel.bg-none + .bg-color {
  margin-top: calc(var(--global-spacing) * -1); 
}

.innhold-tittel.bg-color + .bg-color {
  padding-top: calc(var(--global-spacing) * -2);
}

.innhold-tittel + .innhold-parallax {
  margin-top: calc(var(--global-spacing) * -1); 
}

/* Innhold-bilde */

.innhold-bilde.bg-none + .innhold-bilde.bg-none,
.innhold-bilde.bg-color + .innhold-bilde.bg-color {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: var(--global-gap);
}

.innhold-tittel + .innhold-bilde .gallery-group {
  margin-top: 10px;
}

.ramme {
  border: 1px solid var(--color-darkgrey);
}

/* Innhold-bildegalleri */

.gallery {
  display: grid;
  grid-auto-flow: dense;
  gap: 5px;
  
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  grid-auto-rows: 250px;
}

.gallery > a > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.gallery > a {
  overflow: hidden;
  position: relative;
}

.gallery a:hover img {
  transform: scale(1.2);
}

.size1x2 {
  grid-row: span 2;
}

.size2x1 {
  grid-column: span 2;
}

.size2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

@media only screen and (max-width: 567px) { /* Mobile Horisontal */
  .wrapper-normal .gallery,
  .wrapper-large .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .size1x1,
  .size1x2,
  .size2x1,
  .size2x2 {
    grid-column: 1 / -1;
    grid-row: span 1; 
  }
}

/* Innhold-fargepalett */

.innhold-tittel + .innhold-fargepalett .fargepalett-grid {
  margin-top: 10px;
}

.fargepalett-grid {
  display: grid;
  grid-auto-flow: dense;
  gap: 12px;
  
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  grid-auto-rows: 300px;
}

.fargepalett-item {
  padding: 20px;
  display: flex;
  align-items: flex-end;
}

.fargepalett-data {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  filter: invert(1) grayscale(1) brightness(1.3) contrast(9000);
  mix-blend-mode: luminosity;
  opacity: 0.6;
}

.copy-text {
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.copy-text:hover {
    font-weight: 500;
}


/* Innhold-fargeprosenter */

.innhold-fargeprosenter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fargerad {
  display: grid;
  grid-template-columns: 2fr repeat(6, 1fr);
  gap: 0;
}

.fargenavn {
  grid-column: auto;
  justify-content: flex-start;
}

.farge {
  padding: 20px;
  font-size: 1.6rem;
  font-weight: 400;
  display: flex;
  align-items: flex-end;
  min-height: 85px;
  
  /* Fargeblanding */
  background-color: color-mix(in srgb, var(--base-hex), white calc((1 - var(--p, 1)) * 100%));
  
  /* Standard tekstfarge */
  color: #fff;
}

/* --- Kontrast-logikk --- */

/* Tvinger sort tekst på de lyseste prosentene (10%, 20%, 30%) */
.farge[style*="--p: 0.1"],
.farge[style*="--p: 0.2"],
.farge[style*="--p: 0.3"] {
  color: var(--color-text);
}

/* Sjekker om selve hovedfargen er lys (Hex som starter på f, e eller d) */
/* 'i' gjør at den treffer både #e... og #E... */
.fargerad[style*="--base-hex: #f" i] .farge,
.fargerad[style*="--base-hex: #e" i] .farge,
.fargerad[style*="--base-hex: #d" i] .farge {
  color: var(--color-text);
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  
  .innhold-fargeprosenter {
    gap: 20px;
  }
  
  .fargerad {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  
  .farge {  
    min-height: auto;
  }
  
  .fargenavn {
      grid-column: span 3; 
      --p: 1; /* Alltid 100% styrke */
  }
}

/* Innhold-apne-lukke-tekst */

.list-index {
  border-top: 1px solid var(--color-text);
}

.list-item {
  border-bottom: 1px solid var(--color-text);
}

.list-tittel {
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 0;
  font-weight: 400;
}

.list-tittel i {
  font-weight: 400;
  margin-left: 40px;
}

.listeinnhold {
  padding: 15px 0 30px 0;
}

.listeinnhold iframe {
  width: 100%;
}


/* Innhold-nedlasting */

.innhold-nedlasting + .innhold-nedlasting {
  padding-top: calc(var(--global-spacing) * -2);
}

.innhold-nedlasting + .innhold-nedlasting .nedlasting-index {
  border-top: none;
}

.nedlasting-index {
  border-top: 1px solid var(--color-text);
} 

.nedlasting-item,
.nedlasting-index .list-tittel {
  border-bottom: 1px solid var(--color-text);
}

.nedlasting-index .listeinnhold {
  padding: 0;
}

.nedlasting-tittel {
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 15px;
  align-items: center;
  padding: 0.6em 0;
}

.nedlasting-tittel:hover {
  color: var(--color-darkgrey);
}

.filtype {
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--color-text);
  color: #fff;
  padding: 22px 4px 2px 4px;
  position: relative;
  min-width: 25px;
  text-align: center;
}

.filtype:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-top: 10px solid white;
  border-left: 10px solid var(--color-darkgrey);
  width: 0;
}

.filtittel {
  display: flex;
  align-items: baseline;
  gap: 0 15px;
  flex-wrap: wrap;
}

.filesize {
  color: var(--color-darkgrey);
  font-size: 1.6rem;
  font-weight: 300;
}

.lastnedsymbol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 1.6rem;
}

.lastnedsymbol i {
  font-weight: 300;
  font-size: 2.5rem;
}
  
@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .filtittel {
   flex-direction: column;
  }
}

/* Innhold-video */

.videowrapper {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.videowrapper::before {
  padding-top: 56.25%;
  display: block;
  content: "";
}

.videowrapper iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
 
/* Innhold-beskrivelse */

.beskrivelse-item {
  padding: 30px 0;
  border-top: 1px solid var(--color-grey);
}

.innhold-beskrivelse h2 {
  margin-top: 1em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

/* Innhold-logopadding */

.border-container {
  --definer-height: 22%;
  --definer-top: 58.9%;
  --definer-padding: 10%;
  --definer-max-width: none;
}

.border-container {
  display: grid;
  grid-template-columns: var(--definer-padding) auto var(--definer-padding);
  max-width: var(--definer-max-width);
  border-top: 1px dashed rgba(0,0,0,0.4);
  border-left: 1px dashed rgba(0,0,0,0.4);
  font-size: clamp(1.6rem, 0.548vw + 1.288rem, 2rem);
}

.border-container > div {
  border-bottom: 1px dashed rgba(0,0,0,0.4);
  border-right: 1px dashed rgba(0,0,0,0.4);
}

.buffer {
  background-color: var(--color-lightgrey);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.border-logo {
  position: relative;
}

.definer-x {
  position: absolute;
  top: var(--definer-top);
  left: -10%;
  border-top: 1px solid rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  height: var(--definer-height);
  width: 62%;
  
  display: flex;
  align-items: center;
}

.snu-definer .definer-x {
  right: -10%;
  left: auto;
  justify-content: flex-end;
}

/* Innhold-minste-tillatte */

.innhold-minste-tillatte .gridcontent {
  gap: 40px;
}

.minste-item img {
  margin-bottom: 0.8em;
}

.minste-item {
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}