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

body {
    background-color: #333333;
    font-family: Arial, sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #333333;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo button {
    background: #5FD11F;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
}

nav {
    display: flex;
    justify-content: space-evenly;
    gap: 100px;
    position: relative;
}

nav div {
    position: relative; /* Sikrer, at submenu er relativ til hvert menupunkt */
}

nav button {
    color: white;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 20px;
}

nav button:hover {
    background: #5FD11F;
    color: white;
    border-radius: 5px;
}

nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
}

nav div:hover .submenu {
    display: block; /* Vis kun submenuen for den aktuelle knap */
}

nav .submenu a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav .submenu a:hover {
    background-color: #5FD11F;
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: url('path/to/your/image.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 20px 250px; /* Justerer padding for at rykke elementer op */
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Mørkt overlay */
    z-index: 0;
}

.hero h1 {
    font-size: 4rem; /* Større fontsize */
    margin-bottom: 20px; /* Rykket længere ned */
    color: white;
    z-index: 2;
    position: relative;
    margin-top: 50px; /* Skub Velkommen til Radar længere ned */
}

.hero p {
    font-size: 1.7rem;
    margin-bottom: 10px; /* Rykker knappen */
    color: white;
    z-index: 2;
    position: relative;
}

.hero button {
    background: #5FD11F;
    color: white;
    border: none;
    padding: 15px 30px; /* Mindre i størrelse */
    font-size: 1.2rem; /* Mindre font size */
    cursor: pointer;
    z-index: 2;
    position: relative;
    margin-top: 40px; /* Ryk knap længere ned */
}

/* Content section */
.content {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: -350px 20px 20px; /* Justere positionering */
    flex-wrap: wrap;
}

.content .card {
    background: #333333; /* Grå baggrund */
    color: white;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: none; /* Fjernet rammer */
    box-shadow: none; /* Fjernet boksskygge */
}

.content .card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.content .card button {
    background: #5FD11F;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

@media (max-width: 480px) {
    header {
        padding: 10px 20px; /* Reduceret padding */
    }

    nav div {
        width: 100%; /* Fuld bredde */
    }

    nav button {
        width: 100%; /* Fuld bredde knapper */
        text-align: left; /* Tekst til venstre */
        padding: 10px 15px; /* Justere padding */
    }

    .hero h1 {
        font-size: 2.5rem; /* Mindre skriftstørrelse */
    }

    .hero p {
        font-size: 1.2rem; /* Mindre skriftstørrelse */
    }

    .hero button {
        padding: 10px 20px; /* Mindre knap */
        font-size: 1rem; /* Mindre skriftstørrelse */
    }

    .content {
        flex-direction: column; /* Stabel layout */
        gap: 15px; /* Justeret afstand */
    }

    .content .card {
        min-width: 100%; /* Fylder hele bredden */
        padding: 15px; /* Mindre padding */
    }
}

