body {
  font-size: 1.2rem;
  max-width: 100vw;
  overflow-x: hidden;
}

input {
	font-size: 1.2rem;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

footer {
	margin-top: 1rem;
	font-size: 0.75rem;
	max-width: 100vw;
	overflow-x: hidden;
}

h3 {
	margin-bottom: 0.5em;
}

h4 {
	margin-bottom: 0.25em;
}

.h1-zentriert {
  text-align: center;
  text-decoration-line: underline;
  margin: 0.5em 0.5em 0.5em 0.5em;
}

.h2-zentriert {
  text-align: center;
}

.h3-zentriert {
  text-align: center;
  margin: 2em 0em 1em 0em;
}

table.Term table, tr, th, td {
	font-size: 1.1rem;
	border-collapse: collapse;
	border: 2px solid;
	padding: 5px;
	font-size: 0.75rem;
}

table.Term td {
	font-size: 1.1rem;
	text-align: center;
	border: 2px solid;
}

table.Term th {
	font-size: 1.1rem;
	text-align: center;
	background-color: #ffffee;
	border: 2px solid;
	border-collapse: collapse;
}

table.Term thead {
	font-size: 1.1rem;
	position: sticky;
    top: 0;
	border: 2px solid;
	border-collapse: collapse;
	padding: .5em;
}

table.Term tr.Anzahl > * {
	font-size: 1.5rem;
	border: 2px solid;
	border-top-width: 6px;
	border-top-style: double;
	border-collapse: collapse;
}

#tbTerm {
	border-collapse: collapse;
}

fieldset.radio {
	font-size: 1.2rem;
	display: inline-block;
	border: 2px solid #884411;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 10px;
}

legend {
	font-size: 0.9rem;
	color: #884411;
	font-weight: bold;
}

.radio-green input[type="radio"] {
	visibility: hidden;
}

.radio-green label {
	border: 2px solid #333;
	border-radius: 0.5em;
	padding: 0.5em;
}

.radio-green input:checked + label {
	background: #aaffaa;
	color: #0a0a0a;
	box-shadow: none;
}

.radio-red input[type="radio"] {
	visibility: hidden;
}

.radio-red label {
	border: 1px solid #333;
	border-radius: 0.5em;
	padding: 0.5em;
}

.radio-red input:checked + label {
	background: #ffaaaa;
	color: #0a0a0a;
	box-shadow: none;
}

input:hover + label,
input:focus + label {
	background: #ffffaa;
}

.together {
	position: relative;
}

.together input {
	position: absolute;
	width: 1px;
	height: 1px;
	top: 1px;
	left: 1px;
}

.together label {
	margin: 0.5em 0;
	border-radius: 0;
}

.together label:first-of-type {
	border-radius: 0.5em 0 0 0.5em;
}

.together label:last-of-type {
	border-radius: 0 0.5em 0.5em 0;
}

@media (max-width: 480px) {
	body {
		font-size: 1.2rem;
		max-width: 100vw;
		overflow-x: hidden;
	}
	a {
		color: #8080FF;
	}
	a:visited {
		color: #2020AA;
	}
	input {
		font-size: 1.2rem;
	}
	img {
		max-width: 100%;
		height: auto;
		display: block;
	}
	table.Term {
		font-size: 0.5rem;
		border: 2px solid;
		border-collapse: collapse;
	}
	table.Term table, tr, th, td {
		font-size: 0.5rem !important;
		border: 2px solid;
		border-collapse: collapse;
	}
	table.Term tr.Anzahl > * {
		font-size: 0.75rem !important;
		border: 2px solid !important;
		border-collapse: collapse;
		border-top-width: 6px !important;
		border-top-style: double !important;
	}
	#tbTerm {
		border-collapse: collapse;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		font-size: 1.2rem;
		max-width: 100vw;
		overflow-x: hidden;
		background-color: #121212;
		color: #eeeeee;
	}
	a {
		color: #8080FF;
	}
	a:visited {
		color: #2020AA;
	}
	footer {
		color: #999;
		margin-top: 2rem;
		font-size: 0.8rem;
		max-width: 100vw;
		overflow-x: hidden;
	}
	input {
		font-size: 1.2rem;
	}
	img {
		max-width: 100%;
		height: auto;
		display: block;
	}
	table.Term {
		font-size: 0.5rem;
		border: 2px solid green;
		border-collapse: collapse;
	}
	table.Term  table, tr, th, td {
		font-size: 0.5rem !important;
		border: 2px solid green !important;
		border-collapse: collapse;
		padding: .5em;
	}
	table.Term tr.Anzahl > * {
		font-size: 0.75rem !important;
		border: 2px solid green !important;
		border-collapse: collapse;
		border-top-width: 6px !important;
		border-top-style: double !important;
	}
	#tbTerm {
		border-collapse: collapse;
	}
}
