h1>span {
  font-size: 12px;
  font-weight: 700;
}

h1>span:first-child {
  font-size: 24px;
  font-weight: 700;
}

.project-teaser h3 {
  font-weight: 600;
  font-size: 2vw;
  line-height: 1.1;
}

.project-teaser p {
  font-size: clamp(0.75rem, 0.4705rem + 0.5455vw, 1.125rem);
}

header {
  position: sticky;
}

.teaser-grid-container {
  height: calc(100vh - 80px);
  width: 100vw;
  display: grid;
  grid-template: "first first second second"1fr "first first third fourth"1fr;
  background-image: radial-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 1)), radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: cover, var(--gap-size) var(--gap-size);
}

.project-teaser {
  padding: var(--gap-size);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  filter: grayscale(.99);
  transition: filter .4s;
  -webkit-transform: translateZ(0);
  -webkit-perspective: 1000;
  -webkit-backface-visibility: hidden;
}

.project-teaser:hover {
  filter: grayscale(.01);
}

.project-teaser p, .project-teaser h3 {
  max-width: 640px;
  opacity: .8;
  text-shadow: 0px 3px 20px #000000;
  transition: opacity .4s;
}

.project-teaser:hover p, .project-teaser:hover h3 {
  opacity: 1;
}

.project-teaser:hover .project-teaser-content::after {
  content: 'arrow_forward';
  font-family: 'Material Symbols Outlined';
  font-size: 1em;
}

@media (hover: none) and (max-width: 900px) {
  .in-view {
    filter: grayscale(.01);
  }

  .in-view p, .in-view h3 {
    opacity: 1;
  }

  .in-view .project-teaser-content::after {
    content: 'arrow_forward';
    font-family: 'Material Symbols Outlined';
    font-size: 1em;
  }
}

.project-teaser:first-child {
  grid-area: first;
  padding-right: 0;
}

.project-teaser:first-child>div {
  border-right: var(--light-border-style);
  padding-right: var(--gap-size);
}

.project-teaser:nth-child(2) {
  grid-area: second;
  padding-bottom: 0;
}

.project-teaser:nth-child(2)>div {
  border-bottom: var(--light-border-style);
  padding-bottom: var(--gap-size);
}

.project-teaser:nth-child(3) {
  grid-area: third;
  padding-right: 0;
}

.project-teaser:nth-child(3)>div {
  border-right: var(--light-border-style);
  padding-right: var(--gap-size);
}

.image-description-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
}

/*Inahlte*/
.pluswerk-teaser {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url(../media/pluswerk-teaser.png);
}

.hellabrunn-teaser {
  background-image: url(../media/hellabrunn-loewe.png)
}

.th-rosenheim-teaser {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url(../media/th-rosenheim-teaser-2.png);
}

.snapshots-teaser {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url(../media/test-1.png);
}

@media only screen and (max-width: 900px) {
  .hellabrunn-teaser {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url(../media/hellabrunn-key-visual.png);
  }

  .th-rosenheim-teaser {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url(../media/th-rosenheim-teaser-1.png);
  }
}

.project-teaser-content {
  width: 100%;
  height: 100%;
}

.project-teaser-content>a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.project-teaser-content>a:hover {
  text-decoration: none;
}

@media only screen and (max-width: 900px) {
  .project-teaser h3 {
    font-size: 8vw;
  }

  .teaser-grid-container {
    height: auto;
    grid-template: "first""second""third""fourth";
    padding-bottom: calc(var(--gap-size) * 2);
  }

  .project-teaser {
    height: auto;
    padding: var(--gap-size) !important;
    padding-bottom: 0 !important;
  }

  .project-teaser-content {
    aspect-ratio: 2 / 3;
    padding-right: 0 !important;
  }

  .project-teaser>div {
    border: none !important;
    border-bottom: 2px solid #333333 !important;
    padding-right: 0;
    padding-bottom: var(--gap-size);
  }
}