/* ---------- Schrift (liegt auf dem eigenen Server, kein Google) ---------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/fonts/onest-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/fonts/onest-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben & Maße ---------- */
:root {
  color-scheme: dark;
  --night: #100f1f;        /* Grund */
  --panel: #17162b;        /* Flächen */
  --panel-2: #24223f;      /* Linien, leere Zellen */
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f2fb;          /* Text */
  --ink-2: #a09cbf;        /* gedämpfter Text */
  --ink-3: #6f6a93;
  --vio: #8b6cff;          /* Hauptfarbe: Knöpfe, Schalter, Bot */
  --vio-2: #b9a6ff;
  --gold: #f5c451;         /* Akzent: Platzierungen, Zahlen */
  --gold-dim: #8a6e2c;
  --ok: #3ddc97;
  --bad: #ff6b81;

  --display: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --text: 'Onest', 'Segoe UI', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.6rem, 9vw, 5.2rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: inherit;
  font-weight: 700;
  color: var(--gold);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--gold);
  color: var(--night);
  padding: 6px 12px;
  z-index: 10;
}

/* ---------- Kopfzeile ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.search {
  position: relative;
  margin-left: auto;
  width: min(100%, 20rem);
}

.search input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 9px 16px;
}
.search input::placeholder { color: var(--ink-2); }
.search input:focus-visible { outline-offset: 1px; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 14px;
  z-index: 5;
  max-height: 60vh;
  overflow: auto;
}
.search-results li { padding: 8px 10px; border-radius: 8px; }
.search-results li[aria-selected="true"] { background: var(--panel-2); }
.search-results .who { display: block; font-weight: 700; }
.search-results .where { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.search-results .where a {
  font-size: var(--step--1);
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 1px 9px;
}
.search-results .where a:hover { color: var(--gold); border-color: var(--gold-dim); }
.search-results .empty { color: var(--ink-2); }

/* ---------- Seitenrahmen ---------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px var(--gutter) 64px;
}
main:focus { outline: none; }

.hero { padding: clamp(24px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.hero p {
  margin: 0;
  max-width: 38rem;
  font-size: var(--step-1);
  color: var(--ink-2);
}
.hero p strong { color: var(--ink); font-weight: 700; }

.crumb {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink-2);
  text-decoration: none;
}

section { margin-top: clamp(40px, 7vw, 72px); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.note {
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 40rem;
}

.two-col {
  margin-top: clamp(40px, 7vw, 72px);
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .two-col > section { margin-top: 0; }
}

/* ---------- Startseite: Anzeigetafel ---------- */
.board { list-style: none; margin: 0; padding: 0; }

.board li + li { border-top: 1px solid var(--panel-2); }

.board a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: clamp(16px, 3vw, 28px) 0;
  text-decoration: none;
}

.board .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.board .count {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--gold);
  text-align: right;
}

.board .meta {
  grid-column: 1 / -1;
  color: var(--ink-2);
}

.board a:hover .name { color: var(--gold); }

/* ---------- Rangliste (das Herzstück) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.tabs button, .range button, .more {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.tabs button[aria-pressed="true"], .range button[aria-pressed="true"] {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}
.tabs button:hover:not([aria-pressed="true"]),
.range button:hover:not([aria-pressed="true"]),
.more:hover { color: var(--ink); border-color: var(--ink-2); }

.ranking { list-style: none; margin: 0; padding: 0; }

.ranking li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 7px 0;
}

.ranking .pos {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  color: var(--ink-2);
  text-align: right;
}
.ranking li:nth-child(-n+3) .pos { color: var(--gold); font-size: var(--step-3); }

.ranking .who { min-width: 0; }
.ranking .who a {
  display: block;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking li:nth-child(-n+3) .who a { font-size: var(--step-1); }

.ranking .bar {
  height: 4px;
  margin-top: 6px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  min-width: 2px;
}
.ranking .bar.muted { background: var(--ink-2); opacity: 0.55; }

.ranking .val {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.ranking.compact li { grid-template-columns: minmax(0, 1fr) auto; }
.ranking.compact .who span { font-weight: 700; }

.more { margin-top: 14px; }

/* ---------- Diagramme ---------- */
.range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chart-box {
  position: relative;
  height: clamp(220px, 34vw, 320px);
}

.empty-state {
  color: var(--ink-2);
  border: 1px dashed var(--panel-2);
  border-radius: 12px;
  padding: 24px;
}

/* Heatmap: Wochentag × Uhrzeit */
.heat {
  display: grid;
  grid-template-columns: 2rem repeat(24, minmax(0, 1fr));
  gap: 3px;
}
.heat .day, .heat .hour {
  font-size: 0.75rem;
  color: var(--ink-2);
  line-height: 1;
}
.heat .day { align-self: center; }
.heat .hour { text-align: center; padding-top: 6px; }
.heat .cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--panel-2);
  border: 0;
  padding: 0;
  cursor: default;
}
.heat .cell:focus-visible { outline-offset: 1px; }

.heat-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.heat-legend .ramp {
  width: 140px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #184f95, #3987e5, #86b6ef, #cde2fb);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- Auszeichnungen ---------- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 32px 40px;
}
.awards li { border-top: 2px solid var(--gold); padding-top: 14px; min-width: 0; }
.awards h3 {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0;
}
.award-text { color: var(--ink-2); font-size: var(--step--1); margin: 2px 0 12px; }
.award-winner {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.award-value { margin: 4px 0 0; color: var(--gold); font-weight: 700; }
.award-rest { margin: 6px 0 0; color: var(--ink-2); font-size: var(--step--1); }
.award-rest a { color: var(--ink); text-decoration: none; }

/* ---------- Gemeinsame Community ---------- */
.overlap { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.overlap li {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--panel-2);
}
.overlap li:has(> span:first-child) { grid-template-columns: minmax(0, 1fr) auto; }
.overlap a { font-weight: 700; text-decoration: none; }
.overlap-bar { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.overlap-bar i { display: block; height: 100%; background: var(--ink-2); }
.overlap .val { font-weight: 700; text-align: right; white-space: nowrap; }
.overlap small { color: var(--ink-2); font-weight: 400; }

/* ---------- Profil ---------- */
.badges { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-2);
}
.badges strong { color: var(--gold); }
.facts dd small { font-size: var(--step--1); color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.traits { margin-top: 20px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 24px;
  margin: 0;
}
.facts div { border-left: 2px solid var(--panel-2); padding-left: 14px; }
.facts dt { color: var(--ink-2); font-size: var(--step--1); }
.facts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
}

.first-msg {
  margin: 0;
  padding: 18px 22px;
  background: var(--panel);
  border-radius: 4px 18px 18px 18px;
  max-width: 38rem;
}
.first-msg p { margin: 0 0 8px; font-size: var(--step-1); overflow-wrap: anywhere; }
.first-msg footer { color: var(--ink-2); font-size: var(--step--1); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a {
  display: inline-block;
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}
.chips a:hover { border-color: var(--gold-dim); }
.chips span { color: var(--ink-2); margin-left: 6px; }

/* ---------- Tooltip, Fuß, Zustände ---------- */
.tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: var(--ink);
  color: var(--night);
  font-size: var(--step--1);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--panel-2);
  color: var(--ink-2);
  font-size: var(--step--1);
}
.foot p { margin: 0 0 8px; max-width: 46rem; }

.status { padding: 64px 0; color: var(--ink-2); font-size: var(--step-1); }
.status a { color: var(--gold); }

@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .search { width: 100%; margin-left: 0; }
  .ranking li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; column-gap: 10px; }
  .heat { grid-template-columns: 1.6rem repeat(24, minmax(0, 1fr)); gap: 2px; }
  .heat .hour:not(.major) { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Impressum & Datenschutz */
.foot a { color: var(--ink); }
.foot-links { margin-top: 16px; }
.legal { max-width: 44rem; padding-top: clamp(32px, 6vw, 64px); }
.legal h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.legal h2 { font-size: var(--step-1); margin: 36px 0 10px; }
.legal p, .legal li, .legal address { line-height: 1.6; color: var(--ink-2); }
.legal p strong, .legal li strong, .legal address { color: var(--ink); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold); overflow-wrap: anywhere; }
.legal code { color: var(--ink); }
.legal-missing { color: var(--gold) !important; }

/* Bot holen & Einstellungen */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--night); text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, .linklike:focus-visible, .switch-row input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--panel-2); }
.btn-danger { background: #e5484d; color: #fff; }
.legal .btn { color: var(--night); }
.legal .btn-ghost { color: var(--ink); }
.legal .btn-danger { color: #fff; }
.btn-twitch { background: #9146ff; color: #fff !important; }
.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; }
.hero-cta { margin-top: 24px !important; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0; }
.lead { font-size: var(--step-1); color: var(--ink) !important; }
.legal ol { padding-left: 1.4em; }
.notice { background: var(--panel); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 8px; color: var(--ink) !important; }
.notice-good { border-left-color: #199e70; }
.notice-bad { border-left-color: #e5484d; }
.whoami { margin-bottom: 20px; }
.switches { display: grid; gap: 2px; }
.switch-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--panel-2); }
.switch-row label { display: grid; gap: 2px; cursor: pointer; color: var(--ink-2); line-height: 1.5; }
.switch-row label strong { color: var(--ink); }
.switch-row input {
  appearance: none; flex: none; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px;
  background: var(--panel-2); position: relative; cursor: pointer; transition: background 0.15s;
}
.switch-row input::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-2); transition: transform 0.15s, background 0.15s;
}
.switch-row input:checked { background: var(--gold); }
.switch-row input:checked::after { transform: translateX(18px); background: var(--night); }
.save-line { min-height: 1.6em; margin-top: 8px; }
.save-status { color: var(--ink-2); font-size: var(--step--1); }
.danger p { color: var(--ink) !important; }
.admin { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--panel-2); }
.requests { list-style: none; padding: 0 !important; }
.requests li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; border-bottom: 1px solid var(--panel-2); }
.requests li a { font-weight: 700; margin-right: auto; }
.requests .when { color: var(--ink-2); font-size: var(--step--1); }
.legal h3 { font-size: var(--step-0); margin: 20px 0 6px; }

.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; margin: 16px 0; }
.extra { background: var(--panel); border-radius: 12px; padding: 16px 18px; }
.extra h3 { margin: 6px 0 6px; font-size: var(--step-1); color: var(--ink); }
.extra p { margin: 0; font-size: var(--step--1); }
.extra-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }

/* ---------- Navigation ---------- */
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: var(--step--1);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Startseite ---------- */
.landing-hero { max-width: 46rem; }
.landing-hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.6rem); }
.kicker { font-size: var(--step--1) !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 14px !important; }
.landing-hero .cta-row { margin-top: 28px; }
.proof { margin-top: 20px !important; font-size: var(--step-0) !important; }
.landing .btn-ghost { color: var(--ink); }
.landing section h2 { margin-bottom: 18px; }
.landing .note { max-width: 40rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 12px; margin-bottom: 14px; }
.feature { background: var(--panel); border-radius: 14px; padding: 18px 20px; }
.feature h3 { margin: 0 0 6px; font-size: var(--step-0); }
.feature p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: var(--step--1); }
.commands { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; margin: 0; max-width: 44rem; }
.commands dt, .commands dd { padding: 10px 0; border-bottom: 1px solid var(--panel-2); margin: 0; }
.commands dt code { color: var(--gold); font-weight: 700; font-size: var(--step-0); }
.commands dd { color: var(--ink-2); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; }
.steps li { counter-increment: step; background: var(--panel); border-radius: 14px; padding: 18px 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: var(--step-0); }
.steps p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: var(--step--1); }
.landing .extras { margin-top: 0; }
.landing .extra p { color: var(--ink-2); line-height: 1.55; }
.fineprint { color: var(--ink-2); font-size: 0.75rem; line-height: 1.5; max-width: 44rem; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .search { order: 2; }
}
@media (max-width: 560px) {
  .search { order: 4; }
  .commands { grid-template-columns: 1fr; }
  .commands dt { border-bottom: 0; padding-bottom: 0; }
  .commands dd { padding-top: 2px; }
}

/* ---------- Einstellungen: Bereiche und Formulare ---------- */
.settings { max-width: 52rem; }
.subtabs { display: flex; gap: 4px; overflow-x: auto; margin: 8px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--panel-2); scrollbar-width: thin; }
.subtabs a { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2) !important; font-weight: 600; font-size: var(--step--1); }
.subtabs a:hover { color: var(--ink) !important; }
.subtabs a[aria-current="page"] { background: var(--gold); color: var(--night) !important; }
.subtabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.settings h2 { margin-top: 28px; }
.tool-list { list-style: none; padding: 0 !important; margin: 12px 0 20px; }
.tool-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--panel-2); margin: 0; }
.tool-list li.off { opacity: 0.6; }
.tool-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 18rem; }
.tool-main code { color: var(--gold); font-weight: 700; }
.tool-text { color: var(--ink); overflow-wrap: anywhere; }
.tool-main small { color: var(--ink-2); }
.tool-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.tool-actions input { width: 6.5rem; }
.danger-link { color: #ff8a8d !important; }
.tool-form { background: var(--panel); border-radius: 14px; padding: 18px 20px; margin: 8px 0 16px; }
.tool-form h3 { margin: 4px 0 12px; font-size: var(--step-0); }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label { font-weight: 600; color: var(--ink); font-size: var(--step--1); }
.field small { color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 14px; }
.field-check { align-content: end; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.rule { border-left: 2px solid var(--panel-2); padding: 4px 0 2px 14px; margin-bottom: 14px; }
.rule > .check { margin-bottom: 10px; font-weight: 700 !important; }
.settings input[type=text], .settings input[type=number], .settings select, .settings textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--night);
  border: 1px solid var(--panel-2); border-radius: 10px; padding: 9px 12px;
}
.settings textarea { resize: vertical; min-height: 4.5em; line-height: 1.45; }
.settings input:focus-visible, .settings select:focus-visible, .settings textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-msg { margin: 0 !important; font-size: var(--step--1); color: var(--ink-2) !important; }
.form-msg.ok { color: #4cc38a !important; }
.form-msg.bad { color: #ff8a8d !important; }
.howto { margin-bottom: 16px; }
.channel-pick { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.channel-pick label { font-weight: 700; color: var(--ink); }
.channel-pick select { width: auto !important; min-width: 14rem; }
.alias { color: var(--ink-2); font-weight: 400; font-size: var(--step--1); }
.perm-tag { color: var(--gold); }
.chip { display: inline-block; margin: 0 8px 8px 0; padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--gold); }
.vars { margin: 0 0 16px; }
.vars summary { cursor: pointer; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.vars .commands { max-width: none; }

/* =================== Neues Layout: Startseite mit Chat, Dashboard =================== */
.search { width: min(100%, 15rem); }
.top-cta { flex: none; font-size: var(--step--1); padding: 9px 16px; }
.top-cta:hover { color: var(--night); }

/* ---------- Startseite ---------- */
.land-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 7vw, 96px); }
.land-copy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 7vw, 5rem); line-height: .92; letter-spacing: -.045em; margin: 0 0 24px; max-width: 9ch; }
.land-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 30rem; margin: 0 0 30px; }
.land-copy .proof { margin-top: 26px; color: var(--ink-2); font-size: var(--step--1); }
.land-copy .proof strong { color: var(--ink); }
.chat-demo { background: #0e0d1c; border: 1px solid var(--panel-2); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .7); }
.chat-head { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--panel-2); font-size: var(--step--1); color: var(--ink-2); }
.chat-head b { color: var(--ink); }
.chat-live { color: #ff7a7a; font-weight: 700; }
.chat-live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.chat-lines { padding: 14px 18px 16px; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; min-height: 330px; align-content: start; }
.chat-line { transition: opacity .35s ease, transform .35s ease; }
.chat-line.pending { opacity: 0; transform: translateY(6px); }
.chat-line b { font-weight: 700; }
.chat-line.is-bot b { color: var(--gold); }
.chat-line.is-alert { background: #2a2150; border-left: 3px solid #9146ff; padding: 9px 12px; border-radius: 6px; }
.chat-badge { display: inline-block; font-size: 10.5px; font-weight: 800; background: #00ad96; color: #002b25; border-radius: 4px; padding: 1px 4px; margin-right: 6px; vertical-align: 2px; }
.chat-input { margin: 0 18px 18px; border: 1px solid var(--panel-2); border-radius: 8px; padding: 10px 12px; color: #6e6894; font-size: 14px; }
.land-features { border-top: 1px solid var(--panel-2); padding-top: 8px; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 28px 40px; margin: 8px 0 20px; }
.feature-item h3 { margin: 0 0 6px; font-size: var(--step-0); }
.feature-item p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: var(--step--1); max-width: 34ch; }

/* ---------- Dashboard ---------- */
body.in-dash .top, body.in-dash .foot { display: none; }
body.in-dash main#app { max-width: none; padding: 0; margin: 0; }
.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.dash-side { background: #110f24; border-right: 1px solid var(--panel-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { font-family: var(--display); font-weight: 800; font-size: var(--step-1); letter-spacing: -.02em; text-decoration: none; padding: 0 10px 6px; }
.dash-side select { width: 100%; font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--panel); border: 1px solid var(--panel-2); border-radius: 10px; padding: 9px 10px; }
.side-channel { margin: 0; padding: 9px 10px; border-radius: 10px; background: var(--panel); font-weight: 700; }
.side-group p { margin: 10px 10px 4px; font-size: var(--step--1); color: #7d77a6; font-weight: 600; }
.side-group a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: var(--step--1); }
.side-group a:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.side-group a[aria-current="page"] { background: var(--panel); color: var(--gold); }
.side-group a.off { opacity: .45; }
.pill { background: var(--gold); color: var(--night); border-radius: 999px; font-size: 12px; padding: 0 7px; font-weight: 800; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding: 12px 10px 0; border-top: 1px solid var(--panel-2); font-size: var(--step--1); color: var(--ink-2); }
.side-foot b { color: var(--ink); }
.side-foot a, .side-foot .linklike { justify-self: start; color: var(--ink-2); }
.dash-main { padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 52px) 64px; max-width: 1180px; width: 100%; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.03em; margin: 0 0 4px; line-height: 1.05; }
.dash-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.context-note { margin: -8px 0 18px; font-size: var(--step--1); color: var(--gold); }
.dash-main > h2, .dash-main h2 { font-size: var(--step-1); margin: 28px 0 10px; }
.dash-main .tool-form { max-width: 52rem; }
.dash-main input[type=text], .dash-main input[type=number], .dash-main input[type=search], .dash-main select, .dash-main textarea,
.editor input[type=text], .editor input[type=number], .editor select, .editor textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--night); border: 1px solid var(--panel-2); border-radius: 10px; padding: 9px 12px;
}
.dash-main textarea, .editor textarea { resize: vertical; line-height: 1.45; }
.editor input[readonly] { opacity: .6; }

.seg { display: inline-flex; background: #110f24; border: 1px solid var(--panel-2); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.seg button { font: inherit; font-weight: 700; font-size: var(--step--1); color: var(--ink-2); background: none; border: 0; padding: 7px 16px; border-radius: 7px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); }
.dash-search { margin-bottom: 14px; }

.table-wrap { border: 1px solid var(--panel-2); border-radius: 14px; overflow-x: auto; background: #12102a; }
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.dash-table th { text-align: left; font-weight: 700; color: var(--ink); padding: 13px 16px; border-bottom: 1px solid var(--panel-2); white-space: nowrap; }
.dash-table td { padding: 13px 16px; border-bottom: 1px solid var(--panel-2); vertical-align: top; color: var(--ink); line-height: 1.5; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.dash-table td small { display: block; color: var(--ink-2); margin-top: 2px; }
.td-name { font-weight: 700; white-space: nowrap; }
.td-text { overflow-wrap: anywhere; min-width: 14rem; }
.td-num { white-space: nowrap; }
.td-toggle { width: 1%; }
.td-actions { width: 1%; white-space: nowrap; text-align: right; }
.dash-table tr.empty td { color: var(--ink-2); text-align: center; padding: 28px 16px; }
.btn-sm { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--panel-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-left: 6px; }
.btn-sm:hover { border-color: var(--ink-2); }
.btn-sm.danger { color: #ff8a8d; }
.btn-sm.danger:hover { border-color: #ff8a8d; }
.btn-sm:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.toggle { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--panel-2); position: relative; cursor: pointer; margin: 0; flex: none; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .15s, background .15s; }
.toggle:checked { background: var(--gold); }
.toggle:checked::after { transform: translateX(18px); background: var(--night); }
.toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle:disabled { opacity: .6; }

.editor { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--panel); color: var(--ink); border: 1px solid var(--panel-2); border-radius: 16px; padding: 22px 24px; }
.editor::backdrop { background: rgba(8, 7, 20, .7); }
.editor h2 { margin: 0 0 16px; font-size: var(--step-1); }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin-bottom: 14px; }
.status-card { display: flex; gap: 12px; background: #12102a; border: 1px solid var(--panel-2); border-radius: 14px; padding: 14px 16px; }
.status-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); margin-top: 7px; flex: none; }
.status-card.ok .dot { background: #4cc38a; }
.status-card.bad .dot { background: #ff8a8d; }
.status-card strong { display: block; }
.status-card p { margin: 2px 0 4px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.45; }
.status-card a { font-size: var(--step--1); color: var(--gold); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.stat-label { color: var(--ink-2); font-size: var(--step--1); }
.stat b { font-family: var(--display); font-size: var(--step-2); letter-spacing: -.02em; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.panel { background: #12102a; border: 1px solid var(--panel-2); border-radius: 14px; padding: 16px 18px; }
.panel h2 { margin: 0 0 14px !important; font-size: var(--step-0) !important; }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 180px; align-items: end; }
.wb { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.wb i { align-self: end; display: block; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 2px; }
.wb-val { font-size: 11px; color: var(--ink-2); }
.wb-day { font-size: var(--step--1); color: var(--ink-2); }
.mini-rank { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.mini-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--panel-2); counter-increment: r; font-size: var(--step--1); }
.mini-rank li::before { content: counter(r); color: var(--ink-2); width: 1.4em; }
.mini-rank li a { margin-right: auto; text-decoration: none; font-weight: 600; }
.mini-rank li:last-child { border-bottom: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quick-links a { background: var(--panel); border-radius: 10px; padding: 9px 14px; text-decoration: none; font-size: var(--step--1); color: var(--ink-2); }
.quick-links a b { color: var(--ink); }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.add-row input { flex: 1 1 14rem; width: auto !important; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: var(--step--1); }
.chips button { font: inherit; background: none; border: 0; color: var(--ink-2); cursor: pointer; width: 22px; height: 22px; border-radius: 50%; }
.chips button:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.dash .switch-row { border-bottom: 0; padding: 4px 0; }
.dash .switch-row > div { display: grid; gap: 2px; }
.dash .switch-row span { color: var(--ink-2); font-size: var(--step--1); }
.login-card { max-width: 40rem; padding: clamp(40px, 8vw, 96px) 0; }
.login-card h1 { font-family: var(--display); font-weight: 800; font-size: var(--step-3); letter-spacing: -.03em; margin: 0 0 16px; }
.login-card p { color: var(--ink-2); }
.dash .admin { margin-top: 0; border-top: 0; padding-top: 0; }

@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--panel-2); padding: 14px 16px; }
  .dash-side nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .side-group { display: contents; }
  .side-group p { display: none; }
  .side-group a { flex: none; }
  .side-foot { flex-direction: row; display: flex; flex-wrap: wrap; gap: 4px 14px; border-top: 0; padding: 0 2px; margin: 0; }
}
@media (max-width: 760px) {
  .top-cta { order: 2; margin-left: auto; }
}
@media (max-width: 560px) {
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100% !important; }
  .dash-table tr { border-bottom: 1px solid var(--panel-2); padding: 8px 0; }
  .dash-table td { border: 0; padding: 4px 14px; text-align: left !important; }
  .td-actions .btn-sm:first-child { margin-left: 0; }
}
.dash section { margin-top: 0; }
.dash .admin { margin-top: 0; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { min-width: 0; }
  .dash-side nav { max-width: 100%; }
}
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.editor-wide { width: min(980px, calc(100vw - 32px)); }
.editor p { color: var(--ink-2); }
.import-result { margin-top: 8px; }
.import-result .table-wrap { max-height: 50vh; overflow-y: auto; }
.dash-table tr.muted td { opacity: .55; }
.imp-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); white-space: nowrap; }
.imp-ok { background: #1d4d3a; color: #8fe3bd; }
.imp-exists { background: #4d3d14; color: var(--gold); }
.imp-unsupported, .imp-invalid { background: #4d1f27; color: #ff9ea3; }
.editor input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.field[hidden] { display: none; }
.imp-needsurl { background: #1f3a5c; color: #9cc9ff; }
.imp-url { margin-top: 6px; min-width: 14rem; font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--night); border: 1px solid var(--panel-2); border-radius: 8px; padding: 6px 10px; width: 100%; }


/* =================== Modernes Layout (Arexorbot) =================== */
body { font-feature-settings: 'tnum'; }
a:hover { color: var(--vio-2); }
:focus-visible { outline-color: var(--vio); }
code { color: var(--vio-2); font-weight: 650; }
h1, h2, h3 { letter-spacing: -0.02em; }
h2 { font-weight: 720; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, #a58bff, #6a4dff); position: relative; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; box-shadow: 0 6px 18px -6px rgba(106, 77, 255, .7); }
.mark::after { content: ''; position: absolute; left: 6px; bottom: -5px; border: 6px solid transparent; border-top-color: #7458ff; border-left-color: #7458ff; }

/* Kopfzeile: schwebend mit Unschärfe, Reiter als Pillen */
.top { position: sticky; top: 0; z-index: 20; max-width: none; padding: 12px max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))); background: rgba(16, 15, 31, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; margin-left: 20px; }
.nav a { padding: 6px 14px; font-size: var(--step--1); font-weight: 550; }
.nav a[aria-current="page"] { background: var(--panel-2); color: var(--ink); }
.search input { background: var(--panel); border-color: var(--line); border-radius: 12px; }

/* Knöpfe */
.btn { background: var(--vio); color: #fff; border-radius: 12px; font-weight: 650; box-shadow: 0 10px 30px -12px rgba(139, 108, 255, .8); }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--ink); }
.btn-twitch { background: var(--vio); }
.legal .btn, .top-cta, .top-cta:hover { color: #fff; }
.legal .btn-ghost { color: var(--ink); }
.linklike { color: var(--vio-2); }
.toggle:checked, .switch-row input:checked { background: var(--vio); }
.toggle:checked::after, .switch-row input:checked::after { background: #fff; }
.check input, .editor input[type=checkbox] { accent-color: var(--vio); }

/* Flächen */
.panel, .status-card, .table-wrap, .tool-form, .chat-demo, .extra, .feature, .steps li, .stat, .editor { border-radius: 18px; border-color: var(--line); }
.stat, .tool-form, .extra, .steps li { background: var(--panel); border: 1px solid var(--line); }
.panel, .status-card, .table-wrap { background: var(--panel); }
.notice { background: var(--panel); border-left-color: var(--vio); border-radius: 12px; }

/* ---------- Startseite ---------- */
.land-hero { position: relative; }
.land-hero::before { content: ''; position: absolute; right: -40px; top: 10%; width: 560px; height: 480px; max-width: 70%; background: radial-gradient(closest-side, rgba(139, 108, 255, .3), transparent); filter: blur(20px); pointer-events: none; z-index: -1; }
.land-pill { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: var(--step--1); margin: 0 0 22px; }
.land-pill b { background: rgba(61, 220, 151, .15); color: var(--ok); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.land-copy h1 { font-weight: 780; font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.02; max-width: 13ch; letter-spacing: -0.045em; }
.land-figures { display: flex; gap: 28px; margin-top: 30px; color: var(--ink-2); font-size: var(--step--1); flex-wrap: wrap; }
.land-figures b { display: block; color: var(--ink); font-size: var(--step-2); letter-spacing: -0.02em; font-weight: 700; }
.chat-demo { background: rgba(23, 22, 43, .92); border: 1px solid var(--line); border-radius: 22px; }
.chat-line.is-bot b { color: var(--vio-2); }
.chat-badge { width: 18px; height: 18px; padding: 0; display: inline-grid; place-items: center; background: var(--vio); color: #fff; border-radius: 5px; font-size: 11px; vertical-align: -3px; }
.chat-line.is-alert { background: linear-gradient(90deg, rgba(139, 108, 255, .18), rgba(139, 108, 255, .04)); border: 1px solid rgba(139, 108, 255, .25); border-radius: 12px; }
.chat-live { background: rgba(255, 107, 129, .14); color: var(--bad); padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.chat-live::before { display: none; }
.land-section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.035em; margin: 0 0 8px; }
.land-section-head p { color: var(--ink-2); margin: 0 0 28px; font-size: var(--step-0); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile h3 { margin: 0; font-size: var(--step-0); }
.tile p { margin: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; }
.mini-ui { background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: auto; font-size: var(--step--1); }
.mini-lb > div { display: grid; grid-template-columns: 18px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 4px 0; }
.mini-lb i { display: block; height: 7px; border-radius: 4px; background: var(--vio); }
.mini-lb span:first-child { color: var(--gold); font-weight: 700; }
.mini-lb span:last-child { text-align: right; }
.mini-cmd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; }
.mini-cmd span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tog { width: 36px; height: 20px; border-radius: 999px; background: var(--vio); position: relative; flex: none; }
.mini-tog::after { content: ''; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mini-tog.off { background: var(--panel-2); } .mini-tog.off::after { right: auto; left: 3px; background: var(--ink-3); }
.mini-del { color: var(--ink-3); text-decoration: line-through; }
.mini-chip { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: rgba(255, 107, 129, .14); color: var(--bad); margin-left: 6px; white-space: nowrap; }
.mini-embed { border-left: 4px solid var(--vio); padding: 8px 12px; background: var(--panel-2); border-radius: 6px; }
.mini-embed span { color: var(--ink-2); display: block; }
.mini-heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.mini-heat i { height: 14px; border-radius: 3px; background: var(--vio); }
.mini-alert { border: 1px solid rgba(139, 108, 255, .25); background: rgba(139, 108, 255, .1); border-radius: 10px; padding: 8px 10px; }
.mini-alert b { color: var(--vio-2); }
.commands dt code { color: var(--vio-2); }
.steps li::before { background: var(--vio); color: #fff; }
.extra-tag { color: var(--vio-2); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.w3, .tile.w2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .nav { margin-left: 0; }
}

/* ---------- Dashboard ---------- */
.dash-side { background: #0d0c1a; border-right-color: var(--line); }
.side-brand { display: inline-flex; padding: 2px 8px 6px; font-size: var(--step-1); }
.dash-side select { background: var(--panel); border-color: var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.side-group p { color: var(--ink-3); font-size: 12px; }
.side-group a { gap: 10px; justify-content: flex-start; font-weight: 550; }
.side-group a svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-group a[aria-current="page"] { background: rgba(139, 108, 255, .14); color: var(--ink); }
.side-group a[aria-current="page"] svg { color: var(--vio-2); }
.side-group a .pill { margin-left: auto; }
.side-foot { border-top-color: var(--line); }
.dash-head h1 { font-weight: 750; letter-spacing: -0.03em; }
.context-note { color: var(--vio-2); }
.status-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-2); }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-chip.ok i { background: var(--ok); } .status-chip.bad i { background: var(--bad); }
.status-chip b { color: var(--ink); font-weight: 600; }
.status-chip a { color: var(--vio-2); }
.stat b { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.stat .spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: 6px; }
.stat .spark i { flex: 1; background: rgba(139, 108, 255, .55); border-radius: 2px; min-height: 2px; }
.wb i { background: var(--vio); }
.dash-table th { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.dash-table td { border-bottom-color: var(--line); }
.dash-table th { border-bottom-color: var(--line); }
.dash-table tbody tr:nth-child(even) td { background: transparent; }
.dash-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.td-name { color: var(--vio-2); }
.td-name small { color: var(--ink-3) !important; font-weight: 500; }
.perm-tag { display: inline-block !important; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(245, 196, 81, .12); color: var(--gold) !important; font-weight: 600; margin-top: 4px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: transparent; display: inline-grid; place-items: center; color: var(--ink-2); cursor: pointer; margin-left: 6px; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn.danger { color: var(--bad); }
.icon-btn:focus-visible { outline: 2px solid var(--vio); outline-offset: 2px; }
.seg { background: var(--night); border-color: var(--line); }
.seg button[aria-selected="true"] { background: var(--panel-2); }
.dash-main input[type=text], .dash-main input[type=number], .dash-main input[type=search], .dash-main select, .dash-main textarea,
.editor input[type=text], .editor input[type=number], .editor select, .editor textarea, .imp-url { border-color: var(--line); border-radius: 11px; }
.dash-main input:focus-visible, .dash-main select:focus-visible, .dash-main textarea:focus-visible, .editor input:focus-visible, .editor textarea:focus-visible, .editor select:focus-visible { outline: 2px solid var(--vio); outline-offset: 1px; }
.chips li { background: var(--panel-2); }
.mini-rank li { border-bottom-color: var(--line); }
.quick-links a { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.editor { background: var(--panel); }
.pill { background: var(--vio); color: #fff; }

/* ---------- Statistikseiten ---------- */
.board li a, .ranking li { border-color: var(--line); }
.foot { border-top-color: var(--line); }
.also-head { font-size: var(--step-0); color: var(--ink-2); font-weight: 600; margin: 36px 0 14px; }
.top-cta { margin-left: 0; }
@media (max-width: 760px) { .top .search { order: 5; width: 100%; } }
.landing { overflow-x: clip; }
.dash { overflow-x: clip; }
@media (max-width: 900px) { .dash-side { overflow-x: hidden; } }
.tabs button[aria-pressed="true"], .range button[aria-pressed="true"] { color: #fff; background: var(--vio); border-color: var(--vio); }
.tabs button, .range button { border-color: var(--line); }
.status-chip > span { display: inline; }

/* ---------- Hilfe ---------- */
.help { max-width: 52rem; padding-top: clamp(24px, 5vw, 56px); }
.help-head h1 { font-size: var(--step-3); font-weight: 760; letter-spacing: -0.035em; margin: 0 0 8px; }
.help-head p { color: var(--ink-2); margin: 0 0 22px; }
.help-head a { color: var(--vio-2); }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.help-toc a { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-size: var(--step--1); color: var(--ink-2); }
.help-toc a:hover { color: var(--ink); }
.help section { margin-top: 40px; scroll-margin-top: 90px; }
.help h2 { font-size: var(--step-1); margin: 0 0 12px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--vio-2); font-size: 1.3em; line-height: 1; flex: none; }
.faq[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 2px solid var(--vio); outline-offset: 2px; border-radius: 14px; }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); line-height: 1.6; }
.faq-a p { margin: 0 0 10px; }
.faq-a ul, .faq-a ol { margin: 0 0 10px; padding-left: 1.3em; }
.faq-a li { margin-bottom: 4px; }
.faq-a a { color: var(--vio-2); }
.faq-a .commands { max-width: none; }
.code { background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--vio-2); font-family: inherit; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
.help > p a { color: var(--vio-2); }

/* ---------- Jahresrückblick ---------- */
.recap { padding: clamp(16px, 4vw, 40px) 0 24px; display: grid; gap: 14px; }
.recap > .crumb { margin-bottom: 0; }
.rc { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); min-width: 0; }
.rc h2 { font-size: var(--step-1); margin: 0 0 16px; }
.rc-hero { background: radial-gradient(120% 140% at 85% 0%, rgba(139, 108, 255, .45), transparent 60%), var(--panel); padding: clamp(28px, 6vw, 64px) clamp(22px, 5vw, 56px); }
.rc-hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .98; letter-spacing: -0.05em; font-weight: 800; margin: 0 0 14px; overflow-wrap: anywhere; }
.rc-hero p { font-size: var(--step-1); color: var(--ink-2); margin: 0 0 10px; max-width: 40rem; }
.rc-kicker { color: var(--vio-2) !important; font-weight: 650; font-size: var(--step-0) !important; margin-bottom: 14px !important; }
.rc-small { font-size: var(--step--1) !important; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; }
.rc-span2 { grid-column: span 2; }
.rc-big { display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0 8px; overflow-wrap: anywhere; }
.rc-name a { text-decoration: none; }
.rc-label { margin: 0; color: var(--ink-2); line-height: 1.5; }
.rc-accent { background: linear-gradient(150deg, #6a4dff, #8b6cff 60%, #a58bff); border-color: transparent; }
.rc-accent .rc-label { color: rgba(255, 255, 255, .85); }
.rc-podium { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc-podium li { background: var(--night); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.rc-podium a { font-size: var(--step-1); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.rc-podium small { color: var(--ink-2); }
.rc-place { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rc-podium .p2 .rc-place, .rc-podium .p3 .rc-place { color: var(--ink-2); }
.rc-list { margin: 8px 0 0; padding-left: 1.6em; display: grid; gap: 2px; }
.rc-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rc-list li > * { display: inline; }
.rc-list li { display: list-item; }
.rc-list li span:last-child, .rc-list li a + span { float: right; color: var(--ink-2); }
.rc-list a { text-decoration: none; font-weight: 600; }
.rc-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; }
.rc-months > div { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.rc-months i { align-self: end; display: block; background: var(--vio); border-radius: 5px 5px 0 0; }
.rc-months span { font-size: 11px; color: var(--ink-2); }
.rc-cta .add-row input { max-width: 22rem; }
@media (max-width: 700px) {
  .rc-span2 { grid-column: auto; }
  .rc-podium { grid-template-columns: 1fr; }
}
.recap section, .recap .rc { margin-top: 0; }
.rc-big { font-size: clamp(1.8rem, 3.4vw, 2.6rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.rc-name { overflow-wrap: anywhere; }
.recap input[type=text] { font: inherit; color: var(--ink); background: var(--night); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; flex: 1 1 14rem; }
.recap input[type=text]:focus-visible { outline: 2px solid var(--vio); outline-offset: 1px; }

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.lang-switch button { display: grid; place-items: center; width: 30px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; opacity: .5; transition: opacity .15s, background .15s; }
.lang-switch button:hover { opacity: .85; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: rgba(139, 108, 255, .28); }
.lang-switch button:focus-visible { outline: 2px solid var(--vio-2); outline-offset: 1px; }
.lang-switch svg { width: 18px; height: 12px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.side-foot .lang-switch { align-self: flex-start; margin-top: 4px; }
html[lang="de"] [data-i18n-only="en"] { display: none; }
.legal-en-note { padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 760px) {
  .top .lang-switch { order: 2; margin-left: auto; }
  .top .lang-switch + .top-cta { order: 2; margin-left: 0; }
}
.lang-switch { width: max-content; }

/* ---------- Timer-Import: Befehle auswählen ---------- */
.timer-cmds { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; margin: 4px 0 14px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--night); }
.timer-cmd { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: var(--step--1); }
.timer-cmd:hover { background: var(--panel-2); }
.timer-cmd span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-cmd small { grid-column: 2 / -1; color: var(--ink-2); }
.timer-cmd.muted { opacity: .6; }
.timer-cmd-preview { display: block; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }

/* ---------- Gewinnspiel live ---------- */
.dash-main.dash-wide { max-width: 1680px; }
.gw { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.35fr) minmax(300px, 1.1fr); gap: 16px; align-items: start; }
.gw-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.gw-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.gw-panel-head h2 { font-size: var(--step-0); margin: 0; }
.gw-count { color: var(--ink-2); font-size: var(--step--1); }
.gw-users-panel .dash-search { width: 100%; margin-bottom: 10px; }
.gw-users { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.gw-users li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.gw-users li.inactive { opacity: .5; }
.gw-users .gw-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gw-users small { color: var(--ink-2); }
.gw-users .icon-btn { width: 28px; height: 28px; }
.gw-users .gw-empty { color: var(--ink-2); border: 0; padding: 18px 4px; display: block; }
.gw-status { display: flex; align-items: center; gap: 10px; }
.gw-badge { font-size: var(--step--1); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); }
.gw-badge.on { background: rgba(61, 220, 151, .15); color: var(--ok); }
.gw-settings .switch-row { margin-bottom: 14px; }
.gw-mode { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.gw-mode legend { font-weight: 600; margin-bottom: 6px; font-size: var(--step--1); }
.gw-keyword input { max-width: 220px; }
.gw-slider { margin: 14px 0; display: grid; gap: 6px; }
.gw-slider-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: var(--step--1); }
.gw-val { color: var(--vio-2); font-variant-numeric: tabular-nums; }
.gw-slider input[type=range] { width: 100%; accent-color: var(--vio); }
.gw-slider small { color: var(--ink-2); }
.gw-draw { width: 100%; justify-content: center; margin-top: 8px; padding: 13px; font-size: var(--step-0); }
.gw-draw:disabled { opacity: .45; cursor: not-allowed; }
.gw-winner { margin-top: 16px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(139, 108, 255, .22), rgba(245, 196, 81, .12)); border: 1px solid rgba(245, 196, 81, .35); }
.gw-winner-label { margin: 0; color: var(--gold); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.gw-winner-name { margin: 4px 0; font-size: var(--step-2); font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gw-winner-name a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.gw-winner-meta { margin: 0 0 12px; color: var(--ink-2); font-size: var(--step--1); }
.gw-winner-chat { background: var(--night); border-radius: 10px; padding: 10px 12px; font-size: var(--step--1); }
.gw-winner-chat p { margin: 0 0 6px; }
.gw-winner-chat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gw-winner-chat time { color: var(--ink-2); font-variant-numeric: tabular-nums; margin-right: 6px; }
.gw-winner-chat span { overflow-wrap: anywhere; }
.gw-wait { color: var(--ink-2); }
.gw-winner .cta-row { margin-top: 12px; }
.gw-end { margin-top: 14px; color: var(--bad); }
.gw-chat iframe { width: 100%; height: 640px; border: 0; border-radius: 10px; background: var(--night); display: block; }
.gw-pop { font-size: var(--step--1); }
.gw-help { margin-top: 22px; }
.gw-help summary { cursor: pointer; font-weight: 600; }
@media (max-width: 1280px) { .gw { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .gw-chat { grid-column: 1 / -1; } }
@media (max-width: 760px) { .gw { grid-template-columns: minmax(0, 1fr); } .gw-users { max-height: 320px; } .gw-chat iframe { height: 480px; } }

/* ---------- Sprache des Bots ---------- */
.bot-lang { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 16px 0; }
.bot-lang .bl-text { flex: 1 1 280px; display: grid; gap: 2px; }
.bot-lang .bl-text span { color: var(--ink-2); font-size: var(--step--1); }
.bl-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--night); border: 1px solid var(--line); }
.bl-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.bl-opt:hover { color: #fff; }
.bl-opt[aria-pressed="true"] { background: var(--vio); color: #fff; }
.bl-opt:disabled { opacity: .6; cursor: wait; }
.bl-opt svg { width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.bot-lang .save-status:empty { display: none; }
