body {
	margin:0;
	padding:0;
    background-color: #F0F0F0;
}

#main_wrap {
    margin:0px auto;
    max-width:960px;
	margin-bottom:1%;
    background:#e0e0e0; 
	overflow: hidden;
}
	 
#header {    
	width:100%;
	height:50px;
	padding:1%;
    font-weight:bold;  
	clear:both;
    background:#a3004e; 
    color:white;
}

#logo {
    float:left;
    width:20%;
}

#titel {
    float:left;
    width:70%;
}

#seitenzahlen {
    float:right;
    margin-top: 12px;
    padding-right:2%;
}
	 
#content {
	position:relative;
    float:left;
    width:46%;
    margin-right:0.2%;
    background:#FFFFFF;
    height:300px;
    padding:2%;
    clear:both;
	overflow: auto;
}
	 
#sidebar {
	position:relative;
    float:left;
    width:45.8%;
    background:#FFFFFF;
    height:300px;
    padding:2%;
	overflow: auto;
}
#inhalt {
	position:relative;
    width:96%;
    background:#FFFFFF;
    height:300px;
    padding:2%;
	overflow: auto;
}
	 
#footer {
    width:98%;
	height:40px;
	clear:both;
	background:#a3004e;
    padding-right:3%;
}

#unternavigation {
    float:left;
    padding-left:1%;
	width:80%;
	color:#ffffff;
	margin-top:4px;
}

#unternavigation a {
    color:#d0d0e0;
	font-size: 0.85em;
}

.link {
 color:black;
 cursor:pointer;
 text-decoration: none;
 background-color: #FFE1F0;
 }
 
 span.frac {
display: inline-block;
text-align: center;
}
span.frac > sup {
display: block;
border-bottom: 1px solid;
font: inherit;
}
span.frac > span {
display: none;
}
span.frac > sub {
display: block;
font: inherit;
}

.up2 {
vertical-align:15px;
}

@media only screen and (min-width: 1024px) {

	#main_wrap {
		margin-top:2%;
	}
		
	#content {
		height:400px;
	}
		 
	#sidebar {
		height:400px;
	}
	
		 
	#inhalt {
		height:400px;
	}
	
	#footer {
		margin:0px auto;
		width:950px;
		height:40px;
		margin-top:0%;
		padding-top:8px;
		padding-right:10px;
	}
	
	#weiter, #zurueck    { font-size: 85% }
}

@media only screen and (max-width: 1024px) {

	#header {
		width:100%;	
	}
	
	#unternavigation {
	    display:none;
	}

} 

@media only screen and (max-width: 480px) {
	#header {
		width:100%;
		margin: 0%;
		padding:2%;
	}
	
	#logo {
	    display:none;
	}
	
	#content { 
		width:99%;
		margin-bottom:1%;
    	padding:1%;
	}

	#sidebar {
		width:99%;
		margin-right:0;
		margin-bottom:1%;
    	padding:1%;
	}

	#inhalt {
		width:98%;
		padding-right:2%;
		height:608px;
		overflow: auto;
	}
	#unternavigation {
	    display:none;
	}
}

