I tried to remove the white space between the last row and the top/bottomrule and I already found some solutions but I couldn't get them work:
Combining \rowcolor and \cmidrule
The only way I could get that working was by the following example because the direct application of the above linked code resulted in an missing noalign
:
\documentclass[a4paper, 12pt]{article}
\usepackage[table]{xcolor}
\usepackage{longtable}
\usepackage{booktabs}
\definecolor{hellgrau}{gray}{0.9}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\ra{1.3}
\begin{document}
\begin{longtable}{>{\kern-\tabcolsep}lll<{\kern-\tabcolsep}}
\toprule
A & B & C \\
\midrule
\endhead
A & B & C \\
\rowcolor{hellgrau}
A & B & C \\
A & B & C \\
\rowcolor{hellgrau}
A & B & C\\
\specialrule{0.08em}{0pt}{-0.08em}
\arrayrulecolor{black}\\
\caption{Caption}
\label{tab:table}
\end{longtable}
\end{document}
On the downside that duplicates the distance of the caption and looks really disgusting so that I cannot consider this as solution.