@keyframes rotatingAnimation {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
@font-face {
  font-family: "Times New Arial VF";
  src: url("../fonts/TimesNewArialVF.ttf") format("truetype");
  font-weight: 100 900; /* Define the font weight range */
  font-style: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
}
*, p, h1, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-size: 1vw;
    font-weight: 100 900; /* Define the font weight range */
  font-style: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
}
.abouttext a, h2{
  font-size: 1vw;
}
a{
  color: yellow;
  text-decoration: none;
  text-decoration-thickness: 0.1vw;
  /* text-decoration-style: wavy; */
}
.about-popup a{
  display: inline-block;
  padding-left: 0;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  transition: padding-left 0.25s ease-out, font-variation-settings 0.25s ease-out;
}
.about-popup a:hover{
  padding-left: 0.5vw;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 100, "nvgn" 0;
}
a:hover{
  /* text-decoration-style: solid; */
  text-decoration: none;
}
h2{
  text-align: center;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  /* text-transform: uppercase; */
  font-size: 4vw;
  text-align: center;
  font-family: "Times New Arial VF";
  font-smooth: always;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: #628eff;
  color: yellow;
}
main.container {
  height: 100vh;
  overflow-y: scroll;
  position: relative;
  filter: saturate(1.1);
  transition: filter 0.25s ease-out;
}

main.container.popup-dim {
  filter: saturate(1.1) brightness(0.25) opacity(0.85);
}
.container {
  /* border: 1px solid red; */

  width: 100vw;
  height: 100vh;
  perspective: 90vw;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: #628eff;
  transition: transfrom 5s ease-out, perspective 1s ease-out;
  will-change: perspective;
}
.zero{
  /* perspective: 0.25vw !important; */
}
.book-container, .book-container * {
  backface-visibility: hidden;
   transform: translateZ(0);
   height: 100%;
}
header {
  position: fixed;
  margin: auto;
  left: 0;
  right: 0;
  top: 1vw;
  width: max-content;
  z-index: 999;
}
.logo {
  backdrop-filter: blur(0.5vw);
  background-color: rgba(98, 142, 255, 0.5);
  padding: 0.5vw 1vw 0.35vw 1vw;
  border-radius: 2vw;
  color: yellow;
  font-size: 1vw;
  text-align: left;
  font-weight: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  z-index: 2;
  padding: 0.5vw 1vw 0.35vw 1vw;
  border-radius: 2vw;
  box-shadow: 0vw 0vw 20vw rgb(0, 0, 255);
  width: max-content;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1vw;
  text-align: center;
}

.logo a {
  font-size: inherit;
}

header,
nav,
.about,
.imprint,
.mail {
  transition: opacity 0.25s ease-out;
}

body.popup-open header,
body.popup-open nav,
body.popup-open .about,
body.popup-open .imprint,
body.popup-open .mail {
  opacity: 0.25;
}

nav {
  color: yellow;
  position: fixed;
  z-index: 1;
  font-size: 1vw;
  text-align: left;
  font-weight: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  margin: 1vw;
  /* text-transform: uppercase; */
  background: linear-gradient(to bottom, rgba(0, 0, 255, 0.5), rgba(98, 142, 255, 0));
  backdrop-filter: blur(0.5vw);
  padding: 1vw;
  border-radius: 1vw;
}

nav ul {
  list-style: none;
  margin: unset;
  padding-inline-start: 0;
}

nav ul li {
  margin: unset;
  line-height: 1.15vw;
  transition: all 0.1s ease-out;
  cursor: pointer;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
}

nav ul li a, nav ul li a:hover, nav ul li a:visited {
  color: yellow;
  text-decoration: none;
}

nav ul li:hover {
  font-variation-settings: "wght" 0, "srff" 0, "ital" 100, "nvgn" 0;
  padding-left: 0.5vw;
}

nav li,
nav li a,
.about,
.imprint,
.mail,
.mail a {
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  transition: font-variation-settings 0.25s ease-out, opacity 0.25s ease-out;
}

nav li:hover,
nav li:hover a,
nav li.is-focused,
nav li.is-focused a,
.about:hover,
.imprint:hover,
.mail:hover,
.mail:hover a {
  font-variation-settings: "wght" 0, "srff" 0, "ital" 100, "nvgn" 0;
}

nav li.is-focused {
  padding-left: 0.5vw;
}

.info {
  position: absolute;
  width: 17vw;
  top: 0;
  right: 0;
  left: 100%;
  color: yellow;
  /* color: white; */
  position: fixed;
  z-index: 1;
  font-size: 1vw;
  text-align: left;
  font-weight: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  padding-left: 1vw;
  height: max-content;
  pointer-events: none;
}

.container > div:first-child {
    margin-top: 4vw !important;

}

.container > div:last-child {
  margin-bottom: 20vw;
}

.container2 {
  transform: rotate3d(1, 1, 1, 25deg);
}

.book-container {
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center center;
  border-radius: 0.25vw;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
  /* box-shadow: 0vw 0vw 20vw rgb(0, 0, 255); */
}
.book-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.25vw;
  pointer-events: none;
  /* box-shadow: 0vw 0vw 20vw rgb(0, 0, 255); */
  transition: opacity 0.3s ease;
  opacity: 1;
  z-index: -1; /* behind content */
}

.book-container.no-shadow::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.book-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.25vw;
  pointer-events: none;
  box-shadow: 0vw 0vw 20vw rgb(0, 0, 255);
  transition: opacity 0s ease;
  opacity: 1;
  z-index: -1; /* behind content */
}

.book-container.no-shadow::after {
  opacity: 0;
}
.book-container > div {
  background-size: cover;
  background-position: center center;
  backface-visibility: visible;
  border-radius: 0.25vw;
}

.book-front, .book-back {
  background-size: cover;
  height: 36vw;
  border-radius: 0.25vw;
}

.book-container:not(.intro-book) {
  width: auto;
  height: 36vw;
  max-width: 64vw;
  aspect-ratio: var(--project-aspect, 16 / 9);
  flex: 0 0 auto;
}

.book-container:not(.intro-book) > .book-front,
.book-container:not(.intro-book) > .book-back {
  width: 100%;
  height: 100%;
}

.intro-book {
  aspect-ratio: 16/9;
  width: 57vw;
    border-radius: 1vw !important;
    box-shadow: unset !important;
    margin-top: 0.75vw;
}
.intro-book:after {
 box-shadow: unset !important;
}
.intro-book .book-front {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* padding: 3vw; */
  overflow-y: auto;
  /* background: linear-gradient(to bottom, rgb(0 0 255), rgb(0 70 255 / 0.25)); */
  box-shadow: unset;
  backdrop-filter: blur(2vw);
}

.intro-book__text {
  width: 100%;
  height: max-content !important;
  font-size: 1.95vw;
  line-height: 1.15;
  text-align: center;
}

.intro-book__text p{
    font-family: "Times New Arial VF";
      font-size: 1.95vw;
  line-height: 1.15;

}

.intro-book__text > :first-child {
  margin-top: 0;
}

.intro-book__text > :last-child {
  margin-bottom: 0;
}

.intro-book .book-front {
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
}

.intro-book__content {
  box-sizing: border-box;
  width: 100%;
  height: 100% !important;
  padding: 1vw;
  overflow-y: auto;
  scrollbar-width: none;
}

.intro-book__content::-webkit-scrollbar {
  display: none;
}

.intro-book__logo,
.intro-book__text,
.intro-book__columns,
.intro-book__columns section,
.intro-book__list,
.intro-book__list * {
  height: auto;
}

.intro-book__logo {
  margin-bottom: 3vw;
  font-size: 1vw;
  line-height: 1;
  text-align: center;
}

.intro-book__text {
  margin-bottom: 3vw;
  text-align: left;
}

.intro-book__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2vw;
  text-align: left;
}

.intro-book__columns h2 {
  height: auto;
  font-size: 1vw;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 0.75vw;
}

.intro-book__list,
.intro-book__list a {
  font-size: 1vw;
  line-height: 1.15;
}

.intro-book__list p {
  margin-top: 0;
}

.intro-book__contact {
  height: auto;
  text-align: left;
}
.intro-book__contact a{
  text-decoration-thickness: 0.01vw;
  text-underline-offset: 0.15vw;
}

.intro-book__contact h2 {
  height: auto;
    margin-bottom: 0.75vw;
  font-size: inherit;
  text-align: left;
    text-transform: uppercase;
}

.intro-book__contact a {
  font-size: inherit;
}

.intro-book,
.intro-book * {
  font-size: 1vw;
}

.intro-book .book-front {
  background: linear-gradient(to bottom, rgb(0 0 255), rgb(0 70 255 / 0));
}

.intro-book.intro-hover {
  transform: rotate3d(1, 1, 1, 0deg);
  z-index: 999;
}



.book-back {
  position: absolute;
  background-size: cover;
  height: 36vw;
  margin-top: -30vw;
  transform: translate3d(1px, 1px, 1px);
  border-radius: 0.25vw;
}

img {
  height: 100%;
  background-color: rgb(98, 142, 255);
}

video {
  height: 100%;
  border-radius: 0.25vw;
  background-color: rgb(98, 142, 255);
  /* transform: translateX(-25%); */
}
.info a {
  text-decoration-thickness: 0.015vw;
  text-underline-offset: 0.15vw;
  pointer-events: auto;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  transition: font-variation-settings 0.25s ease-out;
}

.info a:hover {
  font-variation-settings: "wght" 0, "srff" 0, "ital" 100, "nvgn" 0;
}
/* Example for one side, apply similar transformations for other sides */
.book-front {
  position: relative;
  width: 100%;
}
.book-front a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.book-back.kirr01 {
  /* background-image: url('../images/kirr01.jpg'); Back image */
}

.book-back.kirr02 {
  /* background-image: url('../images/stau-grossraumbuero-cover.jpg'); */
}

.book-back.kirr03 {
  /* background-image: url('../images/wohinn.jpg'); */
}

.book-back.kirr04 {
  /* background-image: url('../images/nixkiepe.jpg'); */
}

.book-back.kirr05 {
  /* background-image: url('../images/benito.png'); */
}

.rot1 {
  transform: rotate3d(1, 1, 1, -25deg);
  /* animation: rotatingAnimation 11s linear 0s infinite; */
}

.rot3 {
  transform: rotate3d(1, 1, 1, 25deg);
  /* animation: rotatingAnimation 12s linear 0s infinite; */
}
.rot1, .rot3 {
  will-change: transform;
}

.book-container.video-hover, .unset-transform {
  transform: rotate3d(1, 1, 1, 0);
  z-index: 999;
  cursor: ne-resize;
}

.book-container.video-hover.video-loading,
.book-container.video-hover.video-loading a,
.book-container.video-hover.video-loading video {
  cursor: progress;
}

.kirr img {
  width: 10vw;
  position: fixed;
}

.kirr img:nth-child(1) {
  top: 10vh;
  left: 12vw;
}

.kirr img:nth-child(2) {
  top: 68vh;
  left: 8vw;
}

.kirr img:nth-child(3) {
  top: 12vh;
  right: 4vw;
}

.kirr img:nth-child(4) {
  top: 48vh;
  right: 10vw;
}
.abouttext{
  display: flex;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
}
.abouttext h2{
  margin: 2vw 6vw 1vw 6vw;
}
.about, .contact, .imprint, .mail {
  background-color: rgba(98, 142, 255, 0.5);
  padding: 0.5vw 1vw 0.35vw 1vw;
  border-radius: 2vw;
  color: yellow;
  font-size: 1vw;
  text-align: left;
  font-weight: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  position: fixed;
  margin: auto;
  right: 1vw;
  top: 1vw;
  z-index: 1;
  padding: 0.5vw 1vw 0.35vw 1vw;
  border-radius: 2vw;
  width: max-content;
  position: absolute;
  transition: 0.25s ease-out;
  backdrop-filter: blur(0.5vw);
  cursor: pointer;
}
.imprint{
  left: unset;
  right: 1vw;
  bottom: 1vw;
  top: unset;
}
.mail{
  right: unset;
  left: 1vw;
  bottom: 1vw;
  top: unset;
}
.mail a{
  color: yellow;
  text-decoration: none;
  transition: all 0.1s ease-in-out;
}
.mail a:hover{
  color: yellow;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 100, "nvgn" 0;
  padding-left: 0.5vw;
}
.about.active {
  transform: translateX(-8.36vw);
  opacity: 1;
}
hr {
  border: none;
  border-top: 1px solid yellow;
  /* border: none; */
}
.about-popup, .imprint-popup{
  width: 64vw;
  /* height: 50vh; */
  display: none;
  /* pointer-events: none; */
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 999;
  transform-style: preserve-3d;
  box-shadow: 0vw 0vw 20vw rgb(0, 0, 255);
  color: yellow;
  font-size: 1vw;
  text-align: left;
  font-weight: normal;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  /* background: linear-gradient(to bottom, rgb(82 78 0), rgb(0 71 255 / 0)); */
  backdrop-filter: blur(1vw);
  padding: 1vw;
  border-radius: 1vw;
  overflow: scroll;
  aspect-ratio: 16 / 9;
  backdrop-filter: blur(0.2vw) saturate(10);
      backdrop-filter: blur(1vw) contrast(10) grayscale(3);

      backdrop-filter: blur(0vw) contrast(1) grayscale(3);
    background: linear-gradient(to bottom, rgb(0 0 255), rgb(0 70 255 / 0.25));
  /* background: linear-gradient(to bottom, rgb(93 143 255), rgb(0 70 255 / 0)); */
  overflow-y: scroll;         /* allow scrolling */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE and Edge */
}
.about-popup::-webkit-scrollbar, .imprint-popup::-webkit-scrollbar  {
  display: none;              /* Chrome, Safari */
}

.about-popup,
.about-popup * {
  font-size: 1vw;
}
.contact.active {
  transform: translateX(8.75vw);
  opacity: 1;
}
.container-project{

}
.square{
  border: 1px solid black;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
  aspect-ratio: 1/1;
  height: 100vh;
}
.container-project > div:last-child {
  margin-bottom: 0 !important;
}

.container-project > div:first-child {
  margin-top: 3vw !important;
  margin: auto !important;
}

.container-project .book-front{
  height: 58vh;
}

.video-bg {
  height: auto;
  display: block;
  height: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.video-wrapper .video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.seo-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.book-container:not(.intro-book) .video-bg,
.book-container:not(.intro-book) .seo-poster {
  object-fit: contain;
}

.book-container.video-playing .seo-poster {
  opacity: 0;
}




.video-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

.video-wrapper.hovered .video-poster {
  opacity: 0;
}



@media (hover: none) {
  .intro-book.intro-hover {
    transform: unset;
    z-index: initial;
  }

}

@media screen and (max-width: 967px) {

  .intro-book__content {
    padding: 4vw;
  }

  .intro-book__logo,
  .intro-book__columns h2 {
    font-size: 4vw;
  }

  .intro-book__logo,
  .intro-book__text {
    margin-bottom: 8vw;
  }

  .intro-book__columns {
    gap: 5vw;
  }

  .intro-book__list,
  .intro-book__list a {
    font-size: 3vw;
  }
  .intro-book__columns h2, .intro-book__contact h2 {
    margin: 0 0 4vw;
  }
  .intro-book__contact{
    margin-top: 8vw;
  }

  .intro-book {
    width: 90vw;
  }
  .imprintttext{
    padding: 4vw;
  }
  .intro-book .book-front {
    padding: 6vw;
  }

  .intro-book__text {
    font-size: 4vw;
  }

  .intro-book,
  .intro-book * {
    font-size: 1vw;
  }
}
@media screen and (max-width: 967px) {
  html, body, .container{
    background: #2A7B9B;
background: linear-gradient(180deg, rgba(42, 123, 155, 1) 0%, rgba(98, 142, 255, 1) 0%, rgba(0, 72, 255, 1) 100%);
  }
  main.container,
  .container {
    height: 100dvh;
  }
  .book-container {
    /* margin-top: 20vw; */
    /* margin-bottom: 20vw; */
    /* width: 90%; */
  }
  .book-front, .book-back {
    /* max-height: 80vh; */
    border-radius: 0.25vw;
    /* max-width: 100%; */
    height: 60vw;
  }
  video, img {
    /* width: 100%;
    height: 100%; */
  }
  .about-popup, .imprint-popup {
    width: 94vw;
    aspect-ratio: 4 / 5;
    border-radius: 3vw;
    backdrop-filter: blur(2vw) saturate(10);
        backdrop-filter: blur(0.75vw) contrast(10) grayscale(3);
    background: linear-gradient(to bottom, rgb(0 0 255), rgba(0, 0, 0, 0));
    overflow: hidden;
    font-size: 3vw;
  }
  .imprint-popup {
    height: 50vh;
    overflow-y: scroll;
    backdrop-filter: blur(20vw) saturate(10);
        backdrop-filter: blur(0.75vw) contrast(10) grayscale(3);
    background: linear-gradient(to bottom, rgb(0 0 255), rgb(0 70 255 / 0));
  }
  nav{
    font-size: 3vw;
    display: none;
  }
  nav li a{
    line-height: 3.5vw;
  }
  .logo, .about, .imprint, .mail{
    font-size: 4vw;
    padding: 3vw;
    padding: 2vw 4vw 1.5vw 4vw;
    border-radius: 5vw;
    margin: 0;
    backdrop-filter: blur(2vw);
    position: fixed;
    z-index: 1000;
  }
  nav{
    padding: 1.5vw 2.5vw 1.35vw 2.5vw;
    border-radius: 3vw;
    margin: 2vw;
  }
  header
  {
    width: unset;
    left: unset;
    right: 0;
  }
  .logo{
    left: unset;
    right: 0;
    display: none !important;
  }
  .about{
    left: calc(env(safe-area-inset-left, 0px) + 2vw);
    top: unset;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 2vw);
    right: unset;
  }
  .imprint {
    left: unset;
    right: calc(env(safe-area-inset-right, 0px) + 2vw);
    top: unset;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 2vw);
  }
  .mail{
    left: 50%;
    right: unset;
    top: calc(env(safe-area-inset-top, 0px) + 2vw);
    bottom: unset;
    transform: translateX(-50%);
  }

  .book-container, .book-container::after {
    box-shadow: unset !important;
  }
}
@media (hover: none) {
  .info {
    display: none !important;
  }
}

@media screen and (max-width: 967px) {
  html,
  body,
  body * {
    font-size: 4vw !important;
  }

  .book-container:not(.intro-book) {
    width: auto;
    height: 50.625vw;
    max-width: 90vw;
    aspect-ratio: var(--project-aspect, 16 / 9);
  }

  .book-container.is-portrait {
    width: auto;
    height: 50.625vw;
    aspect-ratio: var(--project-aspect);
  }

  .book-container:not(.intro-book) .video-bg,
  .book-container:not(.intro-book) .seo-poster {
    object-fit: contain;
  }

  header {
    display: block;
    width: max-content;
    margin: 0;
    left: 50%;
    right: auto;
    top: 2vw;
    bottom: auto;
    transform: translateX(-50%);
  }

  .logo {
    display: flex;
    margin: 0;
    left: auto;
    right: auto;
    bottom: auto;
    font-size: 4vw;
    text-align: center;
    display: none !important;
  }

  .about-popup,
  .about-popup *,
  .imprint-popup,
  .imprint-popup * {
    font-size: 4vw !important;
  }
  .info{
    display: none !important;
  }
}
@supports (-webkit-touch-callout: none) {
  .container > div {
    /* transform: none !important; */
    /* filter: unset; */
    box-shadow: unset;
  }
}
