@charset "utf-8";
/* CSS Document */
.am-meny {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.am-meny li {
  position: relative;
}

.am-meny li a {
  text-decoration: none;
  color: var(--text, #fff);
  font-weight: 500;
  padding: 8px 12px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Pil som visas bredvid varje menyval */
.am-meny li a::after {
  content: "›";
  font-size: 0.8em;
  margin-left: 6px;
  color: var(--accent, #c137e4);
  transition: transform 0.3s ease;
}

/* Pil rör sig lite vid hover */
.am-meny li a:hover::after {
  transform: translateX(3px);
}
.am-meny li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent, #c137e4);
  transition: width 0.3s ease;
}

.am-meny li a:hover::before {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.menu-label {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
  color: var(--text, #fff);
}

/* Visa menyikon i mobil */
@media (max-width: 768px) {
  .menu-label {
    display: block;
  }

  .am-meny {
    display: none;
    flex-direction: column;
    background-color: var(--bakgrund, #333);
    padding: 10px;
  }

  .menu-toggle:checked + .menu-label + .am-meny {
    display: flex;
  }

  .am-meny li a {
    padding: 10px;
    border-bottom: 1px solid var(--accent, #c137e4);
  }
}
