
@font-face {
  font-family: BaloiseCreateHeadline;
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: local("BaloiseCreateHeadline");
  src: local("BaloiseCreateHeadline-bold");
  src: url("../fonts/BaloiseCreateHeadline-bold.ttf") format("truetype");
  src: url("../fonts/BaloiseCreateHeadline-bold.woff2") format("woff2");
  src: url("../fonts/BaloiseCreateHeadline-bold.woff") format("woff");
}
@font-face {
  font-family: BaloiseCreateHeadline;
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: local("BaloiseCreateHeadline-light");
  src: url("../fonts/BaloiseCreateHeadline-light.ttf") format("truetype");
  src: url("../fonts/BaloiseCreateHeadline-light.woff2") format("woff2");
  src: url("../fonts/BaloiseCreateHeadline-light.woff") format("woff");
}
@font-face {
  font-family: BaloiseCreateText;
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: local("BaloiseCreateText-bold");
  src: url("../fonts/BaloiseCreateText-bold.ttf") format("truetype");
  src: url("../fonts/BaloiseCreateText-bold.woff2") format("woff2");
  src: url("../fonts/BaloiseCreateText-bold.woff") format("woff");
}
@font-face {
  font-family: BaloiseCreateText;
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: local("BaloiseCreateText");
  src: local("BaloiseCreateText-regular");
  src: url("../fonts/BaloiseCreateText-regular.ttf") format("truetype");
  src: url("../fonts/BaloiseCreateText-regular.woff2") format("woff2");
  src: url("../fonts/BaloiseCreateText-regular.woff") format("woff");
}

@font-face {
  font-family: MuseoSlab;
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: local("MuseoSlab-regular");
  src: url("../fonts/MuseoSlab/MuseoSlab-300.ttf") format("truetype");
  src: url("../fonts/MuseoSlab/MuseoSlab-300.woff") format("woff");
}

@font-face {
  font-family: MuseoSlab;
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: local("MuseoSlab-bold");
  src: url("../fonts/MuseoSlab/MuseoSlab-700.ttf") format("truetype");
  src: url("../fonts/MuseoSlab/MuseoSlab-700.woff") format("woff");
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

bal-app {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column;
}

bal-app .container {
  width: 100%;
}

.bam-app-header,
.bam-app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000D6EFF;
  color: #fff;
}

.bam-app-header .app-header__wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1304px;
  height: 64px;
  max-height: 64px;
  margin: 0 16px;
}

.bam-app-header .app-header__link {
  display: flex;
}

.bam-app-header .app-header__logo {
  max-height: 24px;
  flex: 0 0 auto;
  width: auto;
}

.bam-app-header .app-header__headline {
  margin: 0 0 0 3rem;
  font-family: BaloiseCreateText, Arial, sans-serif;
  color: #FFF;
  font-weight: 700;
  font-size: 0;
  flex: 1 0 auto;
}

.bam-app-header .app-header__phone-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  border: 2px solid #FFF;
  border-radius: 4px;
  background-color: #000d6e;
  width:28px;
  height: 28px;
}

.bam-app-header .app-header__phone-link:hover {
  background-color: #0014aa;
}

.bam-app-header .app-header__phone-link svg {
  width: 12px;
  height: 12px;
}

.bam-app-header .app-header__language-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  border: 2px solid #FFF;
  border-radius: 4px;
  border: 2px solid #000;
  background-color: #000;
  width: 28px;
  height: 28px;
  font-family: BaloiseCreateHeadline;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5rem;
  margin-left: 0.5rem;
}

.bam-app-header .app-header__language-switch.is-active {
  color: #000;
  background-color: transparent;
  border: 2px solid transparent
}

.bam-app-footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bam-app-footer .app-footer__wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 16px;
  font-family: BaloiseCreateText, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}

.bam-app-footer .app-footer__wrapper .grid {
  width: 100%;
}

.bam-app-footer .app-footer__link {
  margin-bottom: 16px;
}

.bam-footer__meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.bam-footer__meta-list li {
  margin: 0;
}

.bam-footer__meta-list li:last-child {
  margin-bottom: 0;
}

.bam-footer__meta-list a:link,
.bam-footer__meta-list a:visited,
.bam-footer__meta-list a:hover,
.bam-footer__meta-list a:active {
  font-family: BaloiseCreateHeadline, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: auto;
}

.bam-footer__meta-list a:hover,
.bam-footer__meta-list a:active {
  text-decoration: underline;
}

/* is-TCS */
.bam-app-header.is-tcs {
  background-color: #EDE1CD;
  margin-bottom: 60px;
}

.bam-app-header.is-tcs .app-header__logo {
  max-height: 100px;
}

.bam-app-header.is-tcs .app-header__headline {
  color: #000;
  font-family: MuseoSlab;
  font-weight: 700;
}

.bam-app-header.is-tcs p {
  color: #000;
  font-family: MuseoSlab;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1rem;;
  text-align: right;
  top: 66px;
  right: 1rem;
  display: block;
  position: absolute;
}

.bam-app-header.is-tcs .app-header__phone-link {
  border: 2px solid #000;
  border-radius: 4px;
  background-color: #000;
  width:28px;
  height: 28px;
  margin-left: 0.5rem;
}

.bam-app-header.is-tcs .app-header__phone-link:hover {
  background-color: #000;
}

.bam-app-footer.is-tcs {
  background-color: #EDE1CD;
  color: #000;
  font-family: MuseoSlab;
  font-weight: 300;
}

.bam-app-footer.is-tcs .app-footer__wrapper.is-partner {
  color: #000;
  font-family: MuseoSlab;
  font-weight: 300;
}

.bam-app-footer.is-tcs .app-footer__wrapper.is-partner a {
  color: #000;
  font-family: MuseoSlab;
  font-weight: 300;
}

/* Partner */
.bam-app-header.bg-white {
  background-color: #FFF;
}

.bam-app-header.bg-white .app-header__headline {
  color: #000;
}

.bam-app-footer .app-footer__wrapper.is-partner a {
  color: #FFF;
}

.bam-app-overlay__wrapper {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.bam-app-overlay__is-hidden {
  display: none;
}

.bam-app-overlay__backdrop {
  z-index: -1;
  background-color: rgba(0,13,110,.8);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.bam-app-overlay__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: white;
  border-radius: 12px;
  padding: 1rem;
  width: calc(100% - 4rem);
  margin-top: 1rem;
}

.bam-app-overlay__headline {
  font-family: BaloiseCreateHeadline, Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000d6e;
  font-size: 1.25rem;
  line-height: 2rem;

}

.bam-app-overlay__text {
  font-family: BaloiseCreateText, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(0,13,110);
}

.bam-app-overlay__button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #000d6e;
  border-color: #000d6e;
  color: #ffffff;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: inline-flex;
  border-style: solid;
  border-radius: .25rem;
  font-family: BaloiseCreateHeadline, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  border-width: 2px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  vertical-align: top;
  padding: 10px 24px;
  min-height: 48px;
  height: auto;
  text-align: left;
  word-break: break-word;
  box-shadow: none;
  outline: none;
  z-index: 0;
  box-sizing: border-box;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
}

@media only screen and (min-width: 770px) {
  .bam-app-overlay__body {
    width: 35%;
    margin-top: 2rem;
  }

  .bam-app-overlay__headline {
    margin-bottom: 3rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .bam-app-header .app-header__headline {
    display: block;
    font-size: 16px;
    line-height: 24px;
  }

  .bam-app-header.is-tcs p {
    position: relative;
    margin-right: 1rem;
    top: auto;
    right: auto;
  }

  .bam-app-header .app-header__wrapper,
  .bam-app-footer .app-footer__wrapper {
    margin: 0 3rem;
  }
}

@media screen and (min-width: 1024px) {

  .bam-app-header .app-header__wrapper {
    height: 80px;
    max-height: 80px;
  }

  .bam-app-footer .app-footer__wrapper.is-partner {
    margin: 0 auto;
    max-width: 680px;
  }

  .bam-app-header .app-header__logo,
  .bam-app-footer .app-footer__logo {
    max-height: 32px;
  }

  .bam-app-header.is-tcs .app-header__logo {
    width: 120px;
    max-height: none;
  }

  .bam-app-header .app-header__headline {
    font-size: 20px;
    line-height: 30px;
  }

  .bam-app-footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .bam-footer__meta-list {
    gap: 2rem;
  }
}

/* DS Application Page with sticky image (e.g Trust image) */
.ds-application-seal {
  display: none;
  position: sticky;
  bottom: 0.75rem;
  left: 5rem;
  margin-bottom: 2rem;
  margin-top: auto;
  height: 160px !important;
  max-width: 160px !important;
  object-fit: contain;
  object-position: bottom;

  &.edit-mode {
    display: block
  }
}

@media (min-width: 1280px){
  .ds-application-main:has(.ds-application-seal) {
    min-height: 77vh;
    display: flex;
    flex-direction: column;
  }

  .ds-application-main:has(.ds-application-seal) > *:nth-last-child(2) {
    margin-bottom: -195px;
  }

  .ds-application-seal {
    display: block;
  }
}
