/* cmsms stylesheet: norstein modified: mandag 22. juni 2026 19:25:25 */
/* Browser reset */
*, *::before, *::after {box-sizing: border-box;}
* {margin:0;padding:0;}
img {display:block;max-width:100%;height:auto;}
button {font:inherit;cursor:pointer;appearance:none;-webkit-appearance: none;}

/* General */
:root {
    --font-family--inter: Inter, sans-serif;
    --font-family--ubuntu: Ubuntu, Helvetica, sans-serif;
    --font-family--lora: Lora, sans-serif;
    --color--transparent: transparent;
    --color--white: white;
    --color--dark: #222;
    --color--blue: #1e3f7b;
    --color--light-blue: #e8ebf1;
    --color--light-gray: #ebf3f5;
    --color--mat-green: #688181;
    --color--bronse: #a5613b;
    --color--light-green: #f0e5d8;
    --light-beige: #f6f5f3;
    --color--succes: #6ce9a6;
    --color--error: #ff1948;
    --brun: #4d3d30;
    --d9dce1: #d9dce1;
}

html {
    font-size: 16px;
    font-family: var(--font-family--inter), sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color--dark);
    min-width: 320px;
    scroll-behavior: smooth;
    background-color: var(--color--white);
}
body {
    background-color: var(--color--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family--ubuntu);
    font-weight: bold;
    line-height: 1.2;
    margin:0;
}
h1 {
    font-size: 3.75rem;
    font-weight: 500;
    line-height: 1.1;
}
h2 {
    font-size: 2.875rem;
    font-weight: 500;
    line-height: 1.2;
}
h3 {
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1.2;
}
h4 {font-size: 1.5rem;}
h5 {font-size: 1.25rem;}
h6 {font-size: 1rem;}

a {
    color: var(--color--dark);
    text-decoration: none;
}

p {
    font-family: var(--font-family--ubuntu);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.inner {
    width: 100%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5rem;  /* 40px */
    padding-right: 2.5rem; /* 40px */
}

section {
    margin-top: 5rem;    /* 80px */
    margin-bottom: 5rem; /* 80px */
    position: relative;
    .rich-text {
        max-width: 64ch;
        margin-left: auto;
        margin-right: auto;
        h1,h2,h3,h4,h5,h6 {
            color: var(--color--blue);
            margin-top: 1.5em;
            margin-bottom: 0.5em;
        }
        p {
            margin-bottom: 1em;
        }
    }
}

.nav-button {
    border: 1px solid var(--color--bronse);
    background-color: var(--color--white);
    box-shadow: none;
    color: var(--color--bronse);
    text-transform: uppercase;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    transition: color .35s, background-color .35s;
    &:hover {
        border-color: var(--color--bronse);
        background-color: var(--color--bronse);
        color: var(--color--white);
    }
}

.lastmer-button {
    display: inline-block;
    border: 1px solid var(--color--bronse);
    text-transform: uppercase;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: 1.4px;
    transition: color .35s, background-color .35s;
    background-color: var(--color--white);
    color: var(--color--dark);
    &:hover {
        border-color: var(--color--bronse);
        background-color: var(--color--bronse);
        color: var(--color--white);
    }
}

.les-mer-button {
    display: inline-block;
    border: 1px solid var(--color--bronse);
    background-color: var(--color--bronse);
    color: var(--color--white);
    text-transform: uppercase;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 1.4px;
    transition: background-color .35s, color .35s, border-color .35s;
    align-self: flex-start;
    &:hover {
        background-color: var(--color--white);
        border-color:var(--color--white);
        color: var(--color--bronse);
    }
}

.dummy-img {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color--light-blue);
}

.animated-underline {
    position: relative;
    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        transition: width 0.3s ease;
        background-color: var(--color--bronse); /* default color */
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    background-color: var(--color--white);
    padding-top: 1.25rem;
    padding-bottom: 2.2rem;
    z-index: 99;
    #logo {
        display:block;
        img {
            width: 15rem; /* 240px */
            min-width: 120px;
        }
    }
    .nav-button {
        margin-left: 1.25rem;
    }
    nav {
        > ul {
            column-gap: 1rem;
            > li {
                padding-left:1.25rem;
                > a {
                    position: relative;
                }
                &.has-dropdown {
                    /*padding: 0 20px;*/
                    > a {
                        padding-right: 1.25em;
                        &::after {
                            content: '';
                            width: 0.5em;
                            height: 0.5em;
                            border-right: 0.125em solid currentColor;
                            border-bottom: 0.125em solid currentColor;
                            transform: rotate(45deg);
                            position: absolute;
                            right: 0.25em;
                            top: 50%;
                            margin-top: -0.375em;
                        }
                    }
                }
            }
        }
        ul {
            list-style: none;
            display: flex;
        }
        a {
            display: block;
            color: inherit;
            text-decoration: none;
        }
        li {
            font-family: var(--font-family--ubuntu);
            color: var(--color--dark);
            text-transform: uppercase;
            white-space: nowrap;
            position: relative;
            ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 100%;
                background-color: var(--color--light-green);
                li {
                    a {
                        padding: 0.625rem 1.25rem;
                        &.active {
                            background-color: var(--color--bronse);
                            color: var(--color--white);
                        }
                    }
                    &:hover {
                        background-color: var(--color--bronse);
                        color: var(--color--white);
                    }
                }
            }
        }
    }
    .hamburger {
        display: none;
        position: relative;
        width: 1.5rem;
        height: 1.25rem;
        background: none;
        border: none;
        padding: 0.75rem;
        box-sizing: content-box;
        margin-right: -0.75rem;
        cursor: pointer;
        z-index: 100;
        span {
            display: block;
            position: absolute;
            width: 1.5rem;
            height: 2px;
            background-color: var(--color--dark);
            transition: transform 0.3s ease, opacity 0.3s ease;
            left: 0.75rem;
            &:nth-child(1) { top: 0.75rem; }
            &:nth-child(2) { top: 50%; transform: translateY(-50%); }
            &:nth-child(3) { bottom: 0.75rem; }
        }
        &.aktiv {
            span:nth-child(1) {
                top: 50%;
                transform: translateY(-50%) rotate(45deg);
            }
            span:nth-child(2) {
                opacity: 0;
            }
            span:nth-child(3) {
                bottom: auto;
                top: 50%;
                transform: translateY(-50%) rotate(-45deg);
            }
        }
    }
}

.dropdown-toggle {
    display: none;
}


footer {
    background-color: var(--color--blue);
    ul {
        list-style: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 1.5rem;
        gap: 0.75rem;
        display: flex;
    }
    .footer-top {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 1.875rem;
        padding-top: 5rem;
        padding-bottom: 3.75rem;
        * {
            color: var(--color--white);
        }
    }
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.875rem;
    }
    .footer-column-title {
        font-family: var(--font-family--lora);
        font-size: 1.875rem;
        font-weight: 400;
        line-height: 1.2;
    }
    .footer-bottom {
        background-color: var(--color--light-green);
    }
    .footer-byline {
        flex-flow: wrap;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 1rem;
        display: flex;
    }
    .animated-underline::before {
        background-color: var(--color--white);
    }
}

#hero {
    margin-top:0;
    margin-bottom:0;
    .hero-content {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        height: clamp(20rem, 45vh, 40rem);
        background-color: var(--color--blue);
        &::after {
            content: '';
            position: absolute;
            inset: 0; /* top: 0; right: 0; bottom: 0; left: 0;*/
            background-image: radial-gradient(circle farthest-corner at 0% 100%, var(--color--dark), var(--color--transparent));
        }
        &.extra-height {
            height: clamp(22.5rem, 60vh, 45rem);
        }
        img {
            display: block;
            object-fit: cover;
            object-position: center right; /* 50% 50% */
            width: 100%;
            height: 100%;
        }
        .hero-text {
            margin: 3.75rem;
            max-width:400px;
            /*overflow-wrap: break-word;
            hyphens: auto;*/
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            color: var(--color--white);
            h1 {
                font-size:3rem;
            }
            p {
                font-size:1.2rem; /* 1.25 */
                font-weight:300;
                /*max-width: 400px;*/
                margin-top: 1rem;
                margin-bottom: 2.5rem;
            }
        }
    }
}

#kataloger {
    margin-top:5rem;
    .kataloger-content {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        padding: 5rem 2.5rem;
        text-align: center;
        color: var(--color--white);
        background-color: #222222;
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background-color: #222222b0;
            z-index: 1;
        }
        .kataloger-bg {
            position: absolute;
            inset: -100%;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
            margin: auto;
            background-position: 50%;
            background-size: cover;
        }
        .kataloger {
            position: relative;
            z-index: 2;
            h2 {
                margin-bottom: 2rem;
            }
            .katalog-wrapper:not(.swiper-wrapper) {
                display: flex;
                justify-content: center;
                gap: 2rem;
                margin-top: 1.25rem;
            }
            .katalog-label {
                font-size: 1.125rem;
                text-transform: uppercase;
                margin-bottom: 1rem;
            }
            .katalog-cover {
                display: block;
                height: auto;
                max-height: 300px;
                width: auto;
                max-width: 100%;
                border-radius: 4px;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                margin: 0 auto;
                aspect-ratio: 210 / 297; 
                object-fit:cover;
                &:hover {
                    transform: translateY(-6px);

                }
            }
        }
    }
}

.kategori-nav {
    display: block;
    padding-bottom: 0.625rem;
    .kategori-liste {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    .kategori-knapp {
        display: inline-block;
        border: 1px solid var(--color--bronse);
        text-transform: uppercase;
        border-radius: 2px;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        line-height: 1.2;
        letter-spacing: 1.4px;
        transition: color .35s, background-color .35s;
        box-shadow: 0 4px 4px #2e434326;
        &:hover {
            border-color: var(--color--bronse);
            background-color: var(--color--bronse);
            color: var(--color--white);
        }
        &.aktiv {
            background-color: var(--color--dark);
            border-color: var(--color--dark);
            color: var(--color--white);
        }
    }
}

#verktoy-list {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    .flere-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 5rem;
    }
    .produkt-rad {
        display: flex;
        align-items:flex-start;
        gap: 2rem;
        margin-bottom: 2.5rem;
        padding-bottom:2.5rem;
        border-bottom:solid 1px var(--color--light-blue);
        &:last-child {
            margin-bottom: 0;
        }
        .produkt-bilde {
            flex: 12.5;
            /*aspect-ratio: 2/3;*/
            overflow: hidden;
            .produkt-img {
                display: block;
                width: 100%;
                max-height: 250px;
                object-fit: contain;
                object-position: top center;
            }
            a {
                display: block;
                width: 100%;
            }
        }
        .produkt-info {
            flex: 37.5;
            .produkt-tittel {
                font-size: 1.25rem;
                font-weight: 500;
                margin-bottom: 0.5rem;
                line-height: 1.2;
            }
            p:not(:last-child) {
                margin-bottom:1em;
            }
        }
        .produkt-alternativer {
            flex: 50;
            .alternativer-tittel {
                color: var(--color--bronse);
                font-size: 1.25rem;
                font-weight: 400;
                line-height: 1.2;
                margin-bottom: 0.5rem;
            }
            .alternativer-innhold {
                background-color: var(--color--light-green);
                border-radius: 8px;
                padding: 0.5rem;
                overflow-x: auto;
                strong {
                    font-weight: 600;
                }
                table {
                    width: 100% !important;
                    height: auto !important;
                    max-width:100%;
                    border-collapse: collapse;
                    font-size: 0.875rem;
                    td, th {
                        padding: 0.25rem 0.5rem;
                        text-align: left;
                        width: auto !important;
                    }
                    tr:first-child {
                        font-weight: 600;
                        td, th {
                            padding:0.5rem;
                        }
                    }
                    tr:not(:last-child) {
                        border-bottom: 1px solid var(--color--white);
                    }
                }
            }
        }
    }
    .dummy-img {
        height:auto;
        aspect-ratio: 1 / 1;
    }
}

#bronse-list {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    .bronse-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 1.5rem;
        row-gap: 5rem;
    }
    .flere-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 5rem;
    }
    .bronse-produkt {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        .bronse-bilde {
            width: 100%;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-direction: column;
            overflow: hidden;
            padding: 1.65rem;
            a {
                display: block;
                width: 100%;
                height: 100%;
            }
            .bronse-img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }
        }
        .bronse-tittel {
            font-size: 1.25rem;
            font-weight: 500;
            margin: 0;
        }
        .bronse-beskrivelse {
            font-size: 0.875rem;
            margin-top: 6px;
        }
    }
}

.lum-lightbox {
    background:#000000e6;
    z-index: 9999;
}
.lum-lightbox img {
    max-width: none;
    display: inline;
}

#nyheter-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    .nyhet-featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        align-items: center;
        margin-bottom: 2rem;
        .nyhet-featured-tekst {
            .nyhet-label {
                font-size: 0.875rem;
                letter-spacing: 1.5px;
                text-transform: uppercase;
                margin-bottom: 1rem;
                color: var(--color--white);
            }
            .nyhet-featured-tittel {
                font-size: 2.875rem;
                font-weight: 500;
                line-height: 1.2;
                color: var(--color--white);
                margin-top: 1rem;
                margin-bottom: 1.5rem;
            }
            .nyhet-ingress {
                margin-bottom: 1.5rem;
                * {
                    font-size: 1rem;
                    color: var(--color--white);
                }
            }
        }
        .nyhet-featured-bilde {
            img {
                width: 100%;
                aspect-ratio: 3/2;
                object-fit: cover;
                border-radius: 4px;
            }
        }
    }
    .flere-nyheter-label {
        grid-column: 1 / -1;
        font-size: 0.875rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--color--white);
    }
    .nyhet-kort {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        position: relative;
        padding-top: 66.66%;
        border-radius: 4px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
            .les-mer-button {
                background-color: var(--color--white);
                border-color: var(--color--white);
                color: var(--color--bronse);
            }
        }
        .nyhet-bilde {
            position: absolute;
            inset: 0;
            .nyhet-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
            .nyhet-overlay {
                position: absolute;
                inset: 0;
                background-color: var(--color--dark);
                opacity: .65;
            }
        }
        .nyhet-content {
            position: relative;
            z-index: 2;
            padding: 2.5rem;
            margin-top: -66.66%;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            .nyhet-tittel {
                color: var(--color--white);
                font-size: 1.875rem;
                font-weight: 400;
                margin-bottom: 1.5rem;
            }
        }
        .nyhet-inner {
            width: 100%;
            /*
            max-width: 430px;
            margin-left: auto;
            margin-right: auto;
            */
        }
    }
}

#nyheter {
    background-color: var(--color--dark);
    #nyheter-liste {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

#nyhetsarkiv {
    /*max-width: 1120px;*/
}

#snarveier {
    .ingress {
        text-align:center;
        margin-bottom:3rem;
        h1.section-title{
            font-size:2.875rem;
            color:var(--color--blue);
            margin-bottom:1rem;
        }
    }
    #snarveier-liste {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        .snarvei-kort {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            transition: transform 0.3s ease;
            &:hover {
                transform: translateY(-4px);
            }
            .snarvei-img {
                width: 100%;
                aspect-ratio: 1 / 1;
                object-fit: cover;
                border-radius: 4px;
                margin-bottom: 1rem;
            }
            .snarvei-tittel {
                color: var(--color--blue);
                text-align: center;
                font-size: 1.875rem;
                font-weight:400;
            }
        }
    }
}

#front-hero {
    max-width: 1630px;
    margin-top:0;
    margin-bottom:0;
    height: clamp(30rem, 70vh, 55rem);
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    --swiper-pagination-bullet-size: 1rem;
    background-color: var(--color--light-blue);
    .swiper-slide {
        position: relative;
        height: 100%;
        .slide-media {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .slide-content {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            padding: 5rem 3.75rem;
            background-image: linear-gradient(90deg, var(--color--dark), var(--color--transparent));
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content:end;
            .slide-tittel {
                color: var(--color--white);
                font-size: 3rem;
                font-weight: 500;
                margin-bottom: 1rem;
            }
            .slide-tekst {
                max-width:400px;
                * {
                    color: var(--color--white);
                    font-size: 1.2rem;
                    font-weight: 300;
                    line-height: 1.5;
                    margin-bottom: 1em;
                    &:last-child {
                        margin-bottom:0;
                    }
                }
            }
            .les-mer-button {
                margin-top: 2.5rem;
                padding:1rem 1.5rem;
            }
        }
    }
    .swiper-pagination {
        bottom: 0.5rem;
        right: 1rem;
        left: auto;
        width: auto;
        z-index: 3;
        .swiper-pagination-bullet {
            background: var(--color--white);
            opacity: 0.5;
            width: 16px;
            height: 16px;
            margin: 0 4px;
            position: relative;
            &::before {
                content: '';
                position: absolute;
                inset: -4px;
            }
        }
        .swiper-pagination-bullet-active {
            opacity: 1;
        }
    }
}

.subkat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    .subkat-knapp {
        background: none;
        border: none;
        padding: 0;
        color: var(--color--dark);
        cursor: pointer;
        font-size: 1rem;
        &:hover {
            text-decoration:underline;
        }
        &.aktiv {
            font-weight:600;
            text-decoration:underline;
        }
    }
}

#ansatte {
    max-width:1120px;
    .ingress {
        margin-bottom:2.5rem;
        .section-title {
            color: var(--color--blue);
            margin-top: 1.5em;
            margin-bottom: 0.5em;
        }
        h1, h2, h3, h4, h5, h6 {
            color: var(--color--blue);
            margin-top: 1.5em;
            margin-bottom: 0.5em;
        }
        p {
            margin-bottom: 1em;
        }
        a {
            color: var(--color--blue);
            text-decoration:underline;
        }
    }
    #ansatte-liste {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
        .ansatt-kort {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background-color: var(--color--white);
            border: 1px solid #e8ebf1;
            border-radius: 12px;
            padding: 1rem 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            min-width: 0;
            overflow: hidden;
            .ansatt-bilde {
                width: 75%;
                aspect-ratio: 1;
                border-radius: 50%;
                overflow: hidden;
                margin-bottom: 1.5rem;
                background-color: var(--color--light-blue);
                .ansatt-img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }
            }
            .ansatt-navn {
                font-size: 1.25rem;
                font-weight: 700;
                color: var(--color--blue);
                margin-bottom: 0.25rem;
            }
            .ansatt-tittel {
                font-size: 0.875rem;
                color: var(--color--dark);
                margin-bottom: 1.5rem;
                min-height:1.5em;
            }
            .ansatt-kontakt {
                list-style: none;
                width: 100%;
                text-align: left;
                margin-top:auto;
                li {
                    a {
                        display:flex;
                        align-items: center;
                        vertical-align:middle;
                        color: var(--color--blue);
                        font-size: 0.875rem;
                        text-decoration: none;
                        font-weight: 500;
                        width:100%;
                        padding:0.25rem 0;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
                .ansatt-telefon::before {
                    content: '';
                    display: inline-block;
                    width: 1em;
                    height: 1em;
                    background-image: url('/uploads/design/phone.svg');
                    background-size: contain;
                    background-repeat: no-repeat;
                    margin-right: 0.75rem;
                    flex-shrink: 0
                }
                .ansatt-epost::before {
                    content: '';
                    display: inline-block;
                    width: 1em;
                    height: 1em;
                    background-image: url('/uploads/design/mail.svg');
                    background-size: contain;
                    background-repeat: no-repeat;
                    margin-right: 0.75rem;
                    flex-shrink: 0
                }
            }
        }
    }
}

/* RESPONSIVE ADJUSTMENTS */

@media (max-width: 1366px) { html { font-size: 15px; } }
@media (max-width: 1024px) { html { font-size: 14px; } }
/* Muligens for lavt... */
@media (max-width: 768px)  { html { font-size: 13px; } }
@media (max-width: 480px)  { html { font-size: 12px; } }


@media (max-width: 990px) { 
    header {
        #logo img {
            width:180px;
        }
        nav {
            li {
                font-size: 0.875rem;
            }
            > ul {
                column-gap: 0.5rem;
            }
            > ul > li {
                padding-left: 0.75rem;
            }
        }
        .nav-button {
            font-size: 0.875rem;
            padding: 0.5rem 1rem;
        }
    }
    #ansatte {
        #ansatte-liste {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media (max-width: 768px) {
    /* Skjermer SMALERE enn 768px */
    header {
        align-items: center;
        flex-wrap: wrap;
        padding-bottom: 1.25rem;
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background-color: var(--color--white);
            z-index: 1;
        }
        #logo, .hamburger, .nav-button {
            position: relative;
            z-index: 2;
        }
        .hamburger {
            display: flex;
        }
        .nav-button {
            display: none;
        }
        .mob-nav-button {
            display: block!important;
            a {
                color: var(--color--bronse);
            }
        }
        nav {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 100%;
            background-color: var(--color--white);
            border-top: 1px solid var(--color--light-blue);
            padding: 1rem 2.5rem;
            transform: translateY(-100%);
            transition: transform 0.35s ease;
            &.aktiv {
                transform: translateY(0);
                box-shadow: 0 8px 24px rgba(0,0,0,0.1);
            }
            > ul {
                flex-direction: column;
                gap: 0;
                > li {
                    padding-left: 0;
                    border-bottom: 1px solid var(--color--light-blue);
                    > a {
                        padding: 1.5rem 0;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        &::after {
                            display: none;
                        }
                    }
                    &:last-child{
                        border-bottom: 0;
                    }
                }
                > li.has-dropdown {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    > a {
                        flex: 1;
                    }
                }
            }
            ul {
                flex-direction: column;
            }
            li {
                white-space: normal;
                ul {
                    display: none;
                    position: static;
                    background-color: var(--color--light-green);
                    padding: 0.5rem 0;
                    &.aktiv {
                        display: block;
                    }
                    li a {
                        padding: 1rem 1.25rem;
                    }
                }
            }
        }
    }
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4rem;
        height: 4rem;
        flex-shrink: 0;
        background: none;
        border: none;
        border-radius: 4px;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        &.aktiv {
            background-color: var(--color--light-blue);
            &::after {
                transform: rotate(-135deg);
            }
        }
        &::after {
            content: '';
            width: 0.5em;
            height: 0.5em;
            border-right: 0.125em solid var(--color--dark);
            border-bottom: 0.125em solid var(--color--dark);
            transform: rotate(45deg);
            display: block;
            transition: transform 0.3s ease;
        }
    }
    li.dropdown-open > a.animated-underline::before {
        width: 100%;
    }
    #front-hero {
        height: clamp(20rem, 50vh, 55rem);
        padding:0;
    }
    .hero-swiper {
        border-radius:0;
        .swiper-slide .slide-content {
            padding: 5rem 2.5rem;
        }
    }
    #hero {
        padding:0;
        .hero-content {
            border-radius:0;
            &.extra-height {
                height: clamp(20rem, 45vh, 40rem); /* reset */
            }
            .hero-text {
                margin: 3.75rem 2.5rem;
            }
        }
    }
    #snarveier {
        #snarveier-liste {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    #nyheter-liste {
        .nyhet-featured {
            grid-template-columns: repeat(1, 1fr);
            .nyhet-featured-bilde {
                order:-1;
            }
        }
    }
    #kataloger {
        padding:0;
        .kataloger-content {
            border-radius:0;
        }
    }
    section {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    #bronse-list {
        .bronse-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    #verktoy-list {
        .produkt-rad {
            flex-wrap:wrap;
            gap: 2rem;
            .produkt-bilde {
                flex: 30;
            }
            .produkt-info {
                flex: 70;
                .produkt-beskrivelse p {
                    font-size:13px;
                }
            }
            .produkt-alternativer {
                flex: 100%;
                .alternativer-innhold {
                    table {
                        font-size:13px;
                        tr:first-child {
                            td, th {
                                overflow-wrap: break-word;
                                hyphens: auto;
                            }
                        }
                    }
                }
            }
        }
    }
    #ansatte {
        #ansatte-liste {
            grid-template-columns: repeat(3, 1fr);
            .ansatt-kort {
                .ansatt-tittel {
                    font-size:13px;
                }
                .ansatt-kontakt li {
                    a {
                        font-size:13px;
                        word-break:break-all;
                    }
                }
            }
        }
        .ingress p {
            font-size:14px;
        }
    }
    footer {
        .footer-top {
            grid-template-columns: 1fr;
            gap:3rem;
            padding:3rem 2.5rem;
        }
        .footer-columns {
            grid-template-columns: 1fr 1fr;
        }
    }
    .rich-text p {
        font-size:14px;
    }
    #nyheter-liste {
        & .nyhet-featured {
            & .nyhet-featured-tekst {
                & .nyhet-ingress {
                    p {
                        font-size: 14px;
                    }
                }
            }
        }
    }
    .hero-swiper {
        & .swiper-slide {
            & .slide-content {
                & .slide-tekst {
                    p {
                        font-size: 14px;
                    }
                }
            }
        }
    }
    #snarveier {
        & .ingress {
            p {
                font-size: 14px;
            }
        }
    }
    #bronse-list {
        & .bronse-produkt {
            .bronse-beskrivelse {
                font-size: 14px;
            }
        }
    }
    .lastmer-button {
        font-size: 14px;
    }
    header nav a {
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    /* Skjermer BREDERE enn 768px */
    header nav li:hover ul {
        display: block;
    }
    .animated-underline::before {
        width: 0;
    }
    li:hover > .animated-underline::before {
        width: 100%;
    }
}

@media (max-width: 625px)  {
    #ansatte {
        #ansatte-liste {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    #nyheter-liste {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px)  {
    #snarveier {
        #snarveier-liste {
            grid-template-columns: repeat(1, 1fr);
            .snarvei-kort .snarvei-img {
                aspect-ratio: 3/2;
            }
        }
    }
    #bronse-list {
        .bronse-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}
