body.template-project {
  background-color: rgba(255, 255, 255, 1);
}

@media (hover: hover) and (pointer: fine) {
  body.template-project .main a:hover,
  body.template-project .footer a:hover {
    color: red;
  }
}

body.template-project .main a:focus-visible,
body.template-project .footer a:focus-visible {
  color: red;
}

@media (hover: hover) and (pointer: fine) {
  body.template-project .header-shop:hover {
    color: red;
  }
}

body.template-project .header-shop:focus-visible {
  color: red;
}

.main {
  font-family: inherit;
  color: inherit;
}

body.template-project .header .project-customer-fixed {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  z-index: 1200;
  transform-origin: center;
  transform: translate3d(-50%, calc(-50% - 28px), 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .32s cubic-bezier(.4, 0, .2, 1),
    opacity .26s ease;
  transition-delay: 0s, 0s;
}

body.template-project .header:is(.header--scroll-down, .scroll-down) .project-customer-fixed {
  transform: translate3d(-50%, -50%, 0);
  opacity: 1;
  pointer-events: auto;
  transition-delay: .12s, .14s;
}

body.template-project .project-customer-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 0px 16px rgba(0, 0, 0, 0.15);
}

body.template-project .project-close-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

body.template-project .project-close-icon::before,
body.template-project .project-close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

body.template-project .project-close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

body.template-project .project-close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

body.template-project .header .menu {
  transition:
    transform .32s cubic-bezier(.4, 0, .2, 1),
    opacity .24s ease;
  transition-delay: 0s, 0s;
}

@media (min-width: 641px) {
  body.template-project .header:is(.header--scroll-down, .scroll-down) .menu {
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s, 0s;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-hover-zone:hover ~ .project-customer-fixed,
  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-customer-fixed:hover,
  body.template-project .header:is(.header--scroll-down, .scroll-down):has(.menu:hover) .project-customer-fixed {
    transform: translate3d(-50%, calc(-50% - 28px), 0);
    opacity: 0;
    transition-delay: 0s, 0s;
  }

  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-hover-zone:hover ~ .menu,
  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-customer-fixed:hover ~ .menu,
  body.template-project .header:is(.header--scroll-down, .scroll-down):has(.menu:hover) .menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition-delay: .04s, .04s;
  }
}

body.template-project .project-hover-zone {
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(520px, calc(100vw - 160px));
  height: 110px;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
  z-index: 1;
}

body.template-project .header:is(.header--scroll-down, .scroll-down) .project-hover-zone {
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-hover-zone {
    pointer-events: auto;
  }

  body.template-project .header:is(.header--scroll-down, .scroll-down):has(.menu:hover) .project-hover-zone {
    pointer-events: none;
  }
}

body.template-project .header .project-close-fixed {
  position: absolute;
  top: 20px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:black;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-140%);
  transition:
    transform .32s cubic-bezier(.4, 0, .2, 1),
    opacity .26s ease;
  transition-delay: 0s, 0s;
  box-shadow: 0 0px 16px rgba(0, 0, 0, 0.15);
}

body.template-project .header .project-close-fixed::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: transparent;
}

body.template-project .header:is(.header--scroll-down, .scroll-down) .project-close-fixed {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .12s, .14s;
}

@media (max-width: 640px) {
  body.template-project .header .menu {
    transition:
      color .2s ease,
      transform .32s cubic-bezier(.4, 0, .2, 1),
      opacity .24s ease;
  }

  body.template-project .header .project-customer-fixed {
    position: fixed;
    top: var(--mobile-project-controls-top);
    left: 50%;
    transform: translate(-50%, -120%);
    transition-delay: 0s, 0s;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
  }

  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-customer-fixed {
    transform: translate3d(-50%, 30px, 0);
    transition-delay: .12s, .14s;
  }

  body.template-project .header .project-close-fixed {
    position: fixed;
    top: var(--mobile-project-controls-top);
    right: 20px;
  }

  body.template-project .header:is(.header--scroll-down, .scroll-down) .project-close-fixed {
    transform: translateY(30px);
  }

  body.template-project .project-hover-zone {
    display: none;
  }

  body.transitions-enabled:not(.is-page-entered) .header .project-customer-fixed {
    transform: translate3d(-50%, -140%, 0);
  }

}

body.transitions-enabled:not(.is-page-entered) .header .project-customer-fixed {
  transform: translate3d(-50%, calc(-50% - 28px), 0);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: none;
}

body.transitions-enabled:not(.is-page-entered) .header .project-close-fixed {
  transform: translateY(-140%);
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.project-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.project-layout h1 {
  text-align: center;
}

body.template-project .introtext {
  padding-bottom: 0px !important;
}

.project-layout .introtext {
  max-width: 960px !important;
  margin: 0 auto;
  color: inherit;
  text-align: left !important;
  font-size: 24px;
}

@media (max-width: 640px) {
  body.template-project .introtext {
  margin-left: 8px;
  padding-right: 16px;
  }

}

.project-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  column-gap: 16px;
  row-gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 0;
  align-items: start;
}

.project-info--columns-1 {
  grid-template-columns: minmax(220px, 1fr);
}

.project-info--columns-2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.project-info__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-info__group--left {
  grid-column: 1;
}

.project-info__group--right {
  grid-column: 2;
}

.project-info__group:only-child {
  grid-column: 1 / -1;
}

.project-info--columns-2 .project-info__group:only-child {
  display: contents;
  grid-column: auto;
}

.project-info__item {
  align-self: stretch;
  padding-bottom: 0;
}

.info-block {
  width: 100%;
  text-align: left;
}

.info-block dl {
  margin: 0;
}

.info-block dt {
  margin: 0;
}

.info-block dd {
  margin: 0;
}

.taetigkeiten {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits dt,
.credits dd {
  margin: 0;
}

.credits dd {
  margin-bottom: 16px;
}

.credits dd:last-of-type,
.credits dd:last-child {
  margin-bottom: 0;
}

.project-info__item--credits .info-block:last-child {
  padding-bottom: 0;
}

.credits dd p:first-child {
  margin-top: 0;
}

.credits dd:last-child p:last-child {
  margin-bottom: 0;
}

.credits dd a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .credits dd a:hover {
    color: #ffffff;
  }
}

.project-info a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-info a:hover {
    color: #ffffff;
  }
}

@media (max-width: 640px) {
  .project-info {
    column-gap: 16px;
    row-gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 8px;
  }

  .project-info--columns-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-info__group--left,
  .project-info__group--right {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .project-info--columns-2 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .project-info--columns-3 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .project-info--columns-4 {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  .project-info--columns-2 .project-info__group,
  .project-info--columns-3 .project-info__group,
  .project-info--columns-4 .project-info__group {
    display: contents;
  }

  .project-info--columns-2 .project-info__item,
  .project-info--columns-3 .project-info__item,
  .project-info--columns-4 .project-info__item {
    align-self: start;
  }
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 640px) {
  .project-gallery {
    gap: 8px;
  }
}

.project-gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-row {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (max-width: 640px) {
  .gallery-row {
    gap: 8px;
  }
}

.gallery-row.cols-1 {
  grid-template-columns: 1fr;
}

.gallery-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .gallery-row.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-row.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-row.cols-1,
  .gallery-row.cols-2,
  .gallery-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

.row-item {
  margin: 0;
  position: relative;
}

.row-item img,
.row-item video,
.row-item iframe {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.project-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  padding: 0 0 16px;
}

.project-pagination__item {
  min-width: 0;
}

.project-pagination__item--next {
  text-align: right;
}

.project-pagination__link {
  display: block;
  min-width: 0;
  font-size: clamp(24px, 1.7vw, 36px);
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-pagination__link:hover {
    color: red;
  }
}

.project-pagination__link:focus-visible {
  color: red;
}

@media (max-width: 640px) {
  .project-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0 8px 8px;
  }
}

@media (max-width: 500px) {
  .project-pagination__word {
    display: block;
  }
}

/* Lottie containers need an explicit aspect ratio.
   Set per animation via inline style, e.g. style="--lottie-aspect: 1920/1080" */
.row-item .lottie {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: var(--lottie-aspect, 16/9);
}

/* Make the rendered SVG/canvas fill the container */
.row-item .lottie > svg,
.row-item .lottie > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.row-item .video-embed {
  position: relative;
  width: 100%;
  padding-top: var(--embed-ratio, 56.25%);
  border-radius: 4px;
  overflow: hidden;
}

.row-item.media-item--has-aspect .video-embed {
  position: absolute;
  inset: 0;
  height: 100%;
  padding-top: 0;
}

.row-item.media-item--has-aspect .video-embed iframe {
  height: 100%;
}

.row-item .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

.image-credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  margin: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  z-index: 2;
}
