/* Atlas Stellen – Akkordeon aus dem Personio-Feed.
   Nutzt die --ap-*-Tokens aus dem Elementor-Kit, mit Fallbacks falls sie fehlen. */

.atlas-stellen {
	--as-blau: var(--ap-blau, #134094);
	--as-blau-700: var(--ap-blau-700, #0F3376);
	--as-blau-50: var(--ap-blau-50, #E7ECF7);
	--as-flaeche: var(--ap-flaeche, #F7F8FA);
	--as-linie: var(--ap-linie, #E2E6EE);
	--as-text: var(--ap-text, #000);
	--as-text-2: var(--ap-text-2, #4A4A4A);

	display: block;
	text-align: left;
}

.atlas-stellen__item {
	background: #fff;
	border: 1px solid var(--as-linie);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.atlas-stellen__item + .atlas-stellen__item {
	margin-top: 12px;
}

/* ---- Kopfzeile ---- */

.atlas-stellen__head {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.atlas-stellen__toggle {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	background: var(--as-flaeche);
	border: 0;
	border-radius: 0;
	color: var(--as-text);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.atlas-stellen__toggle:hover {
	background: var(--as-blau-50);
}

.atlas-stellen__toggle:focus-visible {
	outline: 3px solid var(--as-blau);
	outline-offset: -3px;
}

.atlas-stellen__item.is-open .atlas-stellen__toggle,
.atlas-stellen__item.is-open .atlas-stellen__toggle:hover {
	background: var(--as-blau);
	color: #fff;
}

.atlas-stellen__item.is-open .atlas-stellen__toggle:focus-visible {
	outline-color: #fff;
}

.atlas-stellen__titelzeile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.atlas-stellen__titel {
	display: block;
}

/* ---- Plus / Kreuz ---- */

.atlas-stellen__icon {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.atlas-stellen__icon::before,
.atlas-stellen__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 150ms ease;
}

.atlas-stellen__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.atlas-stellen__item.is-open .atlas-stellen__icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.atlas-stellen__item.is-open .atlas-stellen__icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---- Chips ---- */

.atlas-stellen__chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--as-blau-50);
	color: var(--as-blau);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.atlas-stellen__item.is-open .atlas-stellen__chip--standort {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.atlas-stellen__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.atlas-stellen__meta .atlas-stellen__chip {
	white-space: normal;
}

/* ---- Inhalt ---- */

.atlas-stellen__panel {
	padding: 24px;
	background: #fff;
}

.atlas-stellen__panel[hidden] {
	display: none;
}

.atlas-stellen__text {
	max-width: 820px;
	color: var(--as-text);
	font-size: 16px;
	line-height: 1.75;
}

.atlas-stellen__subtitel {
	margin: 24px 0 8px;
	color: var(--as-blau);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.atlas-stellen__text > *:first-child,
.atlas-stellen__subtitel:first-child {
	margin-top: 0;
}

.atlas-stellen__text p {
	margin: 0 0 12px;
}

.atlas-stellen__text ul,
.atlas-stellen__text ol {
	margin: 0 0 12px;
	padding-left: 0;
	list-style: none;
}

.atlas-stellen__text ol {
	padding-left: 22px;
	list-style: decimal;
}

.atlas-stellen__text ul li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 6px;
}

.atlas-stellen__text ul li::before {
	content: "";
	position: absolute;
	top: .65em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--as-blau);
}

.atlas-stellen__text ol li {
	margin-bottom: 6px;
}

.atlas-stellen__text a {
	color: var(--as-blau);
	text-decoration: underline;
}

/* ---- Button ---- */

.atlas-stellen__aktion {
	margin: 24px 0 0;
}

/* Die Kit-Regel .atlas-section a:not(.elementor-button):not(.atlas-inline-btn)
   hat Spezifität 0,3,0 und würde den Button-Text blau auf blau setzen –
   deshalb hier bewusst eine längere Kette statt !important. */
.atlas-stellen .atlas-stellen__panel .atlas-stellen__aktion .atlas-stellen__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 4px;
	background: var(--as-blau);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 150ms ease;
}

.atlas-stellen .atlas-stellen__panel .atlas-stellen__aktion .atlas-stellen__cta:hover,
.atlas-stellen .atlas-stellen__panel .atlas-stellen__aktion .atlas-stellen__cta:focus {
	background: var(--as-blau-700);
	color: #fff;
	text-decoration: none;
}

.atlas-stellen__cta:focus-visible {
	outline: 3px solid var(--as-blau);
	outline-offset: 2px;
}

/* Pfeil als Hinweis, dass der Button die Seite verlässt (Personio). */
.atlas-stellen__extern::before {
	content: "\2197\FE0E";
	margin-left: 10px;
	font-size: 1.1em;
	line-height: 1;
}

/* Nur für Screenreader – der Hinweis auf das neue Fenster. */
.atlas-stellen__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---- Lightbox mit dem Personio-Bewerbungsformular ---- */

html.atlas-bewerbung-offen,
html.atlas-bewerbung-offen body {
	overflow: hidden;
}

.atlas-bewerbung-modal {
	--as-blau: var(--ap-blau, #134094);
	--as-blau-900: var(--ap-blau-900, #0B2559);
	--as-linie: var(--ap-linie, #E2E6EE);
	--as-flaeche: var(--ap-flaeche, #F7F8FA);
	--as-text-2: var(--ap-text-2, #4A4A4A);

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
}

.atlas-bewerbung-modal[hidden] {
	display: none;
}

.atlas-bewerbung-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 37, 89, .62);
}

.atlas-bewerbung-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 880px;
	max-height: 92vh;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
	overflow: hidden;
}

.atlas-bewerbung-modal__kopf {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 auto;
	padding: 20px 24px;
	border-bottom: 1px solid var(--as-linie);
	background: #fff;
}

.atlas-bewerbung-modal__titel {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--as-blau);
}

.atlas-bewerbung-modal__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--as-text-2);
}

.atlas-bewerbung-modal__stelle {
	display: block;
}

/* Schließen-Kreuz aus zwei Balken – kein Zeichensatz nötig. */
.atlas-bewerbung-modal__close {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -4px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--as-blau);
	cursor: pointer;
	transition: background-color 150ms ease;
}

.atlas-bewerbung-modal__close:hover {
	background: var(--as-flaeche);
}

.atlas-bewerbung-modal__close:focus-visible {
	outline: 3px solid var(--as-blau);
	outline-offset: 2px;
}

.atlas-bewerbung-modal__close span::before,
.atlas-bewerbung-modal__close span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.atlas-bewerbung-modal__close span::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.atlas-bewerbung-modal__close span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Der Rahmen füllt den Dialog und scrollt intern. Auf dem Handy liegt der
   Finger beim Scrollen fast immer über dem iFrame – Touch-Scrolling kettet von
   dort nicht zuverlässig an einen äußeren Scrollbereich durch. Deshalb scrollt
   bewusst der iFrame selbst, nicht das Overlay. */
.atlas-bewerbung-modal__status {
	flex: 0 0 auto;
	margin: 16px 24px 0;
	padding: 14px 16px;
	border-radius: 4px;
	background: var(--as-flaeche);
	color: var(--as-text-2);
	font-size: 15px;
}

.atlas-bewerbung-modal__status[hidden] {
	display: none;
}

.atlas-bewerbung-modal__frame {
	flex: 0 0 auto;
	display: block;
	width: 100%;
	min-height: 300px;
	border: 0;
}

.atlas-bewerbung-modal__fuss {
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 24px;
	border-top: 1px solid var(--as-linie);
	background: #fff;
	font-size: 14px;
}

.atlas-bewerbung-modal__fuss a {
	color: var(--as-blau);
	text-decoration: underline;
}

@media (max-width: 767px) {
	.atlas-bewerbung-modal {
		padding: 0;
	}

	.atlas-bewerbung-modal__dialog {
		max-width: none;
		max-height: none;
		height: 100%;
		/* dvh berücksichtigt die ein- und ausfahrende Browserleiste auf iOS. */
		height: 100dvh;
		border-radius: 0;
	}

	.atlas-bewerbung-modal__kopf {
		padding: 14px 16px;
	}

	.atlas-bewerbung-modal__titel {
		font-size: 16px;
	}

	.atlas-bewerbung-modal__status {
		margin: 12px 16px 0;
	}

	/* Das Barrierefreiheits-Widget sitzt fix unten links und würde den Link
	   überdecken – deshalb mobil rechtsbündig. */
	.atlas-bewerbung-modal__fuss {
		padding: 10px 16px;
		text-align: right;
	}
}

/* ---- Leerzustand ---- */

.atlas-stellen--leer {
	padding: 24px;
	border: 1px solid var(--as-linie);
	border-radius: 8px;
	background: var(--as-flaeche);
	color: var(--as-text-2);
}

.atlas-stellen--leer p {
	margin: 0;
	max-width: 640px;
}

/* ---- Mobil ---- */

@media (max-width: 767px) {
	.atlas-stellen__toggle {
		padding: 16px 18px;
		font-size: 16px;
	}

	.atlas-stellen__panel {
		padding: 18px;
	}

	.atlas-stellen__subtitel {
		font-size: 17px;
	}

	.atlas-stellen .atlas-stellen__panel .atlas-stellen__aktion .atlas-stellen__cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atlas-stellen *,
	.atlas-stellen *::before,
	.atlas-stellen *::after {
		transition: none !important;
	}
}
