.lb-karte {
  --lbF: #d29922;
  --lbRGB: 210, 153, 34;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(var(--lbRGB), .32);
  background: linear-gradient(135deg, rgba(var(--lbRGB), .10), rgba(var(--lbRGB), .02) 60%), var(--bg-input, #161b22);
  padding: 14px 14px 14px 18px;
  margin-bottom: 12px;
  box-sizing: border-box;
  min-width: 0;
}
.lb-karte::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--lbF);
  box-shadow: 0 0 14px rgba(var(--lbRGB), .55);
}
.lb-karte.lb-gruen { --lbF: #3fb950; --lbRGB: 63, 185, 80; }
.lb-karte.lb-blau { --lbF: #388bfd; --lbRGB: 56, 139, 253; }
.lb-karte.lb-lila { --lbF: #a78bfa; --lbRGB: 167, 139, 250; }
.lb-karte.lb-grau { --lbF: #8b949e; --lbRGB: 139, 148, 158; }
.lb-karte.lb-leuchtet { box-shadow: 0 0 0 1px rgba(var(--lbRGB), .25), 0 10px 28px rgba(var(--lbRGB), .16); }

.lb-band {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--lbF); border: 1px solid rgba(var(--lbRGB), .35); background: rgba(var(--lbRGB), .10);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}

.lb-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-wappen {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; letter-spacing: .5px; color: #231a04;
  background: linear-gradient(135deg, #fff0c0, var(--lbF) 60%, rgba(var(--lbRGB), .8));
  box-shadow: 0 6px 18px rgba(var(--lbRGB), .32), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
}
.lb-kopf-text { min-width: 0; flex: 1; }
.lb-name { font-size: 18px; font-weight: 800; color: var(--text, #e6edf3); line-height: 1.2; overflow-wrap: anywhere; }
.lb-unter { font-size: 12px; color: var(--text-muted, #8b949e); margin-top: 2px; }
.lb-spruch { font-size: 12px; color: var(--text-muted, #8b949e); font-style: italic; margin-top: 8px; line-height: 1.5; }

.lb-balken { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 12px; }
.lb-balken > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--lbRGB), .65), var(--lbF)); }
.lb-balken-text { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted, #8b949e); margin-top: 6px; font-variant-numeric: tabular-nums; }

.lb-pillen { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lb-pille {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #d29922; background: rgba(210, 153, 34, .13); border: 1px solid rgba(210, 153, 34, .3);
}
.lb-pille.gruen { color: #3fb950; background: rgba(63, 185, 80, .12); border-color: rgba(63, 185, 80, .32); }
.lb-pille.blau { color: #58a6ff; background: rgba(56, 139, 253, .12); border-color: rgba(56, 139, 253, .32); }
.lb-pille.lila { color: #a78bfa; background: rgba(167, 139, 250, .13); border-color: rgba(167, 139, 250, .32); }
.lb-pille.rot { color: #ff7b72; background: rgba(230, 57, 70, .12); border-color: rgba(230, 57, 70, .32); }
.lb-pille.grau { color: var(--text-muted, #8b949e); background: rgba(139, 148, 158, .10); border-color: rgba(139, 148, 158, .25); }

.lb-vorteile { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.lb-vorteil {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(var(--lbRGB), .18);
  font-size: 12.5px; color: var(--text, #e6edf3); line-height: 1.45; min-width: 0;
}
.lb-vorteil b { color: var(--lbF); font-variant-numeric: tabular-nums; }
.lb-vorteil-ico { flex-shrink: 0; width: 22px; text-align: center; font-size: 15px; line-height: 1.3; }
.lb-vorteil-ico svg { width: 17px; height: 17px; vertical-align: -3px; }
.lb-vorteil > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.lb-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 11px 16px; cursor: pointer;
  font-weight: 900; font-size: 14px; color: #231a04;
  background: linear-gradient(135deg, #fff0c0, #d29922 55%, rgba(210, 153, 34, .78));
  box-shadow: 0 8px 22px rgba(210, 153, 34, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lb-knopf:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(210, 153, 34, .42); }
.lb-knopf:disabled { filter: grayscale(.6); cursor: default; transform: none; opacity: .7; }
.lb-knopf.breit { width: 100%; }
.lb-knopf.zweit { color: var(--text, #e6edf3); background: var(--bg-input, #161b22); border: 1px solid var(--border, #30363d); box-shadow: none; font-weight: 700; }
.lb-knopf.zweit:hover { border-color: #d29922; }

.lb-abschnitt { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted, #8b949e); margin: 16px 0 8px; }

.lb-raenge { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.lb-rang {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 11px;
  background: var(--bg-input, #161b22); border: 1px solid var(--border, #30363d); min-width: 0;
}
.lb-rang.ist-erreicht { border-color: rgba(56, 139, 253, .3); background: rgba(56, 139, 253, .05); }
.lb-rang.ist-aktuell { border-color: #3fb950; background: rgba(63, 185, 80, .09); box-shadow: 0 0 0 1px rgba(63, 185, 80, .25); }
.lb-rang.ist-offen { border-color: #d29922; background: rgba(210, 153, 34, .08); }
.lb-rang.ist-gesperrt { opacity: .78; }
.lb-rang-nr {
  flex-shrink: 0; min-width: 34px; height: 26px; border-radius: 8px; padding: 0 4px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: var(--text-muted, #8b949e); background: rgba(255, 255, 255, .05);
}
.lb-rang.ist-aktuell .lb-rang-nr { color: #0d1117; background: #3fb950; }
.lb-rang-text { flex: 1; min-width: 0; }
.lb-rang-name { font-size: 13px; font-weight: 800; color: var(--text, #e6edf3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-rang-xp { font-size: 11px; color: var(--text-muted, #8b949e); margin-top: 1px; font-variant-numeric: tabular-nums; }
.lb-rang-haken { flex-shrink: 0; color: #3fb950; font-weight: 900; font-size: 14px; }

.lb-schalter-zeile {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px; border-radius: 11px;
  background: rgba(210, 153, 34, .07); border: 1px solid rgba(210, 153, 34, .28); cursor: pointer; user-select: none;
}
.lb-schalter-zeile.aus { cursor: default; opacity: .65; }
.lb-schalter { position: relative; flex-shrink: 0; width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s ease; }
.lb-schalter::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.lb-schalter.an { background: linear-gradient(135deg, #3fb950, #2ea043); box-shadow: 0 0 10px rgba(63, 185, 80, .5); }
.lb-schalter.an::after { transform: translateX(18px); }
.lb-schalter-text { min-width: 0; flex: 1; }
.lb-schalter-titel { font-size: 13px; font-weight: 800; color: var(--text, #e6edf3); }
.lb-schalter-info { font-size: 11px; color: var(--text-muted, #8b949e); margin-top: 1px; }

.lb-titel-liste { display: flex; flex-direction: column; gap: 6px; }
.lb-titel-wahl {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; text-align: left;
  padding: 9px 11px; border-radius: 11px; cursor: pointer;
  background: var(--bg-input, #161b22); border: 1px solid var(--border, #30363d); color: var(--text, #e6edf3);
  font: inherit; font-size: 13px; transition: border-color .15s ease, background .15s ease;
}
.lb-titel-wahl:hover { border-color: rgba(210, 153, 34, .6); }
.lb-titel-wahl.aktiv { border-color: #d29922; background: rgba(210, 153, 34, .1); box-shadow: 0 0 0 1px rgba(210, 153, 34, .25); }
.lb-titel-wahl:disabled { cursor: default; opacity: .6; }
.lb-punkt { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border, #30363d); box-sizing: border-box; }
.lb-titel-wahl.aktiv .lb-punkt { border-color: #d29922; background: radial-gradient(circle, #d29922 45%, transparent 50%); }
.lb-titel-wahl-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.lb-titel-wahl-quelle { flex-shrink: 0; font-size: 10.5px; color: var(--text-muted, #8b949e); }

.lb-chat-titel {
  display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 700; line-height: 15px; letter-spacing: .2px;
  color: #c9a24a; background: rgba(210, 153, 34, .1); border: 1px solid rgba(210, 153, 34, .22);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-name-titel { display: block; font-size: 10.5px; font-weight: 700; color: #c9a24a; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-profil-titel {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #e3b341; background: rgba(210, 153, 34, .12); border: 1px solid rgba(210, 153, 34, .35);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box;
}

@keyframes lbAtem { 0%, 100% { box-shadow: 0 0 0 1px rgba(var(--lbRGB), .2), 0 8px 22px rgba(var(--lbRGB), .1); } 50% { box-shadow: 0 0 0 1px rgba(var(--lbRGB), .4), 0 10px 30px rgba(var(--lbRGB), .24); } }
.lb-karte.lb-atmet { animation: lbAtem 4.5s ease-in-out infinite; }

@media (max-width: 480px) {
  .lb-karte { padding: 12px 12px 12px 15px; }
  .lb-wappen { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }
  .lb-name { font-size: 16px; }
  .lb-raenge { max-height: none; }
  .lb-chat-titel { max-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-karte.lb-atmet { animation: none; }
  .lb-knopf, .lb-schalter, .lb-schalter::after { transition: none; }
}
