* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: white;
    font-family: "EB Garamond", sans-serif;
    color: black;
}

#darkmodeKnapp {
    margin-left: 10px;
    width: 58px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #f0f0f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1;
}

#darkmodeKnapp::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    z-index: 1;
}

.switch-icon {
    position: relative;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

body.darkmode #darkmodeKnapp {
    background: #222;
    border-color: #444;
}

body.darkmode #darkmodeKnapp::before {
    transform: translateX(28px);
    background: #f5f5f5;
}

body.darkmode {
    background-color: #222222;
    color: rgb(242, 240, 240);
}

body {
    padding: 24px 16px;
}

header {
    margin-bottom: 50px;
}

.innhold {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.beskrivelse,
.prosjekter,
.callToAction {
    width: 100%;
}

h1 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 2.4rem;
    line-height: 1;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.3;
}

p {
    line-height: 1.6;
}

section {
    margin-bottom: 70px;
}

.standard-knapp {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0a66c2;
    font-family: sans-serif;
}

.linkedin-knapp {
    margin-top: 50px;
    background-color: #0a66c2;
    color: white;
    text-decoration: none;
    font-family: sans-serif;
}

.icon {
    width: 25px;
    margin-right: 10px;
}

@media (max-width: 600px) {
    body {
        padding: 20px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.05rem;
    }

    .standard-knapp {
        width: 100%;
    }
}

