/* SushiBot Dashboard – dunkles Panel-Layout im Stil von Pelican/Pterodactyl */
:root, :root[data-theme="dark"] {
  --bg: #0e131b;            /* Seitenhintergrund */
  --bg-sidebar: #131a24;
  --bg-topbar: #131a24;
  --bg-soft: #1e2836;
  --bg-card: #18202c;
  --bg-input: #0e131b;
  --bg-hover: #1e2836;
  --border: #26303e;
  --text: #dbe2ea;
  --text-muted: #8a94a3;
  --accent: #0ea5e9;        /* Cyan-Blau wie Pelican */
  --accent-dark: #0284c7;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 8px;
}

:root[data-theme="light"] {
  --bg: #f1f4f8;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-soft: #eef1f6;
  --bg-card: #ffffff;
  --bg-input: #f6f8fb;
  --bg-hover: #eaeef4;
  --border: #d6dce6;
  --text: #1a2432;
  --text-muted: #667085;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* ── Fatale Fehler (statt Blankscreen) ─────────────────────────────── */
.fatal {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #7f1d1d;
  color: #fecaca;
  border-bottom: 1px solid #b91c1c;
  padding: 10px 16px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

/* ── Laden / Login ──────────────────────────────────────────────────── */
.center-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r, 12px);
  padding: 42px 52px;
  text-align: center;
  width: 360px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.login-logo { font-size: 3rem; }
.login-card h1 { margin: 6px 0 4px; letter-spacing: 0.5px; }
.login-card .btn { margin-top: 24px; }
.login-error {
  margin-top: 18px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.4);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 0.88rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 16px;
  text-decoration: underline;
}
.btn-link:hover { color: var(--text); }

/* ── Landing-Page ──────────────────────────────────────────────────── */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.landing-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; }
.landing-nav { display: flex; align-items: center; gap: 10px; }

.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft, rgba(14,165,233,0.15));
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r, 20px);
  padding: 4px 14px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.hero-title {
  font-size: 3.4rem;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 20px auto 60px;
  padding: 0 24px;
  width: 100%;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r, 12px);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-ico { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-muted); line-height: 1.55; font-size: 0.92rem; }

.landing-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero { padding: 50px 20px 40px; }
  .hero-title { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .landing-header { padding: 14px 18px; }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.login-form .btn { margin-top: 2px; }
.login-card .btn-primary { margin-top: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 16px 0;
}
.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Mitgliederliste mit Status-Gruppen ────────────────────────────── */
.member-groups { max-height: 62vh; overflow-y: auto; }
.member-group-head {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 8px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #747f8d;
}
.status-online .status-dot { background: #23a55a; }
.status-idle .status-dot { background: #f0b232; }
.status-dnd .status-dot { background: #f23f43; }
.member-sub { color: var(--text-muted); font-size: 0.78rem; }
.bot-badge {
  font-size: 0.68rem;
  background: var(--accent);
  color: var(--accent-ink, #06212e);
  border-radius: var(--r, 4px);
  padding: 1px 5px;
  font-weight: 700;
  margin-left: 4px;
}

/* ── Formulare (Account-Seiten) ────────────────────────────────────── */
.stack-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.checkbox { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; }
.profile-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-row img { width: 52px; height: 52px; border-radius: 50%; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ── Ticket-Nachrichtenverlauf ─────────────────────────────────────── */
.ticket-messages {
  max-height: 48vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}
.ticket-msg {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r, 8px);
  padding: 8px 12px;
  font-size: 0.92rem;
}
.ticket-msg-bot { border-left: 3px solid var(--accent); }
.ticket-msg-head { margin-bottom: 3px; font-size: 0.82rem; }
.ticket-msg-head .muted { margin-left: 6px; }

/* ── Sub-Navigation (z. B. Admin-Panel) ────────────────────────────── */
.subnav {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.subnav button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 9px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}
.subnav button:hover { color: var(--text); }
.subnav button.active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Abschnitts-Überschrift (Übersicht-Bereiche) ───────────────────── */
.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 20px 0 8px;
  font-weight: 600;
}
.section-label:first-child { margin-top: 0; }

/* ── Kurs-Farben ───────────────────────────────────────────────────── */
.chg-up { color: var(--ok); }
.chg-down { color: var(--danger); }

/* ── Broker-Chart ──────────────────────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: 240px; display: block; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-area { fill: var(--accent); opacity: 0.08; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-price { font-size: 1.8rem; font-weight: 650; }
.period-tabs { display: flex; gap: 4px; }
.period-tabs button {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r, 6px);
  padding: 5px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}
.period-tabs button.active { color: var(--text); border-color: var(--accent); }

/* ── App-Layout: Sidebar + Main ────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh; /* Handy: sichtbare Hoehe ohne Adressleiste */
  overflow-y: auto; /* langes Menue scrollbar (vorher abgeschnitten) */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sidebar-brand {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand span { letter-spacing: 0.5px; }

.sidebar-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 16px 20px 6px;
}

.sidebar-server { padding: 0 14px; }
.sidebar-server select { width: 100%; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  gap: 2px;
}
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}
.sidebar-nav button:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-nav button.active {
  background: var(--bg-hover);
  border-left-color: var(--accent);
  color: var(--text);
}
.nav-ico { width: 20px; text-align: center; }

/* Navigationsgruppen */
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.nav-group-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 6px 12px 4px;
  opacity: 0.8;
}
#topbar-title .crumb { color: var(--text-muted); font-weight: 400; }
#topbar-title .crumb::after { content: " › "; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 10px;
  min-height: 40px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--r, 8px);
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
}
.sidebar-user:hover { border-color: var(--accent); }
.sidebar-user img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.sidebar-user .user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .user-gear { color: var(--text-muted); font-size: 0.95rem; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
}
.health-chip {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r, 20px);
  padding: 4px 12px;
}
.health-chip.ok::before { content: "●"; color: var(--ok); margin-right: 6px; }

.content {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
}

/* ── Cards & Tabellen ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 650; color: var(--text); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-head h2 { margin: 0; }
h2 { font-size: 1.02rem; margin-top: 0; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 62vh;
  overflow-y: auto;
}
.member-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r, 6px);
  cursor: pointer;
}
.member-list li:hover, .member-list li.active { background: var(--bg-hover); }
.member-list img { width: 28px; height: 28px; border-radius: 50%; }

/* ── Formulare & Buttons ───────────────────────────────────────────── */
input, select {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r, 6px);
  padding: 8px 10px;
  font-size: 0.9rem;
}
input:focus, select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r, 6px);
  padding: 9px 16px;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.1s ease, background 0.1s ease;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #06212e); font-weight: 600; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-ink-hover, #eaf6fd); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-small { padding: 6px 10px; font-size: 0.85rem; }
.btn-danger { border-color: rgba(248,113,113,0.5); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #2a0a0a; }
.btn-warn { border-color: rgba(251,191,36,0.5); color: var(--warn); }
.btn-warn:hover { background: var(--warn); border-color: var(--warn); color: #2a2005; }

.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-head img { width: 46px; height: 46px; border-radius: 50%; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r, 10px);
  font-size: 0.76rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.badge.muted-badge { border-color: var(--warn); color: var(--warn); }

.wide { overflow-x: auto; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ok);
  border-radius: var(--r, 8px);
  padding: 12px 16px;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.toast.toast-error { border-left-color: var(--danger); }

/* ── Mobile: Sidebar als Einschub-Menü (Drawer) ────────────────────── */
.btn-menu {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r, 6px);
  color: var(--text);
  font-size: 1.15rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* Immer sichtbarer Topbar-Button (z. B. Theme-Umschalter) */
.topbar-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r, 6px);
  color: var(--text);
  font-size: 1.05rem;
  padding: 5px 11px;
  cursor: pointer;
  line-height: 1;
}
.topbar-btn:hover { border-color: var(--accent); }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 39;
}

@media (max-width: 768px) {
  .btn-menu { display: inline-block; }

  .sidebar {
    position: fixed;
    left: 0; top: 0;
    z-index: 40;
    width: min(280px, 84vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  body:has(.app.sidebar-open) { overflow: hidden; } /* Hintergrund nicht mitscrollen */
  .app.sidebar-open .sidebar-overlay { display: block; }

  .topbar {
    padding: 10px 14px;
    gap: 10px;
    font-size: 0.98rem;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .topbar .health-chip { display: none; }

  .content { padding: 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .card { padding: 14px; }

  /* Tabellen horizontal scrollbar statt gequetscht */
  table { display: block; overflow-x: auto; white-space: nowrap; }
  #member-detail table, #db-table-holder table, #accounts-table { max-width: 100%; }

  /* Groessere Touch-Ziele */
  .btn, input, select { padding: 10px 14px; font-size: 0.95rem; }
  .btn-small { padding: 8px 11px; font-size: 0.88rem; }
  .sidebar-nav button { padding: 13px 12px; font-size: 1rem; }
  .member-list li { padding: 11px 10px; }
  .detail-actions .btn { flex: 1 1 45%; text-align: center; }

  .login-card {
    width: calc(100vw - 32px);
    max-width: 380px;
    padding: 30px 22px;
  }

  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form input { width: 100%; }
  .stack-form { max-width: none; }
  .member-groups { max-height: none; }
  .member-list { max-height: none; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

/* ── Übersicht: zweispaltig (Economy links, Statistik rechts), mobil gestapelt ── */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.overview-grid.single { grid-template-columns: 1fr; }
.overview-col { min-width: 0; }
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: 1fr; }
}

/* ── Grundstücke ── */
.plot-size-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border, rgba(128,128,128,0.25)); border-radius: var(--r, 8px); margin-bottom: 8px; }
.plot-size-row .btn { margin-top: 4px; }

/* ── Statistik-Reiter: Grid aus Bestenlisten ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }


/* ── Startseite ───────────────────────────────────────────── */
.dash-welcome { margin-bottom: 14px; }
.dash-welcome h1 { font-size: 1.45rem; margin: 0 0 2px; }
.dash-welcome p { margin: 0; }
.stat-link { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.stat-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.server-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg-hover); }
.server-tile.is-online { border-left: 3px solid #57F287; }
.server-tile.is-offline { border-left: 3px solid #ED4245; opacity: .75; }
.server-name { font-weight: 600; margin-bottom: 4px; }
.server-state { font-size: .85rem; color: var(--text-muted); }
.server-addr { display: inline-block; max-width: 100%; margin-top: 6px; font-size: .72rem; cursor: copy; overflow-wrap: anywhere; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-hover); color: var(--text); font: inherit; cursor: pointer; }
.quick-link span { font-size: 1.4rem; }
.quick-link:hover { border-color: var(--accent); }

/* ── Verwaltung ───────────────────────────────────────────── */
.nav-badge { margin-left: auto; font-size: .65rem; padding: 1px 6px; border-radius: var(--r, 8px); background: var(--bg-hover);
  border: 1px solid var(--border); color: var(--text-muted); }
.notice-warn { border: 1px solid #FEE75C; background: rgba(254, 231, 92, .08); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }


/* ── Bot-Einstellungen ────────────────────────────────────── */
.settings-intro { margin: 4px 0 16px; font-size: .9rem; max-width: 760px; }
.settings-card { margin-bottom: 18px; }
.settings-card h3 { font-size: 1rem; margin: 0 0 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.settings-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-muted); }
.settings-grid label input, .settings-grid label select { width: 100%; }
.settings-grid .span-2 { grid-column: span 2; }
.settings-facts { font-size: .85rem; margin: -4px 0 12px; }
.settings-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 16px 0 8px; }
.settings-danger { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.settings-table td { vertical-align: middle; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--border);
  border-radius: var(--r, 999px); background: var(--bg-hover); font-size: .85rem; }
.chip button { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.chip button:hover { color: var(--danger); }
@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .span-2 { grid-column: span 1; }
  .settings-table thead { display: none; }
  .settings-table tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .settings-table td { border: none; padding: 2px 0; }
  .row-actions { grid-column: span 2; text-align: left; }
  .row-actions .btn { margin: 4px 4px 0 0; }
}


/* ── Bewerbungen ─────────────────────────────────────────── */
.app-person { display: flex; gap: 12px; align-items: center; margin: 4px 0 6px; }
.app-person img { width: 44px; height: 44px; border-radius: 50%; }
.app-reason { white-space: pre-wrap; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font-size: .92rem; line-height: 1.45; }


/* ── Kick-Zähler (Moderation) ─────────────────────────────── */
.kick-meter { margin: 10px 0 4px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-hover); font-size: .9rem; }
.kick-meter.is-critical { border-color: #ED4245; background: rgba(237, 66, 69, .08); }

.settings-grid textarea { width: 100%; resize: vertical; font: inherit; }


/* ── Anhänge in Tickets ───────────────────────────────────── */
.attach-audio { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-hover); max-width: 420px; }
.attach-audio-head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; margin-bottom: 6px; }
.attach-audio audio { width: 100%; height: 36px; }
.attach-image { display: block; margin-top: 6px; max-width: 320px; max-height: 240px; border-radius: var(--radius); border: 1px solid var(--border); }
.attach-file { display: inline-block; margin-top: 6px; font-size: .88rem; }


/* ── Clips ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal.hidden { display: none; }
.modal-card { width: 100%; max-width: 460px; }
.upload-progress { height: 8px; border-radius: var(--r, 999px); background: var(--bg-hover); overflow: hidden; }
.upload-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ── Clips im Instagram-Stil ──────────────────────────────── */
.ig-layout { display: grid; grid-template-columns: minmax(0, 520px) 300px; gap: 48px; justify-content: center; align-items: start; }
.ig-main { min-width: 0; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.ig-avatar-empty { background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; font-weight: 700; font-size: .85rem; }
.ig-avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }
.ig-avatar-xl { width: 128px; height: 128px; font-size: 2.6rem; }
.ig-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f59e0b; }

/* Creator-Leiste */
.ig-stories { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: none; }
.ig-stories::-webkit-scrollbar { display: none; }
.ig-story { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; padding: 0; cursor: pointer; color: var(--text); width: 72px; flex-shrink: 0; }
.ig-story small { font-size: .74rem; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-story-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #f59e0b, #ef4444, #d946ef, #f59e0b); display: flex; align-items: center; justify-content: center; }
.ig-story-ring .ig-avatar { width: 100%; height: 100%; border: 3px solid var(--bg); font-size: 1.3rem; }
.ig-story-add { background: var(--bg-soft); border: 1px dashed var(--border); font-size: 1.6rem; color: var(--text-muted); }
.ig-story:hover .ig-story-ring { transform: scale(1.04); }
.ig-story-ring { transition: transform .15s; }
.ig-story-skel { width: 66px; height: 66px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; }

/* Filter-Chips */
.ig-chips { display: flex; gap: 6px; align-items: center; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.ig-chips::-webkit-scrollbar { display: none; }
.ig-chips button { flex-shrink: 0; white-space: nowrap; background: var(--bg-soft); border: 1px solid transparent; color: var(--text); border-radius: var(--r, 999px); padding: 5px 13px; font: inherit; font-size: .84rem; cursor: pointer; }
.ig-chips button:hover { border-color: var(--border); }
.ig-chips button.active { background: var(--text); color: var(--bg); font-weight: 600; }
.ig-chips #ig-games { display: contents; }
.ig-chips-maps { margin-top: -10px; }
.ig-chips-maps.hidden { display: none; }
.ig-chips-maps button { font-size: .8rem; padding: 4px 11px; }
.ig-chips button small { margin-left: 6px; opacity: .6; font-size: .72rem; }
.ig-hashtag { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.ig-hashtag:hover { text-decoration: underline; }
.ig-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-tag-chip { background: var(--bg-soft); border-radius: var(--r, 999px); padding: 3px 10px; font-size: .8rem; }
.ig-tag-chip small { margin-left: 5px; color: var(--text-muted); font-size: .7rem; }
.ig-tag-chip.active { background: var(--accent); color: #fff; }
.ig-tag-chip.active small { color: rgba(255,255,255,.8); }
.ig-chips button.ig-tag-active { background: var(--accent); color: #fff; }
.ig-views { margin-left: 8px; color: var(--text-muted); font-size: .84rem; cursor: help; }
.ig-with { font-size: .84rem; color: var(--text-muted); }
.ig-with .ig-name { font-weight: 600; color: var(--text); }
.ig-yt { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.ig-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-yt-play { position: relative; width: 64px; height: 44px; border-radius: var(--r, 12px); background: #ff0033; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ig-yt-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r, 999px); }
.ig-yt iframe, .ig-yt-lb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-yt-lb { position: relative; }
.ig-media-lb.ig-yt-lb { aspect-ratio: 16 / 9; height: auto; align-self: center; width: 100%; }
.ig-profile-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ig-profile-title h2 { margin: 0 !important; }
.ig-profile-tabs { gap: 40px; }
.ig-profile-tabs button { background: none; border: none; border-top: 1px solid transparent; color: var(--text-muted); font: inherit; font-size: .75rem; letter-spacing: .1em; font-weight: 600; padding: 14px 0; margin-top: -1px; cursor: pointer; }
.ig-profile-tabs button.active { color: var(--text); border-top-color: var(--text); }
.clip-src { display: flex; gap: 6px; }
.clip-src button { flex: 1; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); font: inherit; cursor: pointer; }
.clip-src button.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft, rgba(14, 165, 233, .15)); }
.pp { position: relative; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pp-chips:empty { display: none; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r, 999px); padding: 2px 4px 2px 3px; font-size: .84rem; }
.pp-chip img { width: 20px; height: 20px; border-radius: 50%; }
.pp-chip button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .75rem; }
.pp-input { width: 100%; box-sizing: border-box; }
.pp-results { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 5; display: flex; flex-direction: column; padding: 4px; max-height: 240px; overflow-y: auto; }
.pp-results.hidden { display: none; }
.pp-results button { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text); font: inherit; text-align: left; padding: 7px 8px; border-radius: var(--r, 6px); cursor: pointer; }
.pp-results button:hover { background: var(--bg-hover); }
.pp-results img { width: 24px; height: 24px; border-radius: 50%; }
.pp-results .muted { padding: 8px; font-size: .85rem; }
.ig-chip-sep { flex-shrink: 0; width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

/* Beitrag */
.ig-feed { display: flex; flex-direction: column; gap: 8px; }
.ig-post { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 12px; }
.ig-post-head { display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; }
.ig-user { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.ig-user > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ig-user strong { font-size: .9rem; }
.ig-user small { font-size: .76rem; }
.ig-user:hover strong { text-decoration: underline; }
.ig-dot { font-size: .85rem; align-self: flex-start; margin-top: 1px; }
.ig-cotw { margin-left: auto; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r, 999px); }
.ig-media { position: relative; background: #000; border-radius: var(--r, 6px); overflow: hidden; border: 1px solid var(--border); cursor: pointer; user-select: none; }
.ig-media video { display: block; width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.ig-sound { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; cursor: pointer; }
.ig-heart-pop { position: absolute; left: 50%; top: 50%; font-size: 90px; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.ig-heart-pop.show { animation: ig-pop .9s ease-out; }
@keyframes ig-pop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(.95); } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.ig-actions { display: flex; align-items: center; gap: 4px; padding: 8px 0 2px; }
.ig-act { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: var(--text); font: inherit; padding: 6px 8px; border-radius: var(--r, 999px); cursor: pointer; text-decoration: none; }
.ig-act span { font-size: 1.35rem; line-height: 1; filter: grayscale(1) opacity(.75); transition: transform .12s, filter .12s; }
.ig-act small { font-size: .82rem; font-weight: 600; }
.ig-act:hover span { transform: scale(1.12); filter: none; }
.ig-act.is-active span { filter: none; animation: ig-bounce .3s; }
.ig-act.is-active small { color: var(--accent); }
.ig-act-end { margin-left: auto; }
.ig-act-end span { font-size: 1.1rem; }
@keyframes ig-bounce { 50% { transform: scale(1.3); } }
.ig-post-body { padding: 0 4px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.ig-name { background: none; border: none; padding: 0; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.ig-name:hover { text-decoration: underline; }
.ig-caption { word-break: break-word; }
.ig-more { background: none; border: none; padding: 0; color: var(--text-muted); font: inherit; text-align: left; cursor: pointer; }
.ig-more:hover { color: var(--text); }
.ig-end { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 12px 0 24px; }
.ig-empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ig-empty h3 { margin: 6px 0 0; }
.ig-empty-icon { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--text); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.ig-empty .btn { margin-top: 10px; }

/* Seitenleiste */
.ig-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.ig-upload-wide { width: 100%; }
.ig-side-head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-top: 6px; }
.ig-suggest { width: 100%; }
.ig-rank { width: 22px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.ig-side-foot { font-size: .78rem; line-height: 1.5; margin: 8px 0 0; }

/* Lightbox */
body.ig-noscroll { overflow: hidden; }
.ig-lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 32px 64px; }
.ig-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.ig-box { display: flex; width: min(1180px, 100%); max-height: calc(100vh - 64px); height: min(760px, calc(100vh - 64px)); background: var(--bg-card); border-radius: var(--r, 6px); overflow: hidden; }
.ig-media-lb { flex: 1 1 auto; min-width: 0; border: none; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.ig-media-lb video { max-height: 100%; height: 100%; aspect-ratio: auto; }
.ig-media-lb .ig-sound { bottom: 56px; }
.ig-panel { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.ig-panel .ig-post-head { padding: 14px 16px; border-bottom: 1px solid var(--border); justify-content: space-between; }
.ig-icon-btn { background: none; border: none; font-size: 1.05rem; cursor: pointer; opacity: .7; }
.ig-icon-btn:hover { opacity: 1; }
.ig-thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; }
.ig-comment { display: flex; gap: 12px; font-size: .9rem; line-height: 1.4; word-break: break-word; }
.ig-comment-text { white-space: pre-wrap; }
.ig-when { font-size: .74rem; margin-top: 4px; }
.ig-no-comments { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ig-panel .ig-actions { border-top: 1px solid var(--border); padding: 6px 10px 0; }
.ig-panel .ig-post-body { padding: 0 16px 10px; }
.ig-comment-form { display: flex; border-top: 1px solid var(--border); }
.ig-comment-form input { flex: 1; background: none; border: none; color: var(--text); font: inherit; padding: 14px 16px; outline: none; }
.ig-comment-form button { background: none; border: none; color: var(--accent); font: inherit; font-weight: 700; padding: 0 16px; cursor: pointer; }
.ig-comment-form input:placeholder-shown + button { opacity: .4; pointer-events: none; }

/* Profil */
.ig-profile-wrap { max-width: 935px; margin: 0 auto; }
.ig-back { background: none; border: none; color: var(--text-muted); font: inherit; cursor: pointer; padding: 0; margin-bottom: 12px; }
.ig-back:hover { color: var(--text); }
.ig-profile { display: flex; gap: 72px; align-items: center; padding: 16px 48px 36px; }
.ig-profile-pic { flex-shrink: 0; }
.ig-profile-info h2 { margin: 0 0 16px; font-size: 1.4rem; font-weight: 500; }
.ig-profile-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.ig-profile-stats strong { font-weight: 700; }
.ig-profile-badge { display: inline-block; margin-top: 16px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r, 999px); }
.ig-profile-tabs { border-top: 1px solid var(--border); display: flex; justify-content: center; }
.ig-profile-tabs span { font-size: .75rem; letter-spacing: .1em; font-weight: 600; padding: 14px 0; margin-top: -1px; border-top: 1px solid var(--text); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-tile { position: relative; aspect-ratio: 1; border: none; padding: 0; background: var(--bg-soft); cursor: pointer; overflow: hidden; }
.ig-tile img, .ig-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-tile-type { position: absolute; top: 8px; right: 10px; color: #fff; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ig-tile-cotw { position: absolute; top: 6px; left: 8px; font-size: 1rem; }
.ig-tile-map { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: var(--r, 999px); }
.clip-upload-cs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clip-upload-cs.hidden { display: none; }
.ig-tile-hover { position: absolute; inset: 0; background: rgba(0,0,0,.4); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 24px; opacity: 0; transition: opacity .15s; }
.ig-tile:hover .ig-tile-hover { opacity: 1; }

@media (max-width: 1100px) {
  .ig-layout { grid-template-columns: minmax(0, 520px); }
  .ig-side { display: none; }
}
@media (max-width: 800px) {
  .ig-lightbox { padding: 0; }
  .ig-box { flex-direction: column; height: 100%; max-height: 100vh; border-radius: 0; overflow-y: auto; }
  .ig-media-lb { flex: 0 0 auto; }
  .ig-media-lb video { height: auto; max-height: 60vh; width: 100%; }
  .ig-panel { width: 100%; border-left: none; flex: 1 0 auto; }
  .ig-thread { max-height: none; }
  .ig-close { z-index: 2; text-shadow: 0 1px 4px #000; }
  .ig-profile { gap: 24px; padding: 8px 0 24px; }
  .ig-avatar-xl { width: 80px; height: 80px; font-size: 1.8rem; }
  .ig-profile-stats { gap: 16px; font-size: .88rem; }
  .ig-grid { gap: 2px; }
}

/* ── Mitspieler-Finder ─────────────────────────────────────── */
.lfg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.lfg-create { position: sticky; top: 16px; }
.lfg-create h2 { margin-top: 0; }
.lfg-spots { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.lfg-spots input { width: 80px; }
.lfg-rating { margin: 12px 0 4px; font-size: .88rem; }
.lfg-hint { font-size: .8rem; margin: 0; }
.lfg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lfg-empty { grid-column: 1 / -1; text-align: center; padding: 32px; }
.lfg-card { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--accent); }
.lfg-card.is-full { border-left-color: #57F287; }
.lfg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lfg-head h3 { margin: 0; font-size: 1.05rem; }
.lfg-badge { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.lfg-card.is-full .lfg-badge { background: rgba(87, 242, 135, .18); color: #57F287; }
.lfg-note { margin: 0; font-style: italic; color: var(--text-muted); font-size: .9rem; }
.lfg-slots { display: flex; align-items: center; gap: 4px; }
.lfg-slots span { flex: 1; height: 8px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.lfg-slots span.on { background: var(--accent); }
.lfg-card.is-full .lfg-slots span.on { background: #57F287; }
.lfg-slots small { margin-left: 6px; font-weight: 600; font-size: .8rem; }
.lfg-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lfg-members li { display: flex; align-items: center; gap: 10px; }
.lfg-members img, .lfg-noavatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.lfg-members li > span { display: flex; flex-direction: column; line-height: 1.25; font-size: .88rem; }
.lfg-members small { font-size: .75rem; }
.lfg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.lfg-exp { margin-left: auto; font-size: .78rem; }
@media (max-width: 900px) {
  .lfg-layout { grid-template-columns: 1fr; }
  .lfg-create { position: static; }
}

/* ── Inhouse ─────────────────────────────────────────────────── */
.ih-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ih-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ih-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.ih-start-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ih-start-form input { width: 150px; }
.ih-empty { text-align: center; padding: 28px; }
.ih-card { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--accent); }
.ih-card.ih-live { border-left-color: #F59E0B; }
.ih-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ih-card-head h3 { margin: 0; }
.ih-badge { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.ih-live .ih-badge { background: rgba(245, 158, 11, .2); color: #F59E0B; }
.ih-meta { margin: 0; font-size: .86rem; }
.ih-slots { display: flex; align-items: center; gap: 3px; }
.ih-slots span { flex: 1; height: 8px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.ih-slots span.on { background: var(--accent); }
.ih-slots small { margin-left: 6px; font-weight: 600; font-size: .8rem; }
.ih-players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ih-players.ih-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ih-players li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.ih-players li small { margin-left: auto; }
.ih-players img, .ih-noav { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: inline-block; flex-shrink: 0; }
.ih-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ih-teams h4 { margin: 0 0 6px; }
.ih-wait { margin: 0; font-size: .82rem; }
.ih-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ih-h { font-size: 1rem; margin: 10px 0 0; }
.ih-unranked-intro { margin: 0; font-size: .88rem; }
.ih-queues { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ih-queue .ih-teams { grid-template-columns: 1fr 1fr; }
.ih-recent { display: flex; flex-direction: column; gap: 8px; }
.ih-recent-row { padding: 10px 14px; }
.ih-recent-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.ih-recent-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; font-size: .84rem; color: var(--text-muted); }
.ih-recent-teams .win { color: var(--text); font-weight: 600; }
.ih-recent-teams .win::after { content: " 🏆"; }
.ih-vs { font-weight: 700; }
.ih-me-head { display: flex; align-items: center; gap: 10px; }
.ih-me-head img { width: 44px; height: 44px; border-radius: 50%; }
.ih-me-head div { display: flex; flex-direction: column; }
.ih-rating { margin-left: auto; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.ih-me-stats { display: flex; justify-content: space-between; margin-top: 12px; font-size: .85rem; }
.ih-me-stats span { display: flex; flex-direction: column; align-items: center; }
.ih-streak { margin: 10px 0 0; font-weight: 600; font-size: .88rem; }
.ih-form { display: flex; gap: 4px; margin-top: 10px; }
.ih-form span { width: 22px; height: 22px; border-radius: var(--r, 4px); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.ih-form .w { background: #16a34a; }
.ih-form .l { background: #dc2626; }
.ih-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ih-board li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.ih-board img { width: 26px; height: 26px; border-radius: 50%; }
.ih-pos { width: 24px; text-align: center; }
.ih-name { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.ih-name small { font-size: .72rem; }
.ih-role-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 180px; overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.ih-role-pick { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
@media (max-width: 1000px) {
  .ih-layout { grid-template-columns: 1fr; }
  .ih-side { position: static; }
}
@media (max-width: 600px) {
  .ih-teams { grid-template-columns: 1fr; }
}

/* ── Musik ──────────────────────────────────────────────────── */
.mu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.mu-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mu-player { background: linear-gradient(135deg, var(--accent-tint, rgba(14, 165, 233, .14)), transparent 60%), var(--bg-card); }
.mu-error { background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); border-radius: var(--r, 8px); padding: 8px 12px; margin-bottom: 14px; font-size: .88rem; }
.mu-now, .mu-idle { display: flex; gap: 20px; align-items: center; }
.mu-art { width: 150px; height: 150px; flex-shrink: 0; border-radius: var(--r, 10px); overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 3rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.mu-idle .mu-art { width: 90px; height: 90px; font-size: 2rem; }
.mu-art img { width: 100%; height: 100%; object-fit: cover; }
.mu-info { min-width: 0; flex: 1; }
.mu-title { margin: 4px 0 2px; font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mu-title a { color: inherit; text-decoration: none; }
.mu-title a:hover { text-decoration: underline; }
.mu-author { margin: 0 0 14px; font-size: .9rem; }
.mu-progress { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.mu-bar { flex: 1; height: 5px; border-radius: var(--r, 999px); background: var(--bg-soft); overflow: hidden; }
.mu-bar div { height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.mu-controls { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.mu-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: 1.05rem; cursor: pointer; transition: transform .1s, background .15s; }
.mu-btn:hover:not(:disabled) { transform: scale(1.08); }
.mu-btn:disabled { opacity: .4; cursor: not-allowed; }
.mu-btn.on { background: var(--accent-strong, rgba(14, 165, 233, .25)); border-color: var(--accent); }
.mu-play { width: 52px; height: 52px; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.2rem; }
.mu-stop:hover:not(:disabled) { background: rgba(239, 68, 68, .25); }
.mu-vol { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9rem; }
.mu-vol input { width: 120px; accent-color: var(--accent); }
.mu-vol span { width: 26px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: .8rem; }
.mu-listeners { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.mu-listeners small { margin-right: 6px; }
.mu-listeners img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bg-card); margin-left: -6px; }
.mu-hint { font-size: .82rem; margin: 10px 0 0; }
.mu-add h2, .mu-queue h2 { margin: 0 0 12px; font-size: 1.05rem; }
.mu-search { display: flex; gap: 8px; }
.mu-search input { flex: 1; }
.mu-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mu-result, .mu-queue-list li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r, 8px); }
.mu-result:hover, .mu-queue-list li:hover { background: var(--bg-hover); }
.mu-q-art { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r, 6px); overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.mu-q-art img { width: 100%; height: 100%; object-fit: cover; }
.mu-q-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mu-q-info strong, .mu-q-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.mu-q-info small { font-size: .76rem; }
.mu-q-len { font-size: .78rem; font-variant-numeric: tabular-nums; }
.mu-queue { position: sticky; top: 16px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.mu-queue-head { display: flex; justify-content: space-between; align-items: center; }
.mu-queue-head h2 { margin: 0; }
.mu-queue-list { list-style: none; margin: 12px 0 0; padding: 0; overflow-y: auto; counter-reset: q; }
.mu-empty { padding: 12px 6px; }
.mu-q-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.mu-queue-list li:hover .mu-q-actions { opacity: 1; }
.mu-mini { width: 26px; height: 26px; border-radius: var(--r, 6px); border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: .75rem; }
.mu-mini:hover { border-color: var(--accent); }
@media (max-width: 1250px) {
  .mu-layout { grid-template-columns: 1fr; }
  .mu-queue { position: static; max-height: none; }
  .mu-q-actions { opacity: 1; }
}
@media (max-width: 600px) {
  .mu-now { flex-direction: column; align-items: stretch; }
  .mu-art { width: 100%; height: auto; aspect-ratio: 1; }
  .mu-vol { margin-left: 0; width: 100%; }
  .mu-vol input { flex: 1; }
}

/* ── Bot-Status ──────────────────────────────────────────────── */
.pr-now { margin: 0 0 12px; font-size: .9rem; }
.pr-rows { display: flex; flex-direction: column; gap: 8px; }
.pr-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; align-items: center; }
.pr-actions { display: flex; gap: 4px; }
.pr-preview { grid-column: 2 / 4; font-size: .78rem; margin-top: -4px; }
@media (max-width: 600px) {
  .pr-row { grid-template-columns: 1fr auto; }
  .pr-row select { grid-column: 1 / 3; }
  .pr-preview { grid-column: 1 / 3; }
}

/* ── Startseite (neu) ──────────────────────────────────────────── */
.landing { position: relative; overflow-x: hidden; }
.ld-bg { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0; overflow: hidden; }
.ld-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: ld-float 18s ease-in-out infinite alternate; }
.ld-blob.b1 { width: 520px; height: 520px; background: #e8590c; top: -140px; left: -120px; }
.ld-blob.b2 { width: 480px; height: 480px; background: #0ea5e9; top: 60px; right: -140px; animation-delay: -6s; }
.ld-blob.b3 { width: 360px; height: 360px; background: #8b5cf6; top: 420px; left: 35%; opacity: .22; animation-delay: -12s; }
@keyframes ld-float { to { transform: translate(40px, 30px) scale(1.08); } }
.landing > *:not(.ld-bg) { position: relative; z-index: 1; }
.ld-navlink { color: var(--text-muted); text-decoration: none; font-size: .92rem; padding: 6px 8px; }
.ld-navlink:hover { color: var(--text); }
.ld-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 80px 28px 50px; width: 100%; box-sizing: border-box; }
.ld-title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.5px; }
.ld-grad { background: linear-gradient(90deg, #f97316, #e8590c 30%, #0ea5e9 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero .hero-sub { margin: 0 0 30px; }
.ld-hero .hero-actions { justify-content: flex-start; }
.ld-discord-btn { display: inline-flex; align-items: center; gap: 10px; background: #5865F2; border-color: #5865F2; }
.ld-discord-btn:hover { background: #4752c4; border-color: #4752c4; }
.ld-dc { width: 20px; height: 20px; }
.ld-hero-visual { position: relative; height: 380px; }
.ld-mock { position: absolute; background: color-mix(in srgb, var(--bg-card) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r, 14px); padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); backdrop-filter: blur(6px); font-size: .88rem; animation: ld-bob 7s ease-in-out infinite; }
.ld-mock b { display: block; }
.ld-mock small { display: block; font-size: .75rem; }
.ld-mock-1 { top: 0; right: 0; width: 300px; transform: rotate(2deg); }
.ld-mock-2 { top: 150px; left: 0; width: 250px; transform: rotate(-3deg); animation-delay: -2s; }
.ld-mock-3 { bottom: 0; right: 30px; width: 270px; display: flex; gap: 12px; align-items: center; animation-delay: -4s; }
@keyframes ld-bob { 50% { translate: 0 -8px; } }
.ld-mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; }
.ld-pill { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: var(--r, 999px); }
.ld-pill.live { background: rgba(245, 158, 11, .2); color: #F59E0B; }
.ld-mock-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; }
.ld-vs { font-weight: 800; color: var(--text-muted); }
.ld-mock-foot { margin-top: 12px; font-size: .78rem; color: var(--text-muted); text-align: center; }
.ld-slots { display: flex; gap: 4px; margin-bottom: 8px; }
.ld-slots i { flex: 1; height: 7px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.ld-slots i.on { background: var(--accent); }
.ld-mock-cover { width: 52px; height: 52px; border-radius: var(--r, 10px); background: linear-gradient(135deg, #e8590c, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.ld-mock-3 > div:last-child { flex: 1; min-width: 0; }
.ld-bar { height: 4px; background: var(--bg-soft); border-radius: var(--r, 999px); margin-top: 8px; overflow: hidden; }
.ld-bar span { display: block; height: 100%; width: 38%; background: var(--accent); animation: ld-prog 12s linear infinite; }
@keyframes ld-prog { from { width: 5%; } to { width: 95%; } }
.ld-stats { display: grid; grid-template-columns: repeat(var(--ld-stat-cols, 4), 1fr); gap: 14px; max-width: 1140px; margin: 0 auto 30px; padding: 0 28px; width: 100%; box-sizing: border-box; }
.ld-stat { background: color-mix(in srgb, var(--bg-card) 85%, transparent); border: 1px solid var(--border); border-radius: var(--r, 14px); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; backdrop-filter: blur(6px); }
.ld-stat-ico { font-size: 1.3rem; }
.ld-stat strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.ld-stat .muted { font-size: .82rem; }
.ld-section { max-width: 1140px; margin: 0 auto; padding: 50px 28px; width: 100%; box-sizing: border-box; }
.ld-h2 { font-size: 2rem; text-align: center; margin: 0 0 8px; }
.ld-lead { text-align: center; margin: 0 0 30px; }
.ld-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ld-features .feature-card { padding: 22px 20px; }
.ld-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Version 4.0: Banner im Hero und Abschnitt „Neu in 4.0“ */
.ld-release { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px 6px 6px; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ld-release:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ld-release-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; letter-spacing: .02em; }
.ld-new-kicker { display: block; text-align: center; color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 6px; }
.ld-new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-new-card { padding: 22px 20px; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ld-new-card code { font-size: .85em; }
.ld-news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r, 14px); padding: 18px 20px; }
.ld-news-card.is-latest { border-color: #e8590c; box-shadow: 0 0 0 1px rgba(232, 89, 12, .35), 0 12px 30px rgba(232, 89, 12, .12); }
.ld-news-card header { display: flex; gap: 8px; align-items: center; font-size: .8rem; margin-bottom: 8px; }
.ld-news-card header .muted { margin-left: auto; }
.ld-news-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ld-news-card ul { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.ld-cta { text-align: center; max-width: 720px; margin: 20px auto 60px; padding: 44px 28px; border-radius: var(--r, 20px); width: calc(100% - 56px); box-sizing: border-box;
  background: linear-gradient(135deg, rgba(232, 89, 12, .16), var(--accent-tint, rgba(14, 165, 233, .14))); border: 1px solid var(--border); }
.ld-cta h2 { font-size: 1.8rem; margin: 0 0 8px; }
.ld-cta p { margin: 0 0 22px; }
/* Inhouse: Teamgröße, Steam-Hinweis, CS2-Server */
.ih-format { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r, 999px); background: var(--bg-soft); color: var(--text-muted); vertical-align: middle; margin-left: 4px; }
.ih-size { padding: 3px 6px; font-size: .8rem; margin-left: auto; }
.ih-card-head .ih-size + .ih-badge { margin-left: 8px; }
.ih-steam { display: flex; align-items: center; gap: 14px; border-color: var(--accent-line, rgba(14, 165, 233, .45)); font-size: 1.4rem; }
.ih-steam div { flex: 1; font-size: .92rem; }
.ih-steam p { margin: 2px 0 0; font-size: .85rem; }
.ih-server { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r, 10px); background: var(--bg-soft); font-size: .88rem; }
.ih-server.ready { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.ih-server.ready small { flex-basis: 100%; }
.ih-server.failed { border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }
@media (max-width: 600px) { .ih-steam { flex-wrap: wrap; } }
.ih-guide summary { cursor: pointer; font-weight: 700; list-style: none; }
.ih-guide summary::-webkit-details-marker { display: none; }
.ih-guide summary::after { content: "▾"; float: right; color: var(--text-muted); }
.ih-guide[open] summary::after { content: "▴"; }
.ih-guide-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ih-guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ih-guide-ico { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.ih-guide-steps p { margin: 2px 0 0; font-size: .86rem; color: var(--text-muted); line-height: 1.5; }
.ih-guide code, .ih-guide kbd { background: var(--bg-soft); border-radius: var(--r, 4px); padding: 1px 5px; font-size: .82rem; }
.ih-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ih-formats span { font-size: .8rem; padding: 4px 10px; border-radius: var(--r, 999px); background: var(--bg-soft); }
.ih-cal-server { padding: 8px 0; border-top: 1px solid var(--border); }
.ih-cal-server:first-of-type { border-top: none; }
.ih-cal-server ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.ih-cal-server li { display: flex; gap: 8px; }
.ih-cal-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ih-cal-free { margin-left: 8px; font-size: .84rem; color: #22c55e; }
.ih-manual { margin: 8px 0 0; font-size: .85rem; }
/* Inhouse-Statistik */
.ih-stats.is-loading { opacity: .6; }
.ih-stats-head { display: flex; align-items: center; gap: 12px; }
.ih-stats-head img { width: 44px; height: 44px; border-radius: 50%; }
.ih-stats-head h2 { margin: 0; font-size: 1.15rem; }
.ih-stats-head > div { flex: 1; min-width: 0; }
.ih-modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.ih-modes button { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); border-radius: var(--r, 999px); padding: 5px 14px; font-size: .84rem; cursor: pointer; }
.ih-modes button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #06212e); font-weight: 700; }
.ih-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ih-tile { background: var(--bg-soft); border-radius: var(--r, 10px); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ih-tile small { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.ih-tile strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ih-tile span { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ih-nostats { background: var(--bg-soft); border-radius: var(--r, 10px); padding: 12px; font-size: .88rem; }
.ih-sub { font-size: .95rem; margin: 18px 0 8px; }
.ih-aim { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ih-aim th, .ih-aim td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
.ih-aim th { font-size: .8rem; font-weight: 600; }
.ih-aim td:first-child small { display: block; font-size: .72rem; }
.ih-aim td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 600; }
.ih-leetify-attr { font-size: .78rem; margin: 6px 0 0; }
.ih-stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ih-maprow { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: .86rem; margin-bottom: 6px; }
.ih-bar { height: 6px; background: var(--bg-soft); border-radius: var(--r, 999px); overflow: hidden; }
.ih-bar i { display: block; height: 100%; background: #22c55e; }
.ih-weapon { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; font-size: .86rem; margin-bottom: 6px; }
.ih-board li[data-ih-user] { cursor: pointer; }
.ih-board li[data-ih-user]:hover { background: var(--bg-soft); }
.ih-recent-head .ih-format { margin-left: 6px; }
.ih-recent-actions { display: flex; gap: 8px; margin-top: 10px; }
.ih-scorebox { margin-top: 10px; overflow-x: auto; }
.ih-score { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 10px; }
.ih-score th, .ih-score td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ih-score th:first-child, .ih-score td:first-child { text-align: left; }
.ih-score td img { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
@media (max-width: 900px) { .ih-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ih-stats-cols { grid-template-columns: 1fr; } }

/* Startseite: Bot mieten + Kontaktformular */
.ld-rent { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: 40px; border-radius: var(--r, 20px);
  background: linear-gradient(135deg, rgba(232, 89, 12, .12), rgba(139, 92, 246, .10)); border: 1px solid var(--border); }
.ld-rent h2 { font-size: 2rem; margin: 12px 0 10px; }
.ld-rent-text > p { margin: 0 0 18px; line-height: 1.6; }
.ld-rent-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.ld-rent-visual { position: relative; min-height: 170px; }
.ld-rent-mock { position: relative; width: 100%; max-width: 300px; margin: 0 auto; transform: rotate(-2deg); }
.ld-rent-mock b { margin-top: 2px; }
.landing-footer .btn-link { margin: 0; }
.ld-powered { text-decoration: none; font-size: .85rem; }
.ld-powered:hover { color: var(--text); }
.ct-card { max-width: 620px; max-height: calc(100dvh - 32px); overflow-y: auto; position: relative; }
.ct-card h2 { margin: 0 0 6px; padding-right: 30px; }
.ct-intro { margin: 0 0 16px; font-size: .9rem; }
.ct-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: var(--r, 6px); }
.ct-close:hover { color: var(--text); background: var(--bg-hover); }
.ct-form { display: flex; flex-direction: column; gap: 12px; }
.ct-form label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; }
.ct-form label .muted { font-weight: 400; }
.ct-form input:not([type=checkbox]), .ct-form select, .ct-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; }
.ct-form textarea { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: var(--r, 6px); padding: 8px 10px; resize: vertical; min-height: 96px; }
.ct-form textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.ct-form .is-invalid { border-color: #f87171; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-features { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-features legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.ct-features label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; font-size: .82rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r, 999px); cursor: pointer; user-select: none; }
.ct-features label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ct-features input { margin: 0; accent-color: var(--accent); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; font-size: .8rem !important; color: var(--text-muted); line-height: 1.45; }
.ct-consent input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.ct-form .login-error { margin: 0; }
.ct-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ct-done { text-align: center; padding: 20px 6px 8px; }
.ct-done-ico { font-size: 3rem; }
.ct-done h2 { padding: 0; margin: 8px 0; }
.ct-done p { margin: 0 0 20px; }
@media (max-width: 1000px) {
  .ld-rent { grid-template-columns: 1fr; padding: 30px; }
  .ld-rent-visual { display: none; }
}
@media (max-width: 600px) {
  .ld-rent { padding: 24px 18px; }
  .ld-rent h2 { font-size: 1.6rem; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-actions .btn { flex: 1; }
}
@media (max-width: 1000px) {
  .ld-hero { grid-template-columns: 1fr; padding-top: 50px; }
  .ld-hero-visual { height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
  .ld-features, .ld-new-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-news { grid-template-columns: 1fr; }
  .ld-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ld-navlink { display: none; }
  .ld-hero { padding: 36px 18px 30px; }
  .ld-hero-visual { display: none; }
  .ld-features, .ld-new-grid { grid-template-columns: 1fr; }
  .ld-release { font-size: .82rem; }
  .ld-stats, .ld-section { padding-left: 18px; padding-right: 18px; }
  .ld-cta { width: calc(100% - 36px); padding: 32px 20px; }
  .ld-h2 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-blob, .ld-mock, .ld-bar span { animation: none; }
}

/* ── Changelog ─────────────────────────────────────────────────── */
.cl-intro h2 { margin: 0 0 4px; }
.cl-intro p { margin: 0 0 20px; }
.cl-timeline { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 26px; max-width: 900px; }
.cl-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.cl-entry { position: relative; }
.cl-dot { position: absolute; left: -25px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cl-color); }
.cl-major .cl-dot { width: 18px; height: 18px; left: -27px; top: 18px; background: var(--cl-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-color) 25%, transparent); }
.cl-major .cl-card { border-color: color-mix(in srgb, var(--cl-color) 60%, var(--border)); }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cl-version { font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: var(--r, 999px); background: color-mix(in srgb, var(--cl-color, #e8590c) 20%, transparent); color: var(--cl-color, #e8590c); }
.cl-new { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: var(--r, 999px); background: #16a34a; color: #fff; }
.cl-sub { font-size: 1.05rem; }
.cl-date { margin-left: auto; font-size: .82rem; }
.cl-body { font-size: .92rem; line-height: 1.6; }
.cl-body code { background: var(--bg-soft); padding: 1px 6px; border-radius: var(--r, 4px); font-size: .85em; }
.cl-body a { color: var(--accent); }
.cl-quote { display: inline-block; border-left: 3px solid var(--border); padding-left: 8px; color: var(--text-muted); }
.cl-field { margin-top: 12px; }
.cl-field h4 { margin: 0 0 4px; font-size: .95rem; }
.cl-link { display: inline-block; margin-top: 12px; font-size: .82rem; color: var(--text-muted); text-decoration: none; }
.cl-link:hover { color: var(--accent); }

/* ── Auditlog ─────────────────────────────────────────────────── */
.au-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .85rem; }
.au-sum { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r, 999px); padding: 4px 12px; color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.au-sum:hover { border-color: var(--accent); }
.au-sum strong { font-variant-numeric: tabular-nums; }
.au-sum small { color: var(--text-muted); }
.au-filters { margin-bottom: 14px; }
.au-filters .ig-chips { margin-bottom: 10px; }
.au-filter-row { display: grid; grid-template-columns: 1fr 220px 140px; gap: 8px; }
.au-list { display: flex; flex-direction: column; gap: 6px; }
.au-row { display: flex; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--au-color); border-radius: var(--radius); padding: 10px 14px; }
.au-ico { font-size: 1.2rem; width: 26px; text-align: center; flex-shrink: 0; padding-top: 1px; }
.au-main { flex: 1; min-width: 0; }
.au-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; }
.au-by { font-size: .82rem; }
.au-time { margin-left: auto; font-size: .78rem; white-space: nowrap; }
.au-user { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-soft); border-radius: var(--r, 999px); padding: 1px 9px 1px 2px; font-size: .82rem; }
.au-user img { width: 18px; height: 18px; border-radius: 50%; }
.au-fields { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: .84rem; word-break: break-word; }
.au-long { margin-top: 6px; font-size: .85rem; }
.au-long div { background: var(--bg-soft); border-radius: var(--r, 6px); padding: 6px 10px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.au-more { text-align: center; margin: 14px 0; }
.au-empty { text-align: center; }
.al-events { max-height: 320px; }
@media (max-width: 700px) {
  .au-filter-row { grid-template-columns: 1fr 1fr; }
  .au-filter-row input { grid-column: 1 / 3; }
  .au-time { margin-left: 0; width: 100%; }
}

/* ── Wochenrückblick-Vorschau ─────────────────────────────────── */
.rc-embed { margin-top: 16px; border-left: 4px solid #e8590c; background: var(--bg-soft); border-radius: var(--r, 6px); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.rc-title { font-size: 1rem; }
.rc-desc { font-size: .9rem; }
.rc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.rc-field { font-size: .86rem; }
.rc-field b { display: block; margin-bottom: 2px; }
.rc-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .rc-fields { grid-template-columns: 1fr; } }

/* ── Leetify ───────────────────────────────────────────────────── */
.lt-card { display: flex; flex-direction: column; gap: 10px; }
.lt-linked { margin: 0; font-size: .86rem; }
.lt-hint { font-size: .8rem; margin: 8px 0 0; }
.lt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lt-grid > div { background: var(--bg-soft); border-radius: var(--r, 8px); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lt-grid small { color: var(--text-muted); font-size: .72rem; }
.lt-grid strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.lt-compact strong { font-size: 1rem; }
.lt-bars { display: flex; flex-direction: column; gap: 6px; }
.lt-bar { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 8px; font-size: .84rem; }
.lt-bar div { height: 6px; border-radius: var(--r, 999px); background: var(--bg-soft); overflow: hidden; }
.lt-bar i { display: block; height: 100%; background: #F84982; }
.lt-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.lt-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; }
.lt-view { color: #F84982; font-weight: 700; text-decoration: underline; }
.lt-attr { color: var(--text-muted); text-decoration: none; }
.lt-attr:hover { color: var(--text); }
@media (max-width: 600px) { .lt-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Benachrichtigungen ───────────────────────────────────── */
.notify-wrap { position: relative; }
#btn-notify { position: relative; }
.notify-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r, 999px); background: #ED4245; color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.notify-badge.hidden { display: none; }
.notify-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 32px); background: var(--bg-card, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 50; }
.notify-panel.hidden { display: none; }
.notify-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notify-list { max-height: 420px; overflow-y: auto; }
.notify-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border); padding: 10px 12px; color: var(--text); font: inherit; cursor: pointer; }
.notify-item:hover { background: var(--bg-hover); }
.notify-item.is-unread { border-left: 3px solid var(--accent); }
.notify-title { font-weight: 600; font-size: .9rem; }
.notify-body { font-size: .82rem; color: var(--text-muted); margin: 2px 0; white-space: pre-wrap; }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.notify-wrap { display: inline-flex; }
.settings-grid label.ih-role-pick { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
.settings-grid label.ih-role-pick input { width: auto; margin: 0; }

/* 2D-Replay (replay.js) */
.rp-card { max-width: 1180px; max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.rp-head { display: flex; align-items: center; gap: 12px; }
.rp-head strong { font-size: 1.05rem; }
.rp-score { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.rp-head #replay-close { margin-left: auto; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.rp-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - 250px); display: flex; align-items: center;
  justify-content: center; overflow: hidden; background: #0b0f15; border-radius: var(--radius); }
.rp-stage canvas { display: block; }
.rp-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; background: rgba(11, 15, 21, .75); }
.rp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: .84rem; }
.rp-side h4 { margin: 4px 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.rp-team { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.rp-team > strong { font-size: .75rem; }
.rp-team.t > strong { color: #f59e0b; }
.rp-team.ct > strong { color: #3b82f6; }
.rp-pl { position: relative; display: flex; justify-content: space-between; gap: 6px; padding: 4px 8px 6px; background: var(--bg-soft); border-radius: var(--r, 6px); overflow: hidden; }
.rp-pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-pl small { color: var(--text-muted); white-space: nowrap; }
.rp-pl i { position: absolute; left: 0; bottom: 0; height: 2px; background: #22c55e; }
.rp-pl.dead { opacity: .4; text-decoration: line-through; }
.rp-pl.focus { outline: 2px solid #22c55e; }
.rp-feed { display: flex; flex-direction: column; gap: 4px; }
.rp-kill { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; padding: 4px 8px; background: var(--bg-soft); border-radius: var(--r, 6px); }
.rp-kill span { font-weight: 600; }
.rp-kill small { color: var(--text-muted); }
.rp-controls { display: flex; align-items: center; gap: 10px; }
.rp-controls input[type=range] { flex: 1; min-width: 0; }
.rp-time { font-variant-numeric: tabular-nums; font-size: .82rem; white-space: nowrap; }
.rp-rounds { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-rounds button { min-width: 30px; padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--r, 6px); background: var(--bg-soft); color: var(--text);
  cursor: pointer; font-size: .8rem; border-bottom-width: 3px; }
.rp-rounds button.t { border-bottom-color: #f59e0b; }
.rp-rounds button.ct { border-bottom-color: #3b82f6; }
.rp-rounds button.active { background: var(--accent); color: #fff; }
.rp-hint { font-size: .76rem; margin: 0; }
@media (max-width: 800px) {
  .rp-body { grid-template-columns: 1fr; }
  .rp-side { max-height: 240px; overflow-y: auto; }
  .rp-stage { max-height: none; }
}

/* Inhouse: Clip-Vorschläge */
.ih-clips-head { display: flex; align-items: baseline; gap: 10px; }
.ih-clips-head h2 { margin: 0; }
.ih-clips-intro { font-size: .85rem; margin: 4px 0 12px; }
.ih-sugg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); }
.ih-sugg-kind { min-width: 42px; text-align: center; padding: 6px 4px; border-radius: var(--r, 8px); font-weight: 800; font-size: .8rem; background: var(--bg-soft); }
.ih-sugg-kind.k-ace { background: rgba(234, 179, 8, .18); color: #eab308; }
.ih-sugg-kind.k-clutch { background: rgba(14, 165, 233, .18); color: #0ea5e9; }
.ih-sugg-kind.k-4k, .ih-sugg-kind.k-3k { background: rgba(239, 68, 68, .16); color: #ef4444; }
.ih-sugg-main { display: flex; flex-direction: column; min-width: 0; }
.ih-sugg-main small { font-size: .8rem; }
.ih-sugg-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.ih-sugg-actions .btn.active { background: var(--bg-hover); }
.ih-sugg-rec { grid-column: 1 / -1; background: var(--bg-soft); border-radius: var(--radius); padding: 10px 14px; font-size: .85rem; }
.ih-sugg-rec ol { margin: 0 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ih-sugg-rec p { margin: 0; font-size: .8rem; }
.ih-sugg-rec code { word-break: break-all; }
.ih-cmd { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ih-cmd code { flex: 1; min-width: 0; padding: 5px 8px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r, 6px); font-size: .82rem; }

/* Match-Tracking (matches.js) */
.mt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.mt-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mt-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.mt-connect h2 { margin-top: 0; }
.mt-connect > p { line-height: 1.55; }
.mt-steps { margin: 6px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.mt-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-form input { flex: 1 1 200px; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.mt-note { font-size: .8rem; margin: 8px 0 0; }
.mt-status { display: flex; align-items: center; gap: 14px; }
.mt-status > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mt-status small { font-size: .82rem; }
.mt-error { color: var(--danger); }
.mt-bot h2 { margin-top: 0; }
.mt-bot p { margin: 6px 0; }
.mt-current { display: flex; flex-direction: column; align-items: flex-end; }
.mt-rating { display: inline-block; padding: 1px 8px; border-radius: var(--r, 6px); font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(176, 195, 217, .16); color: #b0c3d9; }
.mt-rating.r2 { background: rgba(140, 197, 255, .16); color: #8cc5ff; }
.mt-rating.r3 { background: rgba(105, 128, 255, .18); color: #7b8cff; }
.mt-rating.r4 { background: rgba(193, 99, 255, .18); color: #c163ff; }
.mt-rating.r5 { background: rgba(244, 67, 230, .18); color: #f443e6; }
.mt-rating.r6 { background: rgba(235, 75, 75, .18); color: #eb4b4b; }
.mt-rating.r7 { background: rgba(255, 215, 0, .18); color: #e6c200; }
.mt-current .mt-rating { font-size: 1.25rem; }
.mt-chart { margin: 4px 0 6px; }
.mt-chart svg { width: 100%; height: 120px; display: block; background: var(--bg-soft); border-radius: var(--r, 8px); }
.mt-chart-legend { display: flex; justify-content: space-between; font-size: .75rem; margin-top: 2px; }
.mt-row { border-left: 4px solid var(--border); }
.mt-row.mt-win { border-left-color: #22c55e; }
.mt-row.mt-loss { border-left-color: #ef4444; }
.mt-row.mt-tie { border-left-color: #eab308; }
.mt-row-main { display: grid; grid-template-columns: 150px 70px minmax(0, 1fr); gap: 12px; align-items: center; }
.mt-map { display: flex; flex-direction: column; min-width: 0; }
.mt-map small { font-size: .78rem; }
.mt-score { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.mt-win .mt-score { color: #22c55e; }
.mt-loss .mt-score { color: #ef4444; }
.mt-line { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mt-line span { display: flex; flex-direction: column; min-width: 54px; }
.mt-line b { font-variant-numeric: tabular-nums; }
.mt-line small { font-size: .72rem; }
.mt-up { color: #22c55e; }
.mt-down { color: #ef4444; }
.ih-score tr.mt-member td:first-child a { color: var(--accent); text-decoration: none; font-weight: 600; }
/* KI-Einstellungen */
.ai-channels { max-height: 220px; overflow-y: auto; }
.ai-ask { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-ask input { flex: 1 1 260px; min-width: 0; }
.ai-answer { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: var(--radius, 8px); }
.ai-answer p { margin: 6px 0 0; line-height: 1.55; }
.ai-answer details { margin-top: 8px; }
.ai-questions { display: flex; flex-direction: column; gap: 10px; }
.ai-q { border-top: 1px solid var(--border); padding-top: 8px; }
.ai-q:first-child { border-top: 0; padding-top: 0; }
.ai-q > div { display: flex; flex-direction: column; }
.ai-q p { margin: 4px 0 0; font-size: .88rem; line-height: 1.5; white-space: pre-line; }

/* Tipps zu eigenen Matches (Regeln + Coach-Text) */
.mt-tips { margin-top: 10px; padding: 10px 12px; background: var(--bg-soft); border-radius: var(--radius, 8px); display: flex; flex-direction: column; gap: 8px; }
.mt-tip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.mt-tip + .mt-tip { border-top: 1px solid var(--border); padding-top: 8px; }
.mt-tip-ico, .mt-coach-ico { font-size: 1.1rem; line-height: 1.4; }
.mt-tip-main { display: flex; flex-direction: column; min-width: 0; }
.mt-tip-main p { margin: 2px 0 0; line-height: 1.5; font-size: .9rem; }
.mt-tip-good .mt-tip-main strong { color: #22c55e; }
.mt-coach { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-left: 3px solid var(--accent);
  background: var(--bg, transparent); border-radius: var(--radius, 8px); }
.mt-coach p { margin: 0 0 4px; line-height: 1.55; }
.mt-coach small, .mt-coach-wait { font-size: .78rem; margin: 0; }
.mt-trend { display: flex; flex-direction: column; gap: 8px; }
.mt-trend-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border);
  font-size: .85rem; }
@media (max-width: 1000px) {
  .mt-layout { grid-template-columns: 1fr; }
  .mt-side { position: static; }
}
@media (max-width: 600px) {
  .mt-row-main { grid-template-columns: minmax(0, 1fr) auto; }
  .mt-line { grid-column: 1 / -1; }
  .mt-status { flex-direction: column; align-items: stretch; }
  .mt-tip { grid-template-columns: auto minmax(0, 1fr); }
  .mt-tip > .btn { grid-column: 2; justify-self: start; }
}

/* Inhouse-Turniere (tournament.js) */
.tn-wrap { display: flex; flex-direction: column; gap: 12px; }
.tn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tn-head h2 { margin: 0; }
.tn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; padding: 12px; background: var(--bg-soft); border-radius: var(--radius); }
.tn-form input[name=name] { grid-column: 1 / -1; }
.tn-form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--text-muted); }
.tn-form .tn-note, .tn-form button { grid-column: 1 / -1; }
.tn-note { font-size: .8rem; margin: 0; }
.tn-card { border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tn-card.tn-running { border-left-color: #f59e0b; }
.tn-card.tn-finished { border-left-color: #22c55e; }
.tn-card.tn-cancelled { border-left-color: var(--border); opacity: .7; }
.tn-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tn-card-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tn-prizes { margin: 0; font-size: .88rem; font-weight: 600; }
.tn-signups { display: flex; flex-direction: column; gap: 4px; }
.tn-avatars { display: flex; flex-wrap: wrap; gap: 4px; }
.tn-avatars img, .tn-noav, .tn-members img { width: 26px; height: 26px; border-radius: 50%; }
.tn-noav { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); font-size: .75rem; font-weight: 700; }
.tn-detail { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tn-h { margin: 6px 0 0; font-size: .95rem; }
.tn-tree { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.tn-col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 190px; }
.tn-match { border: 1px solid var(--border); border-radius: var(--r, 8px); background: var(--bg-soft); padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.tn-match.tn-m-live { border-color: #f59e0b; }
.tn-match.tn-m-pending { opacity: .7; }
.tn-match-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.tn-live { color: #ef4444; font-weight: 800; }
.tn-side { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 2px 4px; border-radius: 4px; }
.tn-side.win { font-weight: 700; background: rgba(34, 197, 94, .14); }
.tn-side.tbd span { color: var(--text-muted); font-style: italic; }
.tn-set { display: flex; gap: 4px; margin-top: 2px; }
.tn-set .btn { flex: 1; }
.tn-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.tn-group h4 { margin: 0 0 6px; }
.tn-group tr.tn-adv td:first-child { color: #22c55e; font-weight: 700; }
.tn-group-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 6px; }
.tn-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tn-team { border: 1px solid var(--border); border-radius: var(--r, 8px); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.tn-team.p1 { border-color: #eab308; }
.tn-members { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.tn-members span { display: inline-flex; align-items: center; gap: 4px; }
.tn-members img { width: 20px; height: 20px; }
.tn-hall { display: flex; flex-direction: column; gap: 6px; }
.tn-hall-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.tn-hall-row > div { display: flex; flex-direction: column; min-width: 0; }
.tn-hall-cup { font-size: 1.4rem; }
@media (max-width: 600px) { .tn-hall-row { grid-template-columns: auto minmax(0, 1fr); } .tn-hall-row .tn-avatars { grid-column: 1 / -1; } }
.tn-group .ih-score th:nth-child(2), .tn-group .ih-score td:nth-child(2) { text-align: left; }

/* ── Coach ── */
.co-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.co-head h2 { margin: 0 0 4px; }
.co-head p { margin: 0; }
.co-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.co-stat { display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 8px 12px; background: var(--bg-soft); border-radius: var(--radius, 8px); }
.co-stat strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.co-stat small { font-size: .72rem; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.co-main, .co-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-main > .card, .co-side > .card { margin: 0; }
.co-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-two > .card { margin: 0; }
.co-summary { margin: 0 0 6px; line-height: 1.65; font-size: .98rem; }
.co-summary.co-old { opacity: .55; }
.co-summary-card { border-left: 3px solid var(--accent); }
.co-finding { padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.co-finding + .co-finding { border-top: 1px solid var(--border); }
.co-finding p { margin: 0; line-height: 1.55; }
.co-practice { padding: 8px 10px; background: var(--bg-soft); border-radius: var(--radius, 8px); font-size: .92rem; }
.co-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.co-mini { padding: 8px 0; }
.co-mini + .co-mini { border-top: 1px solid var(--border); }
.co-mini p { margin: 4px 0 0; line-height: 1.5; font-size: .92rem; }
.co-trend.up strong { color: #22c55e; }
.co-trend.down strong { color: var(--danger, #f87171); }
.co-maps { display: flex; flex-direction: column; gap: 10px; }
.co-map { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.co-map small { grid-column: 2; font-size: .75rem; }
.co-bar { height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.co-bar i { display: block; height: 100%; background: var(--accent); }
.co-chat { display: flex; flex-direction: column; gap: 10px; }
.co-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.co-chat-head h2 { margin: 0; }
.co-log { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.co-msg { padding: 9px 12px; border-radius: 12px; line-height: 1.5; font-size: .93rem; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.co-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink, #fff); border-bottom-right-radius: 4px; }
.co-msg.coach { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 4px; }
.co-msg.failed { opacity: .75; font-style: italic; }
.co-typing { animation: co-pulse 1.4s ease-in-out infinite; }
@keyframes co-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .co-typing { animation: none; } }
.co-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.co-suggest .mt-chip { cursor: pointer; border: 0; font: inherit; font-size: .8rem; }
.co-chat textarea { width: 100%; resize: vertical; min-height: 54px; background: var(--bg-input); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius, 8px); padding: 9px; font: inherit; box-sizing: border-box; }
.co-chat-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.co-matches { display: flex; flex-direction: column; gap: 6px; }
.co-match { border: 1px solid var(--border); border-radius: var(--radius, 8px); overflow: hidden; }
.co-match .mt-tips { margin: 0; border-radius: 0; }
.co-match-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto; gap: 12px; align-items: center; padding: 9px 12px;
  background: transparent; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.co-match-row:hover { background: var(--bg-hover); }
.co-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.co-match.mt-win .co-score { color: #22c55e; }
.co-match.mt-loss .co-score { color: var(--danger, #f87171); }
.mt-coach-hint { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.co-note { font-size: .8rem; margin: 0 0 8px; line-height: 1.5; }
.co-table { overflow-x: auto; }
.co-table td, .co-table th { white-space: nowrap; font-variant-numeric: tabular-nums; padding: 7px 8px; }
.co-win { color: #22c55e; font-weight: 600; }
.co-loss { color: var(--danger, #f87171); font-weight: 600; }
.co-sub { display: block; margin-top: 12px; }
.co-side .co-map { grid-template-columns: 110px minmax(0, 1fr); }
.co-zone { display: inline-block; width: 48px; height: 6px; margin-right: 8px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.co-zone i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 900px) {
  .co-grid, .co-two { grid-template-columns: minmax(0, 1fr); }
  .co-match-row { grid-template-columns: minmax(0, 1fr) auto; }
  .co-match-row > span:nth-child(3), .co-match-row > span:nth-child(4) { display: none; }
}

/* ── Sus-Werte ── */
.sus-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap;
  background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.sus-chip.low { background: rgba(251, 191, 36, .12); color: #f59e0b; border-color: rgba(251, 191, 36, .4); }
.sus-chip.mid { background: rgba(249, 115, 22, .14); color: #fb923c; border-color: rgba(249, 115, 22, .45); }
.sus-chip.high { background: rgba(248, 113, 113, .16); color: #f87171; border-color: rgba(248, 113, 113, .5); }
.sus-box { margin-top: 12px; padding: 12px; border: 1px solid rgba(251, 191, 36, .35); border-radius: var(--radius, 8px); background: var(--bg-soft); }
.sus-box.sus-quiet { border-color: var(--border); padding: 6px 12px; }
.sus-note { font-size: .78rem; margin: 4px 0 8px; }
.sus-player + .sus-player { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.sus-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sus-signals { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.sus-signal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 90px 38px; gap: 8px; align-items: center; font-size: .85rem; }
.sus-bar { height: 6px; background: var(--bg-input, #0002); border-radius: 3px; overflow: hidden; }
.sus-bar i { display: block; height: 100%; background: #f59e0b; }
.sus-moments { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) { .sus-signal { grid-template-columns: minmax(0, 1fr) auto; } .sus-signal .sus-bar, .sus-signal > small { display: none; } }

/* ── Coach 2: Bereiche, Filter, Werte, Modell, Radar ── */
.co2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.co2-title h2 { margin: 0 0 2px; }
.co2-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.co2-tabs::-webkit-scrollbar { display: none; }
.co2-tab { flex: none; background: none; border: 0; color: var(--text-muted); font: inherit; font-weight: 600; font-size: .9rem; padding: 10px 14px; cursor: pointer; border-radius: var(--radius, 8px) var(--radius, 8px) 0 0; box-shadow: inset 0 -2px 0 transparent; }
.co2-tab:hover { color: var(--text); background: var(--bg-hover); }
.co2-tab.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.co2-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 16px; }
.co2-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co2-field span, .co2-tl { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.co2-field select, .co2-inline select, .co2-sechead select { height: 34px; max-width: 220px; background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius, 8px); padding: 0 8px; font: inherit; font-size: .88rem; }
.co2-field select.on { border-color: var(--accent); }
.co2-fsum { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 34px; }
.co2-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.co2-main, .co2-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co2-grid > .co2-side { align-self: stretch; }
.co2-main > .card, .co2-side > .card, .co2-two > .card { margin: 0; }
.co2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co2-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.co2-sechead h2 { margin: 0; }
.co2-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.co2-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; text-align: left; cursor: pointer; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius, 8px); font: inherit; }
.co2-tile:hover { background: var(--bg-hover); }
.co2-tile.on { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.co2-tv { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; color: var(--text-muted); }
.co2-tv strong { font-size: 1.45rem; color: var(--text); font-variant-numeric: tabular-nums; }
.co2-tile.on .co2-tv { color: var(--accent); }
.co2-detail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.co2-detail p { margin: 0; }
.co2-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.co2-dhead h2 { margin: 2px 0 0; }
.co2-dval { font-size: 2rem; font-variant-numeric: tabular-nums; }
.co2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co2-pair > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--bg-soft); border-radius: var(--radius, 8px); }
.co2-pair strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.co2-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 110px; border-bottom: 1px solid var(--border); margin-top: 6px; }
.co2-bar { flex: 1; min-width: 4px; background: var(--text-muted); opacity: .55; border-radius: 2px 2px 0 0; }
.co2-bar.win { background: #22c55e; opacity: .75; }
.co2-bar.loss { background: var(--danger, #f87171); opacity: .7; }
.co2-avg { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--text-muted); pointer-events: none; }
.co2-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .75rem; color: var(--text-muted); margin-top: 6px; }
.co2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.co2-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.co2-legend i.win { background: #22c55e; }
.co2-legend i.loss { background: var(--danger, #f87171); }
.co2-legend i.avg { height: 0; width: 14px; border-top: 1px dashed var(--text-muted); border-radius: 0; }
.co2-legend i.dot { border-radius: 50%; }
.co2-legend i.death { background: rgb(248, 90, 60); }
.co2-legend i.kill { background: rgb(52, 211, 153); }
.co2-legend i.nade { background: rgb(96, 165, 250); }
.co2-hrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: .86rem; margin-top: 6px; }
.co2-hrow > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.co2-hbar { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.co2-hbar i { display: block; height: 100%; background: var(--accent); max-width: 100%; }
.co2-sub { display: block; margin: 2px 0 0 106px; font-size: .72rem; }
h2.co2-sub { margin: 16px 0 6px; font-size: .95rem; }
.co2-read { padding: 10px 12px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0; font-size: .9rem; line-height: 1.5; margin: 0; }
.co2-focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co2-fcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--bg-soft); border-radius: var(--radius, 8px); box-shadow: inset 0 3px 0 var(--accent); }
.co2-fcard.good { box-shadow: inset 0 3px 0 #22c55e; }
.co2-fcard p { margin: 0; font-size: .9rem; line-height: 1.5; }
.co2-ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.co2-ftile { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: var(--bg-soft); border-radius: var(--radius, 8px); }
.co2-ftile strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.co2-ftile span { font-size: .84rem; font-weight: 600; }
.co2-ftile.up span { color: #22c55e; }
.co2-ftile.down span { color: var(--danger, #f87171); }
.co2-ftile.eq span { color: var(--text-muted); }
.co2-wchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.co2-chip { height: 34px; padding: 0 12px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600; }
.co2-chip small { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.co2-chip.on { border-color: var(--accent); color: var(--accent); }
.co2-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.co2-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--bg-soft); border-radius: var(--radius, 8px); }
.co2-stat strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.co2-hm { display: flex; flex-direction: column; gap: 10px; }
.co2-hm p { margin: 0; }
.co2-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--bg-soft); border-radius: var(--radius, 8px); }
.co2-seg button { flex: 1; min-height: 34px; padding: 0 10px; background: none; border: 0; color: var(--text-muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; border-radius: calc(var(--radius, 8px) - 2px); }
.co2-seg button.on { background: var(--bg-input); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
#co-hm-svg .co2-lead { stroke: var(--text-muted); stroke-width: 1; opacity: .6; }
#co-hm-svg .co2-lead.on { stroke: var(--accent); opacity: 1; }
#co-hm-svg .co2-lbox { fill: var(--bg-soft); stroke: var(--border); }
#co-hm-svg .co2-lbox.on { stroke: var(--accent); }
#co-hm-svg .co2-lname { fill: var(--text-muted); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
#co-hm-svg .co2-lval { fill: var(--text); font-size: 12px; font-weight: 700; }
.co2-radar { display: flex; flex-direction: column; gap: 10px; }
.co2-radar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.co2-radar-bar .co2-seg { flex: none; }
#co-radar { width: 100%; max-width: 720px; aspect-ratio: 1; height: auto; border-radius: var(--radius, 8px); background: #10141c; align-self: center; }
.co2-click { cursor: pointer; }
.co2-click.on td { background: var(--bg-hover); color: var(--accent); }
.co2-moments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.co2-inline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .82rem; color: var(--text-muted); }
.co2-inline label { display: flex; align-items: center; gap: 6px; }
.co2-note { margin: 16px 0 0; font-size: .85rem; }
.co2-xtab td, .co2-xtab th { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co2-xtab tbody th { text-align: left; }
.co2-xtab td small { display: block; font-size: .68rem; color: var(--text-muted); }
.co2-xtab td.thin { background: repeating-linear-gradient(45deg, var(--bg-soft) 0 6px, transparent 6px 12px); color: var(--text-muted); }
.co2-axis { stroke: var(--border); }
.co2-axt { fill: var(--text-muted); font-size: 11px; }
.co2-pt.win { fill: #22c55e; opacity: .85; }
.co2-pt.loss { fill: var(--danger, #f87171); opacity: .85; }
.co2-mlist { display: flex; flex-direction: column; gap: 6px; }
.co2-mrow { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto auto; gap: 12px; align-items: center; padding: 9px 12px; text-align: left; background: none; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius, 8px); cursor: pointer; font: inherit; }
.co2-mrow:hover { background: var(--bg-hover); }
.co2-mrow.on { border-color: var(--accent); }
.co2-mrow.win .co-score { color: #22c55e; }
.co2-mrow.loss .co-score { color: var(--danger, #f87171); }
.co2-numchip { display: inline; padding: 0 5px; margin: 0 1px; border: 1px solid var(--accent); border-radius: 6px; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 960px) {
  .co2-grid, .co2-two { grid-template-columns: minmax(0, 1fr); }
  .co2-detail { position: static; }
}
@media (max-width: 600px) {
  .co2-field { flex: 1 1 140px; }
  .co2-field select { max-width: none; width: 100%; }
  .co2-mrow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .co2-mrow > span:nth-child(4), .co2-mrow > span:nth-child(5) { display: none; }
  .co2-hrow { grid-template-columns: 80px minmax(0, 1fr) 48px; }
  .co2-sub { margin-left: 90px; }
}

/* ── 3D-Replay und 3D-Trefferzonen ── */
.rp-stage { position: relative; }
.rp-stage.rp-3d-on #replay-canvas { visibility: hidden; }
.rp3d { position: absolute; inset: 0; display: flex; flex-direction: column; background: #10141c; border-radius: var(--radius, 8px); overflow: hidden; }
.rp3d.hidden { display: none; }
.rp3d canvas { flex: 1; width: 100% !important; height: 100% !important; min-height: 0; display: block; }
.rp3d-bar { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.rp3d-bar > * { pointer-events: auto; }
.rp3d-bar select { height: 30px; background: rgba(16, 20, 28, .85); color: #f2ece6; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; padding: 0 6px; font: inherit; font-size: .8rem; }
.rp3d-check { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; background: rgba(16, 20, 28, .85); border-radius: 6px; font-size: .8rem; color: #f2ece6; }
.rp3d-status { font-size: .82rem; color: #f2ece6; text-shadow: 0 1px 2px #000; }
#replay-3d.on { background: var(--accent); color: var(--accent-ink, #fff); }
.co2-hm3d { width: 100%; height: 420px; border-radius: var(--radius, 8px); background: var(--bg-soft); cursor: grab; touch-action: none; overflow: hidden; }
/* Zeichenfläche hat Pixel für hochauflösende Displays – angezeigt wird sie in Kastengröße (sonst auf dem Handy doppelt so groß) */
.co2-hm3d canvas { display: block; width: 100% !important; height: 100% !important; }
.co2-zones { display: flex; flex-wrap: wrap; gap: 6px; }
.rp3d-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 40px rgba(220, 20, 20, .85); transition: opacity .08s; z-index: 1; }
.rp3d-cross, .rp3d-hud { display: none; }
.rp3d.ego .rp3d-cross { display: block; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 1;
  background: linear-gradient(#7CFC00, #7CFC00) center/2px 7px no-repeat, linear-gradient(#7CFC00, #7CFC00) center/7px 2px no-repeat; }
.rp3d.ego .rp3d-hud { display: flex; position: absolute; left: 12px; right: 12px; bottom: 12px; justify-content: space-between; pointer-events: none; z-index: 1;
  font-weight: 700; color: #f2ece6; text-shadow: 0 1px 3px #000; font-size: 1.05rem; }

/* ── Highlight-Videos (Render-Agent) ── */
.rd-state { display: inline-flex; align-items: center; font-size: .8rem; padding: 3px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted, inherit); }
.rd-state.rd-run { background: rgba(14, 165, 233, .16); color: #0ea5e9; }
.rd-state.rd-fail { background: rgba(239, 68, 68, .14); color: #ef4444; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-card { width: min(960px, calc(100vw - 32px)); }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.rd-head h2 { margin: 0; }
.rd-head > div { display: flex; gap: 6px; }
.rd-card video { width: 100%; border-radius: var(--radius, 8px); background: #000; aspect-ratio: 16 / 9; }

/* ── Turnier: Einzelwertung & Liveticker ── */
.tn-live-box { border: 1px solid rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .06); border-radius: var(--radius, 8px); padding: 10px 12px; margin: 6px 0 12px; }
.tn-live-head { font-size: .85rem; margin-bottom: 8px; }
.tn-live-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.tn-live-team { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-live-team.b { justify-content: flex-end; }
.tn-live-team.a { color: #3b82f6; }
.tn-live-team.b { color: #ef4444; }
.tn-live-num { display: flex; align-items: baseline; gap: 6px; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.tn-live-num span { color: var(--text-muted); }
.tn-live-wait { margin-top: 8px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tn-pl { display: inline-flex; align-items: center; gap: 5px; }
.tn-pl img, .tn-pl .tn-noav { width: 20px; height: 20px; border-radius: 50%; }
.tn-standings td, .tn-standings th { white-space: nowrap; }
.tn-ticker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; font-size: .86rem; }
.tn-ticker li { display: flex; gap: 10px; padding: 4px 8px; border-radius: 6px; background: var(--bg-soft); }
.tn-ticker time { color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tn-mix-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
@media (max-width: 600px) { .tn-live-score { grid-template-columns: 1fr; text-align: center; } .tn-live-team, .tn-live-team.b { justify-content: center; } .tn-live-num { justify-content: center; } .tn-standings { font-size: .8rem; } }
.tn-scroll { overflow-x: auto; max-width: 100%; }

/* Name als Link aufs Mitgliederprofil (profile.js) */
.member-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.member-link:hover, .member-link:focus-visible { text-decoration: underline; }

/* Besitz (assets.js, next/p-besitz.js) */
.asset-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.asset-img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #161311; overflow: hidden; }
.asset-img img, .asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-thumb { display: inline-block; width: 64px; height: 48px; flex: none; background: #161311; overflow: hidden; vertical-align: middle; }
.asset-img.is-ph, .asset-thumb.is-ph { display: flex; align-items: center; justify-content: center; font-size: 56px; }
.asset-thumb.is-ph { font-size: 24px; }
.asset-card.is-property { grid-column: 1 / -1; }
.asset-prop { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.asset-prop > .asset-img { flex: 1 1 280px; max-width: 420px; }
.asset-prop-body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ── Community → Aktivität ── */
#activity-view { display: flex; flex-direction: column; gap: 16px; }
#activity-view h2 { margin: 0 0 12px; font-size: 1.15rem; }
#activity-view h2 small { font-weight: 400; font-size: .8rem; margin-left: 6px; }
.ac-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ac-sub { font-size: .92rem; margin: 16px 0 8px; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ac-tile { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-tile small { color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.ac-tile strong { font-size: 1.35rem; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.ac-tile span { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--bg-soft); border-radius: var(--radius); }
.ac-game { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-avs { display: flex; }
.ac-avs .ac-av { margin-left: -6px; border: 2px solid var(--bg-soft); }
.ac-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.ac-noav { background: var(--border); }
.ac-streams { display: flex; flex-direction: column; gap: 8px; }
.ac-stream { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--danger); border-radius: var(--radius); }
.ac-stream > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-pill { background: var(--danger); color: #fff; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.ac-note { font-size: .78rem; margin: 12px 0 0; }
.ac-period { display: flex; gap: 6px; }
.ac-period button { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 6px 14px; border-radius: var(--radius); cursor: pointer; }
.ac-period button.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ac-winner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ac-winner > div { display: flex; flex-direction: column; }
.ac-winner strong { font-size: 1.3rem; }
.ac-trophy { font-size: 2rem; }
.ac-bars { display: flex; flex-direction: column; gap: 6px; }
.ac-bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.ac-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-bar { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ac-bar-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; margin-bottom: 4px; }
.ac-hour { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.ac-hour i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.ac-hour small { font-size: .65rem; color: var(--text-muted); height: 14px; }
.ac-emojis { display: flex; flex-direction: column; gap: 6px; }
.ac-emoji-row { display: grid; grid-template-columns: 34px 60px 1fr; align-items: center; gap: 8px; }
img.ac-emoji { width: 26px; height: 26px; object-fit: contain; }
span.ac-emoji { font-size: 1.5rem; line-height: 1; }
.ac-chart { width: 100%; height: 160px; display: block; margin-top: 12px; }
.ac-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.ac-join { fill: var(--ok); opacity: .8; }
.ac-leave { fill: var(--danger); opacity: .8; }
.ac-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
.ac-legend i { display: inline-block; width: 12px; height: 4px; margin-right: 5px; vertical-align: middle; }
.ac-line-key { background: var(--accent); }
.ac-join-key { background: var(--ok); }
.ac-leave-key { background: var(--danger); }
.ac-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ac-table th, .ac-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
@media (max-width: 760px) {
  .ac-cols { grid-template-columns: 1fr; }
  .ac-bar-row { grid-template-columns: minmax(70px, 38%) 1fr auto; }
}
