/* Velora Spielerportal – Farben wie Forum und Statusseite, ohne Dauer-Animationen */
:root {
  --grund: #0b0912;
  --flaeche: #141021;
  --flaeche2: #1c1630;
  --flaeche3: #241c3d;
  --rand: rgba(139, 92, 246, .22);
  --rand2: rgba(139, 92, 246, .38);
  --text: #ece9f5;
  --text2: #c9c1e3;
  --gedimmt: #a59cc4;
  --violett: #8b5cf6;
  --violett-hell: #c4b5fd;
  --violett-dunkel: #6d28d9;
  --pink: #f472b6;
  --gold: #f5c542;
  --silber: #cbd5e1;
  --bronze: #d9965b;
  --gruen: #22c55e;
  --rot: #ef4444;
  --discord: #5865f2;
  --radius: 12px;
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--grund); color: var(--text); font: 15.5px/1.6 var(--schrift); display: flex; flex-direction: column; overflow-x: hidden; }
::selection { background: var(--violett); color: #fff; }
a { color: var(--violett-hell); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--violett-hell); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: .01em; }
h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
h3 { font-size: 1rem; }
p { margin: 0 0 10px; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { width: 16px; height: 16px; vertical-align: -3px; }
.klein { color: var(--gedimmt); font-size: .85rem; }
.leer { color: var(--gedimmt); padding: 14px 0; margin: 0; }
.inline { display: inline; margin: 0; }
.vorzeile { color: var(--violett-hell); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; margin-bottom: 6px; }

.nebel { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 0% 0%, rgba(139, 92, 246, .17), transparent 62%),
    radial-gradient(55vmax 55vmax at 100% 100%, rgba(244, 114, 182, .07), transparent 62%); }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 12px 16px;
  background: rgba(11, 9, 18, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf__logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.kopf__logo img { width: 112px; height: auto; }
.kopf__logo span { font-size: .8rem; text-transform: uppercase; color: var(--gedimmt); border-left: 1px solid var(--rand2); padding-left: 10px; }
.kopf__nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.kopf__nav a { padding: 7px 12px; border-radius: 8px; color: var(--text2); font-weight: 600; font-size: .92rem; }
.kopf__nav a:hover, .kopf__nav a[aria-current] { background: var(--flaeche2); color: #fff; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(120deg, var(--violett-dunkel), var(--violett)); color: #fff; font-weight: 650; font-size: .93rem; }
.knopf:hover { filter: brightness(1.1); color: #fff; }
.knopf--leise { background: var(--flaeche2); border-color: var(--rand2); color: var(--text); }
.knopf--gross { padding: 14px 22px; font-size: 1.05rem; }
.knopf--discord { background: var(--discord); }

/* ---------- Seitenaufbau ---------- */
.haupt { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 22px; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 20px; }
.karte.schmal { max-width: 620px; margin: 30px auto; width: 100%; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.mehr { margin: 12px 0 0; }

.meldung { padding: 11px 14px; border-radius: 10px; border: 1px solid; margin: 0 0 4px; font-size: .93rem; }
.meldung--ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.meldung--fehler { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fecaca; }

/* ---------- Startseite ---------- */
.held { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.held__text { color: var(--text2); font-size: 1.05rem; max-width: 56ch; margin-top: 14px; }
.anmeldung { background: var(--flaeche); border: 1px solid var(--rand2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.anmelde-liste { display: flex; flex-direction: column; gap: 10px; }
.anmelde { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--flaeche2); border: 1px solid var(--rand); color: var(--text); }
.anmelde:hover { border-color: var(--violett); color: #fff; background: var(--flaeche3); }
.anmelde strong { display: block; }
.anmelde small { color: var(--gedimmt); }
.anmelde__marke { width: 58px; height: 42px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; letter-spacing: .03em; }
.anmelde--cfx .anmelde__marke { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.anmelde--steam .anmelde__marke { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #c7d5e0; }
.anmelde--discord .anmelde__marke { background: var(--discord); color: #fff; }

/* ---------- Profil ---------- */
.kontokopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wechsel { display: flex; gap: 8px; align-items: center; }
.wechsel select { background: var(--flaeche2); border: 1px solid var(--rand2); border-radius: 8px; padding: 7px 10px; margin-left: 6px; }
.marke { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(139, 92, 246, .18); border: 1px solid var(--rand2); color: var(--violett-hell); font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.marke--vip { background: rgba(245, 197, 66, .14); border-color: rgba(245, 197, 66, .45); color: var(--gold); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kachel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.kachel span { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(139, 92, 246, .15); color: var(--violett-hell); }
.kachel strong { font-size: 1.25rem; }
.kachel small { color: var(--gedimmt); }

.spalten { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.charaktere { display: flex; flex-direction: column; gap: 14px; }
.charaktere.breit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.seite { display: flex; flex-direction: column; gap: 18px; }
.charakter { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px; }
.charakter header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.charakter header .klein { margin: 2px 0 0; }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; flex: none; }
.avatar--m { background: linear-gradient(135deg, #4c1d95, var(--violett)); }
.avatar--w { background: linear-gradient(135deg, #9d174d, var(--pink)); }
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.werte div { background: var(--flaeche2); border-radius: 9px; padding: 9px 12px; }
.werte dt { color: var(--gedimmt); font-size: .8rem; }
.werte dd { margin: 2px 0 0; font-weight: 600; }
.charakter h3 { margin: 16px 0 8px; font-size: .9rem; color: var(--text2); }
.stufen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.stufen li { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.balken { height: 7px; border-radius: 99px; background: var(--flaeche3); position: relative; overflow: hidden; }
.balken::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--violett-dunkel), var(--violett-hell)); border-radius: inherit; }

.formular { display: flex; flex-direction: column; gap: 10px; }
.schalter { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.schalter input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violett); flex: none; }
.unter { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.unter legend { color: var(--gedimmt); font-size: .82rem; padding: 0 6px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld textarea { background: var(--flaeche2); border: 1px solid var(--rand2); border-radius: 10px; padding: 10px; font-family: Consolas, monospace; font-size: .8rem; resize: vertical; }
.schritte { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.wahl { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wahl .knopf { width: 100%; justify-content: flex-start; }

/* ---------- Bestenlisten ---------- */
.reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.reiter a { padding: 8px 14px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--rand); color: var(--text2); font-weight: 600; font-size: .92rem; }
.reiter a:hover { color: #fff; border-color: var(--rand2); }
.reiter a[aria-current] { background: linear-gradient(120deg, var(--violett-dunkel), var(--violett)); color: #fff; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips a { padding: 4px 11px; border-radius: 999px; background: var(--flaeche2); border: 1px solid var(--rand); color: var(--text2); font-size: .85rem; }
.chips a[aria-current] { border-color: var(--violett); color: #fff; background: rgba(139, 92, 246, .22); }
.karte h3 { margin-bottom: 10px; color: var(--text2); }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.platz { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 9px; background: var(--flaeche2); }
.platz .nr { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--flaeche3); color: var(--text2); font-size: .9rem; }
.platz--1 .nr { background: var(--gold); color: #1a1405; }
.platz--2 .nr { background: var(--silber); color: #111827; }
.platz--3 .nr { background: var(--bronze); color: #1f1206; }
.platz .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.platz .wert { font-weight: 700; color: var(--violett-hell); white-space: nowrap; }
.verborgen { color: var(--gedimmt); font-style: italic; font-weight: 500; }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--f); flex: none; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--rand); padding: 22px 16px 30px; text-align: center; color: var(--gedimmt); font-size: .85rem; }
.fuss nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.fuss a { color: var(--text2); }
.fuss p { margin: 0; }

@media (max-width: 900px) {
  .held, .spalten { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .kopf { flex-wrap: wrap; gap: 10px; }
  .kopf__logo span { display: none; }
  .kopf__nav { order: 3; flex-basis: 100%; }
  .kopf__konto { margin-left: auto; }
  .platz { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .platz > .klein { display: none; }
  .stufen li { grid-template-columns: 1fr auto; }
  .stufen .balken { grid-column: 1 / -1; grid-row: 2; }
}
