:root {
	--lightgrey: #f2f2f2;
	--middlegrey: #aaa;
}

* {
	font-family: Arial, Helvetica, sans-serif;
	padding: 0;
	margin: 0;
}

.container {
	max-width: 1000px;
	margin: 60px auto;
}

.intro {
	margin-bottom: 1.8em;
}

.filelist {
	display: flex;
	margin-bottom: 3em;
	background-color: #dddddd;
	border: 1px solid var(--middlegrey);
	border-radius: 4px;
}

.filelist li {
	list-style-type: none;
	border-left: 1px solid var(--middlegrey);
	padding: 0.5em;
}

.filelist li.active {
	font-weight: bold;
}

.filelist li:first-child {
	border-left: none;
}

.filelist li:last-child {
	border-right: 1px solid var(--middlegrey);
}

a {
	color: #000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 {
	margin-bottom: 1rem;
}

/* Blockliste */
.block-rules-list-container {
	background-color: var(--lightgrey);
	border: 1px solid var(--middlegrey);
	border-radius: 4px;
	padding: 0.7em 0.7em 0;
	margin-bottom: 1em;
	padding-bottom: 1em;
}

.block-rules-list-container h3 {
	margin-bottom: 1em;
	border-bottom: 1px solid var(--middlegrey);
	padding: 0.1em 0.7em 0.6em;
	margin-left: -0.7em;
	margin-right: -0.7em;
}

.block-rules-list h5 {
	margin-top: 1rem;
}

.block-rules-list ul {
	list-style-type: none;
	padding: 0;
}

.block-rules-list strong {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.block-rules-list li {
	display: inline-block;
}

.block-rules-list li:not(:last-child)::after {
	content: ",";
	margin-right: 5px; /* Abstand zwischen dem Eintrag und dem Komma */
}

/* Aufklappelemente */
details {
	border: 1px solid var(--middlegrey);
	border-radius: 4px;
	padding: 0.5em 0.5em 0;
	margin-bottom: 10px;
}

details[open] {
	padding: 0.5em;
}

details[open] summary {
	border-bottom: 1px solid var(--middlegrey);
	margin-bottom: 0.5em;
}

summary {
	font-weight: bold;
	margin: -0.5em -0.5em 0;
	padding: 0.5em;
	cursor: pointer;
}

/* Allgemeine Tabelleneigenschaften */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

table th {
	background-color: var(--lightgrey);
	text-align: left;
	padding: 10px;
}

table td {
	padding: 10px;
	border: 1px solid #ccc;
	word-break: break-all;
}

table tr:nth-child(even) {
	background-color: var(--lightgrey);
}

table tr:hover {
	background-color: #e0e0e0;
}

/* Hervorhebungen */
td.highlight {
	background: rgba(255, 0, 0, 0.3);
}

td.banned::after {
	content: "BAN";
	display: inline-flex;
	align-items: center;
	height: 20px;
	font-size: 10px;
	float: right;
	background: #950000;
	border: 1px solid darkred;
	border-radius: 5px;
	padding: 0 5px;
	color: #fff;
}
