Das ist ein bisschen in der Anleitung von fancyhdr versteckt (Abschnitt 12 - The width of the headers and footers, S. 12f).
Code:
\documentclass[11pt,a4paper,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{fancyhdr}
\usepackage[svgnames]{xcolor}
\usepackage{lastpage}
\usepackage{blindtext}
% Kopf- und Fußzeilen
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small\textcolor{gray!75}{Wirtschaftsmathematik/Statistik}}
\fancyhead[C]{}
\fancyhead[R]{\small\textcolor{gray!75}{Quantile und Boxplot}}
\renewcommand{\headrulewidth}{0.5pt}
\fancyfoot[L]{\small\textcolor{gray!75}{Beuth Hochschule für Technik Berlin}}
\fancyfoot[C]{}
\fancyfoot[R]{\small\textcolor{gray!75}{\thepage{} von \pageref{LastPage}}}
\renewcommand{\footrulewidth}{0.5pt}
\renewcommand{\headrule}{{%
\color{gray!75}
\hrule width\headwidth height\headrulewidth
\vskip-\headrulewidth
}}
\renewcommand{\footrule}{{%
\color{gray!75}
\vskip-\footruleskip
\vskip-\footrulewidth
\hrule width\headwidth height\footrulewidth
\vskip\footruleskip
}}
\begin{document}
\blinddocument
\end{document}
MfG
Thorsten¹
Lesezeichen