/* Emmcee Driving Directions */

.elementor-widget-emmcee-driving-directions,
.elementor-widget-emmcee-driving-directions > .elementor-widget-container {
	width: 100%;
}

.emmcee-driving-directions {
	width: 100%;
	box-sizing: border-box;
}

.emmcee-driving-directions * {
	box-sizing: border-box;
}

.driving-directions-heading {
	font-family: inherit;
	font-size: 32px;
	font-weight: 500;
	text-align: center;
	margin: 0 0 40px;
	color: #433c38;
}

.driving-directions-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.driving-directions-step {
	display: flex;
	flex-direction: column;
}

/* ---------- Nummerierung + Verbindungslinie ---------- */
.driving-directions-marker {
	--connector-color: #c77761;
	--connector-style: dashed;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.driving-directions-marker::before,
.driving-directions-marker::after {
	content: '';
	position: absolute;
	top: 50%;
	height: 0;
	width: calc(50% - 16px);
	border-top: 2px var(--connector-style) var(--connector-color);
}

.driving-directions-marker::before {
	left: 0;
}

.driving-directions-marker::after {
	right: 0;
}

.driving-directions-step:first-child .driving-directions-marker::before {
	display: none;
}

.driving-directions-step:last-child .driving-directions-marker::after {
	display: none;
}

.driving-directions-number {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #a05a3c;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
}

/* ---------- Karte ---------- */
.driving-directions-card {
	background: #fcf4eb;
	border-radius: 12px;
	overflow: hidden;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.driving-directions-card-content {
	padding: 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.driving-directions-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #433c38;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 6px;
}

.driving-directions-title-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.driving-directions-title-icon i,
.driving-directions-title-icon svg {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #c77761;
}

.driving-directions-text {
	font-size: 13px;
	line-height: 1.6;
	color: #5a5a5a;
}

.driving-directions-text p {
	margin: 0;
}

.driving-directions-text strong {
	color: #433c38;
}

.driving-directions-image {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
	margin-top: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.driving-directions-steps {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 32px;
	}
	.driving-directions-marker::before,
	.driving-directions-marker::after {
		display: none;
	}
}

@media (max-width: 600px) {
	.driving-directions-heading {
		font-size: 24px;
	}
	.driving-directions-steps {
		grid-template-columns: 1fr;
	}
	.driving-directions-image {
		height: 160px;
	}
}
