/* IxsSeal – gemeinsamer Site-Header */

.ixs-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}


.ixs-header__inner {
  width:
    min(
      1080px,
      calc(100% - 32px)
    );

  min-height: 72px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


.ixs-header__brand {
  margin: 0;
}


.ixs-header__brand {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025rem;
}


.ixs-header__brand span {
  display: block;
  margin-top: -2px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}


.ixs-header__link {
  color: var(--text-soft);

  font-size: 0.84rem;
  font-weight: 700;

  text-decoration:
    underline;

  text-decoration-color:
    var(--line-strong);

  text-underline-offset: 4px;
}


.ixs-header__link:hover {
  color: var(--brand-dark);
}



/* BASH 2000: Proof Navigation */

.ixs-header__menu {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.ixs-header__menu-grid {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
    align-items: center;
    justify-items: center;
  display: grid;
  grid-template-columns: repeat(2, min-content);
  gap: 12px;
}

.ixs-header__menu-item, .ixs-header__language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border: 0;
    border-radius: 0.3rem;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    width: fit-content;
}

.ixs-header__menu-item[aria-disabled="true"] {
  cursor: default;
}

.ixs-header__menu-button {
  flex: 0 0 auto;

  width: 46px;
  height: 46px;
  padding: 12px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);

  background: var(--surface);
  color: var(--text);

  cursor: pointer;
}

.ixs-header__menu-button span {
  display: block;

  width: 24px;
  height: 2px;

  border-radius: 1px;
  background: currentColor;
}

.ixs-header__menu-button:hover,
.ixs-header__menu-button[aria-expanded="true"] {
  border-color: var(--brand);
}

.ixs-header__menu-button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.3);
  outline-offset: 3px;
}

/* Navigation: 2 bis 6 Spalten */

@media (min-width: 700px) {
  .ixs-header__menu-grid {
    grid-template-columns: repeat(3, min-content);
  }
}

@media (min-width: 900px) {
  .ixs-header__menu-grid {
    grid-template-columns: repeat(4, min-content);
  }
}

@media (min-width: 1100px) {
  .ixs-header__menu-grid {
    grid-template-columns: repeat(5, min-content);
  }
}

@media (min-width: 1350px) {
  .ixs-header__menu-grid {
    grid-template-columns: repeat(6, min-content);
  }
}

/* Hamburger auch auf schmalen Displays rechts */

@media (max-width: 460px) {
  .ixs-header__inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}


/* BASH 2015: Shared Header Controls */

/*
 * Both panels participate in normal document flow.
 * Only the active panel receives the is-open class.
 */

.ixs-header__menu,
.ixs-header__languages {
  display: grid;
  grid-template-rows: minmax(0, 0fr);

  border-bottom: 1px solid transparent;

  background: var(--surface);

  visibility: hidden;

  transition:
    grid-template-rows 250ms ease,
    border-color 250ms ease,
    visibility 250ms;
}

.ixs-header__menu.is-open,
.ixs-header__languages.is-open {
  grid-template-rows: minmax(0, 1fr);

  border-bottom-color: var(--line);

  visibility: visible;
}

.ixs-header__menu__clip,
.ixs-header__languages__clip {
  min-height: 0;
  overflow: hidden;
}

.ixs-header__controls {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 5px;
}

.ixs-header__control {
  width: fit-content;
  min-width: 70px;
  height: auto;

  padding: 4px 8px;

  border: 1px solid var(--line-strong);
  border-radius: 3px;

  background: var(--surface);
  color: var(--text);

  cursor: pointer;

  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}

.ixs-header__control:hover,
.ixs-header__control[aria-expanded="true"] {
  border-color: var(--brand);
}

.ixs-header__control:focus-visible,
.ixs-header__language-option:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.3);
  outline-offset: 3px;
}

/* Menu */

.ixs-header__menu-grid {
  padding-top: 0;
  padding-bottom: 0;
}

.ixs-header__menu.is-open
.ixs-header__menu-grid {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Language: adapted from IxsSealer Provider */

.ixs-header__languages__inner {
  width: min(1080px, calc(100% - 32px));

  min-height: 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;

  overflow-x: auto;
}

.ixs-header__languages.is-open
.ixs-header__languages__inner {
  min-height: 48px;
  padding: 8px 0;
}

.ixs-header__language-option {
  flex: 0 0 auto;

  padding: 6px 10px;

  border: 0;
  border-radius: 999px;

  background: transparent;
  color: var(--text-muted);

  font-size: 0.8rem;
  font-weight: 700;
}

.ixs-header__language-option.is-active {
  background: var(--surface-soft);
  color: var(--text);
}

.ixs-header__language-option:disabled {
  opacity: 0.48;
  cursor: default;
}

/* Keep both controls right-aligned on mobile */

@media (max-width: 460px) {
  .ixs-header__inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .ixs-header__brand {
    min-width: 0;
  }

  .ixs-header__languages__inner {
    width: min(100% - 24px, 1080px);
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .ixs-header__menu,
  .ixs-header__languages {
    transition: none;
  }
}
