/* TuS-LM Terminliste – Frontend-Darstellung */

.ptl-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.ptl-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	column-gap: 16px;
	align-items: start;
	text-decoration: none;
	color: inherit;
	padding: 10px 12px;
	border-radius: 6px;
	background-color: rgba(0, 0, 0, 0.02);
	transition: background-color 0.15s ease;
	box-sizing: border-box;
}

.ptl-row:hover,
.ptl-row:focus {
	background-color: rgba(0, 0, 0, 0.07);
	color: inherit;
}

.ptl-date {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.ptl-date-start {
	text-align: left;
}

.ptl-date-end {
	text-align: right;
}

.ptl-date-single {
	text-align: left;
}

.ptl-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.35;
	max-height: 2.7em;
	word-break: break-word;
}

.ptl-empty {
	font-style: italic;
	opacity: 0.8;
}

/* Trennlinien zwischen den Zeilen (Standard: ohne, kein Zusatzstil nötig) */
.ptl-list.ptl-divider-solid .ptl-row + .ptl-row {
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	padding-top: 12px;
}

.ptl-list.ptl-divider-dashed .ptl-row + .ptl-row {
	border-top: 1px dashed rgba(0, 0, 0, 0.3);
	padding-top: 12px;
}

.ptl-list.ptl-divider-dotted .ptl-row + .ptl-row {
	border-top: 2px dotted rgba(0, 0, 0, 0.35);
	padding-top: 12px;
}

.ptl-list.ptl-divider-double .ptl-row + .ptl-row {
	border-top: 3px double rgba(0, 0, 0, 0.3);
	padding-top: 12px;
}

/* Responsive: schmalere Datumsspalte auf Tablets */
@media (max-width: 600px) {
	.ptl-row {
		grid-template-columns: 100px 1fr;
		column-gap: 10px;
		padding: 8px 10px;
	}

	.ptl-date {
		font-size: 0.92em;
	}
}

/* Responsive: auf sehr schmalen Bildschirmen Datum und Titel untereinander */
@media (max-width: 420px) {
	.ptl-row {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.ptl-date {
		flex-direction: row;
		justify-content: space-between;
		white-space: normal;
	}

	.ptl-date-end {
		text-align: right;
	}
}
