body {
  --current-background-color: var(--ui-color-blue-200);
  background-color: var(--current-background-color);
}

.ui-headline {
  margin-bottom: 16px;
}

#header .union-investment-logo {
  padding-left: 0;
}
@media (min-width: 1024px) {
  #header .union-investment-logo {
    padding-left: 0;
  }
}
/* fix/hack header background+drop-shadow position, tested up to 8500px viewport width */
#header::after {
  width: 200vw;
  transform: translateX(-100vw);
  left: unset;
}

/* counteract #header position:fixed collapse, i.e. offset following content by header height */
.header-wrapper {
  margin-top: 75px;
}
@media (min-width: 768px) {
  .header-wrapper {
    margin-top: 90px;
  }
}

#localAccountForm .entry label {
  display: none;
}

.error.itemLevel,
.error.pageLevel {
  color: var(--ui-color-highlight-red);
  /* from ui-input .input__message */
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  padding-top: 7px;
}
#localAccountForm input.highlightError,
#attributeVerification .textInput.invalid {
  border-color: var(--ui-color-highlight-red);
}

.icons {
  grid-row: 1; /* unnecessary, just here for clarity/comparison with following media query */
}
@media (min-width: 600px) {
  .icons {
    grid-row: span 3; /* span ALL rows. sadly there's no 'span -1' or '1/-1', so this needs to be updated when number of rows change. See https://github.com/w3c/csswg-drafts/issues/2402 */
  }
}

.icons .ui-icon {
  width: 12.5%;
  height: auto;
  filter: contrast(0) sepia(1) hue-rotate(175deg) brightness(0.3) saturate(9)
}
@media (min-width: 600px) {
  .icons .ui-icon {
    width: 50%;
  }
}

#api.reset > .buttons {
  display: none;
}
#api.reset .heading,
#api.reset .intro,
#api.reset #attributeVerification {
  grid-column: 1;
}

@media (min-width: 600px) {
  #api.reset .heading,
  #api.reset .intro,
  #api.reset #attributeVerification {
    grid-column: 2/4;
  }
}

#api button {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  background-color: var(--component-button-color-background, var(--current-color-primary, #00358e));
  color: var(--component-button-color-text, var(--current-color-primary-inverted, #fff));
  font-family: var(--component-button-font-family,var(--skin-font-family-primary, "Frutiger Neue", "Arial",));
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.27rem;
  border-radius: 0.25rem;
  overflow: hidden;
  padding: var(--component-button-padding-vertical, 14px) var(--component-button-padding-horizontal, 16px);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  border: medium none;
  width: 100%;
}

#api button:hover {
  color: var(--component-button-color-text-hover, var(--skin-color-primary-inverted, #fff));
  background-color: var(--component-button-color-background-hover, var(--skin-color-primary-light, #466daf));
}

#api button:active {
  background-color: var(--component-button-color-background-active, var(--skin-color-primary-shade, #051530));
}

#api button.button--secondary {
  background-color: transparent;
  border: 1px solid var(--current-color-primary);
  color: var(--current-color-primary);
}
#api button.button--secondary:hover {
  background-color: #e3e8f2; /* copied from comp-lib button, although this is not listed as --ui-color-xyz ¯\_(ツ)_/¯ */
}

#api button.button--disabled {
  background-color: var(--ui-color-grey-400);
  color: var(--ui-color-white, #fff);
  /* pointer-events: none; */
  cursor: not-allowed;
}

/* from ui-input .input */
#api input {
  font-family: "Frutiger Neue", "Arial", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

/* from ui-input .input__label */
#api .input__label {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  display: inline-block;
  max-width: 100%;
  margin-top: -5px;
  margin-bottom: 5px;
  color: var(--component-input-label, var(--current-color-text, #404040));
}

/* from ui-input .input__field::placeholder */
#api input::placeholder {
  color: #c3c3c3;
  opacity: 1;
  font-family: "Frutiger Neue", "Arial", sans-serif;
  font-weight: 400;
}

/* from ui-input input[type="text"], ui-input input[type="email"], ui-input input[type="password"], ui-input input[type="search"], ui-input input[type="number"], ui-input input[type="tel"] */
#api input {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  height: 48px;
  width: 100%;
}

/* from ui-input .input__field */
#api input {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  box-sizing: border-box;
  padding: 0 9px 0 14px;
  color: #404040;
  background-color: #fff;
  background-image: none;
  border: 1px solid #515151;
  transition: border-color 0.1s linear;
  border-radius: 4px;
}

#api input[disabled] {
  border-color: #aeaeae;
  color: #aeaeae; /* comp-lib doesn't specify this, but leaving text black/blue doesn't really make the field look 'disabled' since background color stays the same?! */
}

/* from a:not(.button) span */
#api a {
  color: var(--component-link-color-text, var(--current-color-primary, #00358e));
}

/* from ui-link:host(:hover) a:not(.button) span */
#api a:hover {
  color: var(--component-link-color-text-hover, var(--current-color-primary-light, #466daf));
}

/* from ui-link :host a span */
#api a {
  flex: 1 1 0%;
  word-break: break-word;
}

/* from ui-link :host */
#api a {
  cursor: pointer;
  font-family: var(--component-link-font-family,var(--skin-font-family-primary, "Frutiger Neue", "Arial",));
}

/* from ui-link :host a */
#api a {
  border: medium none;
  text-decoration-line: underline;
  text-decoration-color: var(--component-link-color-underline, var(--current-color-primary, #00358e));
}


#api .divider h2 {
  display: inline-block;
  padding: 0.1em 0.3em 0.4em;
  background: var(--current-background-color);
}

#api .divider {
  padding-top: 16px;
  padding-bottom: 16px;
  text-transform: lowercase;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#api .divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-left: none;
  border-bottom: 1px solid var(--ui-color-grey-400);
  width: 60%;
  transform: translateX(-50%);
}

/* XS:300, SM:600, MD:768, LG:992, Desktop:1024, XL:1200 */
@media (min-width: 600px) {
  #api .divider::before {
    border-left: 1px solid var(--ui-color-grey-400);
    border-bottom: none;
    height: 80%;
    transform: translateY(-50%);
  }
}

@media (min-resolution: 2dppx) {
  #api .divider::before {
    border-width: 0.5px;
  }
}

@media (min-resolution: 3dppx) {
  #api .divider::before {
    border-width: .33333333px;
  }
}

@media (min-resolution: 4dppx) {
  #api .divider::before {
    border-width: .25px;
  }
}


#api.login {
  display: flex;
  justify-content: center;
}

#api.reset {
  display: grid;
  grid-auto-flow: row;
  gap: 1em;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) {
  #api.reset {
    grid-template-columns: repeat(3, 1fr);
  }
}

#api button,
#localAccountForm div.entry-item, /* set on div instead of input to keep 'forgot password?' link close to input */
#attributeVerification input,
#attributeVerification #attributeList {
  margin-bottom: 20px;
}

#attributeVerification #attributeList ul {
  list-style-type: none;
  padding-left: 0;
}

.reset .intro,
#attributeVerification #email_label,
#attributeVerification a.helpLink.tiny /* hide 'whats this?' "help" link, because it's less than helpful */
{
  display: none;
}

#attributeVerification #email_ver_but_edit /* hide 'change email' button during password reset step 2. We only allow resetting the pw, not changing the email. */
{
  display: none !important;
}

#attributeVerification > .buttons {
  display: flex;
  gap: 1em;
  flex-direction: row-reverse;
  margin-top: 40px;
}


.contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.contacts-headline {
  margin-bottom: 32px;
}

.contacts ui-paragraph {
  margin: 16px 0;
  font-size: 14px;
  color: rgb(136, 136, 136);
}

@media (min-width: 600px) {
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* needed on mobile, doesn't hurt on desktop */
.contacts > div {
  margin-bottom: 24px;
}


.footer {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
@media (min-width: 600px) {
  .footer {
    flex-direction: row-reverse;
  }
}

.verbundlogo {
  width: calc(10em + 5vw);
  max-width: 17em;
}


/* stick footer to bottom */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
ui-cms-footer {
  margin-top: auto;
}
@media (min-width: 1200px) {
  .page > ui-cms-grid {
    width: 1200px; /* fix centered logo caused by collapsing grid item due to 'margin-left/right: auto' above 1200px. Also fixes slightly narrow grid-item containing div#api on login page */
  }
}
/* end: stick footer to bottom */

/* override cms-footer color */
ui-cms-footer {
  --component-container-secondary-color-lighter-background: white;
}
/* end: override cms-footer color */

/* hide AD B2C processing message during form submit */
#simplemodal-container {
  display: none !important;
}
