/* ================================
   RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* = 10px, besser kompatibel */
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

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

p {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-top: 5px;
  line-height: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05rem;
}

/* ================================
   VARIABLES
================================ */
:root {
  --primary-bg: #29323c;
  --secondary-bg: #485563;
  --overlay-dark: rgba(31, 30, 30, 0.24);
  --text-light: #fff;
  --text-dark: #000;
  --highlight: greenyellow;
}

/* ================================
   GLOBAL CLASSES
================================ */
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
}

.brand img {
  height: 100px;
  width: 100px;
}

/* ================================
   HEADER
================================ */
#header {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
}

#header .header {
  min-height: 8vh;
  background-color: var(--overlay-dark);
  transition: 0.3s ease background-color;
}

#header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  padding: 0 10px;
  width: 100%;
}

#header .nav-list ul {
  list-style: none;
  position: absolute;
  background-color: var(--text-dark);
  width: 100%;
  height: 100vh;
  left: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease left;
  z-index: 1;
}

#header .nav-list ul.active {
  left: 0;
}

#header .nav-list ul a {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 20px;
  display: block;
}

#header .nav-list ul li:hover a {
  color: var(--highlight);
}

/* Hamburger */
#header .hamburger {
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0.8);
  margin-right: 20px;
  position: relative;
  z-index: 100;
}

#header .hamburger .bar {
  height: 2px;
  width: 30px;
  background-color: var(--text-light);
  position: relative;
}

#header .hamburger .bar::after,
#header .hamburger .bar::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  background-color: var(--text-light);
  transition: 0.3s ease;
}

#header .hamburger .bar::after {
  top: 8px;
}
#header .hamburger .bar::before {
  bottom: 8px;
}

/* Animation zum X */
#header .hamburger.active .bar {
  background-color: transparent;
}
#header .hamburger.active .bar::before {
  transform: rotate(45deg);
  bottom: 0;
}
#header .hamburger.active .bar::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ================================
   HERO
================================ */
#hero {
  background: url(./img/team.webp) top center/cover no-repeat;
  position: relative;
  z-index: 1;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--text-dark);
  opacity: 0.5;
  z-index: -1;
}
#hero .hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  justify-content: center;
}
#hero h1 {
  text-align: center;
  font-size: 4rem;
  color: var(--text-light);display: flex;
  align-items: flex-start; /* Schiebt den Inhalt nach oben */
  justify-content: center;
  height: 100vh;
  padding-top: 15vh; /* Schiebt den Text ins obere Drittel (ca. 15-20% der Höhe) */
  
}

/* ================================
   PROJECTS
================================ */
#projects .projects {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}

#projects .projects-header h1 {
  margin-bottom: 50px;
}

#projects .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#projects .project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

#projects .project-info {
  padding: 30px;
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(60deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: var(--text-light);
}

#projects .project-info h1 {
  font-size: 4rem;
  font-weight: 500;
}
#projects .project-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 10px;
}
#projects .project-info p {
  color: var(--text-light);
}

#projects .project-img {
  flex-basis: 50%;
  height: 300px;
  overflow: hidden;
  position: relative;
}
#projects .project-img:after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(60deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  opacity: 0.5;
}

/* ================================
   ABOUT
================================ */
#about .about {
  flex-direction: column-reverse;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

#about .col-left {
  width: 250px;
  height: 360px;
}
#about .col-right {
  width: 100%;
}
#about .col-right h2 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  margin-bottom: 10px;
}
#about .col-right p {
  margin-bottom: 20px;
}
#about .col-left .about-img {
  height: 100%;
  width: 100%;
  position: relative;
}

/* ================================
   TEAM
================================ */
#team .team {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}

#team .team-header h1 {
  margin-bottom: 50px;
}

#team .all-team {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#team .team-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

#team .team-info {
  padding: 30px;
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(60deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: var(--text-light);
}

#team .team-info h1 {
  font-size: 4rem;
  font-weight: 500;
}
#team .team-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 10px;
}
#team .team-info p {
  color: var(--text-light);
}

#team .team-img {
  flex-basis: 50%;
  height: 400px;
  overflow: hidden;
  position: relative;
}
#team .team-img:after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(60deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  opacity: 0.5;
}

/* ================================
   CONTACT
================================ */
#contact .contact {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#contact .contact-items {
  width: 100%;
}
#contact .contact-item {
  width: 80%;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  margin: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 0px 18px 0 #0000002c;
  transition: 0.3s ease box-shadow;
}
#contact .contact-item:hover {
  box-shadow: 0px 0px 5px 0 #0000002c;
}
#contact .icon {
  width: 50px;
  margin: 0 auto 10px;
}
#contact .contact-info h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 5px;
}
#contact .contact-info h2 {
  font-size: 1.3rem;
  line-height: 2rem;
  font-weight: 500;
}

/* ================================
   FOOTER
================================ */
#footer {
  background-image: linear-gradient(60deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}
#footer .footer {
  min-height: 50px;
  flex-direction: column;
  padding: 10px 0;
}
#footer p,
#footer p a {
  color: var(--text-light);
  font-size: 1.3rem;
}

/* ================================
   MEDIA QUERIES
================================ */
@media (min-width: 768px) {
  h1.section-title {
    font-size: 6rem;
  }

  /* Hero */
  #hero h1 {
    font-size: 7rem;
  }

  /* Projects */
  #projects .project-item {
    flex-direction: row;
    height: 400px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  #projects .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  #projects .all-projects .project-info,
  #projects .all-projects .project-img {
    height: 100%;
  }

  /* About */
  #about .about {
    flex-direction: row;
  }
  #about .col-left {
    width: 600px;
    height: 400px;
    padding-left: 60px;
  }
  #about .col-right {
    text-align: left;
    padding: 30px;
  }
  #about .col-right h1 {
    text-align: left;
  }

  /* Team */
  #team .team-item {
    flex-direction: row;
    height: 400px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  #team .team-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  #team .all-team .team-info,
  #team .all-team .project-img {
    height: 100%;
  }

  /* Contact */
  #contact .contact {
    flex-direction: column;
    padding: 100px 0;
    align-items: center;
    justify-content: center;
    min-width: 20vh;
  }
  #contact .contact-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
  }
  #contact .contact-item {
    margin: 20px;
    flex-direction: row;
  }
  #contact .contact-item .icon {
    height: 100px;
    width: 100px;
  }
  #contact .contact-item .icon img {
    object-fit: contain;
  }
  #contact .contact-item .contact-info {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }
}
