/*
 * Carma Stellen – look of the job list.
 * Values measured from carma-inside.at/karriere (Elementor 4.3.5, 2026-11-11).
 * Font is NOT loaded here: "Roboto Mono" is already self-hosted by the site.
 *
 * AI-generated code (Claude, Anthropic). See Handoff.md.
 */

.carma-stellen,
.carma-stellen-empty {
	--carma-stellen-font: "Roboto Mono", sans-serif;
	--carma-stellen-accent: #61c3d9;
	--carma-stellen-text: #ffffff;
	--carma-stellen-tab-bg: #0a1416;
	--carma-stellen-tab-active-bg: #274d56;
	--carma-stellen-button-bg: #000000;
	--carma-stellen-panel-bg-desktop: linear-gradient(90deg, #274d56 0%, #000000 100%);
	--carma-stellen-panel-bg-mobile: linear-gradient(180deg, #274d56 0%, #0a1416 100%);
	--carma-stellen-paragraph-gap: 14.4px;

	font-family: var(--carma-stellen-font);
	letter-spacing: normal;
	text-transform: uppercase;
}

/* Themes often style headings; keep ours independent of that. */
.carma-stellen h3,
.carma-stellen h4 {
	letter-spacing: normal;
}

/* ---------- Desktop: tabs (shown above 1200px, like the original) ----------
 * Tabs need JavaScript. carma-stellen.js adds the class "has-js"; without it
 * the accessible <details> accordion is shown on every screen size.
 */

.carma-stellen-tabs {
	display: none;
	gap: 10px;
	align-items: flex-start;
}

.carma-stellen-tablist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 520px;
}

.carma-stellen .carma-stellen-tab {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
	margin: 0;
	padding: 20px;
	border: 0;
	border-radius: 0;
	background: var(--carma-stellen-tab-bg);
	color: var(--carma-stellen-accent);
	font-family: var(--carma-stellen-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 21px;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
}

.carma-stellen .carma-stellen-tab::before {
	content: "";
	flex: 0 0 6px;
	height: 6px;
	background: currentColor;
}

.carma-stellen .carma-stellen-tab:hover,
.carma-stellen .carma-stellen-tab[aria-selected="true"] {
	background: var(--carma-stellen-tab-active-bg);
	color: var(--carma-stellen-text);
}

.carma-stellen-tabs .carma-stellen-panel {
	flex: 1 1 auto;
	background: var(--carma-stellen-panel-bg-desktop);
}

/* ---------- Mobile/Tablet: accordion (1200px and below) ---------- */

.carma-stellen-item {
	margin: 0 0 10px;
}

.carma-stellen .carma-stellen-summary {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 20px;
	background: var(--carma-stellen-tab-bg);
	color: var(--carma-stellen-accent);
	font-size: 16px;
	font-weight: 600;
	line-height: 21px;
	list-style: none;
	cursor: pointer;
}

.carma-stellen .carma-stellen-summary::-webkit-details-marker {
	display: none;
}

.carma-stellen .carma-stellen-summary::after {
	content: "";
	flex: 0 0 5px;
	height: 5px;
	background: currentColor;
}

.carma-stellen .carma-stellen-summary:hover,
.carma-stellen-item[open] > .carma-stellen-summary {
	background: var(--carma-stellen-tab-active-bg);
	color: var(--carma-stellen-text);
}

.carma-stellen-item[open] > .carma-stellen-summary {
	margin-bottom: 10px;
}

.carma-stellen-accordion .carma-stellen-panel {
	background: var(--carma-stellen-panel-bg-mobile);
}

@media (min-width: 1201px) {
	.carma-stellen.has-js .carma-stellen-tabs {
		display: flex;
	}

	.carma-stellen.has-js .carma-stellen-accordion {
		display: none;
	}
}

/* ---------- Detail view (shared by tabs and accordion) ---------- */

.carma-stellen-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
}

.carma-stellen-panel[hidden] {
	display: none;
}

.carma-stellen .carma-stellen-category,
.carma-stellen .carma-stellen-label {
	margin: 0;
	color: var(--carma-stellen-accent);
	font-family: var(--carma-stellen-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	text-transform: uppercase;
}

.carma-stellen .carma-stellen-category {
	line-height: 15px;
}

.carma-stellen .carma-stellen-title {
	margin: -7px 0 15px;
	color: var(--carma-stellen-text);
	font-family: var(--carma-stellen-font);
	font-size: 54px;
	font-weight: 400;
	line-height: 54px;
	text-transform: uppercase;
}

.carma-stellen .carma-stellen-value {
	margin: 0;
	color: var(--carma-stellen-text);
	font-size: 26px;
	font-weight: 500;
	line-height: 26px;
}

.carma-stellen-text {
	color: var(--carma-stellen-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
}

.carma-stellen .carma-stellen-text p {
	margin: 0 0 var(--carma-stellen-paragraph-gap);
}

.carma-stellen .carma-stellen-text p:last-child {
	margin-bottom: 0;
}

.carma-stellen .carma-stellen-text ul {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.carma-stellen .carma-stellen-text li {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
}

/* Square bullet on the first text line, 7px from the top like the original. */
.carma-stellen .carma-stellen-text li::before {
	content: "";
	flex: 0 0 6px;
	height: 6px;
	margin: 7px 6.5px 0 0;
	background: currentColor;
}

.carma-stellen .carma-stellen-apply {
	margin: 0;
}

.carma-stellen .carma-stellen-button {
	display: inline-block;
	padding: 15px;
	border: 1px solid var(--carma-stellen-accent);
	border-radius: 0;
	background: var(--carma-stellen-button-bg);
	color: var(--carma-stellen-accent);
	font-family: var(--carma-stellen-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	text-decoration: none;
	text-transform: uppercase;
}

.carma-stellen .carma-stellen-button:hover,
.carma-stellen .carma-stellen-button:focus {
	background: var(--carma-stellen-accent);
	border-color: var(--carma-stellen-accent);
	color: var(--carma-stellen-button-bg);
}

@media (max-width: 1200px) {
	.carma-stellen .carma-stellen-button {
		padding: 15px 60px;
	}
}

@media (max-width: 769px) {
	.carma-stellen .carma-stellen-title {
		font-size: 26px;
		line-height: 30px;
	}

	.carma-stellen .carma-stellen-value {
		font-size: 16px;
		line-height: 19px;
	}
}

/* ---------- Accessibility ---------- */

.carma-stellen .carma-stellen-tab:focus-visible,
.carma-stellen .carma-stellen-summary:focus-visible,
.carma-stellen .carma-stellen-panel:focus-visible,
.carma-stellen .carma-stellen-button:focus-visible {
	outline: 2px solid var(--carma-stellen-accent);
	outline-offset: 2px;
}

.carma-stellen .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Empty state ---------- */

.carma-stellen-empty {
	color: var(--carma-stellen-accent);
	font-size: 16px;
	line-height: 21px;
}
