/* Wallet-Check, passend zur Startseite (Inter, Blau #0000ff) */
.rm-noscroll { overflow: hidden; }

.rm-connect-row { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; margin-top: 1rem; }
.rm-connect-row .cta-button { margin: 0; }

/* Knopf „Renditechancen anzeigen“: Orange wie bei MetaMask, davor die Symbole der gefundenen Wallets */
.cta-button.rm-connect-btn, .navbar-button.rm-connect-btn { background: #ff5c16; color: #fff; }
.cta-button.rm-connect-btn:hover, .navbar-button.rm-connect-btn:hover { background: #e84e0c; }
.cta-button.rm-connect-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 9px 26px 9px 9px; font-weight: 700; }
.rm-wallet-icons { display: inline-flex; flex-shrink: 0; }
.rm-wallet-icons:empty { display: none; }
.rm-wallet-icons span { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #ff5c16; }
.rm-wallet-icons span + span { margin-left: -10px; }
.rm-wallet-icons img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.rm-link { background: none; border: 0; padding: 0; font: inherit; color: #0000ff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rm-trust { margin-top: 0.75rem; font-size: 0.9rem; color: #555; }

.rm-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rm-modal[hidden] { display: none; }
.rm-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 30, 0.55); }
.rm-modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 40, 0.25); }
.rm-modal-box h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.rm-modal-sub, .rm-modal-hint { color: #555; font-size: 0.95rem; margin-bottom: 1rem; }
.rm-modal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: #666; cursor: pointer; }
.rm-wallet-list { display: grid; gap: 8px; margin-bottom: 1.25rem; }
.rm-wallet { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #e3e3ea; border-radius: 12px; background: #fff; font: inherit; color: #1a1a1a; text-decoration: none; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.rm-wallet:hover { border-color: #0000ff; background: #f6f6ff; }
.rm-wallet:disabled { opacity: 0.6; cursor: wait; }
.rm-wallet img { border-radius: 8px; flex-shrink: 0; }
.rm-wallet-dot { width: 28px; height: 28px; border-radius: 8px; background: #eef0ff; flex-shrink: 0; }
.rm-wallet-name { font-weight: 600; flex: 1; }
.rm-wallet-chain { font-size: 0.8rem; color: #777; }
.rm-address label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.rm-address-row { display: flex; gap: 8px; }
.rm-address-row input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #d6d6e0; border-radius: 10px; font: inherit; font-size: 16px; }
.rm-address-row input:focus { outline: 2px solid #0000ff; outline-offset: 1px; border-color: transparent; }
.rm-address-row button { padding: 0 16px; border: 0; border-radius: 10px; background: #0000ff; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.rm-error { color: #b00020; font-size: 0.9rem; margin-top: 0.5rem; }

.rm-result { padding: 0 16px; margin: 1rem auto 3rem; max-width: 1100px; scroll-margin-top: 16px; }
.rm-card { background: #fff; border: 1px solid #e6e6ef; border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(0, 0, 60, 0.07); }
.rm-card h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 0.25rem 0 1.5rem; }
.rm-big { color: #0000ff; white-space: nowrap; }
.rm-checked { color: #666; font-size: 0.9rem; word-break: break-word; }
.rm-checked span { color: #999; }
.rm-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-tier { border: 1px solid #e6e6ef; border-radius: 14px; padding: 18px; background: #fafaff; }
.rm-tier-sehr_riskant { background: #0000ff; border-color: #0000ff; color: #fff; }
.rm-tier-label { font-weight: 600; font-size: 0.95rem; }
.rm-tier-gain { font-size: 1.7rem; font-weight: 700; margin: 0.35rem 0 0.15rem; white-space: nowrap; }
.rm-tier-gain small { font-size: 0.85rem; font-weight: 500; opacity: 0.75; }
.rm-tier-apy { font-weight: 600; font-size: 0.95rem; }
.rm-tier-text { font-size: 0.85rem; opacity: 0.75; margin-top: 0.35rem; line-height: 1.4; }
.rm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 1.5rem 0 1rem; }
.rm-actions .cta-button { margin: 0; }
.rm-secondary { background: none; border: 1px solid #0000ff; color: #0000ff; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.rm-note { font-size: 0.82rem; color: #666; line-height: 1.45; margin-top: 0.5rem; }
.rm-loading { display: flex; align-items: center; gap: 16px; }
.rm-spinner { width: 28px; height: 28px; border: 3px solid #e3e3ff; border-top-color: #0000ff; border-radius: 50%; animation: rm-spin 0.9s linear infinite; flex-shrink: 0; }
@keyframes rm-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .rm-connect-row { align-items: center; }
  .rm-connect-row .cta-button { width: 100%; max-width: 360px; text-align: center; }
  .rm-card { padding: 22px 18px; border-radius: 16px; }
  .rm-tiers { grid-template-columns: 1fr; }
  .rm-tier-gain { font-size: 1.5rem; }
  .rm-actions .cta-button, .rm-secondary { width: 100%; text-align: center; }
}

/* Konto */
.rm-konto { max-width: 1100px; margin: 0 auto; padding: 1rem 16px 4rem; }
.rm-konto h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0.25rem 0 0.75rem; }
.rm-konto h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.rm-konto .rm-card { margin-bottom: 1.25rem; }
.rm-narrow { max-width: 560px; margin: 2rem auto; }
.rm-konto-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 1rem; }
.rm-konto-head-actions { display: flex; gap: 16px; align-items: center; }
.rm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 1.25rem; }
.rm-stat { background: #fafaff; border: 1px solid #e6e6ef; border-radius: 14px; padding: 16px 18px; }
.rm-stat span { display: block; font-size: 0.9rem; color: #555; }
.rm-stat strong { display: block; font-size: 1.6rem; margin-top: 0.2rem; }
.rm-stat-accent { background: #0000ff; border-color: #0000ff; color: #fff; }
.rm-stat-accent span { color: rgba(255, 255, 255, 0.8); }
.rm-proposals { display: grid; gap: 10px; margin-bottom: 0.75rem; }
.rm-proposal { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 18px; align-items: center; border: 1px solid #e6e6ef; border-radius: 14px; padding: 14px 16px; }
.rm-proposal-text strong { display: block; }
.rm-proposal-text span { display: block; color: #555; font-size: 0.92rem; margin-top: 0.15rem; }
.rm-proposal-gain { font-weight: 700; font-size: 1.25rem; color: #0000ff; white-space: nowrap; }
.rm-proposal-gain small { font-weight: 500; font-size: 0.8rem; color: #666; }
.rm-proposal .cta-button { margin: 0; padding: 0.7rem 1.2rem; }
.rm-proposal-focus { border: 2px solid #ff5c16; background: #fff7f2; }
.rm-proposal-tag { display: inline-block; font-style: normal; font-size: 0.78rem; font-weight: 700; color: #fff; background: #ff5c16; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.rm-risk { grid-column: 1 / -1; border: 1px solid #ffd2bd; background: #fff7f2; border-radius: 12px; padding: 14px 16px; }
.rm-risk[hidden] { display: none; }
.rm-risk > strong { display: block; margin-bottom: 0.4rem; }
.rm-risk p { margin: 0 0 0.6rem; font-size: 0.93rem; line-height: 1.5; color: #333; }
.rm-risk .rm-field { max-width: 280px; }
.rm-table .rm-risk { margin: 6px 0 10px; }
.rm-table { display: grid; }
.rm-row { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: center; }
.rm-row small { display: block; color: #777; font-size: 0.82rem; }
.rm-tier-pick { display: grid; gap: 10px; margin: 1rem 0 1.25rem; }
.rm-tier-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e3e3ea; border-radius: 12px; padding: 14px; cursor: pointer; }
.rm-tier-option:has(input:checked) { border-color: #0000ff; background: #f6f6ff; }
.rm-tier-option input { margin-top: 4px; accent-color: #0000ff; }
.rm-tier-option-body { display: grid; gap: 2px; }
.rm-tier-option-body span { color: #555; font-size: 0.92rem; }
.rm-tier-option-body .rm-fee { color: #0000ff; font-weight: 600; }
.rm-field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.rm-field input, .rm-field select { padding: 12px; border: 1px solid #d6d6e0; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; }
.rm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; margin-bottom: 0.75rem; line-height: 1.45; }
.rm-check input { margin-top: 3px; accent-color: #0000ff; flex-shrink: 0; }
.rm-notice { border-radius: 10px; padding: 10px 14px; margin: 0.75rem 0; font-size: 0.93rem; background: #f3f4ff; color: #1a1a6a; word-break: break-word; }
.rm-notice[hidden] { display: none; }
.rm-notice-error { background: #fff1f1; color: #9b0018; }
.rm-notice-success { background: #effaf2; color: #135c2b; }
.rm-settings { display: grid; gap: 4px; max-width: 520px; }
.rm-settings .rm-secondary { justify-self: start; }

@media (max-width: 760px) {
  .rm-stats { grid-template-columns: 1fr; }
  .rm-proposal { grid-template-columns: 1fr; }
  .rm-proposal .cta-button { width: 100%; text-align: center; }
  .rm-row { grid-template-columns: 1fr auto; }
  .rm-row span:nth-child(3) { grid-column: 2; }
}

/* Abo-Erlaubnis und manuelle Zahlung */
.rm-debit { border-color: #0000ff; box-shadow: 0 10px 40px rgba(0, 0, 255, 0.12); }
.rm-paybox { margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1rem; }
.rm-paybox select { padding: 10px; border: 1px solid #d6d6e0; border-radius: 10px; font: inherit; }
.rm-qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 1rem; }
.rm-qr-code { width: 200px; max-width: 100%; }
.rm-qr-code svg { width: 100%; height: auto; display: block; }
.rm-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; background: #f5f5fb; padding: 8px 10px; border-radius: 8px; }
