/**
 * Stellenangebote: postings module + Störer.
 * Loaded only on the page template "Stellenangebote".
 * Figma frame is 1440 wide = 1920 layout scaled by .75, so design px x 4/3 = px here.
 */

/* Intro: existing two-column module, same wrapper as on "Kanzlei".
   Narrowed on this page only, so it lines up with the postings as in the design. */
.wg-stellen-intro .wg-tzw-container {
	max-width: 1080px;
}

.wg-stellen,
.wg-stellen-stoerer {
	background: #f5f5f5;
	margin: 0 35px;
	color: #343438;
}

.wg-stellen {
	padding: 83px 0 0;
}

.wg-stellen .container,
.wg-stellen-stoerer .container {
	max-width: 1080px;
}

/* Module title */
.wg-stellen .wg-stellen-titel {
	color: #912932;
	font-size: 2.833rem;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

/* Accordion */
.wg-stelle {
	border-bottom: 1px solid #d9d9d9;
}

.wg-stelle:first-child {
	border-top: 1px solid #d9d9d9;
}

.wg-stelle-kopf {
	margin: 0;
	font-size: inherit;
	color: inherit;
}

.wg-stelle-toggle {
	position: relative;
	display: block;
	width: 100%;
	padding: 1.5rem 4rem 1.5rem 0;
	border: 0;
	background: transparent;
	color: #343438;
	text-align: left;
	cursor: pointer;
}

.wg-stelle-toggle:focus {
	outline: none;
}

.wg-stelle-toggle:focus-visible {
	outline: 2px solid #1a3459;
	outline-offset: 4px;
}

.wg-stelle-toggle-static {
	cursor: default;
}

.wg-stelle-name {
	display: block;
	/* Long German words (Rechtsanwaltsfachangestellte) must break on narrow screens. */
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
	font-family: freight-display-pro, serif;
	font-weight: 500;
	font-size: 2.25rem;
	line-height: 1.2;
	-webkit-transition: color .3s;
	transition: color .3s;
}

button.wg-stelle-toggle:hover .wg-stelle-name,
.wg-stelle-toggle[aria-expanded="true"] .wg-stelle-name {
	color: #912932;
}

.wg-stelle-meta {
	display: block;
	margin-top: .4375rem;
	font-family: cresta, sans-serif;
	font-size: 1.25rem;
	line-height: 1.667rem;
}

/* Chevron */
.wg-stelle-icon {
	position: absolute;
	right: .75rem;
	top: 50%;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: -.75rem;
	border-right: 2px solid #912932;
	border-bottom: 2px solid #912932;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	-webkit-transition: transform .3s, margin .3s;
	transition: transform .3s, margin .3s;
}

.wg-stelle-toggle[aria-expanded="true"] .wg-stelle-icon {
	margin-top: -.25rem;
	-webkit-transform: rotate(225deg);
	transform: rotate(225deg);
}

/* Panel */
.wg-stelle-inhalt {
	padding-bottom: 2.5rem;
}

.wg-stelle-text {
	margin-bottom: 1.75rem;
}

.wg-stelle-text p,
.wg-stelle-text li {
	font-size: 1.25rem;
	line-height: 1.833rem;
}

.wg-stelle-text > :last-child {
	margin-bottom: 0;
}

.wg-stelle-text a {
	color: #912932;
	text-decoration: underline;
}

/* Action row: PDF label + button, or the link button alone */
.wg-stelle-aktion {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: justify;
	justify-content: space-between;
	gap: 1rem;
	padding-top: .75rem;
}

.wg-stelle-aktion-link {
	-ms-flex-pack: start;
	justify-content: flex-start;
}

.wg-stelle-label {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	gap: .9375rem;
	font-size: 1.25rem;
	line-height: 1.5;
}

.wg-stelle-label img {
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

/* Buttons (PDF, link, Störer) */
a.wg-stellen-button,
a.wg-stellen-button:visited,
a.wg-stellen-button:focus {
	display: -ms-inline-flexbox;
	display: inline-flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: justify;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: .5rem 1.5rem;
	background: #912932;
	color: #fff;
	font-size: 1.333rem;
	line-height: 1.3;
	text-decoration: none;
	-webkit-transition: background .3s;
	transition: background .3s;
}

a.wg-stellen-button:hover {
	background: #7a2029;
	color: #fff;
}

a.wg-stellen-button:focus-visible {
	outline: 2px solid #1a3459;
	outline-offset: 3px;
}

.wg-stellen-button img {
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

/* PDF preview, drawn by pdf.js */
.wg-stelle-pdf {
	max-width: 853px;
	margin: 2rem auto 0;
}

.wg-stelle-pdf[data-state="loading"] {
	min-height: 400px;
	background: #ececec;
}

.wg-stelle-pdf canvas {
	display: block;
	width: 100%;
	height: auto;
}

.wg-stelle-pdf canvas + canvas {
	margin-top: 1rem;
}

/* Störer */
.wg-stellen-stoerer {
	padding: 103px 0 125px;
}

.wg-stellen-stoerer .wg-stellen-stoerer-titel {
	color: #912932;
	font-size: 2.333rem;
	line-height: 1.2;
	margin: 0 0 .75rem;
}

.wg-stellen-stoerer-text p {
	font-size: 1.25rem;
	line-height: 1.667rem;
}

.wg-stellen-stoerer-text > :last-child {
	margin-bottom: 0;
}

.wg-stellen-stoerer a.wg-stellen-button {
	min-height: 59px;
	margin-top: 1.5625rem;
	padding: .5rem 1.25rem;
	font-size: 1.25rem;
}


@media (max-width: 1439px) {
	.wg-stellen {
		padding-top: 60px;
	}

	.wg-stellen-stoerer {
		padding: 70px 0 80px;
	}
}

@media (max-width: 1199px) {
	.wg-stellen .wg-stellen-titel {
		font-size: 2.25rem;
	}

	.wg-stelle-name {
		font-size: 1.75rem;
	}

	.wg-stellen-stoerer .wg-stellen-stoerer-titel {
		font-size: 2rem;
	}
}

@media (max-width: 991px) {
	.wg-stellen {
		padding-top: 40px;
	}

	.wg-stellen-stoerer {
		padding: 50px 0 60px;
	}

	.wg-stelle-meta,
	.wg-stelle-label,
	.wg-stelle-text p,
	.wg-stelle-text li,
	.wg-stellen-stoerer-text p {
		font-size: 1.0625rem;
		line-height: 1.5;
	}
}

@media (max-width: 575px) {
	/* Same breakpoint as .wg-text-slider drops its side padding. */
	.wg-stellen,
	.wg-stellen-stoerer {
		margin: 0;
	}

	.wg-stellen .wg-stellen-titel,
	.wg-stellen-stoerer .wg-stellen-stoerer-titel {
		font-size: 1.75rem;
	}

	.wg-stelle-name {
		font-size: 1.5rem;
	}

	.wg-stelle-toggle {
		padding-right: 2.75rem;
	}

	.wg-stelle-icon {
		right: .5rem;
	}

	.wg-stelle-aktion {
		-ms-flex-direction: column;
		flex-direction: column;
		-ms-flex-align: stretch;
		align-items: stretch;
	}

	a.wg-stellen-button,
	a.wg-stellen-button:visited,
	a.wg-stellen-button:focus,
	.wg-stellen-stoerer a.wg-stellen-button {
		width: 100%;
		min-height: 54px;
		font-size: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wg-stelle-name,
	.wg-stelle-icon,
	a.wg-stellen-button {
		-webkit-transition: none;
		transition: none;
	}
}
