@font-face {
  font-family: "ArchiveGrtoesk";
  src: url("../fonts/ArchiveGrotesk-400.otf");
  font-variation-settings: "srff" 100, "ital" 0, "wght" 70;
}
html,
body {
  background: #fff;
  z-index: 1;
  font-family: "TimesNewArial", sans-serif;
  font-variation-settings: "srff" 0, "ital" 0, "wght" 70;
  font-size: 12px;
  font-weight: normal;
  padding: 0;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    display: none;
}

a,
button,
input,
label {
  cursor: pointer;
}

.portfolio {
  width: 98vw;
  margin: 1vw auto;
}

.portfolio-header,
.portfolio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-header {
  margin-bottom: 1vw;
}

.portfolio-header h1 {
  margin: 0;
  font-size: 1vw;
  font-weight: 400;
}

.portfolio-header span,
.portfolio-footer span {
  font-size: 1vw;
}

/* Grid */

.videocontainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 1vw;
  row-gap: 1vw;
  width: 100%;
}

/* Videobox */

.videobox {
  position: relative;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

/* Video behält sein eigenes Seitenverhältnis */


.videobox video {
  display: block;
  width: 100%;
  height: auto;

  filter: blur(12px);
  opacity: 0;

  transition:
    filter 0.5s ease,
    opacity 0.4s ease;
}

.videobox video.loaded {
  opacity: 1;
}

.videobox:hover video,
.videobox:focus-visible video {
  filter: blur(0) brightness(1);
}

.videobox .project-title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;

  color: white;
  font-size: 11px;
  letter-spacing: 0.05em;

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.videobox:hover .project-title,
.videobox:focus-visible .project-title {
  opacity: 1;
}

.portfolio-footer {
  margin-top: 1.5vw;
}

.videobox video {
  display: block;
  width: 100%;
  height: auto;

  filter: blur(12px) brightness(0.65);
  opacity: 0;

  transition:
    filter 0.5s ease,
    opacity 0.4s ease;
}

.videobox video.loaded {
  opacity: 1;
}

.videobox:hover video,
.videobox:focus-visible video {
  filter: blur(0) brightness(1);
}

/* Smartphone: eine Spalte */

@media (max-width: 600px) {
  .portfolio {
    width: 94vw;
    margin: 3vw auto;
  }

  .videocontainer {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5vw;
  }

  .portfolio-header {
    margin-bottom: 5vw;
  }
}

/* Reduzierte Bewegung berücksichtigen */

@media (prefers-reduced-motion: reduce) {
  .videobox video,
  .videobox .project-title {
    transition: none;
  }
}