/* =========================================================
   Friends Termine – Frontend
   Alle Farben/Schriften als CSS-Variablen überschreibbar.
   ========================================================= */

:root {
	--frte-accent: #E29E3F;
	--frte-ink: #0C0B0F;
	--frte-white: #FFFFFF;
	--frte-text: #1C1B20;
	--frte-muted: #A5A1AD;
	--frte-line: rgba(255, 255, 255, .10);
	--frte-line-light: #E7E4DF;
	--frte-font-display: 'Anton', 'Oswald', Impact, sans-serif;
	--frte-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--frte-radius: 22px;
}

/* ---------- Terminliste ---------- */

.frte-list-wrap {
	font-family: var(--frte-font-body);
	color: var(--frte-white);
	width: 100%;
}

.frte-list {
	display: flex;
	flex-direction: column;
}

.frte-row {
	display: grid;
	grid-template-columns: 120px 1.2fr 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 24px 8px;
	border-top: 1px solid var(--frte-line);
	transition: background .15s ease;
}

.frte-list .frte-row:last-child {
	border-bottom: 1px solid var(--frte-line);
}

.frte-row:hover {
	background: rgba(255, 255, 255, .03);
}

.frte-date {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.frte-day {
	font-family: var(--frte-font-display);
	font-size: 30px;
	line-height: 1;
	color: var(--frte-white);
}

.frte-month {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--frte-muted);
}

.frte-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.frte-title {
	font-weight: 800;
	font-size: 18px;
	line-height: 1.3;
	color: var(--frte-white);
}

.frte-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	color: var(--frte-accent);
	border: 1px solid var(--frte-accent);
}

.frte-badge--past {
	color: var(--frte-muted);
	border-color: var(--frte-muted);
}

.frte-place {
	font-size: 15px;
	color: var(--frte-muted);
}

.frte-time {
	display: block;
	font-size: 13px;
	margin-top: 3px;
	opacity: .8;
}

.frte-action {
	text-align: right;
	white-space: nowrap;
}

.frte-link {
	font-weight: 800;
	font-size: 14px;
	color: var(--frte-white);
	text-decoration: none;
	transition: letter-spacing .2s ease;
}

.frte-link:hover {
	letter-spacing: .03em;
	color: var(--frte-accent);
}

/* ---------- Vergangene Termine ---------- */

.frte-row--past .frte-title,
.frte-row--past .frte-day,
.frte-row--past .frte-place {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: rgba(255, 255, 255, .45);
}

.frte-row--past {
	opacity: .5;
}

.frte-row--past:hover {
	opacity: .7;
}

/* ---------- Buttons ---------- */

.frte-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.frte-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--frte-font-body);
	font-weight: 800;
	font-size: 14px;
	padding: 15px 30px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	background: var(--frte-accent);
	color: #1C1408;
	transition: transform .18s ease, filter .18s ease, opacity .2s ease;
}

.frte-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.frte-btn--ghost {
	background: transparent;
	color: var(--frte-white);
	border: 1.5px solid rgba(255, 255, 255, .3);
}

.frte-btn--ghost:hover {
	border-color: var(--frte-white);
}

.frte-btn[disabled] {
	opacity: .45;
	cursor: default;
	transform: none;
}

.frte-btn.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* ---------- Hinweis & Leerzustand ---------- */

.frte-hint-text {
	font-size: 14px;
	color: var(--frte-muted);
	margin: 20px 0 0;
}

.frte-empty {
	font-size: 15px;
	color: var(--frte-muted);
	padding: 28px 0;
	margin: 0;
}

/* ---------- Nächster Termin (Hero-Karte) ---------- */

.frte-next {
	display: flex;
	align-items: center;
	gap: 22px;
	background: var(--frte-white);
	border-radius: var(--frte-radius);
	padding: 22px 26px;
	text-decoration: none;
	color: var(--frte-text);
	font-family: var(--frte-font-body);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	transition: transform .2s ease, box-shadow .2s ease;
	max-width: 480px;
}

a.frte-next:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .34);
}

.frte-next-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	border: 1.5px solid var(--frte-ink);
	border-radius: 16px;
	padding: 12px 16px;
	min-width: 80px;
}

.frte-next-day {
	font-family: var(--frte-font-display);
	font-size: 28px;
	line-height: 1;
	color: var(--frte-ink);
}

.frte-next-month {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #6E6B74;
}

.frte-next-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.frte-next-label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--frte-accent);
	margin-bottom: 3px;
}

.frte-next-title {
	font-weight: 800;
	font-size: 17px;
	line-height: 1.25;
	color: var(--frte-ink);
}

.frte-next-place {
	font-size: 13px;
	color: #6E6B74;
}

.frte-next-arrow {
	margin-left: auto;
	font-size: 20px;
	color: var(--frte-ink);
}

.frte-next--empty {
	justify-content: center;
	font-size: 14px;
	color: #6E6B74;
}

/* ---------- Auf hellem Hintergrund ---------- */
/* Wrapper-Klasse frte-on-light setzen, wenn die Liste auf heller Fläche steht */

.frte-on-light .frte-list-wrap,
.frte-on-light .frte-day,
.frte-on-light .frte-title,
.frte-on-light .frte-link {
	color: var(--frte-text);
}

.frte-on-light .frte-row {
	border-color: var(--frte-line-light);
}

.frte-on-light .frte-list .frte-row:last-child {
	border-bottom-color: var(--frte-line-light);
}

.frte-on-light .frte-month,
.frte-on-light .frte-place,
.frte-on-light .frte-hint-text,
.frte-on-light .frte-empty {
	color: #6E6B74;
}

.frte-on-light .frte-row:hover {
	background: rgba(0, 0, 0, .02);
}

.frte-on-light .frte-btn--ghost {
	color: var(--frte-text);
	border-color: var(--frte-text);
}

.frte-on-light .frte-row--past .frte-title,
.frte-on-light .frte-row--past .frte-day,
.frte-on-light .frte-row--past .frte-place {
	text-decoration-color: rgba(0, 0, 0, .4);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.frte-row {
		grid-template-columns: 96px 1.4fr 1fr;
		gap: 20px;
	}

	.frte-action {
		grid-column: 2 / -1;
		text-align: left;
	}
}

@media (max-width: 767px) {
	.frte-row {
		grid-template-columns: 64px 1fr;
		gap: 14px;
		padding: 18px 2px;
	}

	.frte-day {
		font-size: 22px;
	}

	.frte-month {
		font-size: 9px;
		letter-spacing: .12em;
	}

	.frte-title {
		font-size: 15px;
	}

	.frte-place {
		grid-column: 2;
		font-size: 12px;
	}

	.frte-action {
		grid-column: 2;
	}

	.frte-actions {
		flex-direction: column;
		margin-top: 26px;
	}

	.frte-btn {
		width: 100%;
	}

	.frte-next {
		padding: 16px 18px;
		gap: 14px;
	}

	.frte-next-date {
		min-width: 62px;
		padding: 8px 12px;
	}

	.frte-next-day {
		font-size: 22px;
	}

	.frte-next-title {
		font-size: 14px;
	}
}

/* ---------- Einblend-Animation beim Nachladen ---------- */

.frte-row.frte-in {
	animation: frte-fade .45s cubic-bezier(.22, .6, .2, 1) both;
}

@keyframes frte-fade {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.frte-row.frte-in {
		animation: none;
	}

	.frte-btn:hover {
		transform: none;
	}
}
