/* portfolio.css */


body {
  font-family: "acumin-pro", sans-serif;
  font-weight: 500;
}

/* =========================== allgemein =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;   
}

html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    font-size: 85%;
    background-color: #fffefe;
    overflow-y: scroll;
}

/* =========================== nav =========================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;  /* Hoher z-index-Wert, um sicherzustellen, dass die Navigation über allem steht */
    mix-blend-mode: difference;  /* Invertiert die Farben basierend auf dem Hintergrund */
    color: white;  /* Standardfarbe für die Navigation */
}

nav ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ändere von 4 auf 3 Spalten */
    padding: 10px 25px;
    font-family: "acumin-pro", sans-serif;
    font-weight: 500;
    font-size: 1.1875rem;
    color: inherit;
    gap: 0;
}

nav li:nth-child(1) { grid-column: 1; }
nav li:nth-child(2) { grid-column: 2; }
nav li:nth-child(3) { grid-column: 3; justify-self: end; } /* Download CV jetzt rechts */
  
nav a {
    text-decoration: none;
    color: inherit;  /* Farbe erben */
}
  
.current {
    color: inherit;  /* Farbe erben */
}
  


/* =========================== grid und projekte =========================== */

.portfolio-grid {
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
}

.project {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

.image-container {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.image-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.project-description {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    padding-left: 20px;
    box-sizing: border-box;
    align-items: end; /* Elemente unten ausrichten */
}

.project-description .text {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Inhalt der Texte unten ausrichten */
    padding-right: 20px;
    padding-bottom: 20px; /* Abstand vom unteren Rand */
}

.project-description .image {
    grid-column: span 3;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.project-description h1 {
    font-family: "acumin-pro", sans-serif;
    font-weight: 500;
    font-size: 2.625rem;
    line-height: 95%;
}

.project-description p {
    font-family: "acumin-pro", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 105%;
    padding-top: 5px;
}

.project-description img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

button.prev, button.next {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100vh;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0; /* Unsichtbar, aber funktional */
}

button.prev {
    left: 0;
}

button.next {
    right: 0;
}

/* =========================== Video Vollbildmodus =========================== */

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide {
    position: relative;
    width: 100%;
    height: 100vh; /* Höhe des Bildschirms */
    overflow: hidden;
}

/* =========================== Video Grid =========================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
    grid-template-rows: 1fr; /* 1 Reihe */
    gap: 10px; /* Abstand zwischen den Videos */
    width: 100%;
    height: auto; /* Höhe automatisch anpassen */
    justify-items: center; /* Zentriere die Videos horizontal */
    align-items: center; /* Zentriere die Videos vertikal */
    padding: 20px; /* Optionale Polsterung */
}

.grid-video {
    width: 80%; /* Reduziere die Größe der Videos */
    height: auto; /* Behalte das Seitenverhältnis bei */
    object-fit: contain; /* Skaliere die Videos, ohne sie zu beschneiden */
}

#leak-zoom {
  background: #000;
  display: block;
  margin: 0 auto;
  width: 85%;
  height: auto;
  box-sizing: border-box;
  padding: 0;
}

.slide #leak-zoom {
  background: #000;
}

.slide:has(#leak-zoom) {
    background-color: black;
}


