@import url(./fonts.css);

body {
  margin: 0;
  font-family: "XB Kayhan", "Merriweather", serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

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

a {
  color: black;
  text-decoration: none;
}

p {
  margin: 0;
}

header {
  width: 100%;
  height: 100vh;
}

main {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

nav {
  width: calc(100% - 2rem);
  height: 4rem;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;

  background-color: white;
  padding: 1rem;
  z-index: 99;
}

nav > div {
  display: flex;
  align-items: center;
}

nav ul {
  padding: 0;
  margin: 0;
  height: 100%;
  list-style: none;

  display: flex;
  gap: 1.25rem;
  align-items: center;
}

nav img {
  object-fit: contain;
  height: 0.8rem;
  width: initial;
}

nav ul img {
  height: 11px;
}

.burger {
  display: none;
}

.col3 {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr;
  gap: 5rem;
}

.richtext {
  padding: 1rem;
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
}

#news article {
  margin: 10rem 0 10rem 0;
}

#news article:first-child {
  padding-top: 9rem;
  margin-top: 0rem;
}

#news article img {
  aspect-ratio: 3 / 2;
}

#news > img {
  padding: 1rem;
  width: calc(100% - 2rem);
}

.news-subtitle {
  margin-top: 1rem;
}

.col3 > div:nth-child(3) {
  aspect-ratio: 3 / 2;
}

#works {
  display: grid;
  grid-template-columns: calc(50% - 1.5rem) calc(50% - 1.5rem);
  column-gap: 3rem;
  row-gap: 4rem;
  padding: 1rem;
}

#works article {
  aspect-ratio: 3 / 2;
}

#works img {
  display: block;

  width: 100%;
  margin-bottom: 1rem;
}

#works a {
  text-decoration: none;
  color: black;
}

.works-info {
  margin-top: 0.2rem;
}

.project-content > * {
  margin-top: 13rem;
  padding: 0 1rem 0 1rem;
  width: calc(100% - 2rem);
}

.project-content .col3 > div:nth-child(3) {
  aspect-ratio: initial;
}

.gallery {
  width: 100%;
  /* aspect-ratio: 16/9;*/
  position: relative;
  overflow-y: hidden;
  overflow-x: hidden;

  cursor: pointer;
}

.gallery img {
  position: absolute;
  top: 0;
  left: 0;
  translate: 100% 0;
}

.gallery .current {
  translate: 0 0;
}

.gallery .prev {
  translate: -100% 0;
}

.gallery .next {
  translate: 100% 0;
}

.gallery-counter {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  /*
  text-align: center;
 
  color: white; */
}

.gallery-point {
  width: 5px;
  aspect-ratio: 1 / 1;
  background-color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.current-point {
  background-color: black;
}

/*
.current-point {
  position: absolute;
  background-color: black;
  width: 8px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}
*/
/*
.marquee {
  display: flex;
  overflow: hidden;
  gap: 3rem;
  position: relative;
  user-select: none;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;

  min-width: 100%;
  gap: 3rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 3rem));
  }
}

.scroll {
  animation: scroll 10s linear infinite;
}

.marquee img {
  object-fit: contain;
  max-height: 5rem;
  width: initial;
  height: initial;
  max-width: 100vw;
}

.referenzen {
  margin-top: 8rem;
}*/

.referenzen {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 1rem;

  margin-top: 20rem;
}

.referenzen img {
  object-fit: contain;
  max-height: 5rem;
}

footer {
  margin-top: 20rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 1rem;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  text-decoration: none;
  color: black;
}

footer img {
  object-fit: contain;
  height: 1rem;
  object-position: left;
}

@media screen and (max-width: 1000px) {
  /*
  .col3 {
    display: block;
    position: relative;
  }

  .col3 > div {
    width: 50%;
  }

  .col3 > div:nth-child(1),
  .col3 > div:nth-child(2) {
    width: calc(50% - 2rem);
  }

  .col3 > div:nth-child(2) {
    margin-top: 1rem;
  }

  .col3 > div:nth-child(3) {
    top: 0;
    left: calc(50% - 1rem);
    position: absolute;
  }*/
  .col3 {
    grid-template-areas:
      "heading image"
      "body image";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content;
  }

  .col3 > div:nth-child(1) {
    grid-area: heading; /* Place the heading in the 'heading' grid area */
    align-self: start; /* Align to the start of the grid cell */
  }

  .col3 > div:nth-child(2) {
    grid-area: body; /* Place the body text in the 'body' grid area */
  }

  .col3 > div:nth-child(3) {
    grid-area: image; /* Place the image in the 'image' grid area */
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
  }

  #news article img {
    grid-row: span 2;
  }
}

@media screen and (max-width: 700px) {
  .col3 {
    display: block;
  }

  .col3 > div:nth-child(1),
  .col3 > div:nth-child(2) {
    width: 100%;
    position: static;
  }

  .col3 > div:nth-child(2) {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .col3 > div:nth-child(3) {
    position: relative;
    width: 100%;
    top: initial;
    left: initial;
    margin-top: 1rem;
  }

  #works {
    display: block;
  }

  #works article {
    margin-bottom: 3rem;
  }

  .referenzen {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }

  footer {
    position: static !important;
    margin-top: 3rem;
  }
}

@media screen and (max-width: 500px) {
  nav {
    display: block;
    height: 1.5rem;
    overflow: hidden;

    transition: height 0.3s ease-in-out;
  }

  nav.open {
    height: 13rem;
  }

  nav > div {
    display: block;
    margin-bottom: 1rem;
  }

  nav ul {
    display: block;
  }

  nav li {
    margin-bottom: 1rem;
  }

  nav img {
    height: 1.5rem;
  }

  .burger {
    display: block;
    position: absolute;
    margin: 0;
    width: 1.5rem;
    aspect-ratio: 1/1;

    top: 1rem;
    right: 1rem;
    cursor: pointer;
  }

  nav .cross {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
  }

  nav.open .cross {
    opacity: 1;
  }

  .referenzen {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
