/* h1 und h2, h3 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gaegu&family=Londrina+Sketch&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* { /* Reset all elements, Stern heisst wird auf ganze Seite angewendet */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
}

main {
    margin: 0% 5%;
}


/*Fonts Adobe Fonts - Desktop*/
h1 {
    font-family: "Londrina Sketch", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 6.5em;
    text-transform: uppercase;
}

h2{
    font-family: "Londrina Sketch", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.5em;
    text-transform: uppercase;
}

h3 {
    font-family: "Gaegu", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3em;
}

h4 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 1.2em;
    text-align: center;
}

/* value from 100 to 900 */
p {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    text-align: center;
}

a {
    font-family: "Gaegu", sans-serif;
    font-weight: 400;
    font-size: 1.5em;
    font-style: normal;
    text-decoration: none;
    color: black;
}


/* Navigation */
header {
    width: 100%;
    position:fixed;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background-color: #ffffff; /* Hintergrundfarbe der Navigation */
    border-bottom: 1.5px solid black; /* Untere Linie */
}
nav {
    height: 70px;
    margin-right: 40px;
    padding-bottom: 15px;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    justify-content: space-between;
    padding-top: 20px;
    gap: 40px;
}

/* Section Home */
#Home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.Haupttitel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20%;
}

div.link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 2%;
}


/* Section Countdown */

#section-countdown {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 5%;
}


/* Hintergrundfarbe und Schrift zentral */
.countdown-wrapper {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  color: #000000;
}

.countdown-wrapper h4 {
  margin-bottom: 2%;
}

/* Flexbox für Countdown-Zahlen */
.countdown-flex {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Einzelne Zeitbox */
.time-box {
  background: white;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 20px 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}

.number {
  font-size: 2rem;
  color: #000000;
  font-family: "Londrina Sketch", sans-serif;
    font-weight: 400;
    font-style: normal;
  font-size: 5.5em;
  display: block;
}

.label {
    font-family: "Gaegu", sans-serif;
    font-weight: 400;
    font-size: 1.5em;
    font-style: normal;
    text-align: center;
    margin-top: 2%;
    display: block;
}


/* Section Projektinfo */

#Projektinfo {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.Titel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2%;
}

.ProjektText{
    width: 80%;
}

.Projektinfo{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 5%;
}

.Projektinfo p {
    margin-left: 5%;
    text-align: left;
}

.TeamPhoto {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 7px 13px 0px rgba(0, 0, 0, 0.25);
}
  
.TeamPhoto img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
    border: 3px solid #ffffff;
}



/* Section Klass - Galerie */

.galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 5% auto;
}

.bild-container {
    position: relative;
    overflow: hidden;
}
  
.bild-container img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}
  
/* Hover-Bild ausblenden standardmäßig */
.hoverbild {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
  
/* Overlay ausblenden standardmäßig */
.bild-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 32%;
    margin-left:10px;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 10px;

    color: rgb(0, 0, 0);
    padding: 10px;
    text-align: left;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.bild-overlay p{
    font-family: "Gaegu", sans-serif;
    font-weight: 400;
    font-size: 1.2em;
}

/* Hover-Effekt */
.hauptbild {
        opacity: 1;
        z-index: 1; 
}

.hoverbild {
        opacity: 0;
        z-index: 2;
}

.bild-container:hover .hauptbild {
        opacity: 1;
}

.bild-container:hover .hoverbild {
        opacity: 1;
}
  
.bild-container:hover .bild-overlay {
    opacity: 1;
    z-index: 3;
}

/* mobile Bildschirmbreite kleiner als 600px dann wird dieser Style angewendet*/
@media (max-width: 900px) {
  /* Navigation */
    header {
    width: 100%;
    position:fixed;
    z-index: 1000;
    display: flex;
    justify-content: center;
    }

    nav {
    margin: 0px;
    }

    nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    justify-content: space-between;
    padding-top: 20px;
    }

    /* Schriften */
  h1 {
    font-size: 3.5em;
    text-transform: uppercase; 
    }

    h2{
        font-size: 2.5em;
        text-transform: uppercase;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1em;
    }

    p {
        font-size: 0.8em;
    }

    a {
        font-size: 1em;
    }

    .Haupttitel{
        margin-top: 80%;
        height: 140vh;
    }

    #Projektinfo{
        margin-bottom: 100px;
        height: max-content;
    }

    .Projektinfo {
        flex-direction: column;
        align-items: center;
    }

    .ProjektText {
        width: 100%;
    }

    .Projektinfo p {
        margin-left: 0;
    }

    .TeamPhoto {
        display: flex;
        order: 1;
        margin-top: 5%;
    }


    /* Einzelne Zeitbox */
    .countdown-wrapper h4 {
        margin-bottom: 10%;
    }
    .countdown-flex {
        display: flex;
        gap: 5px;
        margin-left: 5%;
        margin-right: 5%;
        flex-wrap: nowrap;
    }
    
    .time-box {
        border: 1.5px solid #000000;
        border-radius: 10px;
        padding: 5px 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        min-width: 80px;
    }

    .number {
    font-size: 2.5em;
    }

    .label {
        font-size: 0.8em;
        margin-top: 2%;
    }

    
    /* Galerie */
    .galerie {
    grid-template-columns: repeat(2, 1fr);
    }


    .bild-overlay {
        width: 40%;
        height: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 5px;
        margin-bottom: 5px;
        font-size: 0.7em;
        border-radius: 7px;
        border: 1px solid #ffffff;
    }

    /* Hover-Effekt */
    .bild-container.active .hauptbild {
        opacity: 0; 
    }

    .bild-container.active .hoverbild {
        opacity: 1;
    }

    .bild-container.active .bild-overlay {
        opacity: 1;
    }

}





