/* =========================================================
   EVENT-VERWALTUNG – SEITENLAYOUT
   ========================================================= */

body > h1,
body > h2,
body > .event-form,
body > .search-form,
body > table,
body > .error_messages {
	width: min(100% - 48px, 1400px);
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;
}


/* =========================================================
   HAUPTÜBERSCHRIFT
   ========================================================= */

body > h1 {
	position: relative;

	margin-top: 48px;
	margin-bottom: 48px;
	padding: 0 0 26px;

	color: transparent;
	font-family: var(--fire-display);
	font-size: clamp(52px, 7vw, 92px);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 0.92;

	border-bottom: 1px solid rgba(165, 195, 200, 0.13);

	-webkit-text-stroke:
		1px
		rgba(232, 236, 234, 0.86);
}

body > h1::before {
	content: "Szenentracker";

	display: block;

	margin-bottom: 9px;

	color: var(--fire-accent-light);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;

	-webkit-text-stroke: 0;
}

body > h1::after {
	content: "";

	position: absolute;
	bottom: -1px;
	left: 0;

	width: min(180px, 35%);
	height: 1px;

	background:
		linear-gradient(
			to right,
			var(--fire-accent),
			var(--accent)
		);
}


/* =========================================================
   ABSCHNITTSÜBERSCHRIFTEN
   ========================================================= */

body > h2 {
	position: relative;

	margin-top: 48px;
	margin-bottom: 20px;
	padding-bottom: 13px;

	color: rgba(235, 239, 237, 0.94);
	font-family: var(--fire-display);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 400;
	letter-spacing: 0.015em;
	line-height: 1;

	border-bottom: 1px solid rgba(165, 195, 200, 0.11);
}

body > h2::after {
	content: "";

	position: absolute;
	bottom: -1px;
	left: 0;

	width: 70px;
	height: 1px;

	background: rgba(178, 139, 173, 0.55);
}


/* =========================================================
   FORMULARGRUNDLAGE
   ========================================================= */

body > .event-form,
body > .search-form {
	position: relative;

	display: grid;
	gap: 22px;

	padding: 28px;

	color: var(--txt);

	background:
		linear-gradient(
			135deg,
			rgba(178, 139, 173, 0.035),
			transparent 42%
		),
		rgba(255, 255, 255, 0.008);

	border: 1px solid rgba(165, 195, 200, 0.11);
}

body > .event-form::before,
body > .event-form::after,
body > .search-form::before,
body > .search-form::after {
	content: "";

	position: absolute;

	width: 26px;
	height: 26px;

	pointer-events: none;
}

body > .event-form::before,
body > .search-form::before {
	top: 9px;
	left: 9px;

	border-top: 1px solid rgba(178, 139, 173, 0.4);
	border-left: 1px solid rgba(178, 139, 173, 0.4);
}

body > .event-form::after,
body > .search-form::after {
	right: 9px;
	bottom: 9px;

	border-right: 1px solid rgba(112, 150, 154, 0.32);
	border-bottom: 1px solid rgba(112, 150, 154, 0.32);
}


/* =========================================================
   EVENT-FORMULAR
   ========================================================= */

body > .event-form {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body > .event-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;

	min-width: 0;

	color: rgba(209, 217, 214, 0.68);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}

body > .event-form textarea {
	grid-column: 1 / -1;
}

body > .event-form .actions {
	grid-column: 1 / -1;

	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px;

	padding-top: 5px;
}


/* =========================================================
   SUCHFORMULAR
   ========================================================= */

body > .search-form {
	grid-template-columns:
		minmax(220px, 1fr)
		minmax(180px, 0.7fr)
		minmax(180px, 0.7fr)
		auto;
	align-items: end;
}

body > .search-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;

	min-width: 0;

	color: rgba(209, 217, 214, 0.68);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}


/* =========================================================
   EINGABEFELDER
   ========================================================= */

body > .event-form input[type="text"],
body > .event-form textarea,
body > .search-form input[type="text"] {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;

	box-sizing: border-box;

	color: var(--txt);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.6;
	text-transform: none;

	background: rgba(255, 255, 255, 0.014);
	border: 1px solid rgba(165, 195, 200, 0.14);
	border-radius: 0;
	outline: none;

	transition:
		background 0.18s ease,
		border-color 0.18s ease;
}

body > .event-form textarea {
	min-height: 170px;

	resize: vertical;
}

body > .event-form input[type="text"]:hover,
body > .event-form textarea:hover,
body > .search-form input[type="text"]:hover {
	border-color: rgba(178, 139, 173, 0.3);
}

body > .event-form input[type="text"]:focus,
body > .event-form textarea:focus,
body > .search-form input[type="text"]:focus {
	background: rgba(255, 255, 255, 0.025);
	border-color: rgba(178, 139, 173, 0.5);
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

body > .event-form textarea::placeholder,
body > .search-form input::placeholder {
	color: rgba(181, 193, 189, 0.35);
}


/* =========================================================
   BUTTONS
   Überschreibt auch die Inline-Styles im Template
   ========================================================= */

body > .event-form .button,
body > .search-form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 38px;
	margin: 0 !important;
	padding: 9px 16px !important;

	box-sizing: border-box;

	color: rgba(239, 242, 240, 0.9) !important;
	font-family: inherit;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;

	background:
		linear-gradient(
			to right,
			rgba(178, 139, 173, 0.09),
			rgba(112, 150, 154, 0.03)
		) !important;

	border: 1px solid rgba(178, 139, 173, 0.28) !important;
	border-radius: 0 !important;
	outline: none;

	cursor: pointer;

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

body > .event-form .button:hover,
body > .search-form .button:hover {
	color: #fff !important;

	background:
		linear-gradient(
			to right,
			rgba(178, 139, 173, 0.15),
			rgba(112, 150, 154, 0.055)
		) !important;

	border-color: rgba(178, 139, 173, 0.52) !important;
}


/* =========================================================
   ABBRECHEN-BUTTON
   ========================================================= */

body > .event-form .actions a.button {
	color: rgba(197, 207, 203, 0.65) !important;

	background: transparent !important;
	border-color: rgba(165, 195, 200, 0.16) !important;
}

body > .event-form .actions a.button:hover {
	color: rgba(242, 245, 243, 0.94) !important;
	border-color: rgba(165, 195, 200, 0.38) !important;
}


/* =========================================================
   FEHLERMELDUNGEN
   ========================================================= */

body > .error_messages {
	position: relative;

	margin-top: 0;
	margin-bottom: 24px;
	padding: 15px 17px !important;

	color: rgba(232, 189, 194, 0.92);
	font-size: 12px;
	line-height: 1.7;

	background:
		linear-gradient(
			to right,
			rgba(160, 75, 87, 0.1),
			transparent 65%
		) !important;

	border: 1px solid rgba(190, 100, 110, 0.28) !important;
	border-radius: 0;
}


/* =========================================================
   EVENT-TABELLE
   ========================================================= */

body > table {
	width: min(100% - 48px, 1400px) !important;
	margin-top: 0 !important;
	margin-right: auto;
	margin-bottom: 80px;
	margin-left: auto;

	border-spacing: 0;
	border-collapse: separate !important;

	background: transparent;
	border: 1px solid rgba(165, 195, 200, 0.11);
}

body > table th,
body > table td {
	padding: 13px 15px !important;

	color: var(--txt);

	border: 0 !important;
	border-right: 1px solid rgba(165, 195, 200, 0.07) !important;
	border-bottom: 1px solid rgba(165, 195, 200, 0.075) !important;
}

body > table th:last-child,
body > table td:last-child {
	border-right: 0 !important;
}

body > table tbody tr:last-child td {
	border-bottom: 0 !important;
}


/* =========================================================
   TABELLENKOPF
   ========================================================= */

body > table th {
	color: rgba(205, 214, 211, 0.68);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	line-height: 1.45;
	text-align: left;
	text-transform: uppercase;

	background:
		linear-gradient(
			to right,
			rgba(178, 139, 173, 0.055),
			transparent 70%
		) !important;
}


/* =========================================================
   TABELLENZEILEN
   ========================================================= */

body > table td {
	color: rgba(209, 217, 214, 0.72);
	font-size: 12px;
	line-height: 1.7;

	background: rgba(255, 255, 255, 0.006);
}

body > table tbody tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.011);
}

body > table tbody tr:hover td {
	background:
		linear-gradient(
			to right,
			rgba(178, 139, 173, 0.028),
			transparent 72%
		);
}


/* =========================================================
   LINKS UND BUTTONS IN DER TABELLE
   ========================================================= */

body > table a {
	color: rgba(218, 224, 221, 0.76);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;

	border-bottom: 1px solid transparent;

	transition:
		color 0.18s ease,
		border-color 0.18s ease;
}

body > table a:hover {
	color: #fff;

	border-bottom-color: rgba(178, 139, 173, 0.48);
}


/* =========================================================
   LEERE TABELLE
   ========================================================= */

body > table tbody td[colspan] {
	padding: 30px !important;

	color: rgba(181, 193, 189, 0.48);
	font-style: italic;
	text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

	body > .event-form {
		grid-template-columns: 1fr;
	}

	body > .event-form textarea,
	body > .event-form .actions {
		grid-column: auto;
	}

	body > .search-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body > .search-form .button {
		width: 100%;
	}

}

@media (max-width: 700px) {

	body > h1,
	body > h2,
	body > .event-form,
	body > .search-form,
	body > table,
	body > .error_messages {
		width: min(100% - 24px, 1400px) !important;
	}

	body > h1 {
		margin-top: 30px;
		margin-bottom: 36px;

		font-size: clamp(44px, 15vw, 68px);
	}

	body > .event-form,
	body > .search-form {
		padding: 22px 17px;
	}

	body > .search-form {
		grid-template-columns: 1fr;
	}

	body > .event-form .actions {
		align-items: stretch;
		flex-direction: column;
	}

	body > .event-form .actions .button,
	body > .search-form .button {
		width: 100%;
	}

	body > table {
		display: block;

		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body > table th,
	body > table td {
		min-width: 130px;
	}

	body > table th:nth-child(2),
	body > table td:nth-child(2) {
		min-width: 260px;
	}

}