/*

Der Banner ganz oben bei der Website.
*/
body {
    background-image: url("../Bilder/compressed/teslaBannerCompressed.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: black;
    background-position-y: 60px;
    color: white;
    height: auto;
    width: fit-content;
    margin-left: 0;
    margin-top: 0;
    font-family: Lato, sans-serif;
}


/*
Die Navigationsleiste.
 */
header {
    background-color: black;
    height: 100px;
   max-width: 100%;
}

header button {
    background-color: black;
    border: 1px solid black;
    position: relative;
    top: -20px;
}

header .suchFeld {
    margin-top: 1px;
}

#nav {
    overflow: hidden;
    width: auto;
    display: flex;
    padding: 1px;
    list-style: none;
    position: relative;
    top: 10px;

}

#nav a {
    color: #9b9b9b;
    padding: 14px 15px;
    text-decoration: none;
    font-size: 30px;

}

#nav a:hover {
    color: #696969;
}

#nav a.active {
    color: #ffffff;
}

.suchFeld input[type=text] {
    padding: 6px;
    border: none;
    position: relative;
    top:  15px;
    font-size: 2em;
    width: 200px;
}


/*
main
 */

.layout {
    position: relative;
    top: 400px;
    display: flex;
    flex-direction: column;
    background-color: black;
    height: 1000px;
}

.linkeSeite {
    position: absolute;
    width: auto;
    top: 1.5vh;
    left: 1px;
    font-size: 28px;
    padding-left: 10px;
    padding-top: 20px;
    height: fit-content;
}

#preisAlles, #neuAutoAlles, #entwicklungSchweizAlles{
    height: 650px;
}

.bilderRechts{
    position: absolute;
    right:  1px;
    padding-right: 10px;
}
#bildLadestation{
    width: 100%;
    position: absolute;
    top: 550px;
}
#reichweiteBild{
    width: 100%;
    position: absolute;
    top: 645px;
}
#anzahlAutoAufStrasse{
    width: 80%;
    position: absolute;
    top: 350px;
    left: 1px;
}
#bildTeslaX{
    width: 100%;
    position: relative;
    top: 500px;
}
.links:active,.links:link,.links:visited{
    color: white;
    position: relative;
    top: 15px;

    
}
.links:hover{
    color: #696969;
}


main button {
    position: relative;
    border: 2px solid black;
    left: 95%;
    bottom: -500px;
    background-color: black;

}

/*
Der Footer ganz unten bei der Website.
 */
footer {
    position: relative;
    bottom: -500px;

}

footer ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

footer ul li {
    padding-left: 10px;
    padding-right: 10px;
    height: 50px;
    line-height: 50px;
    color: white;
    background-color: gray;
}

footer a:link, a:visited, a:active {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: red;
}
