:root {
  --purple: #9146ff;
  --purple-hover: #a970ff;
  --purple-link: #bf94ff;
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-hi: #1f1f23;
  --line: rgba(255, 255, 255, .1);
  --text: #efeff1;
  --muted: #adadb8;
  --ok: #00c06a;
  --live: #eb0400;
  --warn: #e3b341;
  --font: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Kopfleiste ---------- */
.topbar {
  background: var(--purple);
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .logo { width: 28px; height: 28px; display: block; }
.brand .words span { display: block; }
.brand .words span:last-child { font-weight: 500; opacity: .9; }

.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-user .who { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 13.5px; }
.topbar-user img { width: 28px; height: 28px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, .35); }
.btn-ghost {
  background: rgba(0, 0, 0, .22);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(0, 0, 0, .34); }

/* ---------- Seitenraster ---------- */
.app {
  max-width: 600px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}
.app.wide { max-width: 720px; }

h1 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 20px; }
h1.hero { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
p { margin: 0 0 14px; }
a { color: var(--purple-link); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 8px;
}

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.panel + .panel { margin-top: 10px; }
.prow {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.prow + .prow, .pfoot { border-top: 1px solid var(--line); }
.prow .label { font-weight: 600; }
.prow .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.prow .value { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .ctl { flex: none; }
.pfoot { padding: 14px 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Status ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .1);
  color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { background: rgba(0, 192, 106, .14); color: #3fdc8f; }
.pill.live { background: var(--live); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.pill.live .dot { background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.pill.warn { background: rgba(227, 179, 65, .15); color: #e8c15e; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Bedienelemente ---------- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 9px 15px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--purple-hover); }
.btn.secondary { background: rgba(255, 255, 255, .13); color: var(--text); }
.btn.secondary:hover { background: rgba(255, 255, 255, .2); }
.btn.danger { background: transparent; color: #ff8d8d; box-shadow: inset 0 0 0 1px rgba(255, 141, 141, .4); }
.btn.danger:hover { background: rgba(255, 141, 141, .1); }
.btn.big { padding: 11px 18px; font-size: 14.5px; }
.btn:disabled { opacity: .5; cursor: default; }

select {
  font: inherit;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
  padding: 7px 10px;
  min-width: 165px;
  cursor: pointer;
}
select:hover { border-color: rgba(255, 255, 255, .35); }

.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  transition: background .12s ease;
  pointer-events: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .12s ease;
}
.switch input:checked + .track { background: var(--purple); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ---------- Startseite ---------- */
.steps { counter-reset: step; }
.steps .prow { align-items: flex-start; justify-content: flex-start; gap: 12px; }
.step-num {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex: none;
}
.step-num.done { background: var(--purple); color: #fff; }

.footer-links { margin-top: 36px; font-size: 12.5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: 26px; margin-bottom: 18px; }
.legal h2 { font-size: 15px; font-weight: 700; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 5px; }

@media (max-width: 520px) {
  .topbar { padding: 0 14px; }
  .topbar-user .who span { display: none; }
  h1.hero { font-size: 32px; }
  .app { padding: 28px 16px 64px; }
  .prow { flex-wrap: wrap; }
  .prow .value, .prow .ctl { text-align: left; }
}
