/* KI Agent Startseite — Szenen, Effekte, Voice-Player */

.nx-logo { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--red);
  box-shadow: 0 0 14px rgba(255, 74, 42, .7), inset 0 0 8px rgba(255, 74, 42, .6); position: relative; }
.nx-logo::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--red); animation: nxBreath 2.4s ease-in-out infinite; }
@keyframes nxBreath { 50% { transform: scale(.6); opacity: .6; } }

.nx-glow { text-shadow: 0 0 30px rgba(255, 74, 42, .55), 0 0 80px rgba(255, 74, 42, .25); }

/* Headline: Zeilen fahren maskiert hoch */
.nx-split { overflow: hidden; }
.nx-split > i { display: inline-block; font-style: normal; animation: nxUp 1s var(--ease-out) both; }
@keyframes nxUp { from { transform: translateY(105%); } }

/* Hero-Linien */
#nx-links path { fill: none; stroke: rgba(255, 74, 42, .45); stroke-width: 1; stroke-dasharray: 4 6; animation: nxDash 1.6s linear infinite; }
@keyframes nxDash { to { stroke-dashoffset: -20; } }

.nx-field { padding: .65rem .85rem; border-radius: .5rem; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 74, 42, .2); color: #e2e8f0; }

/* Workflow-Schritte */
.nx-step { position: relative; padding: .85rem 1rem; border-radius: .6rem; border: 1px solid rgba(255, 255, 255, .06); color: #64748b;
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease; }
.nx-step > span { color: #475569; margin-right: .75rem; }
.nx-step::after { content: attr(data-out); display: block; margin-top: .3rem; font-size: .75rem; color: #ffb08a; min-height: 1.1rem; opacity: 0; transform: translateY(-4px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.nx-step.run { color: #fff; border-color: rgba(255, 74, 42, .6); background: rgba(255, 74, 42, .08); }
.nx-step.done { color: #cbd5e1; border-color: rgba(52, 211, 153, .35); }
.nx-step.done > span { color: #34d399; }
.nx-step.done::after { opacity: 1; transform: none; }

/* Orbit */
.nx-sat { position: absolute; left: 50%; top: 50%; width: 76px; margin: -38px 0 0 -38px; text-align: center; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #94a3b8; letter-spacing: .08em; will-change: transform; }
.nx-sat b { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%;
  background: rgba(14, 12, 10, .9); border: 1px solid rgba(255, 74, 42, .35); color: #fff; font-size: 13px;
  transition: background 300ms ease, box-shadow 300ms ease, border-color 300ms ease; }
.nx-sat.on b { background: #ff4a2a; border-color: #ff4a2a; box-shadow: 0 0 25px rgba(255, 74, 42, .8); }
.nx-sat.on { color: #fff; }

/* FAQ */
.nx-faq summary { cursor: pointer; list-style: none; font-weight: 600; color: #fff; display: flex; justify-content: space-between; gap: 1rem; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: "+"; font-family: 'JetBrains Mono', monospace; color: var(--red); transition: transform 300ms var(--ease-out); }
.nx-faq[open] summary::after { transform: rotate(45deg); }
.nx-faq p { margin-top: .75rem; color: #94a3b8; font-size: .92rem; line-height: 1.7; }
.nx-faq a { color: #ffb08a; text-decoration: underline; text-underline-offset: 3px; }

.nx-magnet { transition: transform 250ms var(--ease-out), box-shadow 300ms ease, background 200ms ease; }

/* ---------- Voice-Player / Cutscene ---------- */
[data-cue] { transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out), filter 600ms var(--ease-out), box-shadow 600ms var(--ease-out), border-color 400ms ease; }
body.cs-active [data-cue].cs-dim { opacity: .28; filter: saturate(.4) blur(1px); }
[data-cue].cs-focus { transform: translateY(-4px) scale(1.03); border-color: rgba(255, 74, 42, .8) !important; box-shadow: 0 0 40px rgba(255, 74, 42, .45); position: relative; z-index: 5; }
[data-cue].cs-pulse { animation: csPulse 1.1s var(--ease-out) infinite; }
@keyframes csPulse { 0%, 100% { box-shadow: 0 0 25px rgba(255, 74, 42, .4); } 50% { box-shadow: 0 0 70px rgba(255, 74, 42, .9); } }
[data-cue].cs-scan { animation: csScan 1.4s var(--ease-out); }
@keyframes csScan { from { filter: brightness(2.2) drop-shadow(0 0 30px rgba(255, 74, 42, .9)); } to { filter: none; } }
#cs-spotlight { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0; transition: opacity 700ms var(--ease-out);
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0 180px, rgba(0, 0, 0, .78) 320px); }
#cs-spotlight.on { opacity: 1; }
#cs-player { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 32px));
  transition: transform 500ms var(--ease-spring), opacity 400ms var(--ease-out); }
#cs-player.cs-mini #cs-caption { display: none; }
#cs-player .cs-wave span { display: inline-block; width: 3px; height: 18px; margin: 0 1px; border-radius: 2px; background: #ff4a2a;
  transform: scaleY(.33); transition: transform 120ms ease; }
#cs-caption mark { background: none; color: #fff; text-shadow: 0 0 12px rgba(255, 74, 42, .9); }
#cs-caption span { color: #64748b; }

@media (max-width: 640px) { #cs-player { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .nx-split > i { animation: none; }
  #nx-links path, .nx-logo::after { animation: none; }
}

/* Creator-Logo: schwebt, glüht, kippt mit der Maus */
.nx-logo-stage { perspective: 900px; position: relative; display: grid; place-items: center; }
.nx-logo-stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 74, 42, .55), transparent 65%); filter: blur(30px); animation: nxBreath 3.2s ease-in-out infinite; }
.nx-crazy { position: relative; width: 100%; max-width: 320px; height: auto; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--ease-out);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 24px rgba(255, 74, 42, .45));
  animation: nxFloat 5s ease-in-out infinite; }
@keyframes nxFloat { 50% { translate: 0 -12px; } }
#creator.no-logo .nx-logo-stage { display: none; }
#creator.no-logo > div { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .nx-crazy, .nx-logo-stage::before { animation: none; } }

/* ---------- Astra look: editorial serif, ice-blue → violet, soft light ---------- */
:root { --ice: #f6ead2; --blue: #ff4a2a; --violet: #ffb347; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
main h1, main h2 { font-family: var(--serif) !important; font-weight: 400 !important; text-transform: none !important;
  letter-spacing: -0.025em !important; line-height: 1.02 !important; color: var(--ice); }
main h1 em, main h2 em { font-style: italic; }
.nx-glow { text-shadow: none; font-style: italic; }
.nx-glow em { display: inline-block; padding: 0 .08em .06em; background: linear-gradient(100deg, #ffe9c4 0%, var(--blue) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(255, 122, 89, .35)); }
/* hero: copy sits below the core, the core floats behind the headline */
#hero p, #hero ul { text-shadow: 0 1px 18px rgba(5, 8, 8, .95), 0 0 2px rgba(5, 8, 8, .8); }
#hero h1 { font-size: clamp(2.6rem, 6.2vw, 6rem) !important; }
/* The core is the backdrop of the whole page: fixed, and the scene descends with the scroll */
#nx-sphere { position: fixed !important; inset: 0; width: 100vw !important; height: 100vh !important; z-index: 0;
  opacity: 0; transition: opacity 1.6s var(--ease-out); }
main, footer { position: relative; z-index: 1; }
#woche { background: rgba(5, 8, 8, .35) !important; }
#nx-sphere.ready { opacity: 1; }
.nx-logo { border-color: var(--blue); background: radial-gradient(circle at 35% 30%, #fff, var(--blue) 45%, var(--violet) 80%); box-shadow: 0 0 18px rgba(255, 122, 89, .7); }
.nx-logo::after { display: none; }
.nx-node { background: rgba(10, 14, 14, .42) !important; }
.nx-step.run { border-color: rgba(255, 150, 110, .5); background: rgba(255, 74, 42, .07); }
#nx-links path { stroke: rgba(255, 190, 150, .28); }
.decode { font-variant-ligatures: common-ligatures; }
::selection { background: rgba(255, 150, 110, .35); color: #fff; }
/* legibility over the luminous core */
#hero h1, #finale h2 { text-shadow: 0 2px 30px rgba(5, 8, 8, .85), 0 0 2px rgba(5, 8, 8, .6); }
#finale .nx-glow em { background: none; color: #fff; filter: none; text-shadow: 0 0 34px rgba(255, 179, 71, .95), 0 2px 24px rgba(5, 8, 8, .9); }
#finale > div { transform: translateY(-14vh); }
