body {
    font-family: sans-serif;
    background-color: #ffffff;
    color: rgb(255, 255, 255);
}

img {
    width: 100%;
    margin-bottom: 1rem;
}



#start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto;
    gap: 20px;
    background-image: url('../images/Hintergrund startseite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;




}






#Geschichte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto;
    gap: 20px;
    background-image: url('/assets/images/Geschichte\ Hintergrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}


:root {
    --background-color: rgb(14, 1, 62);
    --primary-color: rgb(255, 255, 255);
    --secondary-color: rgb(14, 1, 62);
}


body {
    font-family: system-ui, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    overflow-x: hidden;

}

img {
    width: 100%;
    display: flex;
    margin-bottom: 1rem;

}




main {
    display: flex;

    margin: 0 auto;
    gap: 20px;
}

section {
    flex: 1 0 0;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 20px;
}

address {
    padding: 20px;
}

@media screen and (max-width: 800px) {
    main {
        flex-direction: column;
    }
}

a {
    text-decoration: none;
    color: inherit;

}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 40px;
    min-height: 70px;
    max-height: 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

.header-logo {
    height: 50px;
    width: auto;
    margin-right: 20px;
}

.header-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.top-right-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.top-right-nav a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;

}

.header-car-container {
    position: relative;
    flex: 1;
    height: 80px;
    display: flex;
    align-items: center;

}

.header-car {
    position: absolute;
    left: 0;
    top: 0;
    height: 100px;
    width: auto;
    transition: left 0.1s;
    pointer-events: none;
}

main h2 {

    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin: 10px 0;
    font-size: 2.5rem;
    font-weight: bold;

}

main h5 {

    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: normal;

}

main h3 {

    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 2.2rem;
    font-weight: normal;

}

.yuki2 {
    margin-top: -20px;
}

main h4 {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 1.0rem;
    font-weight: bold;
    margin-top: 100px;


}



footer {
    background-color: rgb(14, 1, 62);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.insta-logo {
    height: 50px;
    width: auto;
    margin-top: -30px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.text2 {
    margin-top: 50px;
}


.geschichte-auto {
    margin-top: 10px;
    margin-left: 60px;
    max-width: 80%;

}

.history {
    display: flex;
}

.pitstop picture {
    margin-top: 20px;
    margin-left: 60px;
    max-width: 80%;
}

.pitstop {
    display: flex;
}


.fahrer-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.fahrer-container h1 {
    color: #d32f2f;
    margin-bottom: 40px;
}

.fahrer-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fahrer-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fahrer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.fahrer-card img {
    width: 100%;
    border-radius: 12px 12px 0 0;
    height: 350px;
    object-fit: cover;
}

.fahrer-card h2 {
    margin: 15px 0 20px 0;
    color: #111;
}

.fahrer-card a {
    text-decoration: none;
    color: inherit;
}

body.fahrer-seite {
    background-image: url('/assets/images/red\ bull\ racing\ bulle.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;


}

#yukihintergrund {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto;
    gap: 20px;
    background-image: url('/assets/images/yuki\ helm.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

.japan-flagge {
    display: flex;

    width: 250px;
    height: auto;
    border-radius: 8px;
    margin-top: 50px;

}



.parallax-section {
    height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 1, 62);
}

.parallax-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.parallax-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.parallax-content p {
    font-size: 20px;
    line-height: 1.5;
}

.parallax-content.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .parallax-content h2 {
        font-size: 36px;
    }

    .parallax-content p {
        font-size: 18px;
    }
}


.section-image {

    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#maxhintergrund {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto;
    gap: 20px;
    background-image: url('/assets/images/max\ verstappen\ Helm\ Hintergrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}



@media (max-width: 500px) {}
       .history {
     
        flex-direction: column;
        align-items: center;
        


}

@media (max-width: 500px) {}
       .history {
     
        flex-direction: column;
        align-items: center;
        

       }



 @media (max-width: 500px) {}
       .pitstop {
     
        flex-direction: column;
        align-items: center;


}


@media (max-width: 500px) {
    .header-car-container {
         display: none;
 }

}

html{
    --font-heading:"formula1-Bold"
}