* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Work Sans";
}

/*navbar*/

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f2e9;
    padding-top: 20px;
    padding-bottom: 50px;
    padding-right: 20px;
    margin-left: -40px;
}

.navbar-logo img {
    height: 120px;
}

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    list-style: none;
    margin-left: 30px;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu li a {
    text-decoration: none;
    color: #44519f;
    font-weight: 350;
    font-size: 20px;
    line-height: 60px;
    transition: all 0.2s ease-in-out;
    white-space: normal;
}

/* Dropdown-menu styling på desktop */
.navbar-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f4f2e9;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    width: 220px; 
    white-space: normal;
    overflow: hidden;
}

.navbar-menu li:hover > .dropdown {
    display: block;
    margin-left: -20px; 
}

.navbar-menu .dropdown li span {
    display: block;
    padding: 5px 20px;
    color: #44519f;
    font-weight: 350;
    font-size: 18px;
    line-height: 1.5; 
}

/* Ovnen logo */
.navbar-icon img {
    height: 90px;
}

/* Burger-menu styling */
.burger-toggle {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    width: 45px;
    height: 5px;
    background-color: #44519f;
    border-radius: 10px;
}

/* Skift til burger-menu til tablet om mobil */
@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .navbar-icon {
        display: none;
    }

    .burger-toggle:checked + .burger-menu + .navbar-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 80px;
        right: 30px;
        background-color: #f4f2e9;
        width: 220px;
        padding: 10px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .navbar-menu li:hover > .dropdown {
        display: block;
        position: relative;
        width: 100%;
        padding-left: 0;
        margin-top: 5px;
    }

    .navbar-menu .dropdown li span {
        padding: 10px 20px;
        font-size: 18px;
    }
}

/* Mobil justering */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-logo img {
        height: 90px;
    }

    .burger-toggle:checked + .burger-menu + .navbar-menu {
        width: 240px;
        right: 20px;
        padding: 20px;
    }

    .navbar-menu li a {
        white-space: nowrap;
    }
}


h1 {
    font-family: "Work Sans";
    font-size: 3rem;
    font-weight: 600;
    padding: 8px 0;
}

h2 {
    font-weight: 300;
    font-size: medium;
}

.bog-billede {
    width: 20rem;
    padding: 2rem 0;
    padding-right: 2rem;
}

button {
    padding: 30px;
    background-color: #44519f;
    color:#f4f2e9;
    font-size: 1rem;
    padding: 1rem;
    margin: 1.5rem 0;
    border: none;
    cursor: pointer;
    width: 11rem;
    height: 3.5rem;
}

body {
    margin-left: 3rem;
    margin-right: 3rem;
    margin-bottom: 3rem;
    color: #44519f;
    font-family: 'Work Sans';
    font-weight: 300;
    background-color: #f4f2e9;
}

.text {
    font-size: large;
    line-height: 30px;
    padding: 1rem 0;
}

.pris {
    font-size: large;
}

ul {
    font-size: large;
    list-style: none;
    line-height: 30px;
    padding-bottom: 20px;
}

.overlinje {
    font-size: large;
    font-weight: 600;
}

.kursiv {
    font-style: italic;
}

@media (max-width: 768px) {
    
    /*footer css til mobil*/

  .footer-section {
    font-family: "Work Sans";
    color: #44519f;
    font-size: 16px;
    line-height: 1.5;
  }

  .footer-section a {
    color: #44519f;
    text-decoration: underline; 
  }

  .overskrift {
    padding-top: 1.5rem;
  }

  .bold {
    font-weight: 500;
  }

  .gotfred-navn {
    font-weight: 650;
    font-size: 30px;
  }

  .mellemrum {
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {

    
    body {
        margin-right: 0rem;
        margin-left: 6rem;
    }

    main {
        display: grid;
        grid-template-columns: 1.2fr 1fr; /* To kolonner*/
        gap: 1rem;
        margin-right: 5rem;
        margin-top: 1rem;
    }

    .text {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .tekst-sektion {
        padding-top: 10px;
    }

    /* Billedsektionen tager kun én kolonne */
    .bog-billede {
        width: 100%;
        max-width: 400px;
    }

      /*footer css til tablet*/
    .footer-section {
        font-family: "Work Sans";
        color: #44519f;
        font-size: 16px;
        line-height: 1.5;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
        margin-top: 3rem;
    }

    .footer-section a {
        color: #44519f;
        text-decoration: underline; 
    }

    .overskrift {
        padding-top: 1.5rem;
    }

    .bold {
        font-weight: 500;
    }

    .gotfred-navn {
        font-weight: 650;
        font-size: 30px;
    }

    .mellemrum {
        padding-top: 1rem;
    }

    .gotfred-sektion {
        padding-top: 0; 
        margin-top: -5rem; 
    }
   

}

/* Desktop Layout */
@media (min-width: 1024px) {
    main {
        display: grid;
        grid-template-columns: 1fr 1.8fr; /* To kolonner - 1 del til billedet, 1.8 dele til tekst */
        gap: 0;
    }

    h2 {
        font-size: larger;
    }

    .tekst-sektion {
        max-width: 500px;
    }

    .text {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

     /* footer sektion til laptop*/

    .footer-section {
        margin-right: 6rem;
        font-size: 16px;
        line-height: 1.5;
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* fire kolonner */
        gap: 60px;
        text-align: left;
    }

    .gotfred-sektion {
        margin-top: 0;
    }

    .overskrift {
        padding-top: 1.5rem;
    }

    .gotfred-navn {
        font-weight: 650;
        font-size: 40px;
    }

}