:root {
  --farbe-nav: #9E9E9E;
  --footer-color: rgba(255,255,255, 0.3);
  --bg: #090909;
}

.site-header {
  color: var(--farbe-nav);
}

footer {
  display: block;
}

h2 {
  border-top: none;
  padding-top: 0;
  padding-bottom: var(--line-padding);
}

.legal-nav {
  color: var(--footer-color);
}

.project-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  grid-template-areas: "gallery info";
  margin: 0rem 0.75rem 1.5rem 0.75rem;
  overflow: hidden;
}

.project-preview:last-child {
  margin-bottom: 0;
}

.project-gallery {
  grid-area: gallery;
  height: calc(100vh - var(--header-h) - 1.5rem);
}

.project-info {
  padding: 0.75rem;
  padding-bottom: 1.5rem;
  position: static;
  grid-area: info;
  height: 100%;
  z-index: 1002;
}

.project-gallery a,
.project-gallery figure {
  height: 100%;
  width: 100%;
  margin: 0;
  display: block;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-preview.reverse {
  grid-template-columns: auto 1fr;
  grid-template-areas: "info gallery";
}

.teaser-mobile { display: none; }

@media (max-width: 600px) {

  .teaser-mobile {
    display: block
  }

  .teaser-desktop {
    display: none;
  }

  .project-preview {
    display: block;
    /* height: auto; */
  }

  .project-info {
    height: auto;
    margin-top: 1rem;
  }

  .home .project-gallery {
    height: auto;
    width: 100%;
  }

  .home .project-gallery figure {
    aspect-ratio: 1 / 1;
    overflow: hidden;     /* sauberer Crop-Rand */
  }
  .home .project-gallery figure > img {
    /* width: 100%;
    height: 100%; */
    object-fit: cover;
  }

}
