/* A quiet view of Germany, with opaque learning surfaces in both themes. */
body {
  isolation: isolate;
  background-image: none;
}

.germany-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("./germany-berlin.jpg") center 40% / cover no-repeat;
  opacity: .18;
}

.germany-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 248, 252, .2), rgba(245, 248, 252, .65) 64%, #f5f8fc);
}

html[data-theme="dark"] .germany-backdrop {
  opacity: .12;
}

html[data-theme="dark"] .germany-backdrop::after {
  background: linear-gradient(180deg, rgba(17, 26, 41, .35), rgba(17, 26, 41, .82) 64%, #111a29);
}

body.is-auth .germany-backdrop {
  display: none;
}

body.is-welcome .landing-dashboard {
  padding: 24px;
  background: var(--welcome-surface);
}

body.is-welcome .landing-dashboard::before,
body.is-welcome .landing-dashboard::after,
body.is-welcome .landing-dashboard-scan {
  display: none;
}

.landing-germany {
  position: relative;
  margin: -24px -24px 20px;
  height: clamp(210px, 19vw, 270px);
  overflow: hidden;
  background: #c6d6e4;
  isolation: isolate;
}

.landing-germany img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.landing-germany::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 18%, rgba(12, 26, 43, .88));
}

.landing-germany figcaption {
  position: absolute;
  inset-inline: 24px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.landing-germany figcaption span,
.landing-germany figcaption strong,
.landing-germany figcaption a {
  display: block;
}

.landing-germany figcaption span {
  font: 700 14px/1.5 system-ui, sans-serif;
  letter-spacing: .09em;
}

.landing-germany figcaption strong {
  margin-top: 5px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.65;
}

.landing-germany figcaption a {
  width: fit-content;
  margin-top: 5px;
  color: #e0eafa;
  font: 12px/1.5 system-ui, sans-serif;
  text-decoration: none;
}

.landing-germany figcaption a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Reuse the bundled photo on the existing account gateway as well. */
.auth-berlin {
  background-image: url("./germany-berlin.jpg");
}

@media (max-width: 700px) {
  .germany-backdrop {
    background-position: 48% 30%;
    opacity: .14;
  }

  .landing-germany {
    height: 220px;
  }

  .landing-germany figcaption {
    inset-inline: 20px;
    bottom: 16px;
  }
}

@media print {
  .germany-backdrop {
    display: none;
  }
}
