button, [role="button"] { cursor: pointer; }

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/jost-latin-300.woff2") format("woff2");
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #f4f1ea;
  color-scheme: dark;
  font-family: "Calibri Light", Calibri, sans-serif;
  font-weight: 300;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  --header-ratio: 0.1;
  container-type: size;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  color: #f4f1ea;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: calc(var(--header-ratio) * 100%);
  padding: calc(var(--header-ratio) * 100cqh * 5 / 30);
  background: #222222;
}

.mark {
  display: block;
  height: 100%;
  width: auto;
  flex: 0 0 auto;
}

.wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  height: 70%;
  width: auto;
  max-width: calc(100% - 34cqh);
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.anfrage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 2 / 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.35em;
  border: calc(var(--header-ratio) * 1.26cqh) solid #000;
  border-radius: calc(var(--header-ratio) * 1.86cqh);
  background: transparent;
  color: #000;
  font-family: inherit;
  font-weight: 300;
  font-size: calc(var(--header-ratio) * 18cqh);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.reel {
  position: absolute;
  top: calc(var(--header-ratio) * 100%);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

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

.reel:focus {
  outline: none;
}

.panel {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.35rem, calc(env(safe-area-inset-right) + 1.15rem))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.35rem, calc(env(safe-area-inset-left) + 1.15rem));
}

.copy {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0;
  font-weight: 300;
  font-synthesis: none;
  font-size: min(16.72cqh, 7.69cqw);
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  gap: 0.24em;
}

.copy.is-half {
  font-size: min(8.36cqh, 3.845cqw);
}

@media (orientation: landscape) and (max-height: 500px) {
  .stage {
    --header-ratio: 0.15;
  }

  .copy.is-half {
    font-size: min(6.27cqh, 2.884cqw);
  }
}

.poster-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .mark {
    height: 78%;
  }

  .anfrage {
    height: 70%;
    aspect-ratio: auto;
    padding: 0 0.7em;
    font-size: calc(var(--header-ratio) * 14cqh);
  }

  .wordmark {
    height: auto;
    max-height: 52%;
    max-width: calc(100% - 11.2rem);
  }
}
