#historyModal .modal-body {
	font-family: sans-serif;
	background: #f1f2f3;
}

#historyModal .timeline-wrapper {
	overflow-x: auto;
	width: 100%;
	padding: 0 1rem;
	box-sizing: border-box;
}

#historyModal .timeline {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	padding: 3rem 0;
	min-width: fit-content;
}

#historyModal .timeline-start,
#historyModal .timeline-today {
	position: relative;
	min-width: 3rem;
	flex-shrink: 0;
}

#historyModal .timeline-item {
	position: relative;
	border-top: 4px solid #99ccff;
	padding: 2rem 2.5rem 0 0;
	width: fit-content;
	display: flex;
	flex-direction: column;
	text-align: left;
	font-size: 0.9rem;
	color: #333;
	line-height: 1.3;
	height: calc(1.3em * 4 + 1rem + 0.25rem); /* Adjusted for 3 text lines + date */
	flex-shrink: 0;
	min-width: 100px; /* Prevent overly narrow items */
	max-width: 300px; /* Prevent overly wide items */
}

#historyModal .date {
	font-weight: bold;
	margin-bottom: 0.25rem;
}

#historyModal .text {
	display: block;
	line-height: 1.2; /* Consistent line height */
	height: calc(1.2em * 3); /* Exactly 3 lines */
	overflow: hidden; /* Hide overflow */
	text-overflow: ellipsis; /* Ellipsis for overflow */
	word-wrap: break-word; /* Handle long words */
}

#historyModal .caret {
	position: absolute;
	top: -1.95rem;
	left: -8px;
	z-index: 2;
	font-size: 3rem;
	color: #99ccff;
}


.history {
	margin: 2rem 0;
}

.history section {
	display: grid;
	grid-template-columns: 10ch 1fr; /* 10 Zeichen Breite für Datum */
	gap: 1.5rem;
	padding: 0.5rem 0;
	align-items: start;
}

.history section span:first-child {
	font-weight: bold;
	color: #555;
	white-space: nowrap;
}

.history section span:last-child {
	color: #222;
}
