@font-face {
  font-family: 'SourceCodePro';
  src: url('fonts/SourceCodePro-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Light.ttf') format('truetype');
}

*{
	box-sizing:border-box;
	padding:0;
	margin:0;
}

body{
	font-family:'Roboto';
	background-color:#eee;
}

.haupt{
	padding:20px;
	width:800px;
	max-width:100%;
	margin:auto;
	font-size:1.2rem;
	line-height:1.4;
}

h1{
	display:inline-block;
	background-color:#046;
	color:#fff;
	font-size:1.7rem;
	text-transform:uppercase;
	line-height:1;
	padding:20px 20px;
	margin:0px 0 0 0;
	width:100%;
	text-align:center;
}

.aufgabe{
	font-family:'SourceCodePro';
	padding:10px 10px;
	margin:10px 0 30px 0;
	background-color:#fff;
	font-size:1.5rem;
	text-align:center;
}

h2{
	font-size:1.5rem;
}

h1,h2,h3,h4	{
	text-transform:uppercase;
	margin-bottom:10px;
}

h3{
	margin:20px 0 20px 0;
	text-align:left;
}

p{
	text-align:left;
	font-size:1rem;
}

input[type=button]{
	padding:7px 10px;
	border-width:0;
	background-color:#064;
	color:#fff;
	text-transform:uppercase;
	border-radius:3px;
	font-size:0.8rem;
	margin:10px 10px 0 0;
}

input[type=button]:hover{
	transform:scale(0.95);
}

.zahl{
	width:50px;
	padding:5px;
	margin-bottom:10px;
	border:none;
	border-bottom:2px solid #000;
	background-color:#fff;
	text-align:center;
	font-size:0.9rem;
	font-family:monospace;
}

.trenner {
	width:100%;
	aspect-ratio: 5;
}

.red{
	background-color:#a00 !important;
}

.orange{
	background-color:#f80 !important;
}

.green{
	background-color:#064 !important;
	color:#fff !important;
}

.datenpunkt_loesung{
	display:none;
	background-color:#064;
	color:#fff;
	padding:5px 10px;
	border-radius:5px;
	margin-left:10px;
	font-size:0.8rem;
}

.infos{
	line-height:1.2;
	font-family:'SourceCodePro';
	padding:10px 10px;
	margin:10px 0 30px 0;
	background-color:#fff;
	font-size:1.5rem;
	text-align:center;
	
}

a.zurueck			{display:inline-block; padding:6px 10px; margin:0 0 20px 0; color:#fff; background-color:#aaa; border-radius:3px; font-size:0.9rem; font-family:'Roboto'; text-transform:uppercase; text-decoration:none;}
a.zurueck:hover		{transform:scale(0.95); background-color:#777;}

.datenpunkt			{background-color:#777; color:#fff; padding:5px; border-radius:5px;}

/* Bruchdarstellung*/
.formel_main{display:inline-block; font-size:2rem; font-family: 'SourceCodePro';}
.formel_inner{display:grid; grid-auto-flow:column; justify-items:center; align-items:center;}
.formel_faktor{display:grid; grid-auto-flow:column; justify-items:center; align-items:center;}
.formel_vorzeichen{padding-bottom:3px;}
.formel_zeichen{}
.formel_klammer{display:grid; grid-auto-flow:column; justify-items:center; align-items:center;}
.formel_bruch{display:inline-block; font-size:1rem; padding:4px;}
.formel_bruch_oben{border-bottom:3px solid #000; padding-left:3px; padding-right:3px; text-align:center; font-weight:bold;}
.formel_bruch_unten{text-align:center; font-weight:bold;}
.formel_summand{display:grid; grid-auto-flow:column; justify-items:center; align-items:center; }

table		{width:100%; border-collapse: collapse;}
table td	{border:1px solid #000; width:16.666%; padding:5px;}
