html, body{
    margin: 0px;
    padding: 0px;
    font-family: sans-serif;
}

h1{
	font-size: 2em;
}

h2{
	font-size: 1.5em;
}

article{
	margin-bottom: 3em;
}

.mail{
	text-decoration: underline;
	cursor: pointer;
}

.mail, a, a:visited{
	color: #d93d00;
}

.mail:hover, a:active, a:hover{
	background-color: #fff5f5;
	text-decoration: underline double;
}

nav{
    float: right;
    position: sticky;
    top: 10px;
    z-index: 7;
    margin-top: 20px;
}

nav > ul{
    list-style-type: none;
    margin: 0;
}

nav > ul > li{
    float: left;
}

nav > ul > li:last-of-type{
    margin-right: 30px;
}

nav > ul > li > a{
    display: inline-block;
    text-decoration: none;
    background-color: #f0f0f0;
    padding: 3px 10px;
    margin: 0px 10px; 
    color: #d93d00;
    font-variant: small-caps;
    border: 1px solid #d93d00; 
    transition: background-color 0.5s;
}

nav > ul > li > a:hover, nav > ul > li > a:focus{
    background-color: #fff1f1;
	text-decoration: none;
}

main{
    padding: 0 20px 25px 20px;
    max-width: 800px;
    margin: 0 auto;
    clear: both;
}

header{
    font-weight: bold;
}

footer{
	position: fixed;
	bottom: 0px;
	background-color: #D0D0D0;
	height: 20px;
	border-top: solid 5px #d93d00;
	width: 100%
}

.header_pics{
    float: left;
    width: 10%;
    height: 70px;
    margin: 5px 0 15px 1%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#header_sticky{
    width: auto;
	height: 135px;
    position: sticky;
    top: -100px;
    padding-top: 10px;
    background-color: #D0D0D0;
    background-image: url(/svg/Leiterbahnen.svg);
    background-size: cover;
    background-position: center;  
    border-bottom: solid 5px #d93d00;
    z-index: 5;
}

#hp1{
    background-image: url(/svg/Kondensator.svg);
}

#hp2{
    background-image: url(/svg/Lautsprecher.svg);
}

#hp3{
    background-image: url(/svg/LED.svg);
}

#hp4{
    background-image: url(/svg/Logik.svg);
}

#hp5{
    background-image: url(/svg/Mikro.svg);
}

#hp6{
    background-image: url(/svg/OpAmp.svg);
}

#hp7{
    background-image: url(/svg/Spule.svg);
}

#hp8{
    background-image: url(/svg/Transistor.svg);
}

#hp9{
    background-image: url(/svg/Widerstand.svg);
}

#title{
    font-variant: small-caps;
    font-size: xx-large;
    font-weight: bold;
    color: #d93d00;
    text-shadow: 0px 0px 20px #ffffff;
    margin-left: 5%;
}

@media all and (max-width: 900px) {
    nav{
        float: none;
        top: 49px;
        height: 30px;
        margin: 0;
        width: 100%;
        background-color: #dddddd;
        background-image: linear-gradient(to bottom, #dddddd, white);
        padding: 5px 0;
        z-index: 3;
    }

    nav > ul{
        padding-left: 20px;
    }

    nav > ul > li{
        margin-right: 10px;
    }

    nav > ul > li > a{
        margin: 0px 0px;
    }
}

@media all and (max-width: 520px) {
    nav{
        height: 60px;
    }
    
    nav > ul > li:nth-of-type(3){
        clear: left;
        margin-top: 5px;
    }
    
    nav > ul > li:nth-of-type(4){
        margin-top: 5px;
    }
}