I am trying to create a hierarchy pyramid but I always get an error
"No shape named intersection-1 is known."
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes, arrows.meta, positioning, calc, decorations.pathreplacing, intersections}
\tikzset{every picture/.style={/utils/exec={\sffamily\small}}}
\tikzstyle{textbox} = [rectangle, minimum width = 3.5cm, minimum height = 1cm, rounded corners = 1pt, line width = 1pt, draw = black, align = center]
\tikzstyle{curlyBrace} = [decorate, decoration = {brace, amplitude = 15pt, raise = 2pt}, line width = 1pt, line cap = round]
\tikzstyle{arrow} = [solid, line width = 5pt, -{Triangle[width = 10pt, length = 10pt]}]
\tikzstyle{singleArrow} = [single arrow, minimum width = 1cm, minimum height = 4cm, draw = black, line width = 1pt]
\begin{document}
\begin{tikzpicture}[node distance = 1cm and 1cm, outer sep = 0]
\node [textbox] (hut) {hut};
\node [textbox, right = of hut] (fuss) {fuss};
\node [textbox, right = of fuss] (maus) {maus};
\node [textbox, below = 2cm of hut.west, anchor = west, minimum width = 8cm] (tao) {tao};
\node [textbox, below = 2cm of tao.west, anchor = west, minimum width = 12.5cm] (toll) {toll};
\node [textbox, below = 2cm of toll.west, anchor = west] (wer) {wer)};
\node [textbox, below = 2cm of wer.west, anchor = west] (mode) {mode};
\draw [curlyBrace] (wer.north east) -- (mode.south east);
\coordinate (A) at (6,0) {};
\coordinate (B) at (14,0) {};
\coordinate (C) at (10,4) {};
\draw[name path = AC, line width = 1pt] (A) -- (C);
\draw[name path = BC, line width = 1pt] (B) -- (C);
\foreach \y/\A in
{0/{Hardware/Software/Bauteil},
1/{System/Fahrzeugbereich},
2/Fahrzeugmodell} {
\path[name path = horiz] (A|-0,\y) -- (B|-0,\y);
\draw[line width = 1pt, name intersections = {of = AC and horiz, by = P},
name intersections = {of = BC and horiz, by = Q}] (P) -- (Q)
node[midway, above] {\A};
}
\node [singleArrow, anchor = east, rotate = 270] at (15,0) {Detailgrad};
\end{tikzpicture}
\end{document}
EDIT: Added a different example
How do I place the Triangle and the arrow next to it right under the box "toll" in the bottom right corner so everything is in line?

\path[name path = horiz] (A|-0,\y) -- (B|-0,\y);even mean?Ais a node and cannot be linked to a single number. What did you want to achieve with that syntax? – SebGlav Jul 09 '21 at 14:42\path[name path = horiz] (A|-0,\y) -- (B|-0,\y);for\draw[name path = horiz] (A|-0,\y) -- (B|-0,\y);and you'll see that there is no intersection. You'll probably want this lines in some other place and this is the error. – Juan Castaño Jul 09 '21 at 14:44\drawwas to illustrate where the lines are drawn, not to fix the error, but you need to comment out or remove the code where you usename intersections. Put differently: your triangle is drawn between the y-values of -8 and -1. In your\foreachloop, you draw horizontal lines at y={0, 1, 2}, and find the intersections of your triangle and these lines. But there can be no intersection when all the lines are drawn above the top vertex of the triangle. Adjust either the coordinates of the triangle, or the y-values you use in the loop. – Torbjørn T. Jul 09 '21 at 16:31-|coordinate specification doesn't work just on named coordinates.(A |- 0,\y)is the coordinate that has the x-component ofAand the y-component of(0,\y)(i.e.,\y). – Torbjørn T. Jul 09 '21 at 16:38