/* Freiland Project Timeline
   ---------------------------------------------------------- */

.flpt-timeline {
	width: 100%;
	--flpt-columns: 5;
	--flpt-phase-width: 150px;
	--flpt-line-color: #747568;
	--flpt-dot-color: #d4d8d2;
	--flpt-dot-size: 68px;
	--flpt-line-size: 6px;
	--flpt-bar-height: 52px;
	--flpt-bar-gap: 12px;
	--flpt-label-size: 18px;
	--flpt-bar-label-size: 18px;
}

.flpt-timeline__scroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.flpt-timeline__scroll:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.flpt-timeline__inner {
	min-width: max(720px, calc(var(--flpt-columns) * var(--flpt-phase-width)));
	padding: 4px 0 10px;
	box-sizing: border-box;
}

/* Phases
   ---------------------------------------------------------- */

.flpt-timeline__phases {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--flpt-columns), minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.flpt-timeline__phases::before {
	content: "";
	position: absolute;
	top: calc(var(--flpt-dot-size) / 2);
	left: 0;
	right: 0;
	height: var(--flpt-line-size);
	background: var(--flpt-line-color);
	transform: translateY(-50%);
	z-index: 0;
}

.flpt-timeline__phase {
	position: relative;
	z-index: 1;
	min-width: 0;
	text-align: center;
}

.flpt-timeline__dot {
	display: block;
	width: var(--flpt-dot-size);
	height: var(--flpt-dot-size);
	margin: 0 auto 15px;
	border-radius: 50%;
	background: var(--flpt-dot-color);
}

.flpt-timeline__phase-label {
	display: block;
	margin: 0;
	padding: 0 10px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.flpt-timeline__phase-label:not(.flpt-use-theme-typo) {
	font-size: var(--flpt-label-size);
}

/* Activity bars
   ---------------------------------------------------------- */

.flpt-timeline__bars {
	display: grid;
	grid-template-columns: repeat(var(--flpt-columns), minmax(0, 1fr));
	grid-auto-rows: minmax(var(--flpt-bar-height), auto);
	row-gap: var(--flpt-bar-gap);
	margin-top: 78px;
}

.flpt-timeline__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: var(--flpt-bar-height);
	margin-inline: 8px;
	padding: 10px 24px;
	box-sizing: border-box;
	border-radius: 0;
	background: var(--flpt-bar-color, #7b7b68);
	color: var(--flpt-bar-text, #fff);
	text-align: center;
}

.flpt-timeline__bar-label {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: inherit;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.flpt-timeline__bar-label:not(.flpt-use-theme-typo) {
	font-size: var(--flpt-bar-label-size);
}



/* Headline alignment
   ---------------------------------------------------------- */

.flpt-align-left {
	text-align: left;
}

.flpt-align-center {
	text-align: center;
}

.flpt-align-right {
	text-align: right;
}

/* Tablet / mobile
   ---------------------------------------------------------- */

@media (max-width: 767px) {
	.flpt-timeline {
		--flpt-dot-size: 54px;
		--flpt-line-size: 5px;
		--flpt-bar-height: 44px;
		--flpt-label-size: 15px;
		--flpt-bar-label-size: 15px;
	}

	.flpt-timeline__bars {
		margin-top: 54px;
	}

	.flpt-timeline__bar {
		margin-inline: 6px;
		padding: 8px 15px;
	}
}

/* Reduced motion is included for future-proofing if animation is added later. */
@media (prefers-reduced-motion: reduce) {
	.flpt-timeline__scroll {
		scroll-behavior: auto;
	}
}
