/* Startseite von D.E.R.P.Y */

:root {
  color-scheme: dark;
  --bg: #0b0910;
  --card: #16131f;
  --card2: #1d1929;
  --line: #292235;
  --line-soft: #201b2c;
  --text: #f2eef8;
  --muted: #9a92ae;
  --brand: #a970ff;
  --brand-dim: #7a4fd4;
  --ok: #3fbf7f;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 12% -12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(900px 520px at 98% 4%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  padding: 0 20px 60px;
}

.wrap { max-width: 960px; margin: 0 auto; }

/* --- Kopf --- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 17px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dim));
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--brand) 60%, transparent);
}
.top nav { display: flex; gap: 8px; align-items: center; }

/* --- Hero --- */
.hero { padding: 40px 0 8px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px;
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63, 191, 127, 0.16);
}
h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08; letter-spacing: -0.035em; margin: 20px 0 16px; font-weight: 700;
  background: linear-gradient(120deg, var(--text) 30%, var(--brand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 auto 30px; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
a.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 11px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dim)); color: #fff;
  box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--brand) 75%, transparent);
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
}
a.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand) 85%, transparent); }
a.btn.ghost {
  background: #191524; border: 1px solid var(--line); color: var(--muted);
  box-shadow: none; font-weight: 500;
}
a.btn.ghost:hover { background: #211b30; color: var(--text); transform: translateY(-1px); }
a.btn.small { padding: 9px 16px; font-size: 14px; }

/* --- Zahlen --- */
.stats {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 44px 0 10px;
}
.stat {
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--bg)));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; text-align: center; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 75%); opacity: 0.55;
}
.stat b { display: block; font-size: 30px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Abschnitte --- */
h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #7d7593; margin: 56px 0 18px; text-align: center;
}

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--bg)));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; transition: transform 0.16s, border-color 0.16s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--line); }
.feature .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 21px; background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); margin-bottom: 14px;
}
.feature h3 { margin: 0 0 7px; font-size: 16px; font-weight: 650; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- Ablauf --- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px;
  background: var(--card); position: relative;
}
.step .num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 650; margin-bottom: 12px;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- Befehle --- */
.commands {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.commands code {
  background: color-mix(in srgb, var(--card) 80%, var(--bg)); border: 1px solid var(--line-soft); color: var(--text);
  padding: 7px 13px; border-radius: 8px; font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Kanäle --- */
.channels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.channel {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 99px; padding: 7px 15px 7px 8px; font-size: 14px;
}
.channel .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.channel .dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 191, 127, 0.18); }
.channel img { width: 26px; height: 26px; border-radius: 50%; }

/* --- Hinweisbox --- */
.note {
  border: 1px solid var(--line-soft); border-left: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
  border-radius: var(--radius); padding: 18px 20px; color: var(--muted); font-size: 14.5px;
}
.note strong { color: var(--text); }
.note code {
  background: var(--bg); padding: 2px 7px; border-radius: 5px; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}

/* --- Fuß --- */
footer {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  color: #6f6885; font-size: 13px; text-align: center;
}
footer a { color: var(--muted); }

/* --- Ergebnis-Seiten --- */
.result {
  max-width: 560px; margin: 70px auto 0; text-align: center;
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--bg)));
  border: 1px solid var(--line-soft); border-radius: 18px; padding: 40px 32px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9);
}
.result .big { font-size: 46px; line-height: 1; margin-bottom: 16px; }
.result h1 { font-size: 27px; margin: 0 0 12px; }
.result p { color: var(--muted); margin: 0 0 22px; }

@media (max-width: 620px) {
  body { padding: 0 16px 40px; }
  .hero { padding: 26px 0 4px; }
  .lead { font-size: 16px; }
  a.btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* --- Black Legion Portal ------------------------------------------------------
   Farben aus dem aktuellen Portal-Theme (https://black-legion.rip/theme-vars.css),
   damit der Bot im Portal wie ein Teil der Seite aussieht. Ohne Theme greifen die
   bisherigen Werte als Rueckfall. */
:root {
  --bg: var(--season-bg, #0b0910);
  --card: var(--season-surface, #16131f);
  --card2: var(--season-raised, #1d1929);
  --line: var(--season-line, #292235);
  --line-soft: color-mix(in srgb, var(--line) 55%, var(--card));
  --text: var(--season-text, #f2eef8);
  --muted: var(--season-muted, #9a92ae);
  --brand: var(--season-accent, #a970ff);
  --brand-dim: var(--season-deep, #7a4fd4);
  --on-brand: var(--season-on-accent, #fff);
}
.portal-back {
  display: inline-block; margin: 14px 0 0 18px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none;
}
.portal-back:hover { color: var(--text); border-color: var(--brand); }
/* Im Portal-iframe: kein zweites Branding, das Portal zeigt Titel und Status. */
.im-portal .portal-back { display: none; }a.btn:not(.ghost) { color: var(--on-brand); }
a.btn.ghost { background: var(--card2); }
a.btn.ghost:hover { background: color-mix(in srgb, var(--card2) 85%, var(--brand)); }
.im-portal .top { justify-content: flex-end; }
.im-portal .top .brand { display: none; }