@import "../assets/colors.css";
@import "./cursor.css";
@import "./nav.css";
@import "./hero.css";
@import "./scrollbar.css";
@import "./about.css";
@import "./project.css";
@import "./gallery.css";

html,
body {
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--primary);
  background-blend-mode: multiply;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

footer {
  background-color: var(--dark-gray);
  color: var(--primary);
}

section {
  position: relative;
  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: center;
  font-family: "Poppins";
  font-size: 2rem;
  scroll-margin-top: max(7vh, 3.5rem);
}

section #heroImg {
  width: 20rem;
  height: 20rem;
  border: 0.25rem solid var(--secondary);
  border-radius: 50%;
  box-shadow: 0.124rem 0.5rem black;
}
section #heroImg:hover {
  transition: all 1s ease;
}
section p {
  width: 40rem;
  text-align: center;
}
section:nth-child(2n) {
  background-color: var(--secondary);
  color: var(--primary);
}

section:nth-child(2n) p,
section:nth-child(2n) h1 {
  color: var(--primary);
}
section:nth-child(2n) h1 {
  text-shadow: 0.25rem 0.25rem black;
}

h1,
h2,
h3,
p,
span {
  color: var(--secondary);
}

h1 {
  font-size: 3rem;
  margin-bottom: 0;
  letter-spacing: 0.25rem;
  text-shadow: 0.125rem 0.125rem black;
  font-family: "New Amsterdam";
}

/* Allgemeine Mobile-Optimierung */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  nav {
    width: 100%;
    padding: 0;
    justify-content: space-around;
  }

  nav #link-list {
    display: none; /* Menü ausblenden, falls kein Burger-Menü vorhanden */
  }

  nav #logo-text {
    font-size: 2rem;
  }

  nav #contactNav {
    font-size: 1rem;
    padding: 0.4rem;
  }

  #hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    height: auto;
    padding-top: 5vh;
    background: var(--primary);
    padding-bottom: 50px;
  }

  #hero #hero-heading {
    font-size: 3rem;
    text-shadow: 0.125rem 0.125rem black;
    align-self: center;
  }
  #hero ul {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
  }

  #hero span {
    font-size: 1rem;
  }
  #hero img {
    order: -1;
    width: 70%;
    height: auto;
  }

  #hero #contact-cta {
    width: 8rem;
    height: 3rem;
    font-size: 1.5rem;
    transform: translate(0);
  }

  #aboutContent {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 4rem;
  }
  .timeline {
    padding: 0;
    margin: 0;
    width: 90%;
    text-wrap: wrap;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline li::before {
    left: 5px;
    width: 15px;
    height: 15px;
  }

  #aboutContent h5 {
    font-size: 1.25rem;
  }
  #aboutContent span {
    font-size: 1rem;
  }

  #projectGrid {
    grid-template-columns: 1fr;
    width: 90%;
    padding: 0;
    margin: 50px 0;
  }

  .projectContent .projectSection {
    align-items: center;
  }

  .carouselImages img {
    height: 350px;
  }

  .gallery {
    flex-direction: column;
  }

  .gallery-item {
    width: 300px;
  }
  .gallery-item:hover {
    width: 300px; /* Breit beim Hover */
  }
}
