/* Darks Webpanel: Schwarz / Rot / Silber */
:root {
  --bg: #0b0b0d;
  --flaeche: #15151a;
  --flaeche2: #1d1d23;
  --linie: #2c2c34;
  --text: #ecedf0;
  --leise: #9fa1aa;
  --silber: #c9ccd3;
  --rot: #c8323c;
  --rot-hell: #ff5a63;
  --gruen: #3fae6a;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--rot-hell); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: 20px; color: var(--silber); }
h3 { font-size: 17px; }
code { font: 13px ui-monospace, Consolas, monospace; color: var(--silber); word-break: break-all; }
.hinweis { color: var(--leise); }
.klein { font-size: 13px; }
.meta { color: var(--leise); font-size: 13px; margin: 0 0 .4em; }

.kopfleiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 10px max(16px, calc((100% - 1120px) / 2)); background: rgba(11,11,13,.92); border-bottom: 1px solid var(--linie); backdrop-filter: blur(8px); }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.marke:hover { text-decoration: none; }
nav { display: flex; gap: 4px; }
nav a { color: var(--leise); padding: 6px 12px; border-radius: 6px; }
nav a:hover, nav a[aria-current] { color: var(--text); background: var(--flaeche2); text-decoration: none; }
.suche { margin-left: auto; }
.suche input { width: 200px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); border-radius: 6px; padding: 7px 12px; font: inherit; font-size: 14px; }
.suche input:focus { outline: 2px solid var(--rot); outline-offset: 1px; }

main { flex: 1; width: 100%; max-width: 1152px; margin: 0 auto; padding: 24px 16px 56px; display: grid; gap: 40px; align-content: start; }
footer { display: flex; justify-content: space-between; padding: 18px max(16px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--linie); color: var(--leise); font-size: 13px; }
footer a { color: var(--leise); }

.buehne { text-align: center; padding: 24px 0 8px; background: radial-gradient(ellipse at 50% 30%, rgba(200,50,60,.18), transparent 65%); border-radius: var(--radius); }
.schriftzug { width: min(560px, 100%); height: auto; }
.unter { color: var(--silber); margin: 4px 0 20px; }
.zahlen { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.zahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px 22px; min-width: 140px; }
.zahl b { display: block; font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.zahl span { color: var(--leise); font-size: 13px; }

.titelzeile { display: flex; align-items: baseline; justify-content: space-between; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.raster.klein { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.liste { display: grid; gap: 14px; }
.karte { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.karte p { margin: 0; }
.karte.news a { color: var(--text); }
a.karte:hover, .karte.news:hover { border-color: #43434d; text-decoration: none; }
.karte.clan { border-top: 3px solid var(--clan, var(--rot)); }
.tag { color: var(--clan, var(--rot)); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.koepfe { display: flex; gap: 4px; margin-top: 10px; }
canvas.kopf { image-rendering: pixelated; border-radius: 3px; background: var(--flaeche2); }

.text { max-width: 720px; }
.text p { margin: 0 0 1em; }
.leer { text-align: center; padding: 60px 0; }

.clankopf { border-left: 4px solid var(--clan, var(--rot)); padding: 4px 0 4px 18px; }
.clankopf p:last-child { margin-bottom: 0; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
.mitglieder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mitglieder li { display: flex; align-items: center; justify-content: space-between; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 12px 6px 6px; }
.mitglieder a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.mitglieder em { color: var(--leise); font-style: normal; font-size: 13px; }
.zeitleiste { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--linie); display: grid; gap: 18px; }
.zeitleiste li { position: relative; }
.zeitleiste li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }
.zeitleiste li.hinweis::before { background: var(--linie); }
.zeitleiste p { margin: 0 0 .4em; }

.profil { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.buehne3d { background: radial-gradient(ellipse at 50% 70%, rgba(200,50,60,.22), transparent 70%), var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); text-align: center; padding: 10px; }
#skin3d { width: 300px; height: 400px; max-width: 100%; cursor: grab; touch-action: none; }
.infos dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; }
.infos dt { color: var(--leise); }
.infos dd { margin: 0; }

@media (max-width: 760px) {
  .kopfleiste { flex-wrap: wrap; gap: 8px 12px; }
  .suche { margin-left: 0; width: 100%; }
  .suche input { width: 100%; }
  .zwei, .profil { grid-template-columns: 1fr; }
  .buehne3d { justify-self: center; width: 100%; max-width: 340px; }
}

/* Markt */
.tabelle { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.tabelle table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { padding: 8px 12px; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th { color: var(--leise); font-weight: 500; font-size: 13px; }
.tabelle tbody tr:hover { background: var(--flaeche2); }
.zahlspalte { text-align: right !important; font-variant-numeric: tabular-nums; }
.item { display: flex; align-items: center; gap: 10px; color: var(--text); }
.symbol { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px; font: 700 11px/1 system-ui, sans-serif; color: #fff; background: hsl(var(--farbton) 45% 32%); border: 1px solid hsl(var(--farbton) 45% 45%); }
.itemkopf .symbol { width: 48px; height: 48px; font-size: 16px; border-radius: 10px; }
.itemkopf .zeile { display: flex; align-items: center; gap: 14px; }
.itemkopf h1 { margin: 0; }
.plus { color: var(--gruen); }
.minus { color: var(--rot-hell); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter input, .filter select, .filter button { background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; }
.filter input { flex: 1; min-width: 200px; }
.filter button { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 600; cursor: pointer; }
.zahlen.links { justify-content: flex-start; margin-top: 16px; }
.kurse { display: flex; flex-wrap: wrap; gap: 12px; }
.reiter { display: flex; gap: 4px; }
.reiter a { color: var(--leise); padding: 4px 10px; border-radius: 6px; font-size: 14px; }
.reiter a[aria-current] { color: var(--text); background: var(--flaeche2); }
.diagramm { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px; }
.diagramm svg { width: 100%; height: auto; display: block; }
.diagramm .band { fill: rgba(200, 50, 60, .18); }
.diagramm .linie { fill: none; stroke: var(--rot-hell); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.diagramm .punkt { fill: var(--rot-hell); }
.diagramm figcaption { display: flex; gap: 18px; color: var(--leise); font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
main { grid-template-columns: minmax(0, 1fr); }
.zahl b span { font-size: inherit; }
.zwei.gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) {
  nav { overflow-x: auto; max-width: 100%; scrollbar-width: none; order: 3; width: 100%; }
  nav a { white-space: nowrap; }
  .zwei.gleich { grid-template-columns: minmax(0, 1fr); }
  .zahl { min-width: 0; flex: 1 1 140px; }
}
