/* header */

header {
  background-color: #f2f2f2;
}

.topHeader {
  border: 1px solid black;
  border-radius: 10px;
  margin: 2.5rem;
  display: flex;
  justify-content: space-between;
}

.topHeader a:hover {
  text-decoration: none;
}

.mainLogo, .userProfile {
  height: 70px;
  display: flex;
  gap: 1rem;
}

.userProfile {
  height: auto;
  min-height: 70px;
  align-items: center;
}

.userTitle a {
  color: inherit;
}

/* Einstellungen / Log out, small, under name and position */
.userActions {
  display: flex;
  gap: .3rem;
  margin-top: .3rem;
}

.userActions .pill-btn {
  font-size: .7rem;
  padding: .1rem .55rem;
  min-height: 0;
  height: auto;
  line-height: 1.3;
}

.mainLogo img {
  height: 70px;
  width: auto;
}

.userProfile img {
  border-radius: 999px;
  background-color: white;
  object-fit: cover;
  height: 70px;
  width: 70px;
}

.siteTitle, .userTitle {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: end;
}

.userTitle {
  align-items: end;
}

.siteTitle .siteTitleName {
  max-width: 160px;
  transform: translateY(10px);

}

.siteTitle .einfachSicher {
  max-width: 130px;
}

.userTitle .userTitleName{
 font-family: 'Inter', sans-serif;
 font-weight: 400;
font-size: 1.1rem;
}

.userTitle .userTitleJob {
font-family: 'Martian Mono', serif;
font-weight: 100;
font-size: 0.9rem;
}

.mainNavigation {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  width: 100%;
  left: 0;
  min-height: var(--headerHeight);
  background-color: #f2f2f2;
  padding: 0 2.5rem;
}

.mainNavigation .pill-btn {
  height: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: .4rem .7rem;
}

.mainNavigation .filter-pills {
  gap: .5rem;
}

.mainNavigation ul {
  list-style: none;
}

/* lang buttons */

.lang_btn {
  display: inline;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

.lang_btnInactive {
  opacity: 50%;
}

/* Remove list styling from navigation lists */
.hamMenuWrapper ul,
.lang-switcher {
  list-style: none;
  padding: 0;
  margin: 0;
}

header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
}

.leftNav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: .4rem 0;
  /* take only the room next to rightNav, so Einstellungen / Log out stay in the first row
     and only the section pills wrap when the window gets narrow */
  flex: 1 1 0;
  min-width: 0;
}

.rightNav {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .4rem 0;
  margin-left: .5rem;
  flex-shrink: 0;
}

/* section pills centred (Einstellungen / Log out moved to the profile box) */
.mainNavigation .leftNav {
  justify-content: center;
}

.rightNav:not(:has(*)) {
  display: none;
}

.rightNav a:hover, .leftNav a:hover {
  text-decoration: none;
}





/* hamburger */

.hamburger {
  display: none;
  position: fixed;
  /* position: sticky; */
  right: 6%;
  top: 6%;
  transform: translateY(-50%);
  width: 40px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;

  z-index: 999;
  /* background-color: grey; */
  transition: all cubic-bezier(0.88, 0.34, 0.88, 0.89) 500ms;

  cursor: pointer;

  /* // .active {
  //    position: fixed;
  //    top: 5% !important;
  // }

  // .fixit {
  //     position: fixed;
  //     top: 50px;
  // } */
}

.hamburger.active {
  position: fixed;
  top: 5% !important;
}

.hamburger.fixit {
  position: fixed;
  top: 50px;
}

.hamLines {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: black;
  opacity: 1;
  transition-duration: 70ms;
}

.cross {
  background-color: black !important;
}

.hamLine1 {
  top: 0;
}

.hamLine2 {
  top: 12px;
}

.hamLine22 {
  top: 12px;
}

.hamLine3 {
  top: 24px;
}

.opened .hamLine1 {
  opacity: 0;
  transition-duration: 300ms;
}

.opened .hamLine2 {
  top: 12px;
  transform: rotate(45deg);
  transition-duration: 300ms;
}

.opened .hamLine22 {
  top: 12px;
  transform: rotate(-45deg);
  transition-duration: 300ms;
}

.opened .hamLine3 {
  top: 24px;
  opacity: 0;
  transition-duration: 300ms;
}

.hamOverlay {
  position: fixed;
  background-color: white;
  width: 0%;
  height: 100vh;
  top: 0;
  right: 0;

  z-index: 850;
  transition-duration: 500ms;
}

.socialIconsWrapperOverlay {
  display: none;
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  /* width: 120px; */

  justify-content: space-between;
  gap: 20px;

  opacity: 0;
  /* display: flex; */
  flex-direction: row;
  z-index: 10;

  transition: all 800ms;
}

.hamOverlay.active {
  width: 100%;
  right: 0;
}

.hamOverlay.active .titleOverlay {
  display: flex;

  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);

  opacity: 0;

  z-index: 20;

  transition: all 800ms;
}

.titleOverlay {
  display: none;
}

.hamMenuWrapper {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  transition: all 800ms;
  /* transition-delay: 500ms; */
}

.hamOverlay .hamMenuWrapper.active,
.hamOverlay .socialIconsWrapperOverlay.active,
.hamOverlay .titleOverlay.active {
  display: flex;
}

.hamOverlay .hamMenuWrapper.opacity,
.hamOverlay .socialIconsWrapperOverlay.opacity,
.hamOverlay .titleOverlay.opacity {
  opacity: 1;
  transition: all 800ms;
}

/* Close button for hamburger menu - hidden by default */
.hamCloseBtn {
  display: none;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 860;
  padding: 0;
  transition: all 0.3s ease;
}

/* Show close button when menu is active */
.hamOverlay.active .hamCloseBtn {
  display: block;
}

.hamCloseLine1,
.hamCloseLine2 {
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: black;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transition: all 0.3s ease;
}

.hamCloseLine1 {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamCloseLine2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hover effect for close button */
.hamCloseBtn:hover .hamCloseLine1,
.hamCloseBtn:hover .hamCloseLine2 {
  background-color: #666;
}

/* Focus styles for accessibility */
.hamCloseBtn:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.hamMenuPointText {
  position: relative;
  color: black;
  text-decoration: none;
  font-size: 5em;
}

.inline {
  display: inline-flex;
}

/* .hamMenuPointText:hover {
    color: black;
    text-decoration: underline;
} */

.hamMenuPointText:after {
  position: absolute;
  content: '';
  width: 0%;
  height: 5px;
  bottom: -4px;

  /* center - (optional) use with adjusting width   */
  margin: 0 auto;
  left: 0;
  right: 0;
  background: black;

  /* optional animation */
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

/* Prevent body scroll when menu is open */
body.noScroll {
  overflow: hidden;
}

@media screen and (max-width: 1000px) {
  .hamburger {
    display: block;
  }

  /* Hide desktop language selector on mobile */
  .rightNav .lang-switcher {
    display: none;
  }

  /* Adjust rightNav positioning to prevent overlap */
  .rightNav {
    justify-content: flex-end;
    align-items: center;
    min-width: 50px;
  }

  /* Ensure hamburger button is properly positioned */
  .hamburger {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: 10px;
  }


}
