:root {
  --corporate-color: #0090a7;
  --target-size-aaa: 44px; /* AA: 24px, AAA: 44px */
  --target-size-aa: 24px;
}

html [lang] {
  display: none;
}

html[lang|="de"] :where([lang|="de"]),
html[lang|="en"] :where([lang|="en"]),
html[lang|="fr"] :where([lang|="fr"]) {
  display: initial;
}

body {
  margin: 0;
  background: #ffffff;
  max-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 34px 1fr;
  grid-template-columns: 1fr;
  font-family: Segoe UI, Arial, sans-serif;
}

.site-header-background {
  grid-area: 1 / 1 / 3;
  box-shadow: 0 3px .5rem rgba(0, 0, 0, .4);
  background: linear-gradient(#fff, #e3ebef);
}

.site-header {
  padding-right: 10px;
  grid-area: 1 / 1;
  display: flex;
  justify-content: space-between;

  /* Align logo with corporate design standards. */

  .logo-invent-xpert {
    --cap-height: 16px;
    aspect-ratio: 8.485;
    height: var(--cap-height);
    padding: var(--cap-height);
    --primary-color: var(--corporate-color);
  }

  #headerMenuContainer {
    align-self: center;
    height: 26px;
  }
}

main {
  grid-area: 2 / 1 / -1;
}

.full-screen {
  grid-area: 1 / 1 / -1 / -1;
}

.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#screenoverlay {
  z-index: 11;
  background-color: #646464;
}

#lightBox-backdrop {
  z-index: 11;
}

#splash {
  grid-area: 3 / 1 / -1;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  #splashText {
    font-size: 12px;
  }
}

.qx-tooltip-css {
  pointer-events: none;
}

#landing-page {
  --gray-xs: oklch(15% 0 0);
  --gray-s: oklch(35% 0 0);
  --gray-m: oklch(55% 0 0);
  --gray-l: oklch(75% 0 0);
  --gray-xl: oklch(95% 0 0);
  --error-color: #ee0000;

  z-index: 11;
  background: center url("resource/iv/landing-page.png");
  background-size: cover;
  padding: max(2em, 5vh) 5vw;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: max(2em, 5vh);

  h2 {
    margin: 0;
  }

  select {
    min-width: 10ch;
    max-height: var(--target-size-aaa);
    background-color: inherit;
    font: inherit;
    color: inherit;
  }

  p {
    max-width: 80ch;
    line-height: 1.5;
  }

  a {
    color: inherit;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  .logo {
    width: clamp(200px, 20vw, 40ch);
  }

  svg.icon {
    aspect-ratio: 1;
    height: 1em;
  }

  .widget {
    border-radius: 4px;
    background: white;
    padding: 1em;
    max-width: 80ch;
    color: var(--gray-xs);

    header {
      display: flex;
      justify-content: space-between;
      gap: 2em;

      .language-wrapper {
        white-space: nowrap;
      }
    }

    .login-wrapper {
      height: 5em;
      display: flex;
      align-items: center;
      gap: 2em;
    }

    .spinner {
      align-self: center;
      display: none;

      &.show {
        display: initial;
      }
    }

    button {
      box-shadow: 1px 1px 2px var(--gray-m);
      border: none;
      border-radius: 4px;
      background: var(--corporate-color);
      height: var(--target-size-aaa);
      padding: 0 1em;
      font: inherit;
      font-weight: 600;
      color: white;

      &:disabled {
        box-shadow: none;
        background: var(--gray-xl);
        color: var(--gray-s);
      }

      &:not(:disabled):active {
        padding-top: 2px;
      }

      &:not(:disabled):hover {
        background: oklch(from var(--corporate-color) calc(1.05 * l) c h);
      }
    }

    .error-message {
      margin: 0;
      font-size: 0.875em; /* 14/16px */
      color: var(--error-color);

      & > span {
        display: none;

        &.show {
          display: initial;
        }
      }
    }

    .support {
      font-size: 0.875em; /* 14/16px */
      color: var(--gray-s);

      address {
        display: inline-grid;
        grid-template-columns: repeat(2, auto);
        column-gap: 1ch;
        font: inherit;

        a {
          height: var(--target-size-aa);
        }
      }
    }
  }

  footer {
    margin-top: auto;
    display: flex;
    gap: 3em;
    color: white;
    /*font-weight: 600;*/
  }
}
