* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'aktiv-grotesk', Arial, sans-serif;
    background: #fff;
    color: #333;
    min-height: 100vh;
}

.hamburger {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #222;
    border-radius: 2px;
    transition: 0.3s;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -270px;
    width: 270px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    padding-top: 60px;
    transition: left 0.3s;
    z-index: 1000;
}
.side-menu.open {
    left: 0;
}
.side-menu ul {
    list-style: none;
    padding: 0;
}
.side-menu li {
    margin: 32px 0;
    text-align: left;
}
.side-menu a {
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 4px 24px;
    display: block;
    transition: font-style 0.2s;
    line-height: 1.2;
}
.side-menu a[href="index.html"] {
    padding-top: 50px;
}
.side-menu a[href*="#1"],
.side-menu a[href*="#2"],
.side-menu a[href*="#3"] {
    padding-left: 40px;
}
.side-menu a:hover {
    font-style: italic;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px 1fr;
    justify-items: center;
    align-items: center;
    column-gap: 40px;
    margin-top: 0;
    margin-bottom: 0;
}
.image-link {
    position: relative;
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: visible;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    transition: opacity 0.1s;
    opacity: 1;
}

.image-link img[src*="om-gjoring.png"],
.image-link img[src*="duo.png"],
.image-link img[src*="erfaringsbibliotek.png"] {
    width: 100%;
    height: 100%;
    margin: 0;
}

.image-link:hover img {
    opacity: 0;
}
.img-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    background: rgba(255,255,255,0.95);
    color: #222;
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    padding: 8px 0;
    border-radius: 0 0 8px 8px;
    transition: opacity 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    height: 100%;
    text-align: center;
}
.image-link:hover .img-title {
    opacity: 1;
}

@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: 1fr 120px 120px 120px 1fr;
        margin-top: 200px;
        column-gap: 20px;
    }
    .image-link {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 600px) {
    .image-grid {
        display: none;
        margin: 0;
    }
    .index-tittel,
    .index-beskrivelse {
        padding-left: 6vw;
        padding-right: 6vw;
        box-sizing: border-box;
    }
    .index-tittel {
        padding-top: 40px;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .index-beskrivelse {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
    }
    .image-link {
        width: 90vw;
        max-width: 260px;
        height: 90vw;
        max-height: 260px;
    }
}

.evaluering-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 0 80px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.evaluering-main h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 16px;
    margin-top: 24px;
    letter-spacing: -1px;
    text-align: left;
}
.ingress {
    font-size: 1.3rem;
    max-width: 650px;
    margin-bottom: 32px;
    margin-top: 0;
    line-height: 1.5;
    text-align: left;
}
.brodtekst {
    max-width: 550px;
    line-height: 1.5;
    margin-top: 0px;
    text-align: left;
}
.video-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
    margin-bottom: 32px;
}
.video-grid video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #dbdbdb;
    border-radius: 10px;
    display: block;
}
@media (max-width: 900px) {
    .evaluering-main {
        padding: 74px 26px 40px 26px;
    }
    .evaluering-main h1 {
        font-size: 2.1rem;
        margin-bottom: 24px;
        line-height: 1.2;
        padding-top: 40px;
    }
    .ingress {
        font-size: 1.2rem;
        max-width: 100%;
    }
    .video-grid {
        gap: 24px;
    }
}
@media (max-width: 700px) {
    .evaluering-main {
        padding: 66px 18px 32px 18px;
    }
    .ingress {
        font-size: 1.2rem;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ballong-main-img {
    display: block;
    max-width: 750px;
    width: 100%;
    margin: 0 0 32px 0;
    border-radius: 10px;
}

.ingress-2 {
    padding-top: 32px;
}

.ballong-rad {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin: 48px 0 0 0;
    justify-content: flex-start;
}

.ballong-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
    flex: 1 1 220px;
}

.ballong-item img {
    width: 100%;
    max-width: 320px;
    height: auto;
    background: #dbdbdb;
    border-radius: 10px;
    margin-bottom: 16px;
    display: block;
}

.ballong-tekst {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 1200px) {
    .ballong-rad {
        gap: 32px;
    }
    .ballong-item {
        max-width: 260px;
    }
}

@media (max-width: 900px) {
    .ballong-rad {
        flex-direction: column;
        gap: 40px;
    }
    .ballong-item {
        max-width: 100%;
    }
}

.ballong-karusell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    margin: 82px 0 0 0;
    width: 100%;
    padding-left: 0;
    position: relative;
}
.karusell-knapp {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #222;
    cursor: pointer;
    padding: 12px 20px;
    transition: background 0.2s, color 0.2s;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.karusell-knapp:first-child {
    left: -60px;
}
.karusell-knapp:last-child {
    right: -60px;
}
.karusell-innhold {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 750px;
    width: 100%;
    margin-left: 0;
}
.karusell-bilde {
    width: 100%;
    max-width: 900px;
    height: 600px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: block;
    background: none;
    object-fit: contain;
}
.karusell-tekst {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    max-width: 750px;
}
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        gap: 32px;
        padding: 0 20px;
        margin-top: 0;
    }
    
    .text-content {
        max-width: 100%;
        order: 2;
        margin-top: 24px;
    }
    
    .image-content {
        position: relative;
        top: 0;
        padding-left: 0;
        order: 1;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .ballong-karusell {
        gap: 12px;
        margin-top: 32px;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .karusell-knapp {
        position: relative;
        top: 0;
        transform: none;
        left: 0;
        right: 0;
        font-size: 2.5rem;
        padding: 12px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        margin: 8px 0;
    }

    .karusell-knapp:first-child {
        left: 0;
    }

    .karusell-knapp:last-child {
        right: 0;
    }

    .karusell-innhold {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .karusell-bilde {
        max-width: 100%;
        width: 100%;
        height: 500px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .karusell-tekst {
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 16px;
    }

    .atom-karusell .karusell-innhold,
    .atom-karusell .karusell-bilde,
    .atom-karusell .karusell-tekst {
        max-width: 100%;
        width: 100%;
    }

    .atom-image[src*="atom_ny.png"] {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        transform: none;
    }

    .image-content:has(img[src*="atom_ny.png"]) {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-top: 0;
    }

    h1 {
        margin-top: 32px;
    }
    .image-content:has(img[src*="atom_ny.png"]) {
        padding-top: 32px;
    }
    .atom-image[src*="atom_ny.png"] {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        transform: none;
        max-width: 400px;
    }
}
@media (max-width: 600px) {
    .content-wrapper {
        padding: 0 16px;
    }

    .ballong-karusell {
        padding: 0;
        margin-top: 24px;
    }

    .karusell-knapp {
        font-size: 2rem;
        padding: 8px 12px;
    }

    .karusell-innhold {
        max-width: 100%;
    }

    .karusell-bilde {
        max-width: 100%;
        height: 400px;
        margin-bottom: 12px;
    }

    .karusell-tekst {
        max-width: 100%;
        font-size: 1rem;
        padding: 0 12px;
    }
    .image-content:has(img[src*="atom_ny.png"]) {
        padding-top: 24px;
    }
    .atom-image[src*="atom_ny.png"] {
        max-width: 90vw;
    }
}

.oss-knapp {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    z-index: 1002;
    background: #fff;
    object-fit: contain;
    transition: box-shadow 0.2s;
}
/* .oss-knapp:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
} */

.oss-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.oss-popup.vis {
    display: flex;
}
.oss-popup-innhold {
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    width: 90vw;
    padding: 36px 28px 28px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    font-size: 1.08rem;
    line-height: 1.6;
    text-align: left;
}
.oss-popup-innhold a {
    color: #2c3e50;
    text-decoration: underline;
    word-break: break-all;
}
.oss-lukk {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.oss-lukk:hover {
    color: #222;
}
.oss-popup-innhold h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}
.oss-popup-bilde {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 18px 0;
    height: auto;
    border-radius: 10px;
}
@media (max-width: 600px) {
    .oss-popup-innhold {
        padding: 24px 8vw 18px 8vw;
        font-size: 1rem;
    }
    .oss-knapp {
        top: 18px;
        right: 18px;
        width: 100px;
        height: 100px;
    }
}

.content-wrapper {
    display: flex;
    gap: 48px;
    width: 100%;
    margin-top: 24px;
    position: relative;
    height: fit-content;
}

.text-content {
    flex: 1;
    max-width: 650px;
}

.image-content {
    flex: 1;
    position: sticky;
    top: 32px;
    height: fit-content;
    padding-left: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 64px);
}

.image-content:has(img[src*="atom_ny.png"]) {
    position: relative;
    top: 0;
}

.atom-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding-top: 20px;
}

.atom-image[src*="atom_ny.png"] {
    width: calc(100% + 150px);
    height: calc(100% + 150px);
    margin: -75px;
}

.image-content:has(img[src*="duo0.jpg"]) {
    position: relative;
    top: 0;
    height: 600px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    flex: none;
    width: 600px;
}

.atom-image[src*="duo0.jpg"] {
    width: 600px;
    height: 600px;
    transform: rotate(-90deg);
    margin: 0;
    padding: 0;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .image-content:has(img[src*="duo0.jpg"]) {
        height: 400px;
        width: 400px;
    }
    
    .atom-image[src*="duo0.jpg"] {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 600px) {
    .image-content:has(img[src*="duo0.jpg"]) {
        height: 300px;
        width: 300px;
    }
    
    .atom-image[src*="duo0.jpg"] {
        width: 300px;
        height: 300px;
    }
}

.atom-karusell .karusell-innhold {
    max-width: 500px;
}

.atom-karusell .karusell-bilde {
    max-width: 500px;
}

.atom-karusell .karusell-tekst {
    max-width: 500px;
}

.tilbake-knapp {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tilbake-knapp:hover {
    background: #fff;
    transform: translateX(-3px);
}

.tilbake-knapp .pil {
    font-size: 1.3rem;
}

.knutemor-video {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.evaluering-kort {
    width: 100%;
    max-width: 550px;
    margin: 32px 0;
    border-radius: 8px;
    display: block;
}

@media (max-width: 900px) {
    .evaluering-kort {
        margin: 24px 0;
    }
}

.index-tittel {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    padding-top: 200px;
    margin-top: 0;
    margin-bottom: 100px;
    line-height: 1.2;
}

.index-beskrivelse {
    max-width: 700px;
    padding-top: 130px;
    padding-bottom: 150px;
    margin: 0 auto 0 auto;
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #222;
}

.index-beskrivelse p {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .index-tittel {
        font-size: 1.2rem;
        margin-top: 24px;
        margin-bottom: 18px;
    }
    .image-grid {
        margin-bottom: 32px;
    }
    .index-beskrivelse {
        font-size: 1rem;
        max-width: 98vw;
        margin-top: 32px;
    }
}
