/* Navigation container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  padding: 10px 30px;
}

/* Nav wrapper */
nav {
  position: relative;
}

/* Samler Hamburger og brand */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navigation border */
.navbar-border {
  width: 100%;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 13px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  inset: 0;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 11px;
  width: 11px;
  left: 2px;
  bottom: 1px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: lightgray;
}

input:checked+.slider::before {
  transform: translateX(13px);
}

/* Undermenu container */
.links-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 80;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
  font-family: Arial, Helvetica, sans-serif;
}

/* Hamburger menu */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-family: inherit;
  font-weight: bold;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;

}

.hamburger-icon {
  display: block;
  line-height: 1;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Brand-navnet */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 18px Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
}

/* Kontakt link i højre side */
.contact a {
  margin-right: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Når hamburger er åben */
.nav-container.open+.navbar-border+.links-container {
  max-height: 300px;
  opacity: 0.97;
  pointer-events: auto;
  padding: 20px 0;
}

/* GRID */
.nav-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* Links */
.nav-grid a {
  text-decoration: none;
  font-size: 1rem;
}

/* Links behaviour */
a:link {
  text-decoration: none;
}


a:active {
  text-decoration: underline offset 3px;
}

a.active {
  text-decoration: underline offset 3px;
}


/* Links behaviour END*/

.nav-grid a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .nav-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .nav-container {
    padding: 10px 10px 5px 10px;
  }

  .brand {
    display: flex;
    justify-content: flex-start;
    font-family: 18px Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    position: relative;
    top: 2px;
  }

  .contact a {
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 5px;
  }
}