body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f5f7;
    color: #333;
}

/* Header */
header {
    background-color: #1a1f24;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 45px;
    width: auto;
    border-radius: 6px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #27ae60;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('bilder/forside.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 20px;
}

.hero h2 {
    font-size: 2.6em;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.btn {
    background-color: #27ae60;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #219150;
}

/* Content */
.content {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.content h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #222;
}

/* Produkter */
.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.produkt {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.produkt:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.produkt img {
    width: 100%;
    border-radius: 10px;
}

.pris {
    color: #27ae60;
    font-weight: bold;
}

/* Nyheter */
.nyheter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.nyhet {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
}

.nyhet-bilde {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.nyhet-tekst {
    padding: 20px;
}

.nyhet h3 {
    color: #1a1f24;
    margin-top: 0;
}

.dato {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Kontakt */
.kontakt p {
    font-size: 1.1em;
}

.kontakt a {
    color: #000000;
    text-decoration: none;
}

.kontakt a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1a1f24;
    color: #bbb;
    text-align: center;
    padding: 25px 0;
    font-size: 0.95em;
    margin-top: 80px;
}

/* Responsiv design for mobil og nettbrett */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .hero {
        padding: 100px 20px;
        background-position: center;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.95em;
    }
}

@media (max-width: 600px) {
    .content {
        padding: 0 15px;
        margin: 60px auto;
    }

    .nyheter-grid,
    .produkt-grid {
        grid-template-columns: 1fr;
    }

    .nyhet-bilde {
        height: 160px;
    }

    footer {
        font-size: 0.85em;
        padding: 20px 0;
    }
}

.sponsorer {
    text-align: center;
    background-color: #f9f9f9;
    padding: 60px 20px;
    border-top: 1px solid #ddd;
}

.sponsorer h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.sponsorer p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.sponsor img {
    width: 222px;
    height: auto;
    filter: grayscale(30%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.sponsor img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


.omoss {
    max-width: 900px;
    margin: 80px auto;
    text-align: left;
    line-height: 1.7;
}

.omoss h2 {
    text-align: center;
    margin-bottom: 20px;
}

.omoss ul {
    list-style: none;
    padding: 0;
}

.omoss ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-top: 40px;
}

.team-member {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h4 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}

.team-member p {
    font-size: 1em;


.team-member {
    text-align: center;
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Mobilmeny (ferdig testet) --- */
.menu-toggle {
    display: none !important; /* Skjul alltid på PC */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1100;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; /* Vis på mobil */
    }

    nav.nav-menu {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        z-index: 1000;
    }

    nav.nav-menu.show {
        display: flex;
    }

    nav.nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    nav.nav-menu ul li {
        text-align: center;
        margin: 5px 0;
    }

    header {
        position: relative;
    }
}
