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

html {
  scroll-behavior: smooth;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background: #050505;
  color: #fff;
  overflow-x: hidden;
}

/* LANDING */
.landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-image {
  position: relative;
  height: 80vh;
  width: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url(../p/Titelbild.JPG) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-overlay {
  text-align: center;
}

.landing-overlay h1 {
  font-size: clamp(6rem, 5vw, 6rem);
  letter-spacing: -2px;
}

.landing-overlay p {
  margin-top: 1rem;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}

.landing-bottom {
  flex: 1;
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-hint {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  opacity: 0.4;
  animation: slowBlink 2s ease-in-out infinite;
}

@keyframes slowBlink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}

/* HERO */
.hero {
  min-height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
  text-align: center;
  color: #ddd;
}

/* PROJECTS */
.projects {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
}

.project-track {
  display: flex;
  gap: 2rem;
  padding-left: 5vw;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.project {
  position: relative;
  flex-shrink: 0;
  width: 35vw;
  min-width: 320px;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: grayscale(100%); /* Standard: schwarz-weiß */
  transition: all 0.5s ease;
  display: block;
  border-radius: 8px;
}

/* Hover Effekt: Projektbild wird farbig */
.project:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.project-title {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.project:hover .project-title {
  opacity: 1;
  transform: translateY(0);
}

/* BUTTONS */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav.left {
  left: 2rem;
}
.nav.right {
  right: 2rem;
}

/* ABOUT ME */
.about-me {
  background: #050505;
  padding: 6rem 2rem;
}

a {
  color: #ddd;
}
.about-container {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(100%); /* Standard: schwarz-weiß */
  transition: all 0.3s ease;
}

/* Hover Effekt: About-Me Bild farbig 
.about-image img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}
*/

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.contact-info p {
  margin-top: 0.5rem;
  font-weight: 300;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 900px) {
  .project-track {
    flex-direction: column;
    padding: 0 1.5rem;
    transform: none !important;
    width: 100%;
  }

  .project {
    width: 100%;
    margin-bottom: 3rem;
  }

  /*.project img {
    height: 50vh;
    filter: grayscale(0%); /* Farbe auf Mobile immer sichtbar 
  }
*/
  .project-title {
    opacity: 1;
    transform: translateY(0);
  }

  .nav {
    display: none;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-text h2,
  .about-text p,
  .contact-info p {
    text-align: center;
  }

  /* .about-image img {
    filter: grayscale(0%); /* Farbe auf Mobile immer sichtbar 
  }
  */
}
/* ================= PROJECT DETAIL PAGE ================= */

.project-hero {
  position: relative;
  height: 80vh;
  width: 100%;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.project-hero-overlay {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
}

.project-hero-overlay h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.project-hero-overlay p {
  margin-top: 0.5rem;
  letter-spacing: 2px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* INFO SECTION */

.project-info {
  padding: 6rem 2rem;
}

.project-info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
}

.project-description {
  flex: 2;
}

.project-description h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-description p {
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.project-meta {
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}

.project-meta h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.project-meta ul {
  list-style: none;
}

.project-meta li {
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

/* GALLERY */

.project-gallery {
  padding: 0 2rem 6rem;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/*
.gallery-grid img:hover {
  transform: scale(1.02);
}
*/

/* BACK LINK */

.back-link {
  text-align: center;
  padding-bottom: 4rem;
}

.back-link a {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.back-link a:hover {
  opacity: 1;
}

/* MOBILE DETAIL PAGE */

@media (max-width: 900px) {
  .project-hero-overlay {
    left: 1.5rem;
    bottom: 1.5rem;
  }

  .project-info-container {
    flex-direction: column;
  }

  .project-meta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* PROJECT NAVIGATION */
.project-nav {
  padding: 4rem 2rem;
  background: #050505;
}

.project-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.project-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.project-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* PROJECT FOOTER: Back + Navigation */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 4rem; /* Abstand unten */
  padding: 0 2rem;
}

.back-link a,
.project-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  font-weight: 400;
}

.back-link a:hover,
.project-nav a:hover {
  opacity: 1;
}

/* Flexbox für die Nav-Buttons */
.project-nav {
  display: flex;
  gap: 2rem;
}

@media (max-width: 900px) {
  .project-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .project-nav {
    gap: 1rem;
  }
}
/* PROJECT FOOTER: Back + Project Navigation */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  gap: 2rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  font-weight: 400;
  font-size: 1rem; /* gleiche Größe wie Back-Link */
  border: 1px solid rgba(255, 255, 255, 0.2); /* gleiche Umrandung */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

/* MOBILE */
@media (max-width: 900px) {
  .project-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .footer-nav {
    gap: 0.5rem;
    flex-direction: column;
  }
}
/* ÜBUNGEN */
.uebungen {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

/* IMPRESSUM */
.imprint {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

.imprint a {
  color: #fff;
  text-decoration: none;
}

.imprint a:hover {
  text-decoration: underline;
  opacity: 0.8;
}
