/* NetzwerkBOX dedicated styles — DNA from the .liquid: dark stage,
   glassy panel, dramatic cable colors, idle float on the box. */

.nbx {
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(249,230,59,0.04), transparent 60%),
    radial-gradient(900px 600px at 80% 60%, rgba(59,192,249,0.04), transparent 60%),
    radial-gradient(800px 500px at 15% 90%, rgba(188,65,147,0.04), transparent 60%),
    #0d0d0b;
  color: #f3f3ec;
  margin-top: -1px;
  padding-bottom: 0;
  min-height: 100vh;
}

[data-theme="dark"] .nbx { background:
    radial-gradient(1200px 800px at 50% 10%, rgba(249,230,59,0.06), transparent 60%),
    radial-gradient(900px 600px at 80% 60%, rgba(59,192,249,0.06), transparent 60%),
    radial-gradient(800px 500px at 15% 90%, rgba(188,65,147,0.06), transparent 60%),
    #0a0a08;
}

.nbx__crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(243,243,236,0.5);
  margin-bottom: 16px;
}
.nbx__crumb a { color: inherit; }
.nbx__crumb a:hover { color: white; }
.nbx__crumb span { color: rgba(243,243,236,0.3); }

/* ============ STAGE ============ */
.nbx__stage {
  position: relative;
  width: min(1640px, 100% - 32px);
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: 360px 1fr 380px;
  gap: 24px;
  align-items: stretch;
}
.nbx__title {
  padding: 32px 0 0;
  position: relative;
  z-index: 2;
}
.nbx__title h1 {
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
  color: #f3f3ec;
  margin: 12px 0 16px;
}
.nbx__title p {
  color: rgba(243,243,236,0.65);
  max-width: 320px;
  font-size: 15px;
}
.nbx__title-meta {
  display: flex; gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 13px;
  max-width: 320px;
}
.nbx__title-meta span:nth-child(3) { color: var(--cable-yellow); margin-left: auto; font-weight: 600; }

/* === 3D BOX === */
.nbx__box-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 580px;
  pointer-events: none;
}
.nbx__box-svg {
  width: 100%;
  max-width: 720px;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.6));
  pointer-events: auto;
  animation: nbxFloat 6s ease-in-out infinite;
}
.nbx__box-shadow {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}
@keyframes nbxFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .nbx__box-svg { animation: none; }
}

/* === SLOT PANEL === */
.nbx__panel {
  margin: 32px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%),
    rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 2;
}
.nbx__panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nbx__slots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.nbx__slot {
  display: grid;
  grid-template-columns: 28px 70px 1fr auto 24px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nbx__slot:hover { background: rgba(255,255,255,0.04); }
.nbx__slot.is-active { background: rgba(219,0,0,0.12); border-color: rgba(219,0,0,0.4); }
.nbx__slot.is-empty { opacity: 0.5; }
.nbx__slot.is-empty.is-active { opacity: 1; }

.nbx__slot-n {
  font-size: 10px;
  color: rgba(243,243,236,0.4);
  font-weight: 600;
}
.nbx__slot-pill {
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  color: #0d0d0b;
  font-family: var(--font-mono);
}
.nbx__slot-sku { font-size: 11px; color: rgba(243,243,236,0.5); }
.nbx__slot-empty {
  color: rgba(243,243,236,0.4);
  font-size: 12px;
  grid-column: 2 / span 4;
}
.nbx__slot.is-active.is-empty .nbx__slot-empty { color: var(--ks-red); }
.nbx__slot-price { font-size: 13px; font-weight: 600; }
.nbx__slot-x {
  background: transparent; border: 0; cursor: pointer;
  color: rgba(243,243,236,0.4);
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.nbx__slot-x:hover { color: var(--ks-red); }

.nbx__total {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 20px 0 0;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nbx__total-v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--cable-yellow); }

.nbx__panel-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
}
.nbx__panel-foot a { color: rgba(243,243,236,0.4); }
.nbx__panel-foot a:hover { color: white; }

/* ============ CONFIG BAR ============ */
.nbx__configbar {
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nbx__configbar-inner {
  display: grid;
  grid-template-columns: auto 1.4fr 1.8fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
}
.nbx__configbar-h { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.08); min-width: 160px; }

.nbx__field { min-width: 0; }
.nbx__field-h {
  display: flex; justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.nbx__field-h .mono { color: rgba(243,243,236,0.5); }
.nbx__field-v { color: var(--cable-yellow); font-weight: 600; }

.nbx__lengths {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.nbx__len {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  height: 44px;
  cursor: pointer;
  color: rgba(243,243,236,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.nbx__len:hover { background: rgba(255,255,255,0.08); }
.nbx__len.is-active { background: var(--ks-red); border-color: var(--ks-red); color: white; }
.nbx__len .mono { font-size: 15px; font-weight: 600; }
.nbx__len small { font-size: 10px; opacity: 0.7; margin-left: 2px; }

.nbx__colors {
  display: flex; gap: 8px;
}
.nbx__color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s;
}
.nbx__color:hover { transform: scale(1.08); }
.nbx__color.is-active {
  border-color: white;
  box-shadow: 0 0 0 3px var(--ks-red);
}

.nbx__assign {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 60px;
  gap: 2px;
  line-height: 1.1;
}
.nbx__assign .mono { font-size: 12px; }

/* ============ FERTIGE BOXEN ============ */
.nbx__finished {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.nbx__finished:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); }
.nbx__finished-cables {
  height: 88px;
  display: flex; gap: 0;
  background: #0a0a08;
  position: relative;
}
.nbx__finished-cable {
  flex: 1;
  margin: 12px 1px;
  border-radius: 999px;
}
.nbx__finished h3 { color: #f3f3ec; }

/* SectionHeader inverse styling within .nbx */
.nbx .sh__title { color: #f3f3ec; }
.nbx .eyebrow   { color: rgba(243,243,236,0.55); }
.nbx .card      { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #f3f3ec; }
.nbx .card p    { color: rgba(243,243,236,0.6); }

/* Responsive */
@media (max-width: 1280px) {
  .nbx__stage { grid-template-columns: 1fr; min-height: auto; }
  .nbx__title { padding: 24px 0; text-align: center; }
  .nbx__title p, .nbx__title-meta { margin-left: auto; margin-right: auto; }
  .nbx__box-wrap { min-height: 420px; }
  .nbx__panel { margin: 0 0 24px; }
  .nbx__configbar-inner { grid-template-columns: 1fr; gap: 16px; }
  .nbx__configbar-h { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 0 16px; }
}
