﻿/* Process map — from Admara sanierung.css */

.process-map-section {
  --page-max-width: 1610px;
  --page-gutter: 150px;
  padding: clamp(64px, 8vw, 100px) var(--page-gutter);
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(202, 156, 81, 0.08), transparent 70%),
    linear-gradient(180deg, #f8f6f2 0%, #efe9df 100%);
  border-top: 1px solid rgba(202, 156, 81, 0.14);
  border-bottom: 1px solid rgba(202, 156, 81, 0.14);
}

.process-map-section .container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .process-map-section { --page-gutter: 80px; }
}
@media (max-width: 1024px) {
  .process-map-section { --page-gutter: 60px; }
}
@media (max-width: 768px) {
  .process-map-section { --page-gutter: 30px; }
}
@media (max-width: 480px) {
  .process-map-section { --page-gutter: 20px; }
}

.process-map-section__header {
	text-align: center;
	margin-bottom: clamp(32px, 5vw, 48px);
}

.process-map-section__header .section-subtitle {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary-color, #ca9c51);
}

.process-map-section__header .section-title {
	margin: 0;
	font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: #1f1f1f;
}

/* Prozess-Karte Rahmen */
.process-map {
	position: relative;
	max-width: 1480px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	background: #faf8f4;
	border: 1px solid rgba(202, 156, 81, 0.22);
	border-radius: 24px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.65),
		0 16px 48px rgba(42, 34, 28, 0.08);
	overflow: hidden;
	padding: 60px 28px 40px;
}

.process-map::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(202, 156, 81, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(202, 156, 81, 0.04) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
	opacity: 0.6;
}

.process-map__route {
	position: absolute;
	pointer-events: none;
	z-index: 1;
}

.process-map__route--desktop {
	display: block;
	top: 72px;
	left: 4%;
	width: 92%;
	height: 120px;
}

.process-map__route--mobile {
	display: none;
	left: 50%;
	top: 24px;
	width: 80px;
	height: calc(100% - 48px);
	transform: translateX(-50%);
}

.process-map__route-bg {
	fill: none;
	stroke: rgba(202, 156, 81, 0.12);
	stroke-width: 14;
	stroke-linecap: round;
}

.process-map__route-line {
	fill: none;
	stroke: #ca9c51;
	stroke-width: 3;
	stroke-dasharray: 10 8;
	stroke-linecap: round;
	animation: processMapRouteDash 28s linear infinite;
}

@keyframes processMapRouteDash {
	to {
		stroke-dashoffset: -360;
	}
}

.process-map__stops {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
	align-items: start;
}

.process-map__stop {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.process-map__stop:nth-child(even) {
	padding-top: 56px;
}

.process-map__pin {
	position: relative;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.process-map__pin::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 14px solid #a88442;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.15));
}

.process-map__pin span {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(145deg, #e8c47a 0%, #ca9c51 50%, #9a7a3e 100%);
	border: 3px solid #fff;
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(202, 156, 81, 0.45);
}

.process-map__card {
	width: 100%;
	background: #fff;
	border: 1px solid rgba(202, 156, 81, 0.2);
	border-radius: 18px;
	padding: 22px 20px 22px;
	box-shadow: 0 8px 24px rgba(31, 20, 12, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-map__stop:hover .process-map__card {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(31, 20, 12, 0.11);
	border-color: rgba(202, 156, 81, 0.42);
}

.process-map__title {
	margin: 0 0 10px;
	font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.2rem);
	font-weight: 700;
	line-height: 1.3;
	color: #1f1f1f;
}

.process-map__desc {
	margin: 0;
	font-size: clamp(0.875rem, 0.8rem + 0.2vw, 0.95rem);
	line-height: 1.55;
	color: #5e554a;
}

.process-map__photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	object-fit: cover;
	border-radius: 14px;
	margin-top: 16px;
	border: 1px solid rgba(202, 156, 81, 0.18);
}

.process-map-section .section-actions {
	margin-top: clamp(32px, 4vw, 44px);
	text-align: center;
	display: flex;
	justify-content: center;
}

@media (max-width: 900px) {
	.process-map {
		padding: 32px 16px 20px;
	}

	.process-map__route--desktop {
		display: none;
	}

	.process-map__route--mobile {
		display: block;
	}

	.process-map__stops {
		grid-template-columns: 1fr;
		gap: 0;
		padding-left: 72px;
	}

	.process-map__stop {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 16px;
		padding: 0 0 28px;
	}

	.process-map__stop:nth-child(even) {
		padding-top: 0;
	}

	.process-map__pin {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.process-map__pin::before {
		left: auto;
		right: -8px;
		bottom: 50%;
		transform: translateY(50%) rotate(-90deg);
		border-top-color: #a88442;
	}

	.process-map__card {
		flex: 1;
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.process-map-section {
		padding: 52px 0;
	}

	.process-map__stops {
		padding-left: 64px;
	}

	.process-map__pin {
		width: 48px;
		height: 48px;
	}

	.process-map__pin span {
		font-size: 18px;
	}
}

.process-map-section .section-actions {
	margin-top: clamp(32px, 4vw, 44px);
	text-align: center;
	display: flex;
	justify-content: center;
}

.process-map-section .section-actions .hero-btn,
.process-map-section .section-actions .hero-btn.primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 40px;
	min-height: 64px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid rgba(17, 17, 17, 0.5);
	background: #111111;
	color: #ffffff;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.process-map-section .section-actions .hero-btn.primary:hover,
.process-map-section .section-actions .hero-btn:hover {
	transform: translateY(-2px);
	background: #000000;
	box-shadow:
		0 20px 42px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	.process-map__route-line {
		animation: none;
	}
}
