/* ====================================================
   1. Sticky Header Wrapper mit grauem Background
   ==================================================== */
#sp-header {
  height: 115px;
  width: 100%;
  position: relative;
  z-index: 99;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  animation: spFadeIn 0.5s;
  border-top: 5px solid #00a696 !important;
}

#sp-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #c7c7c7 !important;
}

/* ====================================================
   2. Flex-Container exakt 111px
   ==================================================== */
#sp-header-wrapper .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 111px;
  padding: 0 30px;
  box-sizing: border-box;
}

/* ====================================================
   3. Logo links
   ==================================================== */
.sp-logo {
  flex: 1;
}
.sp-logo img {
  max-height: 80px;
  width: auto;
}

/* ====================================================
   4. Navigation mittig
   ==================================================== */
.sp-megamenu-parent {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sp-megamenu-parent > li {
  position: relative;
  /* kein margin hier */
}
/* Abstand nur zwischen den Items */
.sp-megamenu-parent > li + li {
  margin-left: 0px;
}

/* Link-Styling */
.sp-megamenu-parent > li > a {
  display: inline-block;
  /* KEIN padding-top/bottom, stattdessen line-height für vertikale Zentrierung */
  padding: 0 12px;
  line-height: 111px;
  font-size: 16px;
  font-weight: regular;
  text-transform: uppercase;
  color: #00a696;
  background: none;
  transition: all 0.2s ease-in-out;
  position: relative;
  text-decoration: none;
}

.sp-megamenu-parent > li:last-child > a {
  padding: 0 12px;
}

/* ====================================================
   5. Hover & Active
   ==================================================== */
/* Grauer Block */
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a {
  background-color: #575756;
  color: #ffffff;
}

/* weiße Unterstreichung */
.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 30px;       /* 12px über unterem Rand */
  width: 0;
  height: 3px;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}
.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li.active > a::after {
  width: 100%;
}

/* ====================================================
   6. Icons rechts
   ==================================================== */
.sp-module {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sp-module a {
  display: inline-block;
  margin-left: 20px;
  color: #ffffff;
  font-size: 20px;
  transition: color 0.2s ease-in-out;
}
.sp-module a:hover {
  color: #00a696;
}

/* ====================================================
   7. Responsive
   ==================================================== */
@media (max-width: 991px) {
  #sp-header-wrapper .container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }
  .sp-logo, .sp-module {
    justify-content: center;
    margin: 8px 0;
  }
  .sp-megamenu-parent {
    flex-wrap: wrap;
    justify-content: center;
  }
  .sp-megamenu-parent > li > a {
    line-height: normal;
    padding: 10px 8px;
    font-size: 14px;
  }
  /* Unterstreichung entfernen mobil */
  .sp-megamenu-parent > li > a::after { display: none; }
}

