/* Ergänzung zu Bootstrap 4. Bootstrap liegt lokal unter static/, damit die
   Seite nichts von außen nachlädt und die CSP streng bleiben kann. */

body {
  background-color: #f4f7fb;
  min-height: 100vh;
}

.gate-wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.gate-brand {
  color: #005bd4;
  font-weight: 600;
  letter-spacing: .02em;
}

.gate-card {
  border: 1px solid #d6e0ef;
  border-radius: .4rem;
  box-shadow: 0 .4rem 1.4rem rgba(0, 91, 212, .08);
}

.gate-card > .card-header {
  background-color: #005bd4;
  border-bottom: 0;
  color: #fff;
}

/* Fortschritt: drei Punkte auf einer Linie. Die Nummerierung steht dort,
   weil das Captcha sonst verwirrt - man soll sehen, dass zwei Stufen
   folgen und das hier nicht schon die Anmeldung ist. */
.gate-steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gate-steps__item {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  padding-top: 1.65rem;
  font-size: .78rem;
  color: #8095b0;
}

.gate-steps__item::before {   /* die Verbindungslinie */
  content: "";
  position: absolute;
  top: .56rem;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: #d6e0ef;
}

.gate-steps__item:first-child::before { display: none; }

.gate-steps__item::after {    /* der Punkt */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #d6e0ef;
  background-color: #fff;
}

.gate-steps__item.is-done::before,
.gate-steps__item.is-active::before { background-color: #005bd4; }

.gate-steps__item.is-done::after {
  border-color: #005bd4;
  background-color: #005bd4;
}

.gate-steps__item.is-active {
  color: #005bd4;
  font-weight: 600;
}

.gate-steps__item.is-active::after {
  border-color: #005bd4;
  box-shadow: 0 0 0 .2rem rgba(0, 91, 212, .18);
}

.gate-captcha {
  border: 1px solid #d6e0ef;
  border-radius: .25rem;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Codeeingabe: breit gesperrt, damit die fuenf Zeichen einzeln stehen. */
.gate-code {
  font-family: SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 1.5rem;
  letter-spacing: .55em;
  text-indent: .28em;
  text-align: center;
  text-transform: uppercase;
}

.gate-secret {
  font-family: SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  word-break: break-all;
  color: #005bd4;
}

.gate-codes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: .4rem;
}

.gate-codes li {
  font-family: SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: .85rem;
  text-align: center;
  padding: .35rem .5rem;
  border: 1px solid #d6e0ef;
  border-radius: .2rem;
  background-color: #f4f7fb;
}

.gate-codes li.is-used {
  color: #adb5bd;
  text-decoration: line-through;
}

.gate-foot {
  font-size: .76rem;
  color: #8095b0;
}

.gate-qr {
  background-color: #fff;
  padding: .5rem;
  border: 1px solid #d6e0ef;
  border-radius: .25rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Bootstrap-Primärblau auf denselben Ton ziehen wie der Kartenkopf –
   zwei verschiedene Blautöne auf einer Seite wirken wie ein Versehen. */
.btn-primary {
  background-color: #005bd4;
  border-color: #005bd4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #0049ab;
  border-color: #0049ab;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 .2rem rgba(0, 91, 212, .35);
}

.btn-outline-primary {
  color: #005bd4;
  border-color: #005bd4;
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: #005bd4;
  border-color: #005bd4;
}

a { color: #005bd4; }
a:hover { color: #0049ab; }

.form-control:focus {
  border-color: #6f9fe0;
  box-shadow: 0 0 0 .2rem rgba(0, 91, 212, .18);
}

.text-primary { color: #005bd4 !important; }
