/* Structerra News 1.2.0: gleiche Masse wie die Referenzen-Tabelle (Structerra Projekte). */

.stn {
	--stn-line: rgba(128, 128, 128, .35);
	--stn-gruen: var(--e-global-color-accent, #004437);
	--stn-cols: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1.6fr);
	margin: 0 0 2em;
	color: inherit;
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	font-weight: var(--e-global-typography-text-font-weight, 300);
	text-align: left;
}
.stn *, .stn ::before, .stn ::after { box-sizing: border-box; }
.stn--tabelle { container: stn / inline-size; }

/* Abschnitte */
.stn-sektion + .stn-karte-wrap { margin-top: 4.5em; }
.stn-karte-wrap + .stn-sektion,
.stn-sektion + .stn-sektion { margin-top: 5em; }
.stn .stn-abschnitt { margin: 0 0 1em; padding: 0; font-family: inherit; font-size: 1.3em; font-weight: 400; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.stn .stn-leer { opacity: .75; margin: 0; }

/* Tabelle */
.stn-head, .stn-row {
	display: grid;
	grid-template-columns: var(--stn-cols);
	gap: 0 1.5em;
	align-items: baseline;
}
.stn-head {
	font-size: .8em;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .7;
	padding: 0 2em .5em 0;
	border-bottom: 1px solid var(--stn-line);
}
.stn-item { border-bottom: 1px solid var(--stn-line); }
.stn-item > summary { list-style: none; cursor: pointer; position: relative; }
.stn-item > summary::-webkit-details-marker { display: none; }
.stn-item > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.stn-row { padding: .75em 2em .75em 0; }
.stn-row::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 300;
	font-size: 1.2em;
	line-height: 1;
	opacity: .6;
}
.stn-item[open] > summary::after { content: "\2212"; }
.stn-c-title { font-weight: 400; }
.stn-c-titeltext { display: block; }
.stn-row:hover .stn-c-titeltext { text-decoration: underline; text-underline-offset: .2em; }
.stn-item[open] .stn-c-title { font-weight: 600; }
.stn-c-2, .stn-c-3 { font-variant-numeric: tabular-nums; }
.stn-c-zusatz { display: none; }
.stn-privat {
	display: inline-block;
	margin-left: .4em;
	padding: 0 .45em;
	font-size: .7em;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: .15em;
	border: 1px solid currentColor;
	border-radius: 3px;
	opacity: .7;
}

/* Aufgeklappter Inhalt */
.stn-detail { padding: .4em 0 2.2em; max-width: 60em; }
.stn .stn-text { margin: 0 0 1em; line-height: 1.6; }
.stn-stark { font-weight: 600; }
.stn .stn-dl { margin: .4em 0 1.4em; }
.stn-fakt {
	display: grid;
	grid-template-columns: 10.5em minmax(0, 1fr);
	gap: 0 1.5em;
	margin: 0 0 .7em;
}
.stn-fakt dt { opacity: .7; margin: 0; font-weight: inherit; }
.stn-fakt dd { margin: 0; line-height: 1.6; }
.stn-zeile { display: block; }
.stn-zeile + .stn-zeile { margin-top: .1em; }
.stn .stn-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 2em; margin: 1.4em 0 0; }
.stn .stn-cta { color: var(--stn-gruen); font-weight: 400; text-decoration: none; }
.stn .stn-cta:hover { color: var(--stn-gruen); text-decoration: underline; text-underline-offset: .2em; }
.stn .stn-link2 { color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: .2em; }
.stn .stn-link2:hover { color: inherit; opacity: 1; }
.stn-bild { margin: 1.2em 0 0; }
.stn-bild img { display: block; max-width: 100%; height: auto; max-height: 340px; width: auto; }

/* Karte (wie «Persönliche Referenzen») */
.stn-karte-wrap { max-width: 900px; margin-left: auto; margin-right: auto; }
.stn .stn-karte {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 32px;
	background: #f4f6f5;
	border: 1px solid rgba(0, 68, 55, .2);
	color: inherit;
	text-decoration: none;
}
.stn .stn-karte:hover { color: inherit; }
.stn-karte-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--stn-gruen);
	border-radius: 50%;
	color: var(--stn-gruen);
}
.stn-karte-text { flex: 1 1 auto; min-width: 0; }
.stn-karte-titel { display: block; margin: 0 0 .15em; font-size: 1.2em; font-weight: 400; color: #000; }
.stn-karte-beschrieb { display: block; line-height: 1.6; }
.stn-karte-cta { flex: 0 0 auto; color: var(--stn-gruen); font-weight: 400; white-space: nowrap; }
.stn .stn-karte:hover .stn-karte-cta { text-decoration: underline; text-underline-offset: .2em; }

/* Stellen-Einzelseite */
.stn-seite { max-width: 1140px; margin: 0 auto; padding: 48px 0 1em; }
.stn .stn-zurueck { margin: 0 0 2.5em; font-size: .85em; }
.stn .stn-zurueck a { color: inherit; opacity: .75; text-decoration: none; }
.stn .stn-zurueck a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.stn-seitenkopf { max-width: 860px; margin: 0 auto; text-align: center; }
.stn .stn-meta { margin: 0 0 20px; font-size: .8em; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.stn-meta .stn-privat { font-size: 1em; vertical-align: baseline; opacity: 1; }
.stn .stn-h1 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; line-height: 1.2; color: #000; }
.stn .stn-unter { margin: 0; font-size: 1.15em; line-height: 1.6; color: #000; }
.stn-beitrag { margin: 72px 0 0; padding-top: 2em; border-top: 1px solid var(--stn-line); }
.stn-beitrag > * { max-width: 60em; }
.stn-beitrag .stn-fakt { margin-bottom: .9em; }
.stn-seite .stn-karte-wrap { margin-top: 72px; }
.stn-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 72px;
	padding-top: 1em;
	border-top: 1px solid var(--stn-line);
	font-size: .9em;
}
.stn-nav > * { flex: 1 1 0; padding: 10px 0; }
.stn .stn-nav a { color: inherit; text-decoration: none; }
.stn .stn-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.stn .stn-nav .stn-nav-mitte { color: var(--stn-gruen); font-weight: 400; text-align: center; }
.stn-nav-rechts { text-align: right; }

/* Alte Beitragsinfo und Blätter-Navigation der Einzelbeitrag-Vorlage auf Stellen- und News-Seiten ausblenden */
.stn-stelle-seite .elementor-widget-post-info,
.stn-stelle-seite .elementor-widget-post-navigation,
.stn-news-seite .elementor-widget-post-info,
.stn-news-seite .elementor-widget-post-navigation { display: none !important; }

/* 1.2.0: News-Einzelseite (Inhalt aus dem WordPress-Editor) */
.stn-inhalt > * { max-width: 60em; }
.stn-inhalt > :first-child { margin-top: 0; }
.stn .stn-inhalt p, .stn .stn-inhalt li { line-height: 1.6; }
.stn .stn-inhalt p { margin: 0 0 1em; }
.stn .stn-inhalt ul, .stn .stn-inhalt ol { margin: 0 0 1em; padding-left: 1.3em; }
.stn .stn-inhalt h2, .stn .stn-inhalt h3, .stn .stn-inhalt h4 { margin: 1.8em 0 .6em; font-family: inherit; font-weight: 400; line-height: 1.3; letter-spacing: normal; text-transform: none; color: #000; }
.stn .stn-inhalt h2 { font-size: 1.5em; }
.stn .stn-inhalt h3 { font-size: 1.25em; }
.stn .stn-inhalt h4 { font-size: 1.05em; font-weight: 600; }
.stn .stn-inhalt a { color: var(--stn-gruen); text-decoration: underline; text-underline-offset: .2em; }
.stn .stn-inhalt img { max-width: 100%; height: auto; }
.stn .stn-inhalt figure { margin: 1.6em 0; }
.stn .stn-inhalt figcaption { margin-top: .5em; font-size: .85em; opacity: .75; }
.stn .stn-inhalt blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 2px solid var(--stn-gruen); }
.stn .stn-titelbild { margin: 0 0 2em; }
.stn .stn-titelbild img { display: block; width: 100%; max-width: 100%; height: auto; }
.stn-nav-titel { display: block; margin-top: .2em; font-size: .9em; opacity: .7; }

/* Schmal: wie Referenzen (Spalten unter den Titel) */
@container stn (max-width: 620px) {
	.stn-head, .stn-row { display: block; }
	.stn-c-2, .stn-c-3 { display: none; }
	.stn-c-zusatz { display: block; font-size: .85em; font-weight: 300; opacity: .7; }
	.stn-fakt { grid-template-columns: minmax(0, 1fr); }
	.stn-fakt dt { margin-top: .4em; font-size: .85em; }
	.stn-zeile + .stn-zeile { margin-top: .45em; }
}
@media (max-width: 760px) {
	.stn-zeile + .stn-zeile { margin-top: .45em; }
	.stn .stn-karte { flex-wrap: wrap; padding: 22px; }
	.stn-karte-cta { flex-basis: 100%; }
	.stn-fakt { grid-template-columns: minmax(0, 1fr); }
	.stn-fakt dt { margin-top: .4em; font-size: .85em; }
	.stn-beitrag, .stn-seite .stn-karte-wrap, .stn-nav { margin-top: 48px; }
	.stn-nav { flex-direction: column; gap: 0; }
	.stn-nav > * { flex: 0 0 auto; padding: 8px 0; }
	.stn .stn-nav .stn-nav-mitte, .stn-nav-rechts { text-align: left; }
	.stn-nav > span:empty { display: none; }
}

/* 1.1.0: Seitenränder auf Beitragsseiten (Vorlage «Einzelbeitrag» hat selbst keine).
   Wie die übrigen Seiten: 5 % auf Handy und Tablet, auf grossen Bildschirmen Inhalt mittig mit 1140 px. */
.single-post .elementor-widget-theme-post-content,
.single-post .elementor-widget-post-navigation,
.single-post .elementor-widget-post-info {
	padding-left: max(5%, calc((100% - 1140px) / 2));
	padding-right: max(5%, calc((100% - 1140px) / 2));
}
.single-post .elementor-widget-theme-post-content .stn-seite { max-width: none; }
