
.kalender-wrapper {
	position: relative;

	display: grid;
	grid-template-columns:
		minmax(250px, 0.82fr)
		minmax(280px, 1fr)
		minmax(280px, 1fr);
	gap: clamp(40px, 5vw, 72px);

	align-items: start;

	margin-top: 72px;
	padding:
		64px
		clamp(34px, 5vw, 70px)
		44px;
}

.kalender-wrapper::before {
	content: "INGAME KALENDER, TERMINKALENDER & PLOTS";

	position: absolute;
	top: 0;
	left: clamp(34px, 5vw, 70px);

	padding-left: 66px;

	color: var(--fire-accent);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.28em;
	line-height: 1.5;
	text-transform: uppercase;

	background:
		linear-gradient(
			to right,
			var(--accent) 46px,
			transparent 46px
		)
		left center / 46px 1px no-repeat;
}

.kalender-container {
	min-width: 0;
}

.kalender-container h3 {
	position: relative;

	margin: 0 0 22px;
	padding: 0 0 12px;

	color: var(--accent);
	font-family: var(--fire-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.25em;
	line-height: 1.5;
	text-align: left;
	text-transform: uppercase;

	border: 0;
}

.kalender-container h3::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: 0;

	width: 58px;
	height: 1px;

	background: var(--accent);
}

.kalender-container table {
	width: 100%;
	margin: 0;

	border-collapse: separate;
	border-spacing: 4px;
	table-layout: fixed;
}

.kalender-container th,
.kalender-container td {
	width: 14.285%;
	height: 31px;
	padding: 0;

	color: var(--stecki-text);
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	vertical-align: middle;

	border: 0;
}

.kalender-container th {
	color: var(--stecki-strong-text);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.kalender-container td {
	position: relative;

	border-radius: 999px;

	transition:
		color 0.18s ease,
		background 0.18s ease,
		transform 0.18s ease;
}

.kalender-container td:hover {
	color: var(--stecki-hover-text);
	background: var(--stecki-hover-bg);

	transform: translateY(-1px);
}

.kalender-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	margin: 0 0 18px;
}

.kalender-nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;

	color: var(--accent);
	font-size: 13px;
	line-height: 1;

	background: transparent;
	border: 1px solid var(--stecki-line-strong);
	border-radius: 5px;

	cursor: pointer;

	transition:
		color 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease,
		transform 0.18s ease;
}

.kalender-nav button:hover {
	color: var(--stecki-hover-text);
	background: var(--stecki-hover-bg);
	border-color: var(--accent);

	transform: translateY(-1px);
}

.plot-list,
.pers-list {
	position: relative;

	width: auto;
	min-width: 0;
	max-height: 270px;
	padding: 0 0 0 30px;

	overflow: auto;

	box-sizing: border-box;

	color: var(--stecki-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;

	border-left: 1px solid var(--stecki-line);

	scrollbar-width: thin;
	scrollbar-color: var(--stecki-scrollbar) transparent;
}

.plot-list h4,
.pers-list h4 {
	position: sticky;
	z-index: 2;
	top: 0;

	margin: 0 0 18px;
	padding: 0 0 11px;

	color: var(--fire-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1.5;
	text-transform: uppercase;

	background: var(--fire-bg-dark);
	border-bottom: 1px solid var(--stecki-line);
}

.plot-list ul,
.pers-list ul {
	margin: 0;
	padding: 0;

	max-height: none;
	overflow: visible;

	list-style: none;
}

.plot-list li,
.pers-list li {
	position: relative;

	margin: 0 0 11px;
	padding-left: 17px;

	color: var(--stecki-text);
}

.plot-list li::before,
.pers-list li::before {
	content: "—";

	position: absolute;
	left: 0;
	top: 0;

	color: var(--accent);
}

.plot-list a,
.pers-list a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;

	transition:
		color 0.18s ease,
		transform 0.18s ease;
}

.plot-list a:hover,
.pers-list a:hover {
	color: var(--fire-accent-dark);
}

.plot-list::-webkit-scrollbar,
.pers-list::-webkit-scrollbar {
	width: 4px;
}

.plot-list::-webkit-scrollbar-track,
.pers-list::-webkit-scrollbar-track {
	background: transparent;
}

.plot-list::-webkit-scrollbar-thumb,
.pers-list::-webkit-scrollbar-thumb {
	background: var(--stecki-scrollbar);
}

.highlight-user {
	font-weight: 700;
	color: var(--stecki-hover-text);

	background: var(--stecki-hover-bg);
	border-radius: 4px;
}

.highlight-plot {
	font-weight: 700;
	color: var(--accent);

	background: var(--stecki-fraktion-bg);
	border-radius: 4px;
}

.highlight-personal {
	font-weight: 700;
	color: var(--stecki-hover-text);

	background: var(--stecki-line-strong);
	border-radius: 4px;
}

.highlight-fullmoon {
	padding: 5px;

	color: var(--stecki-hover-text);

	background: rgba(255, 248, 192, 0.72);
	border-radius: 100%;
}

@media (max-width: 980px) {
	.kalender-wrapper {
		grid-template-columns:
			minmax(240px, 0.85fr)
			minmax(0, 1fr);

		gap: 42px;

		padding-right: 34px;
		padding-left: 34px;
	}

	.plot-list:last-child,
	.pers-list:last-child {
		grid-column: 1 / -1;

		padding: 28px 0 0;

		border-top: 1px solid var(--stecki-line);
		border-left: 0;
	}
}

@media (max-width: 760px), (max-device-width: 760px) {
	.kalender-wrapper {
		display: block;

		margin-top: 56px;
		padding:
			72px
			18px
			34px;
	}

	.kalender-wrapper::before {
		top: 0;
		left: 18px;
		right: 18px;

		padding-left: 0;

		font-size: 13px;
		letter-spacing: 0.20em;
		line-height: 1.6;

		background: none;
	}

	.kalender-container {
		margin-bottom: 34px;
	}

	.kalender-container h3 {
		margin-bottom: 18px;

		font-size: 13px;
		letter-spacing: 0.18em;
	}

	.kalender-container table {
		border-spacing: 5px;
	}

	.kalender-container th,
	.kalender-container td {
		height: 42px;

		font-size: 15px;
	}

	.kalender-container th {
		font-size: 13px;
	}

	.kalender-nav {
		margin-bottom: 18px;
	}

	.kalender-nav button {
		width: 40px;
		height: 40px;

		font-size: 16px;
	}

	.plot-list,
	.pers-list {
		max-height: none;
		margin-top: 0;
		padding: 26px 0 0;

		overflow: visible;

		font-size: 16px;
		line-height: 1.7;

		border-top: 1px solid var(--stecki-line);
		border-left: 0;
	}

	.plot-list + .plot-list,
	.pers-list + .pers-list,
	.plot-list + .pers-list,
	.pers-list + .plot-list {
		margin-top: 34px;
	}

	.plot-list h4,
	.pers-list h4 {
		position: static;

		margin-bottom: 18px;

		font-size: 13px;
		letter-spacing: 0.18em;

		background: transparent;
	}

	.plot-list li,
	.pers-list li {
		margin-bottom: 13px;
		padding-left: 20px;
	}

	.plot-list a,
	.pers-list a {
		font-size: 16px;
		line-height: 1.65;
	}

	.highlight-user,
	.highlight-plot,
	.highlight-personal {
		padding: 2px 5px;
	}
}

@media (max-width: 480px), (max-device-width: 480px) {
	.kalender-wrapper {
		padding-right: 14px;
		padding-left: 14px;
	}

	.kalender-wrapper::before {
		left: 14px;
		right: 14px;

		font-size: 12px;
	}

	.kalender-container h3 {
		font-size: 12px;
	}

	.kalender-container th,
	.kalender-container td {
		height: 40px;

		font-size: 14px;
	}

	.plot-list,
	.pers-list {
		font-size: 17px;
	}

	.plot-list a,
	.pers-list a {
		font-size: 17px;
	}
}
