.ahs-stellen__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ahs-stellen__stelle {
	margin: 0 0 0.75rem;
	padding: 0;
}

.ahs-stellen__link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ahs-stellen__link:hover,
.ahs-stellen__link:focus-visible {
	border-color: #ffcc00;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ahs-stellen__titel {
	font-weight: 600;
}

.ahs-stellen__ort {
	white-space: nowrap;
	color: #666;
	font-size: 0.9em;
}

.ahs-stellen__standort {
	margin: 1.5rem 0 0.75rem;
}

.ahs-stellen--empty {
	color: #666;
}

/* Aufklappbare Detailkarten ([heliservice_stellen details="ja"]) */
.ahs-stellen__karte {
	margin: 0 0 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.ahs-stellen__karte[open] {
	border-color: #ffcc00;
}

.ahs-stellen__karte-kopf {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	cursor: pointer;
	list-style: none;
}

.ahs-stellen__karte-kopf::-webkit-details-marker {
	display: none;
}

.ahs-stellen__karte-kopf::after {
	content: "+";
	font-weight: 700;
	color: #999;
}

.ahs-stellen__karte[open] .ahs-stellen__karte-kopf::after {
	content: "–";
}

.ahs-stellen__karte-kopf:hover {
	background: #fafafa;
}

.ahs-stellen__karte-inhalt {
	padding: 0 1.1rem 1.1rem;
	border-top: 1px solid #eee;
}

/* Sanftes Aufklappen (Browser ohne ::details-content ignorieren das einfach) */
.ahs-stellen__karte::details-content {
	block-size: 0;
	overflow-y: clip;
	transition: content-visibility 0.3s allow-discrete, block-size 0.3s ease;
}

.ahs-stellen__karte[open]::details-content {
	block-size: auto;
	block-size: calc-size(auto, size);
}

@media (prefers-reduced-motion: reduce) {
	.ahs-stellen__karte::details-content {
		transition: none;
	}
}

.ahs-stellen__karte-inhalt h3 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.05em;
}

.ahs-stellen__karte-inhalt ul {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

.ahs-stellen__bewerben {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.6rem 1.2rem;
	background: #ffcc00;
	color: #000;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
}

.ahs-stellen__bewerben:hover,
.ahs-stellen__bewerben:focus-visible {
	background: #e6b800;
	color: #000;
}
