/* =========================================================
   Abschnitt Anchor Navigation (row-layout/navigieren)
   ========================================================= */

.anchor-nav {
	--anchor-nav-cols: 3;              /* Spalten im Menü: 3 oder 2 */
	--anchor-nav-accent: var(--blau, #0074be);
	--anchor-nav-accent-dark: var(--blaudunkel, #066baa);
	--anchor-nav-line: var(--hgrau, #cdd1d8);
	--anchor-nav-text: var(--grau, #3c3c3b);
	padding: 80px 0 40px;
}

.anchor-nav__group + .anchor-nav__group {
	margin-top: 60px;
}

/* Titel: Tag + Klasse aus dem Backend, hier nur Abstand */
.anchor-nav__title {
	margin-bottom: 40px;
}
.anchor-nav__title:focus,
.anchor-nav__section:focus {
	outline: none;
}
.anchor-nav__title-anchor {
	display: block;
}

/* ---------- Menü ---------- */
.anchor-nav__menu {
	margin-bottom: 60px;
}

.anchor-nav .anchor-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: var(--anchor-nav-cols);   /* 01–07 | 08–14 | 15–19 – spaltenweise */
	column-gap: 60px;
}

.anchor-nav__list-item {
	break-inside: avoid;
	margin: 0;
	padding: 0;
}
.anchor-nav__list-item::before {
	display: none;                      /* globale li-Bullets aus */
}

.anchor-nav .anchor-nav__link {
	display: flex;
	align-items: stretch;
	color: var(--black, #000);
	text-decoration: none;
	background: none;
	padding: 0;
}

/* Nummer + senkrechter Strich */
.anchor-nav__link .anchor-nav__num {
	position: relative;
	flex: 0 0 64px;
	display: flex;
	align-items: center;
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	color: var(--anchor-nav-accent);
}
.anchor-nav__link .anchor-nav__num::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 1px;
	height: 26px;
	background: var(--anchor-nav-line);
	transform: translateY(-50%);
}

/* Text + Pfeil mit Linie darunter */
.anchor-nav__label {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-sizing: border-box;
	min-height: 60px;
	padding: 8px 0;
	border-bottom: 0;
}
.anchor-nav__link .anchor-nav__text {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
}
.anchor-nav__arrow {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: var(--anchor-nav-accent);
	transition: transform .2s ease;
}

.anchor-nav__link:hover .anchor-nav__text,
.anchor-nav__link:focus-visible .anchor-nav__text {
	color: var(--anchor-nav-accent);
}
.anchor-nav__link:hover .anchor-nav__arrow,
.anchor-nav__link:focus-visible .anchor-nav__arrow {
	transform: translateX(4px);
}
.anchor-nav__link:hover .anchor-nav__label,
.anchor-nav__link:focus-visible .anchor-nav__label {
	border-bottom-color: transparent;
}

/* ---------- Abschnitte ---------- */
.anchor-nav__section {
	padding: 32px 0;
	border-bottom: 1px solid var(--anchor-nav-line);
}
.anchor-nav__section:first-child {
	padding-top: 0;
}
.anchor-nav__section:last-child {
	border-bottom: 0;
}

.anchor-nav .anchor-nav__section-title {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 20px;
}
.anchor-nav__section-title .anchor-nav__num {
	flex: 0 0 auto;
	color: var(--anchor-nav-accent);
}

/* Inhalt an der Titelzeile nach der Nummer ausrichten */
.anchor-nav__content {
	padding-left: 68px;
}

/* Absätze im Text: 15px Abstand, letzter ohne Innen-/Außenabstand */
.anchor-nav__content p {
	margin: 0;
	padding: 0 0 15px;
}
.anchor-nav__content p:last-child {
	margin: 0;
	padding: 0;
}

/* Listen im Inhalt */
.content-area .anchor-nav .anchor-nav__content ul {
	list-style: none;
	margin: 0;
	padding: 0 0 15px;
}

.content-area .anchor-nav .anchor-nav__content ul:last-child {
	margin: 0;
	padding: 0;
}

.content-area .anchor-nav .anchor-nav__content ul li {
	position: relative;
	padding: 0 0 0 25px;
	margin: 0 0 10px;
}

.content-area .anchor-nav .anchor-nav__content ul li::before {
	content: "";
	background: url("../../img/icon_logo.svg") no-repeat;
	background-size: 100%;
	width: 20px;
	height: 24px;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, .3));
	filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, .3));
}

/* Kurzer Hinweis beim Ansprung */
.anchor-nav__section.is-target .anchor-nav__section-title .anchor-nav__text {
	animation: anchor-nav-flash 1.2s ease;
}
@keyframes anchor-nav-flash {
	0%   { background: rgba(0, 116, 190, .15); }
	100% { background: transparent; }
}

/* ---------- Nach oben ---------- */
.anchor-nav__top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
	color: var(--anchor-nav-accent);
	text-decoration: none;
}
.anchor-nav__top:hover,
.anchor-nav__top:focus-visible {
	color: var(--anchor-nav-accent-dark);
	text-decoration: underline;
}
.anchor-nav__top-icon {
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateY(2px) rotate(45deg);
}

.anchor-nav a:focus-visible {
	outline: 2px solid var(--anchor-nav-accent);
	outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.anchor-nav { --anchor-nav-cols: 2; }
	.anchor-nav__list { column-gap: 40px; }
}
@media (max-width: 575px) {
	.anchor-nav { --anchor-nav-cols: 1; padding: 40px 0 24px; }
	.anchor-nav__menu { margin-bottom: 32px; }
	.anchor-nav__link .anchor-nav__num { flex-basis: 52px; font-size: 22px; }
	.anchor-nav__link .anchor-nav__num::after { right: 10px; height: 22px; }
	.anchor-nav__label { min-height: 52px; }
	.anchor-nav__link .anchor-nav__text { font-size: 17px; }
	.anchor-nav__section { padding: 24px 0; }
	.anchor-nav__content { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.anchor-nav__section.is-target .anchor-nav__section-title .anchor-nav__text {
		animation: none;
	}
}
