I am using the mdframed package to create these boxes:
\usepackage[framemethod=tikz]{mdframed}
% Shorthands
\newcommand*\iffdef{\overset{\text{def}}{\iff}}
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\DeclarePairedDelimiter\norm{\lVert}{\rVert}
% https://www.google.de/design/spec/style/color.html#color-color-palette
\definecolor{colorBackground}{HTML}{F5F5F5} % Grey 500
\definecolor{colorDefinition}{HTML}{4CAF50} % Green 500
\definecolor{colorNotiz}{HTML}{81D4FA} % Light Blue 200
\definecolor{colorWarnung}{HTML}{FF9800} % Orange 500
\definecolor{colorBeispiel}{HTML}{0288D1} % Light Blue 700
\definecolor{colorSatz}{HTML}{009688} % Teal 500
\mdfdefinestyle{box}{
topline=false,
bottomline=false,
rightline=false,
linewidth=4pt,
backgroundcolor=colorBackground,
frametitlefont=\sffamily\bfseries\color{black},
splittopskip=.5cm,
frametitlebelowskip=.3cm,
}
% Definition
\mdtheorem[
style=box,
linecolor=colorDefinition,
]{Def}{Defintion}[section]
% Notiz
\mdtheorem[
style=box,
linecolor=colorNotiz,
]{Notiz}{Notiz}[section]
% Warnung
\mdtheorem[
style=box,
linecolor=colorWarnung,
]{Warnung}{Warnung}[section]
% Beispiel
\mdtheorem[
style=box,
linecolor=colorBeispiel,
]{Beispiel}{Beispiel}[section]
% Satz
\mdtheorem[
style=box,
linecolor=colorSatz,
]{Satz}{Satz}[section]
Result:

Problem
When I nest one box into another they have the same background color:

I want it so, that the inner box has a darker background color. And if there is a box in a box in a box it should have an even darker background color.
I tried to set the background color to something transparent, so the color would add up if the boxes are nested, but I didn't really find a way to do that.
Does anyone know how to get the inner boxes darker?
Edit
Code to build the boxes in the images:
\section{Eigenwerte}
\begin{Def}
Ein Eigenvektor einer Abbildung ist in der linearen Algebra ein
vom Nullvektor verschiedener Vektor, dessen Richtung durch die
Abbildung nicht verändert wird. Ein Eigenvektor wird also nur
skaliert und man bezeichnet den Skalierungsfaktor als Eigenwert
der Abbildung.
\end{Def}
\section{Rezepte}
\begin{Def}
Sei $\varphi : V \rightarrow W $ linear und $B,B'$ sind Basen von $V$
\begin{align}
D_{B'}(\varphi) = S_{B',B} \cdot D_B(\varphi) \cdot S_{B,B'} = S_{B,B'}^{-1} \cdot D_B(\varphi) \cdot S_{B,B'}
\end{align}
\begin{Notiz}
$D_{B'}$ steht für $D_{B', B'}$
\end{Notiz}
\end{Def}
You can view the project here: https://www.sharelatex.com/project/5583d6ee0b6e7e8821079c47.
