/* ============================================================
   nyx lightwork — gemeinsames Stylesheet für alle Seiten
   ------------------------------------------------------------
   WICHTIG: Keine externen Ressourcen einbinden (keine Google
   Fonts, kein CDN). Die Datenschutzerklärung sagt zu, dass beim
   Seitenaufruf keine Daten an Dritte übertragen werden — ein
   einziger externer Request macht diese Aussage unwahr.
   ============================================================ */

:root {
  --bg:            #0f1117;
  --bg-raised:     #161b27;
  --bg-sunken:     #0a0c12;
  --border:        #2d3748;
  --border-light:  #4a5568;

  --gold:          #f7c948;
  --gold-soft:     #f6ad55;

  --text:          #e2e8f0;
  --text-sec:      #a0aec0;
  --text-muted:    #8b97a8;   /* Fließtext — bewusst heller als früher (#718096), AA auf --bg-raised */
  --text-dim:      #7a869a;   /* Kleingedrucktes, Footer */

  --radius:        8px;
  --radius-sm:     6px;

  --maxw:          1060px;
  --maxw-text:     760px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Menlo', 'Consolas', 'SFMono-Regular', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ── Header ─────────────────────────────────────────────── */

header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 2rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand .mark {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--gold); }

.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
}
.nav-links a.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(247, 201, 72, 0.08);
  color: var(--gold);
}

/* ── Main / Hero ────────────────────────────────────────── */

main { flex: 1; }

.hero {
  padding: 4.5rem 2rem 3rem;
  max-width: var(--maxw-text);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 580px;
  margin: 0 auto 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: #ffe066; }

.btn-secondary {
  background: transparent;
  color: var(--text-sec);
  border-color: var(--border-light);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta .sep { color: var(--border-light); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48bb78;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Features ───────────────────────────────────────────── */

.features {
  padding: 1rem 2rem 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-group { margin-bottom: 2.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.feature-card .icon {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Hinweis-Banner ─────────────────────────────────────── */

.notice {
  max-width: var(--maxw-text);
  margin: 0 auto 3.5rem;
  background: #1a1600;
  border: 1px solid #3d3000;
  border-left: 3px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice .notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice h2 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}

.notice p {
  font-size: 0.83rem;
  color: #c2a367;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--gold-soft); font-weight: 600; }

/* ── Schritte (How-To) ──────────────────────────────────── */

.steps-section {
  padding: 1rem 2rem 3rem;
  max-width: var(--maxw-text);
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  align-items: flex-start;
}

.step-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
  min-width: 2rem;
}

.step-body { min-width: 0; flex: 1; }

.step-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-body p, .step-body li {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-body ul, .step-body ol { margin: 0.5rem 0 0 1.1rem; }
.step-body li { margin-bottom: 0.25rem; }

.platform-tabs { margin-top: 0.75rem; }

.platform-tabs details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.platform-tabs summary {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.platform-tabs summary::-webkit-details-marker { display: none; }

.platform-tabs summary::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--text-dim);
}

.platform-tabs details[open] summary::before {
  content: '▼';
  color: var(--gold);
}

.platform-tabs details[open] summary { color: var(--text); }

.platform-body {
  padding: 0.6rem 0.9rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

.platform-body ol { margin-left: 1.1rem; }
.platform-body li { margin-bottom: 0.25rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--text-sec);
  word-break: break-word;
}

.note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.subhead {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

/* ── Tabellen ───────────────────────────────────────────── */

.trouble-section {
  padding: 0 2rem 3.5rem;
  max-width: var(--maxw-text);
  margin: 0 auto;
}

.table-wrap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Schmale Viewports: die Tabelle scrollt in sich, statt die Seite zu sprengen */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 420px;
}

th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1e2535;
  color: var(--text-muted);
  vertical-align: top;
}

td:first-child {
  color: var(--text-sec);
  font-weight: 500;
  width: 45%;
}

tr:last-child td { border-bottom: none; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq-section {
  padding: 1rem 2rem 3.5rem;
  max-width: var(--maxw-text);
  margin: 0 auto;
}

.faq-section > .section-label { margin-top: 2rem; }
.faq-section > .section-label:first-child { margin-top: 0; }

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-item[open] { border-color: #3d4f6b; }

.faq-item summary {
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dim);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; color: var(--gold); }
.faq-item[open] summary { color: var(--gold); }

.faq-answer {
  padding: 0.9rem 1.3rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

.faq-answer p + p { margin-top: 0.6rem; }
.faq-answer ul { margin: 0.5rem 0 0 1.1rem; }
.faq-answer li { margin-bottom: 0.25rem; }

/* ── Rechtstexte ────────────────────────────────────────── */

.legal-main {
  flex: 1;
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.toc {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.toc a {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  background: var(--bg-raised);
}

.toc a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--border-light);
}

.legal-section { margin-bottom: 3rem; scroll-margin-top: 1.5rem; }

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-section ul {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.legal-section ul li { margin-bottom: 0.3rem; }

.address-block {
  font-size: 0.85rem;
  color: var(--text-sec);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.address-block strong { color: var(--text); }

.legal-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  gap: 1rem;
  flex-wrap: wrap;
}

footer strong { color: var(--text-muted); font-weight: 600; }

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-dim); font-size: 0.75rem; }
.footer-links a:hover { color: var(--text-sec); text-decoration: none; }

.footer-sep { color: var(--border); }

/* ── Responsiv ──────────────────────────────────────────── */

@media (max-width: 640px) {
  header { padding: 0.7rem 1.1rem; }
  .nav-links { gap: 1rem; font-size: 0.8rem; width: 100%; }

  .hero { padding: 2.75rem 1.25rem 2rem; }
  .features, .steps-section, .faq-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .trouble-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .legal-main { padding: 2rem 1.25rem 3rem; }
  .notice { margin-left: 1.25rem; margin-right: 1.25rem; }

  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }

  /* align-items: stretch ist hier Pflicht: in Spaltenrichtung würde flex-start
     die Kinder auf Inhaltsbreite wachsen lassen — die Tabelle im .table-wrap
     sprengt dann die Seite, statt in sich zu scrollen. */
  .step { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 1.2rem; }
  .step-number { padding-top: 0; }
  .step-body { width: 100%; }

  footer { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.25rem; }
  footer span { white-space: normal; }
}

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