/**
 * Ergonomie in Concept (/ergonomie-in-concept-prinzip/, Seite 7980), OpenProject #2039.
 *
 * Nur Komponenten, die Elementor nicht selbst gestaltet: Einstieg, Inhaltsverzeichnis, Kennzahlen, Haltung,
 * Hinweisboxen, Listen, 4SE-Karten, Prozess, Urkunde, Autorenbox, Institutionen, Checks, FAQ, Kontakt, Quellen,
 * Druck. Farben und Schrift aus dem Elementor-Kit wie auf /vela-trippelstuhl/ und /hag-buerostuehle/:
 * Akzent #697787, Creme #F5F3F1, Salbei #D5D9DE, DM Sans, kleine Schrift auf hellem Grund in Schiefer #4A5663.
 * Alle Regeln hängen an .ps-eic (Klasse der Abschnitte), nichts wirkt außerhalb. Geladen nur auf dieser Seite.
 */

.ps-eic {
	--ps-akzent: var(--e-global-color-accent, #697787);
	--ps-creme: var(--e-global-color-secondary, #F5F3F1);
	--ps-salbei: #D5D9DE;
	--ps-linie: #C9CED4;
	/* Kleine Schrift auf hellem Grund: Akzent schafft auf Creme nur 4,1 : 1, Schiefer 5,3 bis 7,5 : 1 */
	--ps-schiefer: #4A5663;
	--ps-kopf: 110px;
}

/* Sprungmarken und Fokus unter dem fixierten Header (87 px Desktop, 75 px mobil), wie auf /ergonomie/:
   scroll-padding-top am Dokument wirkt auch beim Tabben (WCAG 2.4.11), scroll-margin-top der Ziele kommt hinzu,
   zusammen 110 px. ds/footer-sitemap.css setzt global 110 px scroll-margin-top, hier per !important auf 10 px,
   sonst zählte es doppelt. :root und !important, weil WordPress für die Admin-Leiste html { scroll-padding-top } setzt. */
html:root {
	scroll-padding-top: 100px !important;
	scroll-padding-bottom: 24px;
}

html:root:has(> body.admin-bar) {
	scroll-padding-top: 132px !important;
}

@media (max-width: 782px) {
	html:root:has(> body.admin-bar) {
		scroll-padding-top: 146px !important;
	}
}

.ps-eic[id],
.ps-eic [id] {
	scroll-margin-top: 10px !important;
}

/* ---------- Grundlagen ---------- */

.ps-eic .elementor-widget-text-editor p:last-child,
.ps-eic .elementor-widget-text-editor ul:last-child,
.ps-eic .elementor-widget-text-editor ol:last-child,
.ps-eic .elementor-widget-text-editor dl:last-child {
	margin-bottom: 0;
}

.ps-eic .ps-eyebrow p,
.ps-eic .ps-klein p:last-child {
	margin: 0;
}

/* Textlinks: Akzent schafft auf Creme und Salbei keinen ausreichenden Kontrast, deshalb schwarz und unterstrichen.
   Das Kit setzt .elementor-kit-9 a { font-size: 18px }, Links erben hier die Größe ihres Absatzes. */
.ps-eic .elementor-widget-text-editor a,
.ps-eic .ps-toc a,
.ps-eic .ps-quellen a,
.ps-eic figcaption a {
	color: #000;
	font-size: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

.ps-eic .elementor-widget-text-editor a:hover,
.ps-eic .ps-quellen a:hover,
.ps-eic figcaption a:hover {
	color: var(--ps-schiefer);
	text-decoration-thickness: 2px;
}

.ps-eic a:focus-visible,
.ps-eic summary:focus-visible {
	outline: 2px solid var(--ps-akzent);
	outline-offset: 3px;
}

.ps-eic .ps-textlink a {
	font-weight: 600;
}

/* Geschütztes Leerzeichen vor dem Pfeil, damit er nie allein in einer Zeile steht */
.ps-eic .ps-textlink a[target="_blank"]::after,
.ps-eic .ps-netzlinks a::after {
	content: "\00a0\2197" / "";
}

/* Quellenverweise [n] */
.ps-eic .ps-ref {
	margin-left: 2px;
	font-size: 11px;
	font-weight: 500;
	line-height: 0;
	white-space: nowrap;
}

.ps-eic .ps-ref a {
	color: var(--ps-schiefer);
	font-size: inherit;
	text-decoration: none;
}

.ps-eic .ps-ref a:hover,
.ps-eic .ps-ref a:focus-visible {
	color: #000;
	text-decoration: underline;
}

/* Keine Einzelwörter in Überschriften */
.ps-eic .elementor-heading-title,
.ps-eic h3,
.ps-eic summary,
.ps-eic .elementor-button-text {
	text-wrap: balance;
}

.ps-eic .elementor-widget-text-editor p {
	text-wrap: pretty;
}

/* Lange Wörter (Arbeitsplatzanforderungen, Ergonomie-in-Concept-Prinzip) auf schmalen Bildschirmen umbrechen */
.ps-eic .elementor-heading-title,
.ps-eic .elementor-widget-text-editor,
.ps-eic .e-n-accordion-item-title-text {
	overflow-wrap: break-word;
	hyphens: manual;
}

/* Nur auf sehr schmalen Bildschirmen trennen, sonst laufen Wörter wie ARBEITSPLATZGESTALTUNG über */
@media (max-width: 360px) {
	.ps-eic .elementor-heading-title {
		hyphens: auto;
	}
}

/* Zwischenüberschriften im Artikel etwas abgesetzt vom vorherigen Absatz */
.ps-eic .ps-eic-teil > .elementor-widget-heading:has(h3) {
	margin-top: 14px;
}

/* ---------- Einstieg ---------- */

.ps-eic .ps-lead p {
	color: #000;
}

.ps-eic .ps-hero-rechts {
	align-items: center;
}

.ps-eic .ps-hero-bild,
.ps-eic .ps-hero-bild figure {
	margin: 0;
}

.ps-eic .ps-hero-bild img {
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin: 0 auto;
	border: 1px solid var(--ps-linie);
	background: #fff;
	box-shadow: 0 18px 40px rgba(37, 46, 56, .14);
}

.ps-eic .ps-byline {
	color: var(--ps-schiefer);
	line-height: 1.55;
}

.ps-eic .ps-byline a {
	color: #000;
	font-weight: 600;
}

@media (max-width: 767px) {
	.ps-eic .ps-hero-bild img {
		max-width: 240px;
	}
}

/* ---------- Artikel: Inhaltsverzeichnis links, Inhalt rechts ---------- */

.ps-eic .ps-eic-layout {
	align-items: start;
}

.ps-eic .ps-toc-spalte {
	align-self: stretch;
}

.ps-eic .ps-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ps-eic .ps-toc li {
	margin: 0;
}

.ps-eic .ps-toc a {
	display: block;
	padding: 9px 0 9px 14px;
	border-left: 2px solid transparent;
	color: #000;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
}

.ps-eic .ps-toc a:hover {
	color: var(--ps-schiefer);
	text-decoration: underline;
	text-underline-offset: .22em;
}

.ps-eic .ps-toc a[aria-current="true"] {
	border-left-color: var(--ps-akzent);
	font-weight: 600;
}

.ps-eic .ps-toc-titel,
.ps-eic .ps-toc-liste > summary {
	margin: 0;
	color: var(--ps-schiefer);
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
}

@media (min-width: 1025px) {
	/* Läuft beim Scrollen mit, bleibt unter dem fixierten Header und scrollt in sich, wenn das Fenster niedrig ist */
	.ps-eic .ps-toc-widget {
		position: sticky;
		top: var(--ps-kopf);
		max-height: calc(100vh - var(--ps-kopf) - 20px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.ps-eic .ps-toc-titel {
		padding: 0 0 12px 16px;
		border-bottom: 1px solid var(--ps-linie);
	}

	.ps-eic .ps-toc-liste > summary {
		display: none;
	}

	.ps-eic .ps-toc ol {
		padding-top: 8px;
	}
}

@media (max-width: 1024px) {
	.ps-eic .ps-toc-titel {
		display: none;
	}

	.ps-eic .ps-toc-liste {
		border: 1px solid var(--ps-linie);
		border-radius: 8px;
		background: var(--ps-creme);
	}

	.ps-eic .ps-toc-liste > summary {
		display: flex;
		gap: 16px;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 12px 18px;
		list-style: none;
		cursor: pointer;
	}

	.ps-eic .ps-toc-liste > summary::-webkit-details-marker {
		display: none;
	}

	.ps-eic .ps-toc-liste > summary::after {
		content: "+" / "";
		color: var(--ps-akzent);
		font-size: 24px;
		font-weight: 400;
		line-height: 1;
	}

	.ps-eic .ps-toc-liste[open] > summary::after {
		content: "\2212" / "";
	}

	.ps-eic .ps-toc ol {
		padding: 0 18px 12px;
		border-top: 1px solid var(--ps-linie);
		columns: 2;
		column-gap: 32px;
	}

	.ps-eic .ps-toc li {
		break-inside: avoid;
	}

	.ps-eic .ps-toc a {
		padding: 11px 0 11px 12px;
	}
}

@media (max-width: 600px) {
	.ps-eic .ps-toc ol {
		columns: 1;
	}
}

/* Artikelspalte: Abschnitte untereinander, H2 etwas kleiner als im Kit, damit lange Fragen nicht vierzeilig werden */
.ps-eic .ps-eic-teil .elementor-widget-heading h2.elementor-heading-title {
	font-size: 28px;
}

@media (max-width: 767px) {
	.ps-eic .ps-eic-teil .elementor-widget-heading h2.elementor-heading-title {
		font-size: 23px;
	}
}

/* ---------- Kennzahlen (dl) ---------- */

.ps-eic .ps-keyfacts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 4px 0;
}

.ps-eic .ps-keyfacts > div {
	padding: 18px 20px;
	border-top: 3px solid var(--ps-akzent);
	border-radius: 0 0 8px 8px;
	background: var(--ps-creme);
}

.ps-eic .ps-keyfacts dt {
	margin: 0 0 8px;
	color: var(--ps-schiefer);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.3px;
	line-height: 1.4;
	text-transform: uppercase;
}

.ps-eic .ps-keyfacts dd {
	margin: 0;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.ps-eic .ps-keyfacts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Haltung, Hinweise, Merksatz ---------- */

.ps-eic .ps-zitat p {
	margin: 0;
	color: #000;
	font-family: "DM Sans", sans-serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.ps-eic .ps-zitat p {
		font-size: 22px;
	}
}

.ps-eic .ps-hinweis {
	border-left: 3px solid var(--ps-akzent);
	border-radius: 0 8px 8px 0;
}

.ps-eic .ps-hinweis .elementor-widget-text-editor {
	font-size: 17px;
	line-height: 1.6;
}

.ps-eic .ps-merksatz p {
	margin: 0;
	padding: 18px 0;
	border-top: 1px solid var(--ps-linie);
	border-bottom: 1px solid var(--ps-linie);
	font-size: 19px;
	line-height: 1.45;
}

/* ---------- Listen wie auf /ergonomie/ (Plus und Linien) ---------- */

.ps-eic .ps-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-eic .ps-liste li {
	position: relative;
	margin: 0;
	padding: 11px 0 11px 28px;
	border-bottom: 1px solid var(--ps-linie);
	line-height: 1.5;
}

.ps-eic .ps-liste li:first-child {
	border-top: 1px solid var(--ps-linie);
}

.ps-eic .ps-liste li::before {
	content: "+" / "";
	position: absolute;
	top: 10px;
	left: 4px;
	color: var(--ps-akzent);
	font-weight: 600;
}

/* ---------- 4SE-Modell ---------- */

.ps-eic .ps-modellkarte .ps-nummer p {
	margin: 0;
	color: var(--ps-schiefer);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
}

.ps-eic .ps-modellkarte .elementor-widget-text-editor:not(.ps-klein) p {
	font-size: 17px;
	line-height: 1.5;
}

.ps-eic .ps-stichworte {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--ps-linie);
}

/* ---------- Prozess (4 Schritte, Linien wie auf /vela-trippelstuhl/) ---------- */

.ps-eic .ps-prozess {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 20px;
	margin: 4px 0;
	padding: 0;
	list-style: none;
	counter-reset: ps-schritt;
}

.ps-eic .ps-prozess li {
	margin: 0;
	padding: 16px 0 4px;
	border-top: 2px solid var(--ps-akzent);
	counter-increment: ps-schritt;
}

.ps-eic .ps-prozess li::before {
	content: counter(ps-schritt, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	color: var(--ps-schiefer);
	font-size: 14px;
	font-weight: 700;
}

.ps-eic .ps-prozess strong {
	display: block;
	margin-bottom: 6px;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.ps-eic .ps-prozess span {
	display: block;
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.ps-eic .ps-prozess {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 24px;
	}
}

@media (max-width: 480px) {
	.ps-eic .ps-prozess {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Urkunde ---------- */

.ps-eic .ps-urkunde figure {
	margin: 0;
	padding: 20px;
	border-radius: 10px;
	background: var(--ps-creme);
}

.ps-eic .ps-urkunde img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ps-linie);
	background: #fff;
}

.ps-eic .ps-urkunde figcaption {
	margin-top: 14px;
	font-style: normal;
	color: var(--ps-schiefer);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}

.ps-eic .ps-pdf {
	display: inline-block;
	margin-top: 4px;
	padding: 6px 0;
	font-weight: 600;
}

.ps-eic .ps-pdf::before {
	content: "\2193\00a0" / "";
}

.ps-eic .ps-zertifikat-spalten .ps-liste li {
	font-size: 17px;
}

/* ---------- Autorenbox ---------- */

.ps-eic .ps-portrait img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

/* ---------- Institutionen ---------- */

.ps-eic .ps-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 18px;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--ps-linie);
}

.ps-eic .ps-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
}

.ps-eic .ps-logo a:hover,
.ps-eic .ps-logo a:focus-visible {
	box-shadow: inset 0 0 0 2px var(--ps-akzent);
}

.ps-eic .ps-institution .elementor-widget-text-editor:not(.ps-eyebrow) p {
	font-size: 17px;
	line-height: 1.55;
}

@media (max-width: 767px) {
	.ps-eic .ps-logo a {
		min-height: 120px;
	}

	.ps-eic .ps-logo img {
		max-height: 96px;
	}
}

.ps-eic .ps-netzlinks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
}

.ps-eic .ps-netzlinks a {
	display: inline-block;
	padding: 6px 0;
}

/* ---------- Checks (nummerierte Liste mit Linien wie auf /vela-trippelstuhl/) ---------- */

.ps-eic .ps-checks {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ps-check;
}

.ps-eic .ps-checks li {
	position: relative;
	margin: 0;
	padding: 22px 0 24px 56px;
	border-top: 1px solid var(--ps-linie);
	counter-increment: ps-check;
}

.ps-eic .ps-checks li:last-child {
	border-bottom: 1px solid var(--ps-linie);
}

.ps-eic .ps-checks li::before {
	content: counter(ps-check, decimal-leading-zero);
	position: absolute;
	top: 26px;
	left: 0;
	color: var(--ps-schiefer);
	font-size: 15px;
	font-weight: 700;
}

.ps-eic .ps-checks h3 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
}

.ps-eic .ps-checks p {
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.ps-eic .ps-checks li {
		padding-left: 42px;
	}

	.ps-eic .ps-checks h3 {
		font-size: 18px;
	}
}

/* ---------- FAQ: natives Nested Accordion wie auf /hag-buerostuehle/ ---------- */

.ps-eic .ps-faq-akkordeon .e-n-accordion-item {
	border-bottom: 1px solid var(--ps-linie);
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item:first-child {
	border-top: 1px solid var(--ps-linie);
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title {
	padding: 20px 4px 20px 0;
	border: 0;
	background: transparent;
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title-text {
	color: #000;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title:hover .e-n-accordion-item-title-text,
.ps-eic .ps-faq-akkordeon .e-n-accordion-item[open] .e-n-accordion-item-title-text {
	color: var(--ps-schiefer);
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title-icon i,
.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title-icon svg {
	color: var(--ps-akzent);
	fill: var(--ps-akzent);
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item > .e-con {
	padding: 0 0 22px;
	border: 0;
}

.ps-eic .ps-antwort p {
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.6;
}

.ps-eic .ps-faq-akkordeon .e-n-accordion-item:target > .e-n-accordion-item-title .e-n-accordion-item-title-text {
	text-decoration: underline;
	text-decoration-color: var(--ps-akzent);
	text-underline-offset: .25em;
}

@media (max-width: 767px) {
	.ps-eic .ps-faq-akkordeon .e-n-accordion-item-title-text {
		font-size: 17px;
	}
}

/* ---------- Kontakt ---------- */

.ps-eic .ps-adresse {
	margin: 0;
	color: #000;
	font-size: 18px;
	line-height: 1.75;
}

.ps-eic .ps-adresse a {
	display: inline-block;
	padding: 2px 0;
	font-weight: 400;
}

/* ---------- Quellen ---------- */

.ps-eic .ps-quellen-block {
	max-width: 960px;
}

.ps-eic .ps-quellen {
	margin: 0;
	padding-left: 28px;
	font-size: 15px;
	line-height: 1.55;
}

.ps-eic .ps-quellen li {
	margin-bottom: 8px;
	padding: 2px 4px;
}

.ps-eic .ps-quellen li:target {
	background: var(--ps-creme);
	box-shadow: inset 3px 0 0 var(--ps-akzent);
}

.ps-eic .ps-quellen a {
	font-weight: 400;
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	html:root {
		scroll-behavior: auto !important;
	}
}

/* ---------- Druck: ganzer Artikel, alle Antworten offen (ds/eic-beitrag.js öffnet sie vor dem Drucken) ---------- */

@media print {
	html:root {
		scroll-padding-top: 0 !important;
	}

	[data-elementor-type="header"],
	[data-elementor-type="footer"],
	.ds-bewertungen,
	#cc--main,
	.cc_div,
	.grecaptcha-badge,
	.ps-eic .ps-toc-spalte,
	.ps-eic .elementor-widget-button {
		display: none !important;
	}

	.ps-eic {
		padding-top: 16px !important;
		padding-bottom: 16px !important;
		background: none !important;
	}

	.ps-eic .ps-eic-layout {
		display: block !important;
	}

	.ps-eic .ps-toc-widget {
		position: static !important;
		max-height: none !important;
	}

	.ps-eic .ps-hero-bild img {
		max-width: 220px;
		box-shadow: none;
	}

	.ps-eic .ps-faq-akkordeon .e-n-accordion-item > .e-con {
		display: flex !important;
		height: auto !important;
	}

	.ps-eic .e-n-accordion-item-title-icon {
		display: none !important;
	}

	.ps-eic .ps-karte,
	.ps-eic .ps-hinweis,
	.ps-eic .ps-haltung,
	.ps-eic .ps-modellkarte,
	.ps-eic .ps-keyfacts,
	.ps-eic .ps-keyfacts > div,
	.ps-eic .ps-prozess,
	.ps-eic .ps-prozess li,
	.ps-eic .ps-checks li,
	.ps-eic .ps-liste li,
	.ps-eic .e-n-accordion-item,
	.ps-eic .ps-urkunde {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	/* Raster im Druck als Block: Chrome trennt Rasterzeilen sonst zwischen Überschrift und Text */
	.ps-eic .ps-keyfacts,
	.ps-eic .ps-prozess {
		display: block !important;
	}

	.ps-eic .ps-keyfacts > div,
	.ps-eic .ps-prozess li {
		margin-bottom: 10px;
	}

	.ps-eic h2,
	.ps-eic h3 {
		break-after: avoid;
	}

	/* hello-elementor druckt hinter jedem Link die Adresse. Im Text stört das, in der Quellenliste hilft es */
	.ps-eic a[href]::after {
		content: none !important;
	}

	.ps-eic .ps-quellen a[href^="http"]::after {
		content: " (" attr(href) ")" !important;
		overflow-wrap: anywhere;
		font-size: 12px;
	}
}
