@font-face {
    font-family: 'Hemi Head';
    src: url('fonts/hemi_head.ttf');
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'Montserrat-italic';
    src: url('fonts/Montserrat-Italic-VariableFont_wght.ttf');
}

:root {
    --fastSchwarz: #292929;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

section {
    padding-bottom: 100px;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 50px 100px 50px;
}

.flex-socials{
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.social {
    width: 50px;
    margin-top: 20px;
}

h1 {
    font-family: 'Hemi Head', serif;
    color: whitesmoke;
    font-size: 2rem;
    margin: 0;
    text-align: left;
}

.desktop {
    display: none;
}

h2 {
    font-family: 'Montserrat-italic', sans-serif;
    color: whitesmoke;
    font-size: 30px;
    margin: 0 0 50px;
    text-align: center;
    border-bottom: 5px solid whitesmoke;
    width: 80%;
    padding: 25px 0;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    color: whitesmoke;
    font-size: 26px;
    text-align: center;
    margin: 0;
    padding-bottom: 20px;
    font-variant: small-caps;
}

.jugendText h3 {
    color: var(--fastSchwarz);
}

p {
    margin: 0;
    padding: 0;
}

footer h2 {
    color: var(--fastSchwarz);
    border-bottom: 5px solid var(--fastSchwarz);
}

#mitgliedWerdenH2 {
    font-size: 40px;
    text-align: left;
    padding: 0 25px;
    width: 100dvw;
    border: none;
    color: whitesmoke;
}

.mitgliedWerdenArticle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 25px;
    margin: 25px 0 100px;
}

.mitgliedWerdenDiv {
    max-width: 100%;
    min-height: 400px;
    margin: 0 25px;
    padding: 20px;
    color: var(--fastSchwarz);
    background: whitesmoke;
}

.mitgliedWerdenDiv h3 {
    margin-bottom: 20px;
    color: var(--fastSchwarz);
}

.divalexander h3, .divgerhard h3, .divharald h3 {
    margin-top: 20px;
}

.mitgliedList {
    text-align: left;
}

.mitgliedList li {
    margin-bottom: 15px;
}

#kontaktButton {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    position: relative;
    z-index: 30;
    object-fit: cover;
    background-color: whitesmoke;
    border: 2px solid whitesmoke;
    transition: transform 0.5s;
}

.zuKontaktArticle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
}

.zuKontaktArticle a {
    margin-top: 25px;
    width: max-content;
}

@keyframes pulsieren {
    0% { transform: scale(1);}
    50% { transform: scale(1.1);}
    100% { transform: scale(1);}
}

#kontaktButton {
    animation: pulsieren 2s infinite ease-in-out;
}

.team-div h3{
    margin: 0 0 40px;
}

footer h3 {
    color: var(--fastSchwarz);
}

.desktopNavigation {
    display: none;
}

header {
    padding: 40px;
    margin: 0;
}

main {
    background-color: black;
    color: whitesmoke;
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 1);
    margin-bottom: 300px;
}

.navUl {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navlink {
    text-decoration: none;
    color: var(--fastSchwarz);
    display: inline-block;
    position: relative;
    padding: 5px 0;
}

.navlink::after{
    pointer-events: none;
}

.navlink:hover::after{
    pointer-events: none;
}

#kommando {
    margin: 100px 0;
}

.kommando {
    width: 250px;
    height: 400px;
    object-fit: cover;
    object-position: 0 25%;
    transition: transform 0.5s;
}

.TrennBalken {
    display: block;
    width: 250px;
    height: 2px;
    margin: 20px auto;
    background-color: rgb(234, 241, 116);
}

.background {
    height: 100dvh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1)),
    url('img/feuermann_selbst.jpeg');
    background-size: auto, cover; /* Verlauf bleibt "auto", Bild bleibt "cover" */
    background-position: center, calc(100% + 200px) center; /* Bild um 50px nach rechts */
    background-repeat: no-repeat, no-repeat;
}

.divharald {
    order: 1;
    margin: 25px 0;
}

.divalexander {
    order: 2;
    margin: 40px 0;
}

.divgerhard {
    order: 3;
    margin: 25px 0;
}

#jugend {
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 150px 0;
    overflow: hidden;
}

.jugendText {
    padding: 50px;
    color: var(--fastSchwarz);
    text-align: left;
    line-height: 1.6;
}

#jugendHero {
    width: 100%;
    height: 60vh;
    background-image: url("img/jugend_hero2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    box-shadow: 0 5px 20px -2px rgba(0,0,0,1);
}

#jugendTitle {
    font-family: 'Montserrat-italic', sans-serif;
    color: whitesmoke;
    font-size: 45px;
    margin: 0;
    padding: 60px;
    font-weight: bold;
    text-shadow: 0 0 30px black;
}

main div {
    text-align: center;
}

footer {
    color: var(--fastSchwarz);
    /*background: linear-gradient(to bottom, #8C1818, #BB150F);*/
    /*background: linear-gradient(to right, #222222, #444444);*/
    background: linear-gradient(to bottom, #ffffff, #cccccc);
}

.wappen {
    max-height: 150px;
    margin-top: 50px;
}

.team-div {
    position: relative;
    top: 8vh;
}

.fahrzeugHeader {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: var(--fastSchwarz);
    margin: 35px 0 0 0;
}

.fahrzeugText {
    font-size: smaller;
    color: var(--fastSchwarz);
    margin-top: 0;
}

.footertext {
    text-align: center;
    margin: 0;
    font-size: 1rem;
    line-height: 2em;
}

#korp {
    height: 250px;
    object-fit: contain;
    margin: 50px 0;
}

.footer-without-h2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 50px 25px 50px;
}

#nav-icon4, #mobile-nav-icon4 {
    width: 30px;
    height: 25px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: transform .5s ease-in-out;
    cursor: pointer;
}

#nav-icon4.open, #mobile-nav-icon4.open {
    height: 20px;
}

#nav-icon4 span, #mobile-nav-icon4 span {
    display: block;
    position: absolute;
    height: 5px;
    width: 100%;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon4 span:nth-child(1), #mobile-nav-icon4 span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4 span:nth-child(2), #mobile-nav-icon4 span:nth-child(2) {
    top: 10px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4 span:nth-child(3), #mobile-nav-icon4 span:nth-child(3) {
    top: 20px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon4.open span:nth-child(1), #mobile-nav-icon4.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: -3px;
    left: 8px;
}

#nav-icon4.open span:nth-child(2), #mobile-nav-icon4.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#nav-icon4.open span:nth-child(3), #mobile-nav-icon4.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 18px;
    left: 8px;
}

.mobileNavigationIcon {
    width: 80px;
    height: 80px;
    background-color: whitesmoke;
    position: fixed;
    top: 40px;
    right: 0;
    z-index: 30;
    padding: 25px;
    border-radius: 50px 0 0 50px;
    box-shadow: black 0 0 20px -5px;
    display: flex;
    align-items: center;
}

.mobileNavigation {
    background-color: whitesmoke;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100vw;
    transition: transform .5s;
    z-index: 20;
}

.mobileNavigationList {
    list-style: none;
    position: absolute;
    top: 40px;
}

.mobileNavigation.open {
    display: block;
    transform: translateX(-100%);
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100vw;
    margin: auto;
}

.slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory; /* Snap zu jedem Bild */
    scroll-behavior: smooth;
    width: 100vw;
    gap: 20px;
    padding: 25px 0;
    margin: 0 50px;
}

.slide {
    flex: 0 0 65vw; /* Jede Slide nimmt exakt 65% der Breite ein */
    scroll-snap-align: center; /* Immer in der Mitte stoppen */
    background-color: #f5f5f5;
    padding: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide img {
    width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.Sliderbuttons {
    display: none;
}

@media (min-width: 768px) {

    #jugend {
        flex-direction: row;
        height: auto;
    }

    #jugendHero {
        width: 45vw;
        height: 100vh;
        background-attachment: fixed;
    }

    #jugendTitle {
        font-size: 80px;
        padding: 100px;
    }

    .Sliderbuttons {
        display: flex;
        justify-content: right;
        padding: 0;
        gap: 20px;
        margin: 50px;
    }

    #sliderToRechts, #sliderToLinks {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.8);
        border: none;
        padding: 10px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.2s ease-in-out;
    }

    #sliderToLinks img, #sliderToRechts img {
        width: 50%;
        height: auto;
        opacity: 80%;
    }

    #sliderToRechts:hover,
    #sliderToLinks:hover {
        background-color: rgba(255, 255, 255, 1);
    }

    #sliderToRechts:active,
    #sliderToLinks:active {
        background-color: rgba(255, 255, 255, 0.8);
    }

    .slider {
        gap: 30px;
    }

    .slide {
        flex: 0 0 35vw;
        height: 65vh;
        transition: transform ease-in-out .3s;
    }

    .slide:hover {
        transform: scale(1.02);
    }

    .fahrzeugText {
        font-size: medium;
    }

    .mitgliedWerdenDiv {
        width: 50%;
        margin: 0;
    }

    .mitgliedWerdenArticle {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 25px;
        padding: 0 50px;
        margin: 50px 0 100px;
    }

    .mobileNavigation, .mobileNavigationIcon {
        display: none;
    }

    .navUl {
        display: none;
    }

    .navlist{
        margin: 0 20px;
    }

    nav{
        position: fixed;
        top: 40px;
        right: 0;
        z-index: 10;
        background-color: whitesmoke;
        border-radius: 50px 0 0 50px;
        box-shadow: 0 0 20px -5px black;
        padding: 25px;
        max-width: 80px;
        height: 80px;
        transition: max-width .5s;
        align-items: center;
    }

    .desktopNavigation {
        display: flex;
    }

    nav.open {
        max-width: 1000px;
    }

    nav.open .navUl {
        display: flex;
    }

    main{
        margin-bottom: 400px;
    }

    .wappen{
        max-height: 250px;
    }

    video{
        width: 40%;
    }

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }

    .navlink::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        border-radius: 5px;
        height: 0.05em;
        bottom: 0;
        left: 0;
        background: currentcolor;
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }

    .navlink:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .background {
        background-position: top;
    }

    .divharald{
        order: 2;
    }

    .divalexander{
        order: 1;
        margin-top: 150px;
    }

    .divgerhard{
        order: 3;
        margin-top: 150px;
    }

    .kommando {
        width: 300px;
        height: 400px;
        margin-bottom: 25px;
    }

    .kommando:hover {
        transform: scale(1.05);
    }

    .social{
        opacity: 0.5;
        transition: opacity 0.5s;
    }

    #korp{
        margin: 0;
        order: 2;
    }

    .footerKontakt{
        order: 1;
    }

    .footerSocials{
        order: 3;
    }

    .flex{
        flex-direction: row;
    }

    h1{
        font-size: 4rem;
    }

    h2{
        font-size: 60px;
        padding: 50px;
        width: 50%;
    }

    #mitgliedWerdenH2 {
        font-size: 100px;
        padding: 0 50px;
        /*background-attachment: fixed !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 60%),
                    url("img/team-3.jpg") ;
        background-size: cover;
        border-bottom: whitesmoke 2px solid;*/
    }

    footer h2 {
        font-size: 1.75rem;
    }

    .footer-without-h2 {
        flex-direction: row;
        padding: 100px 50px 25px 50px;
    }

    .team-div h3{
        font-size: 2.5rem;
        margin: 0 0 80px;
    }

    .footertext, footer h3{
        text-align: left;
    }

    .social:hover {
        opacity: 1;
    }

    .team-div{
        top: 15vh;
    }
}