header {
  width: 100%;
  background-color: rgb(50, 50, 50);
  position: fixed;
  top: 0;
  z-index: 1000;

}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 0;
  position: relative;

}

.logo img {
  width: 60px;
}
/* .navbar {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.navbar.active {
  max-height: 1000px;
  opacity: 1;
} */

.navbar ul {
  display: flex;
  list-style: none;
  gap: 3px;
  margin-left: 0;
  padding: 0 1em 0;
}

.navbar ul li:nth-child(4) a {
  background-color: rgb(44, 95, 131); /* valfri annan färg */
   /* exempel: gul text */
}

.navbar ul li:nth-child(4) a:hover {
  background-color: rgb(78, 129, 165);
  color: white;
}
.navbar ul li a {
  color: white;
  padding: 8px 14px;
  transition: background 0.8s;
}

.navbar ul li a:hover {
  background-color: rgb(233, 233, 233);
  border-radius: 4px;
  color: black;
}

.dropdown {
  position: relative;

}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(50, 50, 50);
  z-index: 10;
}
.navbar .dropdown-content a{
padding: 4px 10px;

}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
/*   padding: 10px 16px; */
  color: #333;
  border: 1px solid black;
  white-space: nowrap;

}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 0;
}

.contact-info {
  width: auto;
  display: flex;
  align-items: center;
  font-size: 36px;
  white-space: nowrap;
}

.contact-info a {
  color: white;
}
.contact-info a:hover {
  color: rgb(115, 162, 205);
}

.hamburger {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.hamburger img {
  width: 100%;
  height: auto;
}

@media (max-width: 880px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;

    background-color: rgb(40, 40, 40);
  }

  .navbar.active {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0;
  }

  .navbar ul li {
    width: 100%;
  }

  .navbar ul li a {
    display: block;
    color: white;
/*     padding: 12px 16px; */
    border: 1px solid black;
    background-color: rgb(40, 40, 40);
  }

  .navbar ul li a:hover {
    background-color: rgb(243, 243, 243);
    color: black;
  }

  .dropdown-content {
    white-space: nowrap;
    width: 100%; 
    border: 1px solid black;
    background-color: rgb(40, 40, 40);
    position: relative; /* så det stannar inom flödet */
    left: 0;
  }

  .dropdown-content a {
    width: 100%;
    display: block;
/*     padding: 12px 16px; */
    color: white;
    border-bottom: 1px solid #444;
  }

  .dropdown-content a:hover {
    background-color: rgb(74, 74, 74);
  }
/*   .dropdown-content {
    width: 220px;
    border: 1px solid black;
  } */

  .hamburger {
    display: block;
  }
  .contact-info {
    display: block; /* Visa igen */
    position: absolute;
 
    left: 50%;
    transform: translateX(-50%);
 /*    background-color: rgb(50, 50, 50); */
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 1002;
    font-size: 15px;
  }

 
}
@media (max-width: 440px) {
  .contact-info {
    display: none;
  }
}