/* =========================================================
   KALENDER – EDITORIAL / KOMPAKT
   ========================================================= */

.kalender-wrapper {
	--kalender-head-height: 46px;

	position: relative;

	display: grid;
	grid-template-columns:
		minmax(230px, 0.78fr)
		minmax(270px, 1fr)
		minmax(270px, 1fr);

	gap: clamp(34px, 4.5vw, 64px);
	align-items: start;

	margin-top: 54px;
	padding:
		52px
		clamp(34px, 5vw, 70px)
		30px;

	box-sizing: border-box;
}


/* =========================================================
   GROSSE BEREICHSÜBERSCHRIFT
   ========================================================= */

.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 – GRUNDLAYOUT
   ========================================================= */

.kalender-container {
	min-width: 0;
}


/* Falls oberhalb des eigentlichen Kalenders noch ein h3
   innerhalb des Containers verwendet wird */

.kalender-container h3 {
	position: relative;

	margin: 0 0 14px;
	padding: 0 0 10px;

	color: var(--accent);
	font-family: var(--fire-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1.4;
	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);
}


/* =========================================================
   MONATSNAVIGATION
   ========================================================= */

.kalender-header {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 30px;
	align-items: center;

	width: min(100%, 230px);
	height: var(--kalender-head-height);

	margin:
		0
		auto
		10px;
	padding: 0;

	box-sizing: border-box;
}


/* HTML:
   <h2><div id="kalender-month-label"></div></h2>
*/

.kalender-header h2 {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: var(--kalender-head-height);

	margin: 0;
padding: 13px 0 9px;

	box-sizing: border-box;

	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}


/* Kleine Linie unter Monat/Jahr */
.kalender-header h2::after {
	content: "";

	position: absolute;
	left: 50%;
	bottom: 3px;

	width: 70px;
	height: 1px;

	background: var(--accent);

	transform: translateX(-50%);
}



#kalender-month-label {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
font-weight:700;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}


/* Pfeile bleiben unabhängig von der Länge des Monatsnamens
   immer an derselben Position */

.kalender-header button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: var(--kalender-head-height);

	margin: 0;
	padding: 0 0 4px;

	color: var(--stecki-text);
	font-family: inherit;
	font-size: 23px;
	font-weight: 300;
	line-height: 1;

	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;

	cursor: pointer;

	transition:
		color 0.18s ease,
		opacity 0.18s ease;
}

.kalender-header button:hover {
	color: var(--accent);

	background: transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

.kalender-header button:focus,
.kalender-header button:active {
	color: var(--accent);

	background: transparent;
	border: 0;
	box-shadow: none;
	outline: 0;
	transform: none;
}


/* =========================================================
   KALENDERTABELLE
   ========================================================= */

.kalender-container table {
	width: 100%;
	max-width: none;

	margin: 0;

	border-collapse: separate;
	border-spacing: 3px 1px;
	table-layout: fixed;
}

.kalender-container th,
.kalender-container td {
	width: 14.285%;
	height: 21px;
	padding: 0;

	box-sizing: border-box;

	color: var(--stecki-text);
	font-size: 10px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	vertical-align: middle;

	border: 0;
}


/* Wochentage */

.kalender-container th {
	height: 25px;

	color: var(--stecki-strong-text);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
}


/* Kalendertage */

.kalender-container td {
	position: relative;

	border-radius: 999px;

	transition:
		color 0.18s ease,
		background 0.18s ease;
}

.kalender-container td:hover {
	color: var(--stecki-hover-text);
	background: var(--stecki-hover-bg);
}


/* =========================================================
   SZENEN- UND PLOTLISTEN
   ========================================================= */

.plot-list,
.pers-list {
	position: relative;

	width: auto;
	min-width: 0;
	max-height: clamp(180px, calc(100vh - 230px), 230px);

	padding: 0 0 0 30px;

	overflow-x: hidden;
	overflow-y: auto;

	box-sizing: border-box;

	color: var(--stecki-text);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.55;

	border-left: 1px solid var(--stecki-line);

	scrollbar-width: thin;
	scrollbar-color: var(--stecki-scrollbar) transparent;
}


/* =========================================================
   LISTENÜBERSCHRIFTEN
   exakt gleiche Höhe wie der Monatskopf
   ========================================================= */

.plot-list h4,
.pers-list h4 {
	position: sticky;
	z-index: 2;
	top: 0;

	display: flex;
	align-items: center;

	width: 100%;
	height: var(--kalender-head-height);

	margin: 0 0 10px;
	padding: 0 0 9px;

	box-sizing: border-box;

	color: var(--fire-accent);
	font-family: var(--fire-body);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.25em;
	line-height: 1;
	text-transform: uppercase;

	background: var(--fire-bg-dark);
	border: 0;
}


/* Gleiche kleine Akzentlinie wie beim Monat */

.plot-list h4::after,
.pers-list h4::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: 0;

	width: 64px;
	height: 1px;

	background: var(--accent);
}


/* =========================================================
   LISTENINHALT
   ========================================================= */

.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 8px;
	padding-left: 16px;

	color: var(--stecki-text);
}

.plot-list li:last-child,
.pers-list li:last-child {
	margin-bottom: 0;
}

.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;
}

.plot-list a:hover,
.pers-list a:hover {
	color: var(--fire-accent-dark);
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

.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);
}


/* =========================================================
   KALENDER-HIGHLIGHTS
   ========================================================= */

.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: 3px;

	color: var(--stecki-hover-text);

	background: rgba(255, 248, 192, 0.72);
	border-radius: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

	.kalender-wrapper {
		grid-template-columns:
			minmax(230px, 0.8fr)
			minmax(0, 1fr);

		gap: 36px;

		padding-right: 34px;
		padding-left: 34px;
	}

	.kalender-wrapper::before {
		left: 34px;
	}

	.plot-list:last-child,
	.pers-list:last-child {
		grid-column: 1 / -1;

		max-height: 210px;
		padding:
			24px
			0
			0;

		border-top: 1px solid var(--stecki-line);
		border-left: 0;
	}

	.plot-list:last-child h4,
	.pers-list:last-child h4 {
		background: var(--fire-bg-dark);
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px), (max-device-width: 760px) {

	.kalender-wrapper {
		--kalender-head-height: 50px;

		display: block;

		margin-top: 54px;
		padding:
			66px
			18px
			32px;
	}

	.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: 30px;
	}

	.kalender-container h3 {
		margin-bottom: 16px;

		font-size: 13px;
		letter-spacing: 0.18em;
	}

	.kalender-header {
		width: min(100%, 290px);
		margin-bottom: 12px;
	}

	#kalender-month-label {
		font-size: 13px;
		letter-spacing: 0.20em;
	}

	.kalender-header button {
		font-size: 27px;
	}

	.kalender-container table {
		border-spacing: 4px 2px;
	}

	.kalender-container th,
	.kalender-container td {
		height: 32px;

		font-size: 14px;
	}

	.kalender-container th {
		height: 34px;

		font-size: 13px;
	}

	.plot-list,
	.pers-list {
		max-height: none;

		margin: 0;
		padding:
			24px
			0
			0;

		overflow: visible;

		font-size: 16px;
		line-height: 1.65;

		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: 30px;
	}

	.plot-list h4,
	.pers-list h4 {
		position: relative;

		height: var(--kalender-head-height);

		margin-bottom: 14px;
		padding-bottom: 10px;

		font-size: 13px;
		letter-spacing: 0.18em;

		background: transparent;
	}

	.plot-list li,
	.pers-list li {
		margin-bottom: 11px;
		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;
	}

	.highlight-fullmoon {
		padding: 4px;
	}
}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@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-header {
		width: min(100%, 270px);
	}

	#kalender-month-label {
		font-size: 12px;
	}

	.kalender-container th,
	.kalender-container td {
		height: 30px;

		font-size: 14px;
	}

	.kalender-container th {
		height: 32px;

		font-size: 12px;
	}

	.plot-list,
	.pers-list {
		font-size: 17px;
	}

	.plot-list h4,
	.pers-list h4 {
		font-size: 12px;
	}

	.plot-list a,
	.pers-list a {
		font-size: 17px;
	}
}