/**
 * Footer-Sitemap: alle Seiten nach Bereichen, über der Kontaktleiste im
 * Elementor-Footer (Template 159). Inhalt kommt aus dem WordPress-Menü an der
 * Position "Footer" (menu-2), gerendert von ds/footer-sitemap.php.
 *
 * Farbe und Schrift aus dem Elementor-Kit: Hintergrund Accent #697787 wie die
 * Kontaktleiste darunter, Schrift DM Sans. Weiß auf #697787 hat 4,6 : 1, der
 * Hover wird schwarz wie bei E-Mail und Telefon in der Kontaktleiste.
 *
 * Raster wie die Seiteninhalte: boxed 1350 px, 10 px Innenabstand
 * (gemessen am 26.09.2026). Breakpoints wie Elementor: 1024 / 767 px.
 */

.ps-sitemap {
	padding-bottom: 28px;
	background-color: var(--e-global-color-accent, #697787);
	color: #fff;
	font-family: "DM Sans", sans-serif;
}

.ps-sitemap__inner {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0 28px;
	max-width: 1350px;
	margin: 0 auto;
	padding: 72px 10px 72px;
}

/* Trennlinie zur Kontaktleiste, so breit wie der Inhalt. */
.ps-sitemap__inner::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: 0;
	left: 10px;
	border-top: 1px solid rgba(255, 255, 255, .3);
}

/* Jede Spalte belegt zwei Zeilen des Rasters (Überschrift, Liste). Per Subgrid
   beginnen alle Listen einer Reihe auf gleicher Höhe, auch wenn eine
   Überschrift umbricht. Ohne Subgrid-Support stapelt sich die Spalte normal. */
.ps-sitemap__col {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	align-content: start;
	margin-bottom: 28px;
}

/* Elementor-Kit und reset.css setzen h2 groß, mit Rand und eigener Schrift. */
.ps-sitemap .ps-sitemap__title {
	margin: 0 0 16px;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ps-sitemap .ps-sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-sitemap .ps-sitemap__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-sitemap .ps-sitemap__list a {
	display: inline-block;
	padding: 5px 0;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	overflow-wrap: break-word;
	transition: color .2s ease;
}

/* Überschrift mit eigenem Link (Hauptpunkt im Menü nicht "#"). */
.ps-sitemap .ps-sitemap__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ps-sitemap .ps-sitemap__list a:hover,
.ps-sitemap .ps-sitemap__list a:focus,
.ps-sitemap .ps-sitemap__title a:hover,
.ps-sitemap .ps-sitemap__title a:focus {
	color: #000;
}

.ps-sitemap a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Die aktuelle Seite ist unterstrichen. */
.ps-sitemap .ps-sitemap__list a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .25em;
}

/* Desktop: Spalten so breit wie ihr längster Eintrag, der Rest geht
   gleichmäßig in die Abstände. Wird es eng, schrumpfen alle Spalten anteilig
   zu ihrer Breite, Überschriften bleiben einzeilig. */
@media (min-width: 1025px) {
	/* Außenrand, damit die rechte Spalte unter 1390 px nicht am Rand klebt.
	   Darüber zentriert max-width das Raster wie gehabt. */
	.ps-sitemap {
		padding-right: 20px;
		padding-left: 20px;
	}

	.ps-sitemap__inner {
		display: flex;
		justify-content: space-between;
		column-gap: 40px;
	}

	.ps-sitemap__col {
		display: block;
		flex: 0 1 auto;
		margin-bottom: 0;
	}

	.ps-sitemap .ps-sitemap__title {
		font-size: 17px;
		white-space: nowrap;
	}

	.ps-sitemap .ps-sitemap__list a {
		font-size: 17px;
	}
}

/* Tablet: drei Spalten, fünf Bereiche verteilen sich auf zwei Reihen. */
@media (max-width: 1024px) {
	.ps-sitemap__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 32px;
		padding: 56px 20px 32px;
	}

	.ps-sitemap__inner::after {
		right: 20px;
		left: 20px;
	}
}

/* Großes Handy: zwei Spalten, lange Komposita dürfen trennen. */
@media (max-width: 767px) {
	.ps-sitemap {
		padding-bottom: 24px;
	}

	.ps-sitemap__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		padding: 48px 20px 24px;
	}

	.ps-sitemap .ps-sitemap__list a {
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}

/* Handy: eine Spalte, zentriert wie die Kontaktleiste darunter. */
@media (max-width: 479px) {
	.ps-sitemap__inner {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 44px;
		text-align: center;
	}

	.ps-sitemap .ps-sitemap__title {
		margin-bottom: 10px;
	}

	.ps-sitemap .ps-sitemap__list a {
		-webkit-hyphens: manual;
		hyphens: manual;
	}
}

/* ---------------------------------------------------------------
   Sprungmarken von anderen Seiten (/wissen/#faqs, /referenzen/#mehr ...)
   Der Header-Container 30cf4466 ist sticky mit "Anchor Link Offset" 110 px.
   Elementor setzt diesen Versatz aber erst per JavaScript als scroll-margin-top
   auf die Ziele, der Browser springt beim Laden vorher: Die Überschrift lag unter
   dem Header. Gleicher Wert von Anfang an, ohne Spezifität, damit Elementors
   Inline-Wert weiter gilt und nichts doppelt zählt (gemessen am 26.09.2026).
   --------------------------------------------------------------- */
:where(.elementor-element[id], .elementor-menu-anchor[id]) {
	scroll-margin-top: 110px;
}
