/* Projekt-Zero — Farben & Layout */
:root {
  --bg-top: #270a0a;
  --bg-mid: #1e0c0a;
  --bg: #140e0a;
  --surface: #1c110e;
  --surface-2: #241612;
  --line: #3a201b;
  --line-soft: #2b1814;
  --red: #c8281e;
  --red-hi: #e0362b;
  --red-lo: #8f1c15;
  --text: #ece4e1;
  --muted: #a99c98;
  --dim: #7b6d69;
  --ok: #4caf6d;
  --warn: #d8a23a;
  --radius: 4px;
  --display: "Bahnschrift", "DIN Alternate", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.6 var(--body);
  background: var(--bg) linear-gradient(180deg, var(--bg-top) 0, var(--bg-mid) 520px, var(--bg) 1100px) no-repeat;
}
main { flex: 1; }
a { color: var(--red-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 20px; font-weight: 600; }
::selection { background: var(--red); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 10, 9, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.logo-text b { font-size: 19px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.logo-text small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
:is(.nav > a, .nav-dd > a) {
  color: var(--muted); font-family: var(--display); font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-radius: var(--radius);
}
:is(.nav > a, .nav-dd > a):hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); }
:is(.nav > a, .nav-dd > a).on { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
:is(.nav > a, .nav-dd > a).btn { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

.usermenu { position: relative; }
.usermenu-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
  color: var(--text); padding: 4px 12px 4px 4px; border-radius: 30px; cursor: pointer; font: inherit; font-size: 14px;
}
.usermenu-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.usermenu-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.usermenu.open .usermenu-drop { display: block; }
.usermenu-drop a, .usermenu-drop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px;
  background: none; border: 0; border-radius: 3px; cursor: pointer;
}
.usermenu-drop a:hover, .usermenu-drop button:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: var(--radius);
  padding: 12px 22px; font-family: var(--display); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--muted); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-ok { background: #2f6d43; border-color: #2f6d43; }
.btn-ok:hover { background: #3a8553; border-color: #3a8553; }
.btn-danger { background: transparent; border-color: var(--red-lo); color: var(--red-hi); }
.btn-danger:hover { background: var(--red-lo); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 110px 0 120px; text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(39,10,10,.55), rgba(20,14,10,.92));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 45%, rgba(200,40,30,.16), transparent 70%);
}
.hero-kicker {
  font-family: var(--display); color: var(--muted); letter-spacing: .4em; text-transform: uppercase;
  font-size: 14px; margin: 0 0 14px;
}
.hero-title {
  font-family: var(--display); font-weight: 800; color: var(--red);
  font-size: clamp(54px, 11vw, 128px); letter-spacing: .04em; text-transform: uppercase;
  margin: 0; line-height: .95; text-shadow: 0 6px 40px rgba(200,40,30,.25);
}
.hero-sub { color: #c4b6b2; font-size: clamp(17px, 2vw, 22px); margin: 22px auto 34px; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.statusbar {
  display: inline-flex; flex-wrap: wrap; align-items: stretch; margin-top: 46px;
  background: rgba(20,10,9,.7); border: 1px solid var(--line); border-radius: var(--radius); text-align: left;
}
.statusbar > div { padding: 14px 22px; border-right: 1px solid var(--line); }
.statusbar > div:last-child { border-right: 0; }
.statusbar .lbl { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.statusbar .val { font-family: var(--display); font-size: 20px; font-weight: 700; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); margin-right: 8px; vertical-align: 2px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(76,175,109,.18); }
.dot.off { background: var(--red); }
.copy-ip { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
.copy-ip code { font-family: var(--mono); font-size: 17px; }
.copy-ip small { color: var(--red-hi); font-family: var(--body); font-size: 12px; margin-left: 8px; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: rgba(0,0,0,.18); border-block: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head p { margin: 0; }
.kicker { font-family: var(--display); color: var(--red); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin: 0 0 8px; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about p { color: #cfc3bf; font-size: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--surface); padding: 20px; }
.facts b { display: block; font-family: var(--display); font-size: 30px; color: var(--text); }
.facts span { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line-soft); border-top: 2px solid var(--red);
  padding: 22px; border-radius: 0 0 var(--radius) var(--radius);
}
.feature .num { font-family: var(--mono); color: var(--red); font-size: 12px; letter-spacing: .1em; }
.feature h3 { margin: 10px 0 8px; text-transform: uppercase; letter-spacing: .03em; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.wipe {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(200,40,30,.14), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 26px 30px; border-radius: var(--radius);
}
.countdown { display: flex; gap: 10px; }
.countdown div { text-align: center; min-width: 74px; background: rgba(0,0,0,.3); border: 1px solid var(--line); padding: 10px 6px; }
.countdown b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; }
.countdown span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }

/* ---------- Cards / News ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px; color: var(--text); transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--red-lo); text-decoration: none; transform: translateY(-2px); }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.card .meta { margin-top: auto; color: var(--dim); font-size: 13px; }
.tag {
  align-self: flex-start; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); border-radius: 2px;
}
.tag-wipe { color: #fff; background: var(--red); border-color: var(--red); }
.tag-event { color: var(--warn); border-color: rgba(216,162,58,.4); }
.tag-update { color: #8fb6e0; border-color: rgba(143,182,224,.35); }
.tag-pin { color: var(--text); }
.empty { color: var(--muted); padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 14px; }
.filters a.on, .filters a:hover { color: #fff; border-color: var(--red); text-decoration: none; }

/* ---------- Page head & Prose ---------- */
.pagehead { padding: 70px 0 40px; border-bottom: 1px solid var(--line-soft); }
.pagehead h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: .03em; margin: 0; }
.pagehead-sub { color: var(--muted); font-size: 18px; margin: 14px 0 0; max-width: 700px; }
.prose { max-width: 800px; padding: 50px 0 80px; }
.prose h3 {
  font-size: 22px; text-transform: uppercase; letter-spacing: .04em; margin: 38px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.prose h3:first-child { margin-top: 0; }
.prose ul { padding: 0; list-style: none; margin: 0 0 18px; }
.prose li { position: relative; padding: 7px 0 7px 26px; color: #d6cbc7; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 2px; background: var(--red); }
.prose p { color: #d6cbc7; }
.rules-layout { display: grid; grid-template-columns: 220px 1fr; gap: 50px; }
.toc { position: sticky; top: 90px; align-self: start; padding-top: 50px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: 15px; }
.toc a:hover { color: var(--text); border-color: var(--red); text-decoration: none; }

/* ---------- Forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.auth { max-width: 460px; margin: 60px auto 90px; }
.auth h1 { font-size: 34px; text-transform: uppercase; color: var(--red); font-weight: 800; letter-spacing: .03em; }
.form-row { margin-bottom: 18px; }
label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=url], input[type=number], select, textarea {
  width: 100%; background: #120a08; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; font: inherit; font-size: 15px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 340px; font-family: var(--mono); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,40,30,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; color: var(--text); }
.check input { margin-top: 5px; accent-color: var(--red); }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.flashes { margin-top: 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid; font-size: 15px; }
.flash-ok { background: rgba(76,175,109,.1); border-color: rgba(76,175,109,.4); color: #a6e3ba; }
.flash-error { background: rgba(200,40,30,.12); border-color: rgba(200,40,30,.5); color: #ffb4ae; }
.flash-info { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }

/* ---------- Profile / Status ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 50px 0 80px; align-items: start; }
.profile-card { text-align: center; }
.profile-card img.big { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
.profile-card h2 { margin: 16px 0 4px; font-size: 26px; }
.stack > * + * { margin-top: 24px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 30px; border: 1px solid var(--line); }
.pill-ok { color: #a6e3ba; border-color: rgba(76,175,109,.45); background: rgba(76,175,109,.08); }
.pill-warn { color: #f1cf86; border-color: rgba(216,162,58,.45); background: rgba(216,162,58,.08); }
.pill-bad { color: #ffb4ae; border-color: rgba(200,40,30,.5); background: rgba(200,40,30,.1); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 44px; color: #d6cbc7; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font-family: var(--display); font-weight: 700;
}

/* ---------- Admin ---------- */
.admin { padding: 40px 0 80px; }
.adminnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.adminnav a { padding: 10px 16px; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 14px; }
.adminnav a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.adminnav a:hover { color: var(--text); text-decoration: none; }
.badge { background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 20px; margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); padding: 20px; border-radius: var(--radius); }
.stat b { display: block; font-family: var(--display); font-size: 36px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 13px; color: #e6d7d3; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline-flex; gap: 6px; margin: 0; }
.actions input[type=text] { width: 160px; padding: 5px 8px; font-size: 13px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 14px; }
.tabs a.on { border-color: var(--red); color: #fff; }
.settings-group { margin-bottom: 28px; }
.settings-group > h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 16px; color: var(--red); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.25); padding: 44px 0 26px; margin-top: auto; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: .12em; }
.footer .muted { font-size: 14px; margin: 6px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--dim); font-size: 13px; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .about, .rules-layout, .profile { grid-template-columns: 1fr; }
  .toc { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-mid); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; gap: 2px;
  }
  .nav.open { display: flex; }
  :is(.nav > a, .nav-dd > a).on { box-shadow: inset 2px 0 0 var(--red); }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
  .usermenu-drop { position: static; display: block; box-shadow: none; margin-top: 6px; }
  .usermenu-btn { display: none; }
  .cards, .features, .grid2, .facts { grid-template-columns: 1fr; }
  .statusbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .statusbar > div { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .statusbar > div:nth-child(2) { border-right: 0; }
  .statusbar > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .copy-ip code { font-size: 15px; }
  .section { padding: 56px 0; }
  .hero { padding: 70px 0 80px; }
  .section-head { flex-direction: column; align-items: start; }
}

/* ---------- Profil bearbeiten ---------- */
.settings-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 40px 0 80px; align-items: start; }
.side { position: sticky; top: 86px; padding: 18px 12px; }
.side-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 14px 12px 6px; }
.side-label:first-child { margin-top: 0; }
.side a, .side button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius); color: var(--text);
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .05em;
  background: none; border: 0; cursor: pointer;
}
.side a:hover, .side button:hover { background: var(--surface-2); text-decoration: none; }
.side a.on { background: rgba(200,40,30,.14); box-shadow: inset 2px 0 0 var(--red); }
.media-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
input[type=file] { color: var(--muted); font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button {
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; margin-right: 12px; font: inherit; font-weight: 600; cursor: pointer;
}
input[type=file]::file-selector-button:hover { border-color: var(--red); }
input[type=date] { width: 100%; background: #120a08; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 13px; font: inherit; color-scheme: dark; }
.banner-preview {
  aspect-ratio: 4 / 1; border-radius: var(--radius); background: linear-gradient(135deg, var(--bg-top), #3a1410) center / cover;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim);
}
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 400; }
.choice:has(input:checked) { border-color: var(--red); background: rgba(200,40,30,.08); }
.choice input { margin-top: 4px; accent-color: var(--red); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.danger-zone { border-color: rgba(200,40,30,.35); }

/* ---------- Öffentliches Profil ---------- */
.profile-page { padding: 36px 0 80px; }
.pcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.pcard-banner { aspect-ratio: 4 / 1; max-height: 290px; width: 100%; background: linear-gradient(135deg, var(--bg-top), #4a1812 60%, var(--red-lo)) center / cover; }
.pcard-body { padding: 0 30px 26px; position: relative; }
.pcard-avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--red); margin-top: -64px; background: var(--surface); }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.pcard-head h1 { font-size: 34px; margin: 0; font-weight: 800; letter-spacing: .01em; }
.pcard-head .muted { margin: 2px 0 10px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-bio { margin-top: 18px; color: #d6cbc7; max-width: 820px; }
.pcard-stats { display: flex; gap: 40px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.pcard-stats b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.pcard-stats span { color: var(--muted); font-size: 13px; }
.profile-cols { display: grid; grid-template-columns: 340px 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.infos { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; }
.infos dt { color: var(--muted); }
.infos dd { margin: 0; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-card { text-align: center; padding: 16px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0,0,0,.15); }
.badge-card b { display: block; margin-top: 10px; }
.badge-card small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; margin-top: 2px; }
.badge-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; font-size: 22px; color: #1a0d0b; }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: #59c27d; }
.badge-amber { background: #e2ae4b; }
.badge-blue { background: #79a9e0; }
.badge-grey { background: #a99c98; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; display: block; transition: opacity .15s; }
.mini-gallery a:hover img { opacity: .8; }

/* Shoutbox */
.shout-form { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin-bottom: 18px; }
.shout-form > img, .shout > a img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.shout-form textarea { min-height: 70px; }
.shouts { border-top: 1px solid var(--line-soft); }
.shout { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.shout:last-child { border-bottom: 0; }
.shout-meta { display: flex; align-items: center; gap: 8px; }
.shout-meta a { color: var(--text); }
.shout p { margin: 4px 0 0; color: #d6cbc7; overflow-wrap: anywhere; }
.shout-del { margin-left: auto; }
.shout-del button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.shout-del button:hover { color: var(--red-hi); }

/* Spielerliste */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.player-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; padding-bottom: 18px; color: var(--text); transition: border-color .15s, transform .15s; }
.player-card:hover { border-color: var(--red-lo); transform: translateY(-2px); text-decoration: none; }
.pc-banner { width: 100%; aspect-ratio: 3 / 1; background: linear-gradient(135deg, var(--bg-top), #4a1812) center / cover; }
.pc-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--red); margin: -38px 0 10px; background: var(--surface); }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-item { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.g-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .35s; }
.g-item:hover img { transform: scale(1.04); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(10,5,4,.92)); display: flex; flex-direction: column;
}
.g-cap b { font-size: 15px; }
.g-cap small { color: #cbbdb9; font-size: 12px; }
.g-pending { position: absolute; top: 10px; left: 10px; background: var(--warn); color: #1a0d0b; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.upload-panel { margin-bottom: 26px; }
.dropzone {
  display: grid; place-items: center; min-height: 190px; border: 2px dashed var(--line); border-radius: 8px; cursor: pointer; position: relative;
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); text-align: center; padding: 16px; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: rgba(200,40,30,.06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--text); font-size: 17px; }
.dropzone img { max-height: 320px; border-radius: 4px; }
.viewer { padding: 30px 0 70px; }
.viewer-stage { position: relative; display: grid; place-items: center; background: #0b0705; border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px; min-height: 300px; }
.viewer-stage img { max-height: 76vh; width: auto; height: auto; border-radius: 4px; display: block; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,10,9,.8); border: 1px solid var(--line); color: var(--text); font-size: 30px; line-height: 1; z-index: 2;
}
.viewer-nav:hover { background: var(--red); text-decoration: none; }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.viewer-info .user-cell img { width: 42px; height: 42px; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ag-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }
.ag-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ag-body { padding: 12px; display: flex; flex-direction: column; }

@media (max-width: 980px) {
  .settings-layout, .profile-cols { grid-template-columns: 1fr; }
  .side { position: static; }
  :is(.nav > a, .nav-dd > a) { padding: 8px 9px; letter-spacing: .05em; }
}
@media (max-width: 600px) {
  .pcard-body { padding: 0 18px 20px; }
  .pcard-avatar { width: 96px; height: 96px; margin-top: -48px; }
  .pcard-head h1 { font-size: 26px; }
  .pcard-stats { gap: 22px; }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Admin mit Seitenmenü ---------- */
.admin.settings-layout { padding: 40px 0 80px; }
.admin-main { min-width: 0; }
.admin-main > h2 { margin-bottom: 26px; }
.side-title { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.side a .badge { float: right; margin-top: 1px; }
.admin-main .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- News-Einzelansicht ---------- */
.news-single { padding: 36px 0 80px; }
.news-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.news-hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px;
  min-height: 380px; padding: 50px 60px; overflow: hidden;
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(115deg, transparent 0 38%, rgba(200,40,30,.10) 38% 52%, transparent 52% 60%, rgba(200,40,30,.07) 60% 68%, transparent 68%),
    radial-gradient(ellipse 70% 90% at 75% 50%, rgba(200,40,30,.28), transparent 70%),
    linear-gradient(135deg, #1a0b09, #2a0e0c 55%, #1a0d0b);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--red-lo), var(--red-hi), #f06a3c) 1;
}
.news-hero::before, .news-hero::after {
  content: ""; position: absolute; width: 160px; height: 160px; background: rgba(200,40,30,.12); transform: rotate(45deg); pointer-events: none;
}
.news-hero::before { left: -80px; bottom: -80px; }
.news-hero::after { right: -80px; top: -80px; }
.news-hero-text { position: relative; z-index: 1; }
.news-pill {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  color: #ff8a7a; border: 2px solid rgba(224,54,43,.7); border-radius: 30px; padding: 6px 18px;
}
.news-word { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 96px); line-height: 1; color: #f3ece9; letter-spacing: .02em; margin: 26px 0 22px; }
.news-bar { display: block; width: 190px; height: 7px; border-radius: 6px; background: linear-gradient(90deg, var(--red), #f06a3c); }
.news-hero-img { position: relative; z-index: 1; display: grid; place-items: center; }
.news-hero-img img { max-height: 300px; max-width: 100%; border-radius: 10px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.news-hero-img.is-logo img { width: 230px; height: 230px; border-radius: 0; filter: drop-shadow(0 0 40px rgba(200,40,30,.45)); }
.news-body { padding: 34px 60px 44px; }
.news-body h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin: 0 0 10px; }
.news-meta { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.news-meta a { color: var(--text); }
.news-prose { max-width: none; padding: 0; }
.card.has-img { padding-top: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 16px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--red); }
@media (max-width: 760px) {
  .news-hero { grid-template-columns: 1fr; padding: 34px 24px; min-height: 0; text-align: left; }
  .news-hero-img img { max-height: 200px; }
  .news-hero-img.is-logo img { width: 140px; height: 140px; }
  .news-body { padding: 26px 22px 32px; }
}

.card-img { object-fit: contain; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,40,30,.25), transparent 70%), linear-gradient(135deg, #1a0b09, #2a0e0c); padding: 14px; }

/* ---------- Tickets ---------- */
.ticket-page { padding: 36px 0 80px; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin: 14px 0 20px; }
.ticket-head h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.ticket-head .muted { margin: 0; }
.ticket-chat { max-height: 62vh; overflow-y: auto; padding: 22px; }
.tmsgs { display: flex; flex-direction: column; gap: 14px; }
.tmsg { display: flex; gap: 12px; align-items: flex-start; max-width: 82%; }
.tmsg > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.tmsg-bubble { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 4px 12px 12px 12px; padding: 10px 14px; min-width: 0; }
.tmsg-meta { font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.tmsg-meta .tag { padding: 1px 6px; font-size: 10px; }
.tmsg-body { color: #e6dbd7; overflow-wrap: anywhere; }
.tmsg-src { font-size: 11px; color: #8fa2e6; }
.tmsg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.tmsg.is-mine .tmsg-bubble { border-radius: 12px 4px 12px 12px; background: #2a1613; }
.tmsg.is-staff .tmsg-bubble { border-color: rgba(200,40,30,.5); background: linear-gradient(135deg, rgba(200,40,30,.14), var(--surface-2)); }
.tmsg-system { align-self: center; font-size: 12px; color: var(--dim); background: rgba(0,0,0,.2); padding: 4px 12px; border-radius: 20px; }
.ticket-reply { margin-top: 16px; }
.ticket-reply textarea { min-height: 90px; }
.row-unread td { background: rgba(200,40,30,.06); }
.row-unread td a { font-weight: 700; }
.link-code { display: inline-flex; flex-direction: column; align-items: center; padding: 14px 26px; border: 2px dashed var(--red); border-radius: 8px; margin: 6px 0 4px; }
.link-code span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.link-code b { font-family: var(--mono); font-size: 34px; letter-spacing: .2em; color: var(--text); }
.link-code small { color: var(--dim); }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); display: inline-block; box-shadow: 0 0 0 3px rgba(224,54,43,.25); }
@media (max-width: 600px) { .tmsg { max-width: 100%; } }

/* ---------- Twitch / Live ---------- */
.btn-twitch { background: #9146ff; border-color: #9146ff; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-twitch:hover { background: #a970ff; border-color: #a970ff; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nav-live { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,54,43,.6); } 50% { box-shadow: 0 0 0 5px rgba(224,54,43,0); } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font: 800 11px/1 var(--display); letter-spacing: .12em; padding: 5px 8px; border-radius: 3px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.live-dot.off { background: var(--surface-2); color: var(--muted); }
.live-dot.off::before { background: var(--dim); animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.live-page { padding: 30px 0 80px; }
.live-stage { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.live-player { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.live-player iframe, .live-chat iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-chat { padding: 0; overflow: hidden; min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.live-chat:not(.on)::before { content: "Der Chat erscheint, sobald der Stream läuft."; padding: 20px; text-align: center; font-size: 14px; }
.embed-consent { position: absolute; inset: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.embed-consent::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,6,5,.92), rgba(10,6,5,.55)); }
.embed-consent-in { position: relative; text-align: center; padding: 24px; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.embed-consent-in h2 { margin: 6px 0 0; font-size: 30px; }
.embed-consent-in p { margin: 0 0 8px; color: #d6cbc7; }
.embed-consent-in small { color: var(--muted); font-size: 12px; }
.embed-consent-in small label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.live-meta { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin: 18px 0 10px; }
.live-meta h2 { margin: 0 0 4px; font-size: 22px; }
.live-meta p { margin: 0; }
.live-h { margin: 30px 0 14px; }
.live-off { text-align: center; padding: 60px 20px; }
.live-off h2 { margin: 14px 0 6px; }
.stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stream-card { display: block; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.stream-card:hover { text-decoration: none; transform: translateY(-3px); border-color: #9146ff; }
.stream-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stream-thumb .live-dot { position: absolute; top: 10px; left: 10px; }
.stream-thumb .viewers { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.75); font-size: 12px; padding: 2px 7px; border-radius: 3px; }
.stream-info { display: flex; gap: 10px; padding: 12px; align-items: flex-start; }
.stream-info img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.stream-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stream-info > div { min-width: 0; }
.stream-info small { color: var(--muted); font-size: 13px; }
.live-strip { background: linear-gradient(135deg, rgba(145,70,255,.14), var(--surface)); border: 1px solid rgba(145,70,255,.35); border-radius: var(--radius); padding: 20px; }
.live-strip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.live-strip-head .btn { margin-left: auto; }
.section-sm { padding: 50px 0 0; }
.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.streamer { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.streamer.is-live { border-color: rgba(200,40,30,.6); }
.streamer-av { position: relative; margin-bottom: 8px; }
.streamer-av img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.streamer.is-live .streamer-av img { border-color: var(--red); }
.streamer-av .live-dot { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 3px 6px; font-size: 10px; }
.streamer-plan { font-size: 12px; color: var(--muted); }
.streamer-links { display: flex; gap: 6px; margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 4px 0 4px 24px; position: relative; color: #d6cbc7; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.ico-twitch { flex: none; }

/* ---------- Werbemittel & Partner ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.promo-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo-card.is-off { opacity: .5; }
.promo-card input[type=text] { width: 100%; }
.promo-img { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 8px; padding: 14px;
  background: #0d0907 repeating-conic-gradient(#1a120f 0 25%, #0d0907 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line-soft); }
.promo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.promo-add { border-style: dashed; justify-content: center; }
.promo-add input[type=file] { font-size: 13px; max-width: 100%; }
.promo-text pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; font: 14px/1.5 var(--body); color: #e6dbd7; margin: 0 0 10px; }
.promo-text + .promo-text { margin-top: 14px; }
.admin-grid { align-items: start; }
.partners { padding: 60px 0 70px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.15); overflow: hidden; }
.partners-title { text-align: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.partners-sub { text-align: center; margin: 0; }
.marquee { margin-top: 28px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee calc(var(--n) * 9s + 20s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 18px; padding-right: 18px; }
.partner { width: 230px; height: 140px; flex: none; display: grid; place-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; transition: border-color .2s, transform .2s; }
a.partner:hover { border-color: var(--red); transform: translateY(-2px); }
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 400s; } }
@media (max-width: 900px) { .live-stage { grid-template-columns: 1fr; } .live-chat { display: none; } .stream-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stream-grid { grid-template-columns: 1fr; } .partner { width: 170px; height: 104px; } }
.embed-consent-in small label { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 12px; margin: 0; }

/* ---------- Team, Mitmachen, Feedback ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-box { max-width: 560px; }
.join-h { margin: 34px 0 16px; font-size: 26px; }
.join-h:first-child { margin-top: 0; }
.join-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.join-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: border-color .2s, transform .2s; }
.join-card:hover { border-color: var(--red); transform: translateY(-2px); }
.join-card h3 { margin: 4px 0 0; font-size: 22px; }
.join-card p { color: #d6cbc7; margin: 0 0 8px; flex: 1; font-size: 15px; }
.tag-team { color: #ffb4ae; border-color: rgba(224,54,43,.5); background: rgba(200,40,30,.12); }
.tag-partner { color: #8fd3e8; border-color: rgba(143,211,232,.45); background: rgba(143,211,232,.08); }
.tag-other { color: var(--muted); }
.tag-stream { color: #c9a8ff; border-color: rgba(145,70,255,.5); background: rgba(145,70,255,.12); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); border-top: 3px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s; }
.team-card:hover { text-decoration: none; transform: translateY(-3px); }
.team-card.role-owner { border-top-color: #c8281e; } .team-card.role-admin { border-top-color: #e0362b; }
.team-card.role-mod { border-top-color: #d8a23a; } .team-card.role-support { border-top-color: #4caf6d; }
.team-av { position: relative; margin-bottom: 10px; }
.team-av img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.team-on { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); border: 3px solid var(--surface); }
.team-card b { font-size: 18px; }
.team-role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.team-card p { color: #d6cbc7; font-size: 14px; margin: 8px 0 0; }
.team-cta { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.team-cta h3 { margin: 0 0 4px; } .team-cta p { margin: 0; }
.team-edit { display: grid; grid-template-columns: 220px 150px 1fr 1.4fr 70px auto; gap: 10px; align-items: center; margin-top: 12px; padding: 16px; }
.fb-item { margin-bottom: 14px; } .fb-item.is-new { border-color: rgba(216,162,58,.5); }
.app-answers { background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 18px; }
.app-answers h3 { font-size: 14px; color: var(--muted); margin: 10px 0 4px; } .app-answers h3:first-child { margin-top: 0; }
.app-answers p { margin: 0 0 6px; color: #e6dbd7; }
@media (max-width: 1100px) { .team-edit { grid-template-columns: 1fr 1fr; } }

/* Kopfzeile: Logo-Schriftzug nie umbrechen (Projekt-Zero ist länger als die alte Marke) */
.logo { flex: none; }
.logo-text b, .logo-text small { white-space: nowrap; }
.logo-text b { font-size: 17px; letter-spacing: .08em; }
.logo-text small { font-size: 10px; letter-spacing: .2em; }
@media (max-width: 1320px) {
  :is(.nav > a, .nav-dd > a) { padding-left: 9px; padding-right: 9px; letter-spacing: .06em; }
  .logo-text small { display: none; }
}
:is(.nav > a, .nav-dd > a) { white-space: nowrap; }
@media (min-width: 981px) {
  .topbar-in { gap: 14px; }
  .nav { gap: 0; }
  :is(.nav > a, .nav-dd > a) { font-size: 14px; padding: 8px 8px; letter-spacing: .04em; }
  .nav-live { margin-left: 2px; }
}
@media (max-width: 1440px) and (min-width: 981px) {
  .usermenu-btn > span { display: none; }
  .logo-text small { display: none; }
}
@media (max-width: 1200px) and (min-width: 981px) {
  .logo-text { display: none; }
  :is(.nav > a, .nav-dd > a) { font-size: 13px; padding: 8px 6px; }
}
.usermenu-btn { white-space: nowrap; max-width: none; }
.code-preview { background: #0d0907; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; font: 13px/1.5 var(--mono); color: #d6cbc7; max-height: 420px; overflow: auto; white-space: pre; }

/* ---------- Steam-Login, Zwei-Faktor ---------- */
.btn-steam { background: #171a21; border-color: #2a475e; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-steam:hover { background: #1b2838; border-color: #66c0f4; color: #fff; }
.social-logins { display: grid; gap: 10px; }
.code-input { font: 700 24px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.mfa-setup { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; }
.mfa-setup .qr { background: #fff; border-radius: 8px; padding: 6px; width: 190px; height: 190px; }
.mfa-setup .qr svg { width: 100%; height: 100%; display: block; }
.mfa-setup form { grid-column: 2; }
.mfa-key { font-size: 15px; letter-spacing: .08em; user-select: all; }
.backup-codes { border: 1px dashed var(--warn); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; color: #f1cf86; font-size: 14px; }
.backup-codes .codes { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin-top: 10px; }
.backup-codes code { font-size: 15px; text-align: center; }
.manual-steam { margin-top: 14px; } .manual-steam summary { cursor: pointer; color: var(--muted); font-size: 14px; } .manual-steam form { margin-top: 12px; }
@media (max-width: 700px) { .mfa-setup { grid-template-columns: 1fr; } .mfa-setup form { grid-column: 1; } .backup-codes .codes { grid-template-columns: repeat(2, auto); } }
.steam-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.devices { display: grid; gap: 8px; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(0,0,0,.15); }

/* ---------- Statistik & Ranglisten ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat-tiles > div { background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; }
.stat-tiles b { display: block; font-family: var(--display); font-size: 20px; color: var(--text); }
.stat-tiles small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ranking { display: grid; gap: 8px; max-width: 860px; }
.rank-row { display: grid; grid-template-columns: 54px 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.rank-row img, .rank-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: block; }
.rank-no { font-family: var(--display); font-size: 22px; text-align: center; color: var(--muted); }
.rank-row.top .rank-no { font-size: 28px; }
.rank-row.top1 { border-color: rgba(230,180,60,.55); background: linear-gradient(90deg, rgba(230,180,60,.10), var(--surface)); }
.rank-row.top2 { border-color: rgba(190,190,200,.4); } .rank-row.top3 { border-color: rgba(180,110,60,.45); }
.rank-row.is-me { outline: 2px solid var(--red); }
.rank-name { min-width: 0; } .rank-name b { display: block; } .rank-name a { color: var(--text); }
.rank-val { font-family: var(--display); font-size: 20px; white-space: nowrap; }
@media (max-width: 600px) { .rank-row { grid-template-columns: 34px 36px 1fr; } .rank-val { grid-column: 3; font-size: 16px; } }

/* ---------- User Control Panel ---------- */
.ucp-main { min-width: 0; }
.ucp-title { font-size: 34px; margin: 2px 0 4px; }
.ucp-sub { margin: 0 0 22px; }
.side-user { display: flex; gap: 12px; align-items: center; padding: 4px 4px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.side-user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.side-user b { display: block; font-size: 15px; } .side-user small { color: var(--muted); font-size: 12px; }
.ucp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ucp-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; transition: border-color .2s, transform .2s; }
.ucp-card:hover { text-decoration: none; border-color: var(--red); transform: translateY(-2px); }
.ucp-ico { position: absolute; right: 14px; top: 12px; font-size: 22px; opacity: .85; }
.ucp-card small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ucp-card b { font-family: var(--display); font-size: 22px; margin-top: 4px; }
.ucp-card em { font-style: normal; font-size: 13px; color: var(--muted); }
.progress { height: 8px; background: rgba(0,0,0,.3); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #e8743b); border-radius: 6px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.checklist li.ok > span { border-color: var(--ok); background: rgba(76,175,109,.15); color: var(--ok); }
.checklist li small { display: block; color: var(--muted); font-size: 13px; }
.checklist li.ok b { color: var(--muted); font-weight: 600; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--text); background: rgba(0,0,0,.15); font-size: 14px; }
.quick a:hover { border-color: var(--red); text-decoration: none; }
.daybars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 140px; align-items: end; }
.daybar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.daybar span { width: 100%; background: linear-gradient(180deg, #e8743b, var(--red)); border-radius: 3px 3px 0 0; min-height: 0; }
.daybar small { font-size: 11px; color: var(--dim); }
.ucp-split { display: flex; flex-direction: column; gap: 20px; }
.ucp-split > aside { order: 2; }
.ucp-split > div { order: 1; }
.ucp-split .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ucp-split .steps li { margin: 0; padding-bottom: 0; }
.ticket-page.in-ucp { padding: 0; }
@media (max-width: 1000px) { .ucp-split .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ucp-split .steps { grid-template-columns: 1fr; } }
.live-page.in-ucp { padding: 0; }
.streamer-info .rules-h { margin-top: 22px; }
.ucp-split .streamer-info { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; }
.ucp-split .streamer-info .rules-h { margin-top: 0; }
.ucp-split .streamer-info .steps { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .ucp-split .streamer-info { grid-template-columns: 1fr; } }

/* ---------- Menü-Editor ---------- */
.menu-table td { vertical-align: middle; padding: 8px 8px; }
.menu-table th.c, .menu-table td.c { text-align: center; width: 70px; }
.menu-table input[type=text], .menu-table select { width: 100%; min-width: 120px; padding: 8px 10px; }
.menu-table .menu-custom { margin-top: 6px; }
.menu-table .drag { cursor: grab; color: var(--muted); font-size: 18px; width: 26px; text-align: center; user-select: none; }
.menu-row.dragging { opacity: .45; background: rgba(200,40,30,.12); }
.menu-row.is-off td:not(.c):not(.drag) { opacity: .5; }
.menu-preview { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }

/* ---------- News-Editor ---------- */
.tpl-pick { border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px 16px 16px; margin: 6px 0 0; }
.tpl-pick legend { padding: 0 8px; font-family: var(--display); font-weight: 600; color: var(--text); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tpl-item { cursor: pointer; display: block; }
.tpl-item input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-img { display: grid; place-items: center; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: rgba(0,0,0,.35); color: var(--muted); font-size: 13px; transition: border-color .15s, transform .15s; }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-item small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.tpl-item:hover .tpl-img { border-color: var(--line); transform: translateY(-1px); }
.tpl-item input:checked + .tpl-img { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,40,30,.25); }
.tpl-item input:checked ~ small { color: var(--text); }
.tpl-item input:focus-visible + .tpl-img { outline: 2px solid var(--red-hi, #e0362b); }
.news-editor .jodit-container:not(.jodit_inline) { border-color: var(--line); border-radius: var(--radius); background: rgba(0,0,0,.25); }
.news-editor .jodit_theme_dark .jodit-toolbar__box:not(:empty), .news-editor .jodit_theme_dark .jodit-status-bar { background: var(--surface-2); border-color: var(--line); }
.news-editor .jodit_theme_dark .jodit-wysiwyg, .news-editor .jodit_theme_dark .jodit-workplace { background: #120b09; color: var(--text); }
.news-editor .jodit-wysiwyg { font: 16px/1.65 var(--body); padding: 16px 20px !important; }
.news-editor .jodit-wysiwyg img { max-width: 100%; height: auto; }
.news-editor .jodit-placeholder { padding: 16px 20px !important; color: var(--muted); }
.jodit_fullsize-box_true { z-index: 1000 !important; }

/* News-Inhalt (HTML aus dem Editor) */
.news-prose h2 { font-size: 28px; margin: 1.4em 0 .5em; }
.news-prose h3 { font-size: 22px; margin: 1.3em 0 .45em; }
.news-prose h4 { font-size: 18px; margin: 1.2em 0 .4em; color: var(--text); }
.news-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.news-prose ol { padding-left: 24px; color: #d6cbc7; }
.news-prose ol li { padding-left: 4px; }
.news-prose ol li::before { display: none; }
.news-prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--red); background: rgba(200,40,30,.07); color: #e3d6d2; }
.news-prose pre { background: rgba(0,0,0,.4); padding: 14px; border-radius: 6px; overflow: auto; }
.news-prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.news-prose a { color: var(--red-hi, #e0362b); }
.news-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.news-table td, .news-table th { border: 1px solid var(--line); padding: 8px 10px; }
.news-prose img:not([style*="float"]) { display: block; }
.news-prose img[style*="float: left"] { margin: 6px 18px 10px 0; }
.news-prose img[style*="float: right"] { margin: 6px 0 10px 18px; }
.news-li { display: flex; align-items: center; gap: 12px; } .news-li img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; flex: none; }
.menu-table input[type=checkbox] { accent-color: var(--red); width: 17px; height: 17px; }

/* ---------- Untermenüs ---------- */
.nav-dd { position: relative; }
.nav-dd-top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .7; }
.nav-dd-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; padding: 6px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: 9px 12px; color: var(--text); font-size: 14px; border-radius: 3px; white-space: nowrap; }
.nav-dd-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-dd-menu a.on { box-shadow: inset 2px 0 0 var(--red); }
@media (max-width: 760px) {
  .nav-dd-menu { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 4px 14px; min-width: 0; }
  .nav-dd-top::after { display: none; }
}
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-group { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.footer-group b, .footer-group .footer-group-t { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.footer-group a { color: var(--muted); font-size: 14px; }
.footer-group a:hover { color: var(--text); }
.menu-table .lvl { width: 44px; text-align: center; }
.menu-table .sub-mark { display: none; color: var(--red-hi); margin-right: 6px; font-weight: 700; }
.menu-row.is-sub td:nth-child(3) { padding-left: 36px; position: relative; }
.menu-row.is-sub td:nth-child(3)::before { content: "↳"; position: absolute; left: 14px; top: 50%; transform: translateY(-55%); color: var(--red-hi); font-weight: 700; font-size: 16px; }
.tpl-pick .tpl-item { text-transform: none; letter-spacing: normal; font-weight: 500; font-family: var(--body); }

/* ---------- Menü-Editor (Karten, verschachtelt) ---------- */
.mi-list { display: flex; flex-direction: column; gap: 10px; min-height: 10px; }
.mi-children { display: flex; flex-direction: column; gap: 8px; margin-left: 44px; min-height: 12px; padding: 0; }
.mi-children:empty { min-height: 6px; margin-top: -4px; }
.mi-children .mi-children { display: none; }
.mi.has-kids > .mi-children, .mi-children > .mi:first-child { margin-top: 0; }
.mi.has-kids > .mi-children { margin-top: 8px; padding-left: 14px; border-left: 2px solid rgba(200,40,30,.35); margin-left: 30px; }
.mi-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
.mi-card:hover { border-color: #55302a; }
.mi.editing > .mi-card { border-color: var(--red); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mi-handle { cursor: grab; font-size: 20px; color: var(--muted); user-select: none; line-height: 1; padding: 2px 4px; }
.mi-handle:active { cursor: grabbing; }
.mi-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mi-label { font-size: 15px; }
.mi.has-kids > .mi-card .mi-label::after { content: " ☰"; color: var(--muted); font-weight: 400; }
.mi-meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.mi-tags i { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; margin-right: 6px; }
.mi-tags i.off { border-color: rgba(200,40,30,.6); color: var(--red-hi); }
.mi-btn { background: none; border: 1px solid transparent; color: var(--muted); font-size: 16px; width: 34px; height: 34px; border-radius: 6px; cursor: pointer; }
.mi-btn:hover { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.mi-del:hover { color: var(--red-hi); border-color: rgba(200,40,30,.5); }
.mi.is-off > .mi-card .mi-main { opacity: .45; }
.mi-form { border: 1px solid var(--red); border-top: 0; border-radius: 0 0 8px 8px; padding: 14px 16px 16px; background: rgba(0,0,0,.3); }
.mi-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 14px; align-items: start; }
.mi-grid > label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mi-grid input[type=text], .mi-grid select { text-transform: none; letter-spacing: normal; font-weight: 400; }
.mi-grid .check { grid-column: 1 / -1; }
.mi-ghost > .mi-card { border: 1px dashed var(--red-hi); background: rgba(200,40,30,.08); }
.mi-ghost > .mi-card > * { opacity: .5; }
.mi-ghost > .mi-children { display: none; }
.mi-chosen > .mi-card { border-color: var(--red); }
.mi-drag { opacity: .9; }
@media (max-width: 800px) { .mi-grid { grid-template-columns: 1fr; } .mi-children { margin-left: 22px; } }

/* ---------- Whitelist-Stepper ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: none; }
.stepper li { position: relative; padding: 0 14px; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 21px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.cur::before { background: linear-gradient(90deg, var(--ok), var(--ok)); }
.stepper li.cur::before { background: linear-gradient(90deg, var(--ok), var(--red)); }
.st-dot { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid var(--line); background: rgba(0,0,0,.3); color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 17px; position: relative; z-index: 1; }
.stepper li.done .st-dot { border-color: var(--ok); background: rgba(76,175,109,.15); color: var(--ok); }
.stepper li.cur .st-dot { border-color: var(--red); background: rgba(200,40,30,.18); color: #fff; box-shadow: 0 0 0 5px rgba(200,40,30,.12), 0 0 18px rgba(200,40,30,.35); }
.stepper b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: .04em; margin-bottom: 4px; }
.stepper li.done b { color: var(--ok); }
.stepper p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stepper li.cur p { color: #d6cbc7; }
@media (max-width: 900px) {
  .stepper { grid-template-columns: 1fr; gap: 14px; }
  .stepper li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; text-align: left; padding: 0; }
  .stepper li::before { display: none; }
  .st-dot { grid-row: span 2; margin: 0; }
}
/* Stepper senkrecht (Dashboard) */
.stepper.stepper-v { grid-template-columns: 1fr; gap: 0; }
.stepper-v li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; text-align: left; padding: 0 0 16px; }
.stepper-v li:last-child { padding-bottom: 0; }
.stepper-v li::before { display: block !important; top: 36px; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; background: var(--line); }
.stepper-v li:first-child::before { display: block !important; }
.stepper-v li:last-child::before { display: none !important; }
.stepper-v li.done::before { background: var(--ok); }
.stepper-v li.cur::before { background: linear-gradient(180deg, var(--red), var(--line)); }
.stepper-v .st-dot { width: 36px; height: 36px; font-size: 14px; margin: 0; grid-row: span 2; }
.stepper-v b { font-size: 15px; margin: 6px 0 2px; }
.stepper-v li.done b { color: var(--text); }
.stepper-v p { font-size: 13px; }
.stepper-v p a { color: var(--red-hi); font-weight: 600; white-space: nowrap; }
.progress.full span { background: linear-gradient(90deg, #3d9a5c, var(--ok)); }
.stepper-v li:not(.cur) p a { color: var(--muted); font-weight: 500; } .stepper-v li:not(.cur) p a:hover { color: var(--text); }

/* ---------- Bank ---------- */
.bank-top { display: grid; grid-template-columns: minmax(300px, 1.1fr) 1fr; gap: 18px; }
.bank-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 24px 26px;
  border-radius: 14px; border: 1px solid rgba(224,54,43,.45);
  background: radial-gradient(120% 140% at 100% 0%, rgba(224,54,43,.35), transparent 55%), linear-gradient(135deg, #2a0e0b, #120807 70%);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.bank-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; background: url(../img/logo.svg) no-repeat center / contain; opacity: .08; }
.bank-card small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #f0b7ad; }
.bank-card b { font-family: var(--display); font-size: 44px; letter-spacing: .02em; line-height: 1.1; margin: 10px 0; }
.bank-card span { font-family: var(--mono, monospace); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.bank-chip { position: absolute; right: 26px; top: 24px; width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #d9b36a, #8a6a2c); opacity: .85; }
.bank-side { display: grid; gap: 12px; }
.bank-mini { padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.bank-mini small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bank-mini b { font-family: var(--display); font-size: 22px; }
.bank-mini em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.bank-tx .r, table .r { text-align: right; white-space: nowrap; }
.bank-tx .pos, td.pos { color: var(--ok); font-weight: 700; }
.bank-tx .neg, td.neg { color: #e7837a; font-weight: 700; }
code.cmd { font-size: 12.5px; background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 4px; user-select: all; }
@media (max-width: 900px) { .bank-top { grid-template-columns: 1fr; } }
.badge-game { background: linear-gradient(135deg, #3a1a14, #1d0d0a); border: 1px solid #5a2a20; color: #fff; }
.badges .pzb, .pzb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; background: rgba(0,0,0,.2); }
.pzb i { font-style: normal; }

/* ---------- Server-Logs ---------- */
.log-table td { vertical-align: top; }
.log-table .nowrap { white-space: nowrap; }
.log-msg { font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; color: #d6cbc7; word-break: break-word; }
.log-alert { background: rgba(200,40,30,.12); }
.log-alert .log-msg { color: #ffb4ab; }

/* ---------- Events ---------- */
.sec-title { font-size: 24px; margin: 0 0 14px; }
.event-list { display: grid; gap: 12px; }
.event-row { display: grid; grid-template-columns: 70px 150px 1fr auto; gap: 18px; align-items: center; padding: 12px 18px 12px 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; transition: border-color .15s, transform .15s; }
.event-row:hover { text-decoration: none; border-color: var(--red); transform: translateY(-1px); }
.event-row img { width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.event-row h3 { margin: 0 0 4px; font-size: 19px; }
.event-row p { margin: 0; }
.event-date { text-align: center; border: 1px solid rgba(200,40,30,.5); border-radius: 8px; padding: 8px 0; background: rgba(200,40,30,.1); }
.event-date b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.event-date small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #f0b7ad; }
.event-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.event-list.past .event-row { opacity: .7; }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 6px 0 22px; color: #d6cbc7; }
.event-facts span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; background: rgba(0,0,0,.2); }
.event-join { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.avatars { display: flex; flex-wrap: wrap; gap: 12px; }
.avatars a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; font-size: 12px; color: var(--muted); text-align: center; }
.avatars img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
@media (max-width: 760px) { .event-row { grid-template-columns: 60px 1fr; } .event-row img, .event-meta { display: none; } }

/* ---------- Adventskalender ---------- */
.advent-teaser { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 26px; border-radius: 12px; color: var(--text);
  background: linear-gradient(90deg, rgba(200,40,30,.25), rgba(40,120,70,.18)); border: 1px solid rgba(224,54,43,.5); }
.advent-teaser:hover { text-decoration: none; border-color: #e8c36a; }
.advent-teaser > span { font-size: 34px; } .advent-teaser b { display: block; font-size: 17px; } .advent-teaser small { color: #d6cbc7; }
.advent-teaser em { margin-left: auto; font-style: normal; font-weight: 700; color: #e8c36a; }
.advent-page .section { position: relative; }
.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.snow i { position: absolute; top: -12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: snow linear infinite; }
@keyframes snow { to { top: 105%; translate: 30px 0; } }
.advent-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.advent-door { aspect-ratio: 1; perspective: 600px; }
.advent-door.big { grid-column: span 2; grid-row: span 2; }
.advent-door form, .advent-door .door-front, .advent-door .door-inside { width: 100%; height: 100%; }
.door-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; cursor: default; font: inherit; color: #f6e7c8;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 40%), linear-gradient(145deg, #5a1712, #2a0b08); border: 2px solid #7a2a1e;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.35); position: relative; }
.door-front::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(232,195,106,.35); border-radius: 6px; }
.door-front span { font-family: var(--display); font-size: clamp(28px, 4vw, 46px); font-weight: 800; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.advent-door.big .door-front span { font-size: clamp(48px, 7vw, 92px); }
.door-front em { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #e8c36a; }
.s-today .door-front { cursor: pointer; border-color: #e8c36a; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 40%), linear-gradient(145deg, #8a2017, #3a0e09);
  animation: glow 2s ease-in-out infinite; }
.s-late .door-front { cursor: pointer; border-color: #8a6a2c; }
.s-today .door-front:hover, .s-late .door-front:hover { transform: rotateY(-14deg); transform-origin: left; transition: transform .25s; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 4px rgba(0,0,0,.25), 0 0 26px rgba(232,195,106,.55); } }
.s-locked .door-front, .s-missed .door-front { filter: saturate(.6) brightness(.8); }
.s-missed .door-front em { color: var(--muted); }
.door-inside { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px; border-radius: 10px;
  background: linear-gradient(145deg, #13301f, #0c1d13); border: 2px solid #2e6b45; }
.door-inside small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8fd3a8; }
.door-inside b { font-size: 15px; line-height: 1.2; } .door-inside span { font-size: 13px; color: #d6e8dc; }
.advent-door.just .door-inside { animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: rotateY(90deg) scale(.8); } 100% { transform: none; } }
.advent-admin input, .advent-admin select { width: 100%; padding: 7px 9px; }
@media (max-width: 900px) { .advent-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .advent-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Hall of Fame ---------- */
.hof-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; padding: 18px 22px; border: 1px solid rgba(232,195,106,.45); border-radius: 12px;
  background: linear-gradient(90deg, rgba(232,195,106,.1), transparent); }
.hof-now span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e8c36a; } .hof-now b { font-family: var(--display); font-size: 26px; }
.hof-season { margin-top: 34px; }
.hof-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; } .hof-head h2 { margin: 0; }
.hof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hof-board { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; }
.hof-board h3 { font-size: 16px; margin-bottom: 10px; }
.hof-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.hof-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.hof-row.p1 b { color: #e8c36a; }

/* ---------- Aktivität ---------- */
.heat-wrap { overflow-x: auto; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(22px, 1fr)); gap: 3px; min-width: 640px; }
.heat span { font-size: 11px; color: var(--muted); display: flex; align-items: center; }
.heat .hh { justify-content: flex-start; }
.heat i, .heat-legend i { display: block; aspect-ratio: 1.4; border-radius: 3px; background: rgba(224,54,43, calc(.06 + var(--v) * .94)); }
.heat i:hover { outline: 1px solid #fff; }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.heat-legend i { width: 22px; }
.daybars.tall { height: 180px; }
.daybar em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---------- Umfragen ---------- */
.poll-opts { display: grid; gap: 8px; margin-top: 10px; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(0,0,0,.18); }
.poll-opt input { accent-color: var(--red); position: relative; z-index: 1; }
.poll-opt.sel { border-color: var(--red); }
.poll-label { position: relative; z-index: 1; flex: 1; }
.poll-pct { position: relative; z-index: 1; font-weight: 700; font-size: 14px; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(200,40,30,.35), rgba(200,40,30,.15)); z-index: 0; transition: width .5s; }
.cms-page { padding-top: 40px; }
.poll-opt { text-transform: none; letter-spacing: normal; font-weight: 500; font-size: 15px; color: var(--text); }

/* ---------- Benutzermenü ---------- */
.usermenu-drop { min-width: 300px; padding: 0; overflow: hidden; border-radius: 10px; }
.um-head { padding: 14px 18px 10px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); }
.usermenu-drop a.um-user { display: flex; align-items: center; gap: 14px; padding: 8px 18px 14px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
.usermenu-drop a.um-user:hover { background: rgba(255,255,255,.03); }
.um-user img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); flex: none; }
.um-user b { display: block; font-size: 16px; }
.um-rank { display: inline-block; margin-top: 5px; padding: 2px 8px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(200,40,30,.25); border: 1px solid rgba(224,54,43,.6); border-radius: 4px; }
.um-list { display: block; padding: 6px; }
.usermenu-drop .um-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 15px; border-radius: 6px; }
.um-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.um-list a:hover svg { stroke: var(--red-hi); }
.um-list .badge { margin-left: auto; }
.um-logout button { display: block; width: 100%; padding: 12px; border: 0; border-radius: 0; cursor: pointer; text-align: center !important;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #fff !important; background: var(--red) !important; }
.um-logout button:hover { background: var(--red-hi) !important; }
@media (max-width: 760px) { .usermenu-drop { min-width: 0; border-radius: 8px; } }
.um-rank { white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
