/* =========================================================
   Menüradar Portal
   Login + Registrierung
   Mobile First

   Globale Farben, Breiten, Header und Footer:
   base.css
   ========================================================= */


/* ---------------------------------------------------------
   Seitenlayout
   --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content-max);

  margin: 0 auto;

  padding:
    24px
    var(--page-padding)
    64px;
}

.wrap main {
  width: 100%;
  min-width: 0;
}


/* ---------------------------------------------------------
   Auth-Bereich
   --------------------------------------------------------- */

.authwrap {
  width: 100%;
  max-width: 620px;

  margin: 0 auto;
}

.authwrap > div:first-child {
  margin-bottom: 18px;
}

.authwrap .eyebrow {
  margin-bottom: 7px;

  color: var(--green);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authwrap h2 {
  margin: 0;

  font-family:
    "Bricolage Grotesque",
    sans-serif;

  font-size:
    clamp(
      28px,
      8vw,
      38px
    );

  font-weight: 800;

  line-height: 1.08;

  letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   Login-/Registrierungskarte
   --------------------------------------------------------- */

.authcard {
  width: 100%;
  min-width: 0;

  padding: 18px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.authcard h3 {
  margin-bottom: 5px;

  font-family:
    "Bricolage Grotesque",
    sans-serif;

  font-size: 19px;
  font-weight: 700;

  line-height: 1.2;
}

.authcard .hint {
  margin-bottom: 18px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   Formularfelder
   --------------------------------------------------------- */

.frow {
  display: flex;
  flex-direction: column;

  gap: 5px;

  width: 100%;
  min-width: 0;

  margin-bottom: 14px;
}

.frow label {
  color: var(--muted);

  font-size: 11.5px;
  font-weight: 700;

  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.inp {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 11px 12px;

  box-sizing: border-box;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #faf8f2;

  color: var(--ink);

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.inp:focus {
  border-color: var(--green);

  background: #fff;
}

select.inp {
  cursor: pointer;
}


/* ---------------------------------------------------------
   Zwei Felder nebeneinander
   Mobile zunächst untereinander
   --------------------------------------------------------- */

.two {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap: 0;
}


/* ---------------------------------------------------------
   Fehler
   --------------------------------------------------------- */

.errmsg {
  display: none;

  margin-top: 2px;

  color: #b42318;

  font-size: 12px;
  line-height: 1.35;
}

.errmsg.show {
  display: block;
}

.inp.err {
  border-color: #d64545;

  background: #fff3f3;

  box-shadow:
    0 0 0 2px
    rgba(214, 69, 69, 0.1);
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 10px 16px;

  border: 0;
  border-radius: 10px;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--green);

  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-primary:disabled {
  opacity: 0.55;

  cursor: not-allowed;
}

.btn-ghost {
  border: 1px solid var(--line);

  background: #fff;

  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--green);

  color: var(--green);
}

.btn-link {
  min-height: auto;

  padding: 0;

  background: transparent;

  color: var(--green);

  font-size: 12.5px;
}

.btn-link:hover {
  text-decoration: underline;

  text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   Footer innerhalb einer Auth-Karte
   --------------------------------------------------------- */

.authfoot {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-top: 18px;
}

.authfoot .btn {
  width: 100%;
}

.authfoot > .linklike {
  align-self: flex-start;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--green);

  font: inherit;
  font-size: 12.5px;
  font-weight: 600;

  cursor: pointer;
}

.authfoot > .linklike:hover {
  text-decoration: underline;

  text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   Login / Registrierung wechseln
   --------------------------------------------------------- */

.swaplink {
  margin-top: 18px;

  color: var(--muted);

  font-size: 13px;

  text-align: center;
}

.swaplink button {
  padding: 0;

  border: 0;

  background: none;

  color: var(--green);

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.swaplink button:hover {
  text-decoration: underline;

  text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   Demo-Hinweis
   --------------------------------------------------------- */

.demonote {
  margin-top: 18px;

  padding: 11px 12px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background: #faf8f2;

  color: var(--muted);

  font-size: 11.5px;
  line-height: 1.45;
}


/* ---------------------------------------------------------
   Registrierung Stepper
   --------------------------------------------------------- */

.stepper {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  width: 100%;

  margin:
    0
    auto
    18px;

  overflow: hidden;
}

.step {
  position: relative;

  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 4px;
}

.step .num {
  position: relative;

  z-index: 2;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--line);

  border-radius: 50%;

  background: var(--card);

  color: var(--muted);

  font-family:
    "Space Mono",
    monospace;

  font-size: 11px;
  font-weight: 700;
}

.step .slbl {
  max-width: 100%;

  color: var(--muted);

  font-size: 9px;
  font-weight: 600;

  line-height: 1.15;

  text-align: center;

  white-space: nowrap;
}

.step .conn {
  position: absolute;

  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);

  height: 1px;

  background: var(--line);
}

.step.done .num,
.step.now .num {
  border-color: var(--green);

  background: var(--green);

  color: #fff;
}

.step.done .conn {
  background: var(--green);
}

.step.now .slbl {
  color: var(--green);

  font-weight: 700;
}


/* ---------------------------------------------------------
   Verifizierung
   --------------------------------------------------------- */

.verifyinfo {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin-bottom: 18px;

  padding: 12px;

  border:
    1px solid
    var(--line);

  border-radius: 10px;

  background: #faf8f2;

  color: var(--muted);

  font-size: 12.5px;
  line-height: 1.5;
}

.verifyinfo svg {
  flex: none;

  margin-top: 1px;

  color: var(--green);
}

.verifyinfo b {
  color: var(--ink);
}


/* ---------------------------------------------------------
   4-stelliger Code
   --------------------------------------------------------- */

.codegrid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 54px)
    );

  justify-content: center;

  gap: 8px;

  margin:
    18px
    0;
}

.codebox {
  width: 100%;
  height: 52px;

  min-width: 0;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #faf8f2;

  color: var(--ink);

  font-family:
    "Space Mono",
    monospace;

  font-size: 20px;
  font-weight: 700;

  text-align: center;

  outline: none;
}

.codebox:focus {
  border-color: var(--green);

  background: #fff;

  box-shadow:
    0 0 0 3px
    rgba(47, 107, 79, 0.09);
}


/* ---------------------------------------------------------
   Freigabestatus
   --------------------------------------------------------- */

.statuscard {
  text-align: center;
}

.statusicon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin:
    0
    auto
    14px;

  border-radius: 50%;
}

.statusicon.wait {
  background: var(--amber-soft);

  color: #9a6512;
}

.statusicon.ok {
  background: var(--green-soft);

  color: var(--green);
}

.statuscard > p {
  margin-top: 7px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   Timeline
   --------------------------------------------------------- */

.timeline {
  display: grid;

  gap: 9px;

  margin-top: 20px;

  text-align: left;
}

.titem {
  display: flex;
  align-items: center;

  gap: 9px;

  color: var(--muted);

  font-size: 12.5px;
}

.ticon {
  width: 22px;
  height: 22px;

  flex: none;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-family:
    "Space Mono",
    monospace;

  font-size: 10px;
  font-weight: 700;
}

.titem.done .ticon {
  background: var(--green-soft);

  color: var(--green);
}

.titem.pend .ticon {
  background: #f3f1eb;

  color: var(--faint);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 600px) {

  .wrap {
    padding-top: 36px;
  }

  .authcard {
    padding: 24px;
  }

  .two {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 14px;
  }

  .two-address {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(120px, 1fr);
  }

  .two-location {
    grid-template-columns:
      minmax(110px, 1fr)
      minmax(0, 2fr);
  }

  .two-phone {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(150px, 1fr);
  }

  .authfoot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .authfoot .btn {
    width: auto;
  }

  .step .slbl {
    font-size: 10.5px;
  }

  .codegrid {
    gap: 10px;

    grid-template-columns:
      repeat(
        4,
        60px
      );
  }

  .codebox {
    height: 58px;

    font-size: 22px;
  }
}


/* =========================================================
   Desktop
   ========================================================= */

@media (min-width: 900px) {

  .wrap {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .authwrap {
    max-width: 680px;
  }

  .authcard {
    padding: 28px;
  }
}

