header {
  position: sticky;
  width: 100%;
  margin-top: 0;
  top: 0;
  background-color: white;
  z-index: 100;
}

header .header-section {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

header .content-offset {
  padding-left: var(--offset-left);
  display: flex;
  gap: 24px;
}

#nav-menu {
  gap: 0;
}
header nav {
  display: flex;
  justify-content: end;
  padding: 4px 0;
}

header nav ul {
  margin: 0;
  gap: 16px;
  row-gap: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  overflow: hidden;
  padding: 0 2px 0 0;
  transition:
    max-height 0.45s ease-in-out,
    max-width 0.45s ease-out,
    padding 0.45s ease-out;
}

header nav ul li a {
  text-align: right;
  text-decoration: none;
}

header nav ul li a h4 {
  width: 100%;
}

header nav ul li a .black {
  color: var(--blue-9);
}
header nav ul li a .blue {
  color: var(--blue-6);
}

.header-logo-wrapper {
  display: flex;
  flex-grow: 0;
  flex-shrink: 1;
}
.header-logo {
  width: min(max(200px, 70%), 500px);
  margin: 16px 0;
  width: 100%;
  max-height: 62px;
}

.header-logo.huge {
  max-height: 120px;
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  header .content-offset {
    padding-left: var(--offset-left-mobile);
  }

  .header-logo.huge {
    max-height: 60px;
  }
  .header-logo {
    margin: 12px 0;
  }
}

.language-selects {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  justify-content: end;
  gap: 5px;
  margin-bottom: auto;
  min-height: 68px;
}

.language-option {
  color: var(--white);
  border-style: none;
  border-bottom-right-radius: 6px;
  padding-top: 4px;
  padding-left: 4px;
  padding-right: 4px;
  margin-bottom: auto;
  transition: padding-top 0.2s ease-out;
}

.language-option img {
  height: 18px;
  padding-top: 24px;
}

.language-option.active {
  padding-top: 12px;
}

.language-option:hover {
  padding-top: 18px;
}

.language-option.de {
  background-color: var(--blue-4);
}

.language-option.en {
  background-color: var(--blue-6);
}

header nav #nav-menu-icon {
  display: none;
  overflow: hidden;
  transition:
    max-width 0.2s linear 0.6s,
    opacity 0.5s linear 0.6s;
}

@media only screen and (max-width: 768px) {
  header nav #nav-menu-icon {
    visibility: visible;
    display: flex;
    max-width: 100px;
    opacity: 100%;
  }
  header nav.active #nav-menu-icon {
    max-width: 0;
    opacity: 0%;
    visibility: hidden;
  }

  header nav ul {
    flex-direction: column;
    max-height: 0;
    max-width: 0;
  }

  header nav.active ul {
    max-height: 100%;
    max-width: 100%;
  }

  /* For mobile phones: */
}
