.leistungen-item {
	transition: transform 0.3s ease;
	height: 100%;
	max-width: 350px;
}

.leistungen-footer {
	height: 56px;
	overflow: hidden;
}

.leistungen-arrow {
	width: 56px;
	height: 56px;
	background-color: #0b3b5c;
	transition: all 0.3s ease;
}

.leistungen-title {
	background-color: #ffd100;
	color: #0b3b5c;
	transition: all 0.3s ease;
}

/* Hover effect */
.leistungen-item:hover .leistungen-title {
	background-color: #0b3b5c;
	color: #ffd100;
}

.leistungen-item:hover .leistungen-arrow {
	width: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.leistungen-footer {
		height: 47px;
	}

	.leistungen-arrow {
		width: 47px;
		height: 47px;
	}

	.leistungen-item {
		max-width: none;
	}

	.swiper-pagination {
		position: relative;
	}

	.swiper-pagination-bullet {
		width: 10px;
		height: 10px;
		background: #0b3b5c;
		opacity: 0.3;
	}

	.swiper-pagination-bullet-active {
		opacity: 1;
	}
}

/* Wyrównanie elementów w gridzie */

.leistungen-item-container {
	display: flex;
	justify-content: center;
}

/* 2x2 Grid layout (default) */
.layout-grid_2x2 .leistungen-item-container:nth-child(odd) {
	justify-content: flex-end;
}

.layout-grid_2x2 .leistungen-item-container:nth-child(even) {
	justify-content: flex-start;
}

/* 3x1 Grid layout */
.layout-grid_3x1 .leistungen-item-container {
	justify-content: center;
}

/* 2x3 Grid layout - special handling for first item */
.layout-grid_2x3 .leistungen-item-container.col-span-2 {
	justify-content: center;
}

.layout-grid_2x3 .leistungen-item-container:not(.col-span-2):nth-child(odd) {
	justify-content: flex-end;
}

.layout-grid_2x3 .leistungen-item-container:not(.col-span-2):nth-child(even) {
	justify-content: flex-start;
}

/* 3x2 Grid layout */

/* Responsive styles */
@media (max-width: 767px) {
	.leistungen-item-container {
		justify-content: center !important;
		width: 100% !important;
		margin: 1rem 0 !important;
	}
}
