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

body {
    background-color: #f4f2e9; /* Baggrundsfarve */
    color: #44519f;
    font-family: 'work sans';
    margin-bottom: 4rem;
  }


/*navbar*/
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f2e9;
    padding: 25px 25px 25px 3.8em;
}

.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; /* Fast bredde på desktop */
    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 på tablet og 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;
    }
}

/* Mobile */
@media screen and (max-width: 768px ) {

main {
    margin-left: 2rem;
    margin-right: 2rem;
}

h1 {
    margin-top: 2rem;
    font-size: 30px;
    font-weight: 300;
}

.overskrift {
    line-height: 1.5rem;
}

h3 {
    font-weight: 350;
    font-size: 14px;
}

h4 {
    font-size: 30px;
    font-weight: 300;
}

.mellemrum {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.fed-overskrift {
    padding-top: 40px;
    font-weight: 500;
}

.bold {
    font-weight: 550;
    font-size: 12px;
}

h5 {
    font-weight: 300;
    font-size: 18px;
}

.grid-cakes {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolonner */
    gap: 30px;
}

.grid-coffee {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: start;
}

figure p:first-child {
    font-size: 1.2em;
}

figure p:nth-child(3) {
    font-size: 1em;
    margin: 5px 32px;
  }

/* Style til vælg-knappen */
.choose-button {
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 29px;
}

figure img {
    max-width: 100px;
    height: auto;
    margin: 10px 0;
}

.menu-cake {
    line-height: 2.5rem;
}

.menu-drink {
    display: none;
}

.kage-titel {
    font-weight: 550;
    padding-top: 30px;
    padding-bottom: 5px;
}

.beskrivelse {
    font-weight: 300;
}

.menu-coffee {
    margin-top: 40px;
    line-height: 2.4em;
}

.coffee {
    display: inline-block;
}

.price {
    display: inline-block;
    text-align: right;
}

/* Styling af drikkevarer og priser */
.item {
    display: grid;
    grid-template-columns:  50% 30%;
    gap: 5px;
    
}

.over-item {
    padding-top: 40px;
}


/*footer css til mobil*/

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

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

  .overskrift-footer {
    padding-top: 1.5rem;
  }

  .bold-footer {
    font-weight: 500;
  }

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

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




/* Tablet */
@media screen and (min-width: 768px ) {
    
    main {
        margin-left: 4rem;
        margin-right: 3rem;
    }

    h1 {
        margin-top: 2rem;
        font-size: 35px;
        font-weight: 300;
    }    
    
    .overskrift {
        line-height: 2rem;
    }

    h3 {
        font-weight: 350;
        font-size: 20px;
    }

    h4 {
        font-size: 35px;
        font-weight: 300;
    }

    .mellemrum {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .fed-overskrift {
        padding-top: 40px;
        font-weight: 500;
    }
    
    .bold {
        font-weight: 550;
        font-size: 20px;
    }
    
    h5 {
        font-weight: 300;
        font-size: 25px;
    }
    
    .grid-cakes {
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 kolonner */
        gap: 50px;
    }

    .gridcakes p {
        font-weight: 800;
        font-size: 15px;
        line-height: 2.5em;
    }

    .grid-coffee {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 kolonner */
        gap: 50px;
    }
    
    figure {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
    
    figure p:first-child {
        font-size: 1.2em;
    }
    
    figure p:nth-child(3) {
        font-size: 1em;
        margin: 5px 53px;
      }
    

    /* Style til vælg-knappen */
    .choose-button {
        font-size: 1em;
        font-weight: 500;
        cursor: pointer;
        margin-top: 10px;
        margin-left: 48px;
    }
    
    
    figure img {
        max-width: 150px;
        height: auto;
        margin: 10px 0;
    }

    .menu-cake {
        line-height: 2.5rem;
    }

    .kage-titel {
        font-weight: 550;
        padding-top: 30px;
        padding-bottom: 5px;
    }

    .beskrivelse {
        font-weight: 300;
    }

        
    .menu-coffee {
        margin-top: 40px;
        line-height: 2.4em;
    }
    
    .menu-drink {
        display: none;
    }

    .coffee {
        display: inline-block;
    }

    .price {
        display: inline-block;
        text-align: right;
    }

    /* Styling af drikkevarer og priser */
    .item {
        display: grid;
        grid-template-columns:  50% 30%;
        gap: 5px;
        
    }

    .over-item {
        padding-top: 40px;
    }




/*footer 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: 8em;
        padding-left: 4em;
    }

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

    .overskrift {
        padding-top: 1.5rem;
    }

    .bold-footer {
        font-weight: 500;
    }

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

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

    .gotfred-sektion {
        padding-top: 0; /* Fjerner den ekstra padding */
        margin-top: -5rem; /* Justerer positionen opad */
    }
}








@media screen and (min-width: 1023px ) {
    main {
        margin-left: 4rem;
        margin-right: 3rem;
    }

    h1 {
        margin-top: 2rem;
        font-size: 35px;
        font-weight: 300;
    }    
    
    .overskrift {
        line-height: 2rem;
    }

    h3 {
        font-weight: 350;
        font-size: 20px;
    }

    h4 {
        font-size: 35px;
        font-weight: 300;
    }

    .mellemrum {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .fed-overskrift {
        padding-top: 40px;
        font-weight: 500;
    }
    
    .bold-footer {
        font-weight: 550;
        font-size: 20px;
    }
    
    h5 {
        font-weight: 300;
        font-size: 25px;
    }

    .grid-cakes {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 kolonner */
    }
    
    .grid-coffee {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 kolonner */
        gap: 50px;
        padding: 20px;
    }
    
    figure {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
    
    figure p:first-child {
        font-size: 1.2em;
    }
    
    figure p:nth-child(3) {
        font-size: 1em;
        margin: 5px 55px;
      }
    
    
    /* Style til vælg-knappen */
    .choose-button {
        font-size: 1em;
        font-weight: 500;
        cursor: pointer;
        margin-top: 10px;
        margin-left: 52px;
    }
    
    
    figure img {
        max-width: 150px;
        height: auto;
        margin: 10px 0;
    }

    .menu-cake {
        line-height: 2.5rem;
    }

    .kage-titel {
        font-weight: 550;
        padding-top: 30px;
        padding-bottom: 5px;
    }

    .beskrivelse {
        font-weight: 300;
    }

    .grid-columm {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 60px;
    }

    .grid-drink {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 60px;
    }

    .menu-drink {
        margin-top: 87px;
        display: block;
    }

    .menu-coffee {
        margin-top: 40px;
        line-height: 2.4em;
    }

    .hide-text {
        display: none;
    }

    .coffee {
        display: inline-block;
    }

    .price {
        display: inline-block;
        text-align: right;
    }

    /* Styling af drikkevarer og priser */
    .item {
        display: grid;
        grid-template-columns:  50% 30%;
        gap: 5px;
        
    }

    .over-item {
        padding-top: 40px;
    }


    /* footer sektion */
    .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;
        padding-left: 4em;
    }

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

    .overskrift-footer {
        padding-top: 1.5rem;
    }

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