:root {
  --sts-bg-color: #2870ed;
  --sts-footer-height: 4rem;
  --sts-color-corporate: #022e67;
  --sts-color-teal: #02a3a4;
  --sts-color-pink: #eb4c79;
  --sts-color-forrest: #028661;
  --sts-color-apple: #0cb43f;
  --sts-color-orange: #ff6130;
  --sts-color-aubergine: #721c7a;
  --sts-right-side-bg-color: var(--sts-color-forrest);
  --bs-body-font-family: Inter, var(--bs-font-sans-serif);
  --bs-body-color: #0a285c;
  --bs-body-color-rgb: 10, 40, 92;
  --bs-secondary-color: #5c7999;
  --bs-secondary-color-rgb: 92, 121, 153;
  --bs-link-color: #1d69ec;
  --bs-link-color-rgb: 29, 105, 236;
  --bs-link-decoration: none;
  --bs-link-hover-color: #1d69ec;
  --bs-link-hover-color-rgb: 29, 105, 236;
}

html {
  background-color: var(--sts-bg-color);
}

main {
  height: calc(100vh - var(--sts-footer-height));
}

footer {
  height: var(--sts-footer-height);
  background-color: var(--sts-bg-color);
}

/************************************************************************
* Remove arrows/spinners from input type number
************************************************************************/

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/************************************************************************
* Icon for alert messages
************************************************************************/

.alert svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  margin-top: 0.2rem;
}

/************************************************************************
* Cookie banner
************************************************************************/

.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0.25rem;
  z-index: 99999;
}

.cookie-banner-wrapper {
  padding: 1.25rem 1.875rem;
  background: #00385f;
  border-radius: 0.75rem;
  position: relative;
  box-shadow: 0 0.125rem 2rem rgba(0, 40, 67, 0.3);
  color: #fff;
}

.cookie-banner-wrapper svg {
  fill: currentColor;
  width: 3rem;
}

.cookie-banner-wrapper a {
  color: #fff;
  font-weight: 700;
}

/************************************************************************
* The left side of the page
************************************************************************/

.left-side .wrapper {
  width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.product-icon {
  max-width: 6rem;
  max-height: 6rem;
}

/************************************************************************
* The right side of the page
************************************************************************/

.right-side {
  background-color: var(--sts-right-side-bg-color);
  color: #fff;
}

/************************************************************************
* Language flags
************************************************************************/

.language {
  display: flex;
  align-items: center;
  justify-items: center;
  text-align: right;
  height: 2.25rem;
}

.language a {
  width: 2.25rem;
  height: 1.5rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.25rem;
  cursor: pointer;
}

.language .lang_en {
  background-size: cover;
  background-image: url("c7ad00fcf54da3581544b89a398689b437bec6c4.svg");
}

.language .lang_de {
  background-size: cover;
  background-image: url("88ca43cf4bd8ff146309817d74441b07e6e8d02c.svg");
}

body.de .lang_de,
body.en .lang_en {
  display: none;
}

body.isApp .language {
  display: none !important;
}

/************************************************************************
* Icon for input fields
************************************************************************/

.input-icon {
  color: rgba(0, 73, 123, .5);
  fill: currentColor;
  position: absolute;
  margin-top: 0.4375rem;
  margin-left: 0.875rem;
  width: 1.5rem;
  height: 1.5rem;
}

/************************************************************************
* Helper button to show info dialog
************************************************************************/

.input-info {
  display: inline-block;
  position: absolute;
  top: 0.4375rem;
  right: -1.5rem;
}

.input-info svg {
  color: rgba(0, 73, 123, .5);
  fill: currentColor;
  width: 1.25rem;
  height: 1.25rem;
}

.input-info svg:hover {
  color: rgba(0, 73, 123, 1);
}

/************************************************************************
* Helper button to change the username
************************************************************************/

span.changenumber {
  display: inline-block;
  z-index: 1;
  position: absolute;
  right: 0.75rem;
  top: 0.6875rem;
}

span.changenumber > a {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("");
  background-size: contain;
  background-repeat: no-repeat;
}

/************************************************************************
* Helper button to open the virtual keyboard
************************************************************************/

a.openkeyboard.inInput:after {
  content: " ";
  width: 1.5rem;
  height: 1rem;
  background-repeat:no-repeat;
  background-color:#fff;
  background-image: url("");
  background-position: -102px -10px;
  display: inline-block;
  cursor: pointer;
}

a.openkeyboard.inInput {
  display: block;
  z-index: 1;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

a.openkeyboard.inInput.hidden {
  display: none !important;
}

body.isApp .openkeyboard, body.ismobile .openkeyboard {
  display: none !important;
}

/************************************************************************
* Keyboard styles
************************************************************************/

.keypad-button {
  width: 3.5rem;
}

.function-button {
  width: 6rem;
}

.config-button {
  width: 11rem;
}

/************************************************************************
* Spinner from George Labs:
* https://designsystem.george-labs.com/main/components/spinner
************************************************************************/

.g-spinner {
  width: 2rem !important;
  height: 2rem !important;
  -webkit-animation: rotate 2s linear infinite;
  -moz-animation: rotate 2s linear infinite;
  -o-animation: rotate 2s linear infinite;
  -ms-animation: rotate 2s linear infinite;
  animation: rotate 2s linear infinite;
  -webkit-animation-delay: -1s;
  -moz-animation-delay: -1s;
  -o-animation-delay: -1s;
  -ms-animation-delay: -1s;
  animation-delay: -1s;
}

.g-spinner-circle {
  -webkit-animation: dash 2s ease-in-out infinite;
  -moz-animation: dash 2s ease-in-out infinite;
  -o-animation: dash 2s ease-in-out infinite;
  -ms-animation: dash 2s ease-in-out infinite;
  animation: dash 2s ease-in-out infinite;
  -webkit-animation-delay: -1s;
  -moz-animation-delay: -1s;
  -o-animation-delay: -1s;
  -ms-animation-delay: -1s;
  animation-delay: -1s;
  stroke-width: 0.1875rem;
  stroke-dasharray: 80, 200;
  stroke-dashoffset: 0;
  stroke: currentColor;
 }

@keyframes rotate {
  0% {
    transform-origin: 50% 50%;
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 100, 200;
    stroke-dashoffset: -15;
  }
  100% {
    stroke-dasharray: 100, 200;
    stroke-dashoffset: -125;
  }
}

/************************************************************************
* Special cases
************************************************************************/

.error-message, .warning-message {
  display: none !important;
}

body.noPass .form, body.noPass .error-message {
  display: none !important;
}

body.ismobile .input-info {
  display: none !important;
}

body.isApp .input-info, body.isApp .info-message, body.isApp .warning-message, body.isApp .error-message {
  display: none !important;
}

body.isApp.loginerror .error-message, body.loginerror .error-message, body.error .error-message {
  display: flex !important;
}

body.warning .warning-message {
  display: flex !important;
}

/************************************************************************
* Bootstrap adjustments
************************************************************************/

a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

p > a {
  font-size: 1em;
}

a:hover:not(.btn, .nav-link) {
  text-decoration: underline;
}

a.alert-link {
  font-size: 1em;
  text-decoration: underline;
}

.alert a {
  text-decoration: underline;
  font-size: 1em;
  font-weight: 700;
  color: var(--bs-alert-link-color);
}

.btn {
  --bs-btn-font-weight: 600;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  font-weight: 700;
  line-height: 1.75rem;
}

h1 {
  font-size: 1.375rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.225rem;
}

h4 {
  font-size: 1.15rem;
}

h5 {
  font-size: 1.075rem;
}

h6 {
  font-size: 1rem;
}

.nav {
  --bs-nav-link-font-size: 0.875rem;
  --bs-nav-link-font-weight: 400;
  --bs-nav-link-color: #ffffff;
  --bs-nav-link-hover-color: #ffffff;
}

.navbar {
  --bs-navbar-color: #ffffff;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-padding-y: 0;
  --bs-navbar-toggler-padding-y: 0;
  --bs-navbar-toggler-padding-x: 0;
  --bs-navbar-toggler-icon-bg: url("83c9c93b1503dba0e2a635668a981df0e65fcfcc.svg");
  --bs-navbar-toggler-focus-width: 0;
}

.navbar-toggler {
  border: none !important;
}

.menu-offcanvas {
  border: none !important;
  color: #fff !important;
  background-color: var(--sts-bg-color) !important;
  height: calc(100vh - var(--sts-footer-height)) !important;
  width: 100% !important;
}

.menu-offcanvas .btn-close-white {
  opacity: 1;
}

/************************************************************************
* Media queries
************************************************************************/

@media (max-width: 768px) {
  a.openkeyboard.inInput:after, #virtual-keyboard-info {
    display: none !important;
  }
}
