:root {
  --bg: #06030d;
  --card: rgba(26, 12, 52, 0.62);
  --line: rgba(168, 85, 247, 0.28);
  --text: #f1ebff;
  --muted: #a99ccb;
  --p1: #7c3aed;
  --p2: #a855f7;
  --p3: #d946ef;
  --ok: #34d399;
  --bad: #fb7185;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--p2); text-decoration: none; }
a:hover { color: #d8b4fe; }

/* ---------- Hintergrund ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 80% -10%, rgba(124, 58, 237, .22), transparent 60%),
  radial-gradient(900px 600px at -10% 110%, rgba(217, 70, 239, .14), transparent 60%),
  linear-gradient(180deg, #06030d, #0b0518 60%, #06030d); }
.bgfx::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(168, 85, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.bgfx i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 18s ease-in-out infinite; }
.bgfx i:nth-child(1) { width: 420px; height: 420px; background: #6d28d9; top: 8%; left: 6%; }
.bgfx i:nth-child(2) { width: 360px; height: 360px; background: #c026d3; top: 55%; right: 4%; animation-delay: -6s; }
.bgfx i:nth-child(3) { width: 300px; height: 300px; background: #4c1d95; bottom: -6%; left: 40%; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(14px); background: rgba(6, 3, 13, .72);
  border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav nav a:not(.btn):hover { color: #fff; text-shadow: 0 0 12px var(--p2); }
.brand { font-weight: 800; letter-spacing: .16em; color: #fff; text-shadow: 0 0 18px rgba(168, 85, 247, .8); }
.brand span { color: var(--p2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(124, 58, 237, .12); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(168, 85, 247, .5); color: #fff; }
.btn.primary { background: linear-gradient(135deg, var(--p1), var(--p3)); border-color: transparent; box-shadow: 0 0 28px rgba(168, 85, 247, .45); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 16px; border-radius: 10px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(72px, 14vh, 150px) 20px clamp(56px, 10vh, 110px); max-width: 920px; margin: 0 auto; }
.eyebrow { color: var(--p2); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin: 0 0 18px; }
.glow-title { margin: 0; font-size: clamp(3rem, 11vw, 7rem); line-height: 1; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff 10%, #c4a1ff 55%, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, .65)) drop-shadow(0 0 60px rgba(124, 58, 237, .4)); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 34px rgba(217, 70, 239, .75)) drop-shadow(0 0 80px rgba(124, 58, 237, .55)); } }
.tagline { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin: 22px auto 34px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .92rem; }
.status[hidden] { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.on .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: blink 2s infinite; }
.status.off .dot { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Abschnitte ---------- */
.block { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vh, 90px) clamp(16px, 4vw, 32px); }
.block h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-shadow: 0 0 24px rgba(168, 85, 247, .55); }
.block h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--p2), var(--p3)); box-shadow: 0 0 14px var(--p2); }
.lead { color: var(--muted); margin: 16px 0 32px; max-width: 640px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .06), 0 10px 40px rgba(0, 0, 0, .35); transition: border-color .25s, box-shadow .25s; }
.card:hover { border-color: rgba(192, 132, 252, .55); box-shadow: 0 0 28px rgba(168, 85, 247, .22), 0 10px 40px rgba(0, 0, 0, .35); }

/* ---------- Connect ---------- */
.connect-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 22px; }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p3)); box-shadow: 0 0 20px rgba(168, 85, 247, .6); }
.step h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }
.connect-card { padding: 24px; position: sticky; top: 92px; }
.connect-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.cmd { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; margin-bottom: 14px; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; font: 600 .95rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e9d5ff; }
.cmd .btn { padding: 7px 14px; font-size: .85rem; }
.connect-card .btn.primary { width: 100%; margin-bottom: 14px; }
.req { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.req li::before { content: "✦"; color: var(--p2); margin-right: 10px; text-shadow: 0 0 10px var(--p2); }
.note { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.pending { color: var(--muted); }

/* ---------- Regeln ---------- */
.tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tabs { display: inline-flex; padding: 5px; gap: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 10px; cursor: pointer; transition: .2s; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--p1), var(--p3)); box-shadow: 0 0 22px rgba(168, 85, 247, .5); }
.search { flex: 1; min-width: 200px; max-width: 360px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: var(--text); font: inherit; }
.search:focus { outline: none; border-color: var(--p2); box-shadow: 0 0 0 3px rgba(168, 85, 247, .25), 0 0 22px rgba(168, 85, 247, .3); }

.rules-head { padding: 24px 28px; margin-bottom: 26px; }
.rules-head h3 { margin: 0 0 10px; font-size: 1.5rem; }
.rules-head p { margin: 0 0 10px; color: var(--muted); }
.stand { display: inline-block; margin-top: 4px; font-size: .85rem; color: var(--p2); }
.sec { margin-bottom: 34px; }
.sec h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.25rem; }
.sec h4 .ic { font-size: 1.4rem; filter: drop-shadow(0 0 10px rgba(168, 85, 247, .8)); }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 22px; margin-bottom: 12px; }
.rule .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #e9d5ff;
  border: 1px solid var(--line); background: rgba(124, 58, 237, .18); box-shadow: inset 0 0 14px rgba(168, 85, 247, .25); }
.rule h5 { margin: 0 0 4px; font-size: 1.05rem; }
.rule p { margin: 0; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.member { padding: 28px 22px; text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p3)); box-shadow: 0 0 0 4px rgba(168, 85, 247, .18), 0 0 34px rgba(168, 85, 247, .6); }
.member h3 { margin: 0; }
.member span { color: var(--p2); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .connect-grid { grid-template-columns: 1fr; }
  .connect-card { position: static; }
  .nav nav a:not(.btn) { display: none; }
  .bgfx i { filter: blur(60px); animation: none; opacity: .4; }
  .btn { min-height: 44px; }
  .search { font-size: 16px; } /* verhindert Zoom auf iOS */
}
@media (max-width: 560px) {
  .nav { padding: 10px 14px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .glow-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .block { padding-top: 40px; padding-bottom: 40px; }
  .tools { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 11px 6px; font-size: .92rem; }
  .search { max-width: none; width: 100%; }
  .step, .rule { gap: 14px; padding: 16px; }
  .rules-head { padding: 18px; }
  .footer { flex-direction: column; text-align: center; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
