/* ────────────────────────────────────────────────────────────────────────
   NetzCloud Studio – zentrales Stylesheet (ergänzend zu Tailwind)
   Farbschema: Primär #3B82F6 · Sekundär #2563EB · Hintergrund #0F172A
               Karten #1E293B · Akzent Cyan #22D3EE
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --nc-bg: #0F172A;
  --nc-card: #1E293B;
  --nc-primary: #3B82F6;
  --nc-secondary: #2563EB;
  --nc-accent: #22D3EE;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Glassmorphism ─────────────────────────────────────────────────────── */

.glass {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-strong {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nc-glow { box-shadow: 0 0 60px rgba(59, 130, 246, 0.18); }
.nc-glow-sm { box-shadow: 0 0 18px rgba(59, 130, 246, 0.35); }

.nc-hero-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 80%;
  background:
    radial-gradient(600px 320px at 30% 40%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(500px 280px at 75% 30%, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}

/* ── Text & Code ───────────────────────────────────────────────────────── */

.nc-gradient-text {
  background: linear-gradient(90deg, var(--nc-primary), var(--nc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nc-code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.375rem;
  padding: 0.1rem 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  color: #a5f3fc;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn-primary,
.btn-ghost,
.btn-twitch,
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nc-primary), var(--nc-secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(59, 130, 246, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

.btn-twitch {
  background: #9146FF;
  color: #fff;
  box-shadow: 0 4px 20px rgba(145, 70, 255, 0.35);
}
.btn-twitch:hover { transform: translateY(-1px); background: #a15dff; }

.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

/* ── Formulare ─────────────────────────────────────────────────────────── */

.nc-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nc-input::placeholder { color: #64748b; }
.nc-input:focus { border-color: var(--nc-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.nc-input option { background: var(--nc-card); color: #fff; }

.nc-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  cursor: pointer;
}
.nc-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--nc-primary);
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem;
  color: #94a3b8;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.08));
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
#dash-sidebar.open { transform: translateX(0); }

/* ── Transparenz-Schachbrett (Overlay-Vorschau) ────────────────────────── */

.nc-checker {
  background-color: #101a30;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}

/* ── Rechtliche Seiten (Prosa) ─────────────────────────────────────────── */

.prose-nc h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.prose-nc h2:first-child { margin-top: 0; }
.prose-nc p, .prose-nc li { color: #94a3b8; font-size: 0.925rem; line-height: 1.75; }
.prose-nc p { margin-bottom: 0.9rem; }
.prose-nc ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 0.9rem; }
.prose-nc a { color: #67e8f9; text-underline-offset: 2px; }
.prose-nc a:hover { text-decoration: underline; }
.prose-nc code { background: rgba(255,255,255,0.07); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.85em; color: #a5f3fc; }
.prose-nc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.prose-nc th { text-align: left; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 0.5rem 0.75rem 0.5rem 0; }
.prose-nc td { color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.6rem 0.75rem 0.6rem 0; vertical-align: top; }

/* ── Animationen ───────────────────────────────────────────────────────── */

@keyframes nc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-float { animation: nc-float 4s ease-in-out infinite; }

@keyframes nc-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(34, 211, 238, 0); }
}
.pulse-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--nc-accent);
  animation: nc-pulse 2s ease-in-out infinite;
}

/* ── Scrollbar & Fokus ─────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B1120; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 6px; border: 2px solid #0B1120; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

:focus-visible {
  outline: 2px solid var(--nc-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

details > summary::-webkit-details-marker { display: none; }

/* ── Reduzierte Bewegung respektieren ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Widget-Bibliothek: Kategorie-Chips ────────────────────────────────── */
.wf-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wf-chip:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.wf-active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.12));
}
