:root {
  --bg: #0a0d12;
  --surface: #131822;
  --surface-elevated: #1b2230;
  --border: #263145;
  --text: #eef3fb;
  --muted: #8ea0ba;
  --cyan: #00d1ff;
  --cyan-soft: rgba(0, 209, 255, 0.14);
  --live: #22c55e;
  --live-glow: rgba(34, 197, 94, 0.35);
  --amber: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(circle at top right, rgba(0, 209, 255, 0.09), transparent 42%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--live));
  color: #061018;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link-muted {
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.section-block {
  margin: 26px 0 30px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0 0 6px;
}

.hero {
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.13), rgba(19, 24, 34, 0.96) 55%);
  border-color: rgba(0, 209, 255, 0.35);
  margin-bottom: 24px;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d121a;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  color: var(--text);
}

.step-chip span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.pricing-card.pricing-featured {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.12);
}

.pricing-card.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-soft), 0 0 24px rgba(0, 209, 255, 0.14);
}

.plan-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.price-period {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.feature-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.feature-list li::before {
  content: "✓";
  color: var(--live);
  font-weight: 800;
  position: absolute;
  left: 0;
}

.checkout-card {
  border-color: rgba(0, 209, 255, 0.35);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.45);
}

.narrow {
  max-width: 620px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.field span {
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
input[type="number"],
select {
  background: #0d121a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.actions-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) {
  opacity: 0.94;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--cyan);
  color: #04131c;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-live {
  background: var(--live);
  color: #04190c;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(0, 209, 255, 0.35);
}

.pill-live {
  background: rgba(34, 197, 94, 0.16);
  color: var(--live);
  border: 1px solid var(--live);
}

.pill-amber {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.pill-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.pill-muted {
  background: var(--surface-elevated);
  color: var(--muted);
  border: 1px solid var(--border);
}

.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.mono-id {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
}

.status-sub,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trial-countdown {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: var(--cyan);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.seg-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d121a;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.seg-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wrap-gap {
  flex-wrap: wrap;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.source-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #0d121a;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.source-title {
  font-weight: 600;
}

.source-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  background: #0d121a;
}

.alert.ok {
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
}

.alert.warn {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}

/* Admin Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.code-box {
  font-family: var(--mono);
  background: #0d121a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Web-Player & Grüner Live-Rahmen */
.player-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.player-bar input {
  flex: 1;
  min-width: 240px;
}

.video-stage {
  position: relative;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #040609;
  border: 2px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-stage.is-live {
  border-color: var(--live);
  box-shadow: 0 0 0 2px var(--live-glow), 0 0 28px var(--live-glow);
}

.video-stage video {
  width: 100%;
  max-height: 520px;
  display: block;
  background: #000;
}

.stats-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 13, 18, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #d1fae5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.85);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Modal Legal-Gate */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0, 209, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lead {
  color: var(--text);
  line-height: 1.55;
}

.legal-list {
  color: var(--muted);
  padding-left: 20px;
  line-height: 1.55;
  margin: 14px 0 20px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  cursor: pointer;
  font-size: 0.92rem;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--cyan);
}
