/* DW Leistungen 1.0.0 – Design passend zu DW Referenzen */

.dw-leistung {
	--dwl-bg: #262a26;
	--dwl-border: #3a7d44;
	--dwl-title: #4CAF50;
	--dwl-text: #d6d9d6;
	--dwl-link: #4CAF50;
	--dwl-radius: 12px;
	--dwl-img-max: 440px;
	margin: 0 0 32px;
	box-sizing: border-box;
}

.dw-leistung *,
.dw-leistung *::before,
.dw-leistung *::after {
	box-sizing: border-box;
}

.dw-leistung .dw-leistung__card {
	background: var(--dwl-bg);
	border: 1px solid var(--dwl-border);
	border-radius: var(--dwl-radius);
	overflow: hidden;
	color: var(--dwl-text);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.dw-leistung .dw-leistung__card:hover {
	box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
}

/* Bild – proportional, nie beschnitten */
.dw-leistung .dw-leistung__media {
	background: rgba(0, 0, 0, .18);
	text-align: center;
	line-height: 0;
}

.dw-leistung .dw-leistung__media img.dw-leistung__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: var(--dwl-img-max);
	margin: 0 auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Text */
.dw-leistung .dw-leistung__body {
	padding: 24px 28px 26px;
}

.dw-leistung .dw-leistung__title {
	margin: 0 0 12px;
	padding: 0;
	color: var(--dwl-title);
	font-size: 1.45rem;
	line-height: 1.25;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

.dw-leistung .dw-leistung__text {
	color: var(--dwl-text);
	font-size: 1rem;
	line-height: 1.65;
}

.dw-leistung .dw-leistung__text > *:first-child { margin-top: 0; }
.dw-leistung .dw-leistung__text > *:last-child  { margin-bottom: 0; }

.dw-leistung .dw-leistung__text p { margin: 0 0 1em; color: inherit; }

.dw-leistung .dw-leistung__text h2,
.dw-leistung .dw-leistung__text h3,
.dw-leistung .dw-leistung__text h4 {
	color: var(--dwl-title);
	margin: 1.2em 0 .5em;
	line-height: 1.3;
}

.dw-leistung .dw-leistung__text a {
	color: var(--dwl-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dw-leistung .dw-leistung__text ul,
.dw-leistung .dw-leistung__text ol {
	margin: 0 0 1em 1.2em;
	padding: 0;
}

.dw-leistung .dw-leistung__text ul { list-style: none; margin-left: 0; }

.dw-leistung .dw-leistung__text ul li {
	position: relative;
	padding-left: 1.4em;
	margin-bottom: .35em;
}

.dw-leistung .dw-leistung__text ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: .5em;
	height: .5em;
	border-radius: 50%;
	background: var(--dwl-border);
}

.dw-leistung .dw-leistung__text strong { color: #fff; }

.dw-leistung .dw-leistung__text img {
	max-width: 100%;
	height: auto;
}

/* Layout „seitlich“: Bild links, Text rechts */
.dw-leistung.dw-leistung--seitlich .dw-leistung__card {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: stretch;
}

.dw-leistung.dw-leistung--seitlich .dw-leistung__media {
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--dwl-border);
}

.dw-leistung.dw-leistung--seitlich .dw-leistung__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 782px) {
	.dw-leistung.dw-leistung--seitlich .dw-leistung__card {
		grid-template-columns: 1fr;
	}
	.dw-leistung.dw-leistung--seitlich .dw-leistung__media {
		border-right: 0;
		border-bottom: 1px solid var(--dwl-border);
	}
	.dw-leistung .dw-leistung__body {
		padding: 20px 18px 22px;
	}
	.dw-leistung .dw-leistung__title {
		font-size: 1.25rem;
	}
}
