header {
  padding: 0 15px;
  width: 100%;
  z-index: 11;
  background-color: #e1dfdf;
}

.business-header {
  padding: 10px 15px;
}

.header-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px; /* Adjust spacing between columns */
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0;
}

.nav {
  grid-column: span 6;
  justify-content: flex-end;
  display: flex;
}

.social-media-wrapper {
  grid-column: span 3;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-media-wrapper .menu {
  gap: 15px;
}

.social-media-wrapper .menu li:first-child img {
  max-width: 30px;
}

.social-media-wrapper .menu li:last-child img {
  max-width: 36px;
}

.new-courses-link {
  justify-content: flex-end;
  display: flex;
}

.new-courses-link a {
  background-color: var(--blue);
  color: var(--white);
  border-radius: 0px 0px 0px 0px;
  padding: 8px 20px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

/* .new-courses-link a:hover {
  color: var(--deep-blue);
} */

.logo {
  grid-column: span 3;
  position: relative;
  align-items: flex-start;
  justify-content: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 24px;
}

.logo a span {
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 35px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li {
  list-style-type: none;
}

.menu li a {
  display: flex;
  text-decoration: none;
  color: var(--dark-grey);
  letter-spacing: 1px;
  font-size: 18px;
}
.current_page_item a {
  font-weight: 700;
}

/* Underline für alle außer letzter Menüpunkt */
.menu li:not(:last-child) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Hover für alle außer letzter */
.menu li:not(:last-child) a:hover::after {
  transform: scaleX(1);
}

/* Aktiver Menüpunkt – außer letzter */
.menu li:not(:last-child).current_page_item a::after,
.menu li:not(:last-child).current-menu-item a::after {
  transform: scaleX(1);
}

/* Fokus sichtbar (Keyboard) */
.menu li:not(:last-child) a:focus::after {
  transform: scaleX(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu li:not(:last-child) a::after {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .menu li a {
    font-size: 16px;
  }
  .menu {
    gap: 20px;
  }
  .logo a {
    font-size: 20px;
  }
  .new-courses-link a {
    font-size: 16px;
    padding: 4px 10px;
  }
  .social-media-wrapper .menu,
  .social-media-wrapper {
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .hide-on-desktop {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo {
    grid-column: span 8;
    display: flex;
  }

  header {
    margin-bottom: 0;
    align-items: flex-start;
  }
  .new-courses-link {
    display: none;
  }
}
