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

body {
  font-family: 'Work Sans';
  color: #44519f;
  background-color: #f4f2e9;
  font-weight: 320;
}

/*navbar*/

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

.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;
  }
}

@media (max-width: 768px) {

  .hero img {
    width: 100%;
    max-width: 100vw;
    height: auto; 
  }

  main {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 40px;
  }

  .text {
    font-size: medium;
    line-height: 1.5;
    margin: 2rem 0;
  }

  .side-image {
    width: 100%;
  }

  /*footer css til mobil*/

  .footer-section {
    padding: 2rem;
    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) {
  .hero img {
    width: 100%;
    height: auto; max-height: 91vh;
  }

  main {
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 6rem;
    display: grid;
    gap: 50px;
  }

  .space {
    padding-top: 30px;
  }
  
  .intro, .book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  
  .intro {
    grid-template-areas:"image text";
    gap: 50px;
  }
  
  .tekst1 {
    grid-area: text; 
  }
  
  .intro .side-image {
    grid-area: image; 
    width: 100%;
  }
  
  .book {
    grid-template-areas: "text image";
    gap: 50px;
  }
  
  .tekst2 {
    grid-area: text; 
  }
  
  .book .side-image {
    grid-area: image; 
    width: 100%;
  }

  .text {
      font-size: 17px;
      line-height: 1.7;
  }

  .side-image {
      width: 100%;
  }

  /*footer css til tablet*/

  .footer-section {
    margin: 3rem;
    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;
  }

  .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;
}

}

@media (min-width: 1024px) {
  
  main {
    margin-top: 8rem;
    margin-left: 6rem;
    margin-right: 6rem;
    display: grid;
    gap: 8rem;
  }

  .text {
    font-size: 20px;
    line-height: 2;
  }

  .intro {
    grid-template-columns: 1fr 1.3fr;
  }
  
  .book {
    grid-template-columns: 1.3fr 1fr;
  }

  /* footer sektion til laptop*/

  .footer-section {
    margin-left: 6rem;
    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;
  }

}