/* Lodestar Capital — Web-App. Baut auf style.css auf (gleiche Tokens). */

.app-main { min-height: 70vh; padding: 28px 0 60px; }

/* Tab-Leiste */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  padding: 12px 16px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab i { font-size: 16px; vertical-align: -2px; margin-right: 6px; }

/* Toolbar (Suche + Filter) */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search {
  flex: 1; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 14px;
}
.search::placeholder { color: var(--faint); }
.search:focus { outline: none; border-color: var(--gold-dim); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: none; cursor: pointer; color: var(--muted); font-family: var(--sans); font-size: 13px; padding: 10px 16px; transition: background .2s, color .2s; }
.seg button.active { background: var(--gold); color: #0A0B0F; font-weight: 500; }

/* Listen & Karten */
.list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; background: var(--bg); padding: 14px 16px; cursor: pointer; transition: background .15s; }
.row:hover { background: var(--surface); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 500; font-size: 14px; }
.row .meta { flex: 1; min-width: 0; }
.row .meta .t { font-size: 15px; color: var(--text); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row .val { text-align: right; flex-shrink: 0; }
.row .val .big { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--gold); }
.row .val .sub { font-size: 11px; color: var(--faint); }
.rank { width: 26px; text-align: center; font-weight: 600; color: var(--faint); font-size: 14px; flex-shrink: 0; }
.rank.gold { color: #C2A671; } .rank.silver { color: #b9b6ae; } .rank.bronze { color: #b07b48; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 20px; }
.badge.buy { background: rgba(93,202,165,0.14); color: #5DCAA5; }
.badge.sell { background: rgba(226,75,74,0.14); color: #e88; }
.badge.warn { background: rgba(194,166,113,0.16); color: var(--gold); }

/* Karten-Gitter (KI-Briefing, Konvergenz) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h4 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }
.brief { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: 22px 24px; margin-bottom: 26px; }
.brief h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: #F4F0E6; margin-bottom: 12px; }
.brief p { font-size: 15px; color: #bdb8ac; white-space: pre-wrap; line-height: 1.7; }

.score { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 18px; flex-shrink: 0; }

/* Detail-Ansicht */
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.detail-head .avatar { width: 76px; height: 76px; font-size: 24px; }
.detail-head h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; color: #F4F0E6; }
.detail-head .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 12px; margin-bottom: 28px; }
.stat-box { background: var(--surface); border-radius: 12px; padding: 16px; text-align: center; }
.stat-box .n { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--text); }
.stat-box .l { font-size: 11px; color: var(--faint); letter-spacing: 1px; text-transform: uppercase; margin-top: 5px; }
.subhead { font-family: var(--serif); font-size: 22px; color: var(--text); margin: 26px 0 12px; font-weight: 600; }
.link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; cursor: pointer; margin-bottom: 20px; background: none; border: none; font-family: var(--sans); }

/* Zustände */
.loading, .empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.loading i { font-size: 30px; color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.3); color: #e88; border-radius: 10px; padding: 14px 16px; font-size: 14px; }

/* Login / Registrieren */
.auth-wrap { max-width: 400px; margin: 30px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; }
.auth-card h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: #F4F0E6; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.3px; }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--sans); font-size: 15px; padding: 12px 14px; }
.field input:focus { outline: none; border-color: var(--gold-dim); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth-switch a { color: var(--gold); cursor: pointer; }
.auth-err { background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.3); color: #e88; border-radius: 9px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.user-chip .pro { background: var(--gold); color: #0A0B0F; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.5px; }
.linkbtn { background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: 13px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }

/* Abo-Schranke (Paywall) */
.paywall { text-align: center; max-width: 460px; margin: 30px auto; background: var(--surface); border: 1px solid var(--gold-dim); border-radius: 18px; padding: 40px 30px; }
.paywall i.lock { font-size: 34px; color: var(--gold); }
.paywall h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: #F4F0E6; margin: 14px 0 8px; }
.paywall p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.paywall ul { list-style: none; text-align: left; max-width: 280px; margin: 0 auto 24px; }
.paywall li { font-size: 14px; color: #bdb8ac; padding: 6px 0; display: flex; gap: 9px; }
.paywall li i { color: var(--gold); }
.locked { position: relative; }
.locked .lockbar { display: flex; align-items: center; gap: 8px; justify-content: center; background: rgba(194,166,113,0.1); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 14px; color: var(--gold); font-size: 13.5px; margin-top: 14px; cursor: pointer; }

@media (max-width: 640px) {
  .detail-head .avatar { width: 60px; height: 60px; }
  .detail-head h2 { font-size: 26px; }
}
