/* ══════════════════════════════════════
   Metorbike Leasingrechner — Frontend
   ══════════════════════════════════════ */

/* ── CALCULATOR SHELL ── */
.mb-calc {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mb-calc *, .mb-calc *::before, .mb-calc *::after {
  box-sizing: border-box;
}
.mb-calc a,
.mb-calc a:hover,
.mb-calc a:focus,
.mb-calc a:visited {
  text-decoration: none !important;
}

/* ── MODE TABS ── */
.mb-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.mb-mode {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 20px 24px;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 550;
  color: #000;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  line-height: 1.2;
}
.mb-mode:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.mb-mode[data-active="true"] {
  background: #1a3c34 !important;
  color: #fff !important;
  border-color: #1a3c34 !important;
}

/* ── SECTION HEADINGS ── */
.mb-calc h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 6px;
  letter-spacing: -.01em;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ── TIER CARDS ── */
.mb-tiers {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  margin-top: 16px;
}
.mb-tier {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1.5px solid rgba(0,0,0,.08);
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.mb-tier:hover { border-color: rgba(0,0,0,.18); }
.mb-tier[data-active="true"] { border-color: #000; }
.mb-tier-badge {
  display: none;
  background: #1a3c34;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  flex-shrink: 0;
  line-height: 1.4;
}
.mb-tier.recommended .mb-tier-badge { display: inline-flex; }
.mb-tier-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.mb-tier-name {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-tier-price {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-tier-desc {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  line-height: 1.4;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ── FORM FIELDS ── */
.mb-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mb-field {
  flex: 1 1 100%;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px 10px;
  border: 1.5px solid rgba(0,0,0,.1);
  position: relative;
  transition: border-color .2s ease;
}
.mb-field:focus-within { border-color: #000; }
.mb-field--half { flex: 1 1 calc(50% - 5px); }

.mb-input {
  border: none;
  outline: none;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  background: transparent;
  width: 100%;
  -moz-appearance: textfield;
}
.mb-input::-webkit-inner-spin-button,
.mb-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mb-input::placeholder { color: #ccc; }
.mb-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mb-suffix {
  font-size: 15px;
  color: #999;
  font-weight: 500;
  flex-shrink: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* Select */
.mb-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  width: 100%;
  cursor: pointer;
  padding-right: 28px;
}
.mb-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── EXTRA FIELDS ROW ── */
.mb-fields-extra {
  margin-bottom: 6px;
}

/* ── CALC BUTTON ── */
.mb-calc .mb-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 20px 24px;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity .2s ease;
  text-decoration: none !important;
  text-align: center;
  display: block;
}
.mb-calc .mb-btn:hover { opacity: .88; }

/* ── RESULT ── */
.mb-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  animation: mbFadeIn .4s ease;
}
@keyframes mbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mb-result-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-result-rate {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  display: block;
  margin: 4px 0 20px;
  letter-spacing: -.03em;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.mb-detail-label {
  font-size: 14px;
  color: #888;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
.mb-detail-row.mb-highlight .mb-detail-label,
.mb-detail-row.mb-highlight .mb-detail-value {
  color: #1a3c34;
  font-weight: 600;
}
.mb-extras {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ── CTAs ── */
.mb-calc .mb-ctas {
  margin-top: 10px;
}
.mb-calc .mb-cta,
.mb-calc .mb-btn-recalc {
  width: 100%;
  border-radius: 999px;
  padding: 20px 24px;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  display: block;
  line-height: 1.2;
  transition: all .2s ease;
  box-sizing: border-box;
}
.mb-calc .mb-cta.mb-cta--primary {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.mb-calc .mb-cta.mb-cta--primary:hover { opacity: .88; }

/* ── RECALC BUTTON ── */
.mb-calc .mb-btn-recalc {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  margin-top: 20px;
}
.mb-calc .mb-btn-recalc:hover { background: #000; color: #fff; }

/* ── DISCLAIMER ── */
.mb-disclaimer {
  font-size: 11px;
  color: #bbb;
  line-height: 1.5;
  margin-top: 24px;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ── HIDE UTIL ── */
.mb-hidden { display: none !important; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 640px) {
  /* Modes: 2×2 grid */
  .mb-modes {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mb-mode {
    flex: 1 1 calc(50% - 3px);
    font-size: 13px;
  }

  /* Headings */
  .mb-calc h3 { font-size: 16px; }

  /* Tiers: stack horizontal */
  .mb-tiers {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }
  .mb-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .mb-tier-info { flex: 1; }
  .mb-tier-price {
    font-size: 20px;
    flex-shrink: 0;
  }
  .mb-tier-name { font-size: 13px; }
  .mb-tier-desc { display: none; }
  .mb-tier-badge { font-size: 8px; padding: 2px 6px; }

  /* Fields: stack all */
  .mb-field--half { flex: 1 1 100%; }
  .mb-input { font-size: 18px; }
  .mb-select { font-size: 18px; }
  .mb-field { padding: 12px 14px 10px; }

  /* Result */
  .mb-result-rate { font-size: 26px; }
  .mb-detail-label, .mb-detail-value { font-size: 13px; }
}

@media (max-width: 380px) {
  .mb-mode { font-size: 12px; }
  .mb-tier-price { font-size: 18px; }
  .mb-result-rate { font-size: 22px; }
  .mb-input, .mb-select { font-size: 16px; }
}
