I want to create a table in LaTeX that looks exacly like the following: 
I already tried some things but I find it difficult to get the rotated caption right in addidion with the headers (header a, b and c). Also, I want to include this table in a document with a lot of text and make sure it has textwidth. The command {\textwidth} threw an error in my case. Additionally, I am also struggling with having text over multiple rows in the same field.
Any hints will be appreciated a lot! Ideal would be a solution that solves all my problems and is easy to adapt (since I only used placeholder text of course). Please no solutions where any lengths are hardcoded.
I already tried the following:
\begin{center}
\begin{table}
\centering
\begin{tabular}{|c|l|r|r|r|r|}
\hline
& \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{Text} & \multicolumn{1}{c|}{Text} & \multicolumn{1}{c|}{Text} & \multicolumn{1}{c|}{text}\\
\hline
\parbox[p]{2mm}{\multirow{9}{*}{\rotatebox[origin=c]{90}{long caption here}}} & &&&&\\
\hline
& text text text text & jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj&&&\\
\hline
& text text text text & a lot of text here hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh&&&\\
\hline
\end{tabular}
\end{table}
\end{center}
However, this has two problems:
- the caption is outside the box
- my table is way too big to fit in my document - I want it to have textwidth. I tried adding {\textwidth} after \begin{center}, but this did not help. I am new to LaTeX so I am struggling with searching for the right concepts. I would appreaciate tipps what to look for or how to solve my problems.
