Yes, you need a pan card for opening demat account.
Trading & demat A/c are two different A/cs but they are generally opened with the same broker. Demat A/c is where you keep your shares, whereas Trading A/c is need ed to buy-sell shares in your demat. You may have these A/cs with different brokers. But I suggest you to open both with same broker.