* {
 box-sizing: border-box;   
}



body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FAF8F5;
    color: #222;
    line-height: 1.6;
}


/* Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 20px;
    background-color: #8B1E2D; 
    }

    nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    }

    /* Forsidens hovedområde */
    .hero {
        padding: 80px 24px;
        text-align: center;
        background-color: #c94f5d;
    }
}

.hero h1 {
    color: #173d32;
    font-size: 2.5rem;
    line-height: 1.2;
}

/* knap */
.knap {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8B1E2D;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/*  Tilpasning til computer */
@media (min-width: 768px) {
    .hero {
        padding: 50px 40px;
    }
    .hero h1 {
        font-size: 4rem;
    }
}

.hero img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 25px auto;
}

main > section:not(.hero) {
    max-width: 900px;
    margin: 30px auto; 
    padding: 25px;
    font-size: 20px;
}

@media (min-width: 768px) {
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }
.hero-text {
    width: 50%;
    text-align: left;
}

.hero img {
width: 30%;
margin: 0;
}
.hero-text p {
    font-size: 20px;
    line-height: 1.6;
}
.hero-text h2 {
    font-size: 28px;
}
nav a {
    font-size: 16px;
}
} 

body {
    font-size: 18px;
    line-height: 1.6;
}

main > section:not(.hero) p {
    font-size: 20px;
    line-height: 1.6;
}

main > section:not(.hero) {
    background-color: #f8eeee;
    border-radius: 12px;
    padding: 30px;
    margin: 25px auto; 
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-text a {
align-self: self-start;
padding: 12px 20px;
}

/* Større billede på Om Sisse-siden */
body.om-side .hero img {
    width: 40%;
    max-width: 450px;
}

/* Større tekst på Om Sisse-siden */
body.om-side .hero-text h1 {
    font-size: 36px;
}

body.om-side .hero-text p {
font-size: 20px;
line-height: 1.6;
}

/* Tekst på undersiderne */ 
.hero-text h1 {
    font-size: 36px;
}

.hero-text p {
    font-size: 20px;
    line-height: 1.6;
}

footer {
    text-align: center;
    font-size: 16px;
    padding: 20px;
    color: #333;
}

/* Større tekst på kontakt-siden */
body.kontakt-side main >section:not(.hero) p {
    font-size: 20px;
    line-height: 1.6; 
    } 
    
    body.kontakt-side main >section:not(.hero) h2 {
        font-size: 28px;
    }
    
    /* Større billede på Mærkesager - siden */
    @media (min-width:768px) {
    body.politik-side .hero img 

    {
    
    width: 650px;
    max-width: 100%;
    height: auto;

    }

    }

    body.politik-side main >section:not(.hero)p {
        font-size: 20px;
    }

    .hero-text img.sf-logo {
    width: 90px;
    height: auto;
    display: block;
    margin-bottom: 12px;
    }

    /* Billedestørrelser på mobil */
    @media (max-width: 767px) {
    
    body.om-side .hero img {
        width: 80%;
        max-width: 320px;
        height: auto;
        margin: 20px auto;
        display: block;
    }

    /* Mindre billede på Kontakt */
    body.kontakt-side .hero img {
        width: 70%;
        max-width: 260px;
        height: auto;
        margin: 20px auto;
        display: block;
    }

    }

    @media (max-width: 767px) {
        body.politik-side .hero h1 {
            font-size: 28px;
            overflow-wrap: break-word;
        }
    }

    /* Mobilmenu */
    @media (max-width: 767px) {
        nav {
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 12px;
        }

        nav a {
        font-size: 12px;
        padding: 8px 2px;
        white-space: nowrap;
        }
    }

    



