@font-face {
  font-family: 'CaraqueVF_Trial_WghtMelt';
  src: url('fonts/CaraqueVF_Trial_WghtMelt.woff2') format('woff2');
}

body {
  display: grid;
  justify-items: center;
  align-items: center;
  /*
  Ich machs so:
  - Ein Raster mit einem Feld
  - Horizontal eingemittet (justify)
  - vertikal eingemittet (align)
  - beide inhalte in dieses eine Feld setzen (grid-column, grid-row)
  - ausgleichen mit transform
      - sugus und quadrat können separat skaliert, rotiert und geschoben werden.
      - wenn du beides zusammen schieben willst, transform auf body 
  */
  transform: translateY (-2vw)
  position: relative;
}

h1,
.center {
  grid-column: 1/-1;
  grid-row: 1/-1;
}

h1 {
  font-family: 'CaraqueVF_Trial_WghtMelt';
  font-size: 32rem;
  color: red;
  -webkit-text-stroke: 15px white;
  font-weight: 1000;
  text-align: center;
  letter-spacing: 0rem;
  line-height: 0.1%;
  animation: vars 2s infinite linear;
  z-index: 0; /* vorne */
}

@keyframes vars {
  0%,
  100% {
    font-variation-settings: 'wght' 600, 'MELT' 1;
  }
  50% {
    font-variation-settings: 'wght' 749, 'MELT' 100;
    letter-spacing: 15px;
  }
}

h1:hover {
  transform: scaleX(-1.1); 
}

.center {
}

section {
  z-index: -1; /* hinten */
  width: 350px;
  height: 350px;
  background-color: white;
  /* display: flex;  betrifft nur zeugs im quadrat, also wurst */
  transform: rotate(45deg) translateY(4rem)  translateX(3rem) scale(1.4); /* hier kannst du fein-justieren */
  border-radius: 25px;
}

.hover-text {
  font-family: Arial, sans-serif;
  font-size: 3rem;
  color: white;
  position: absolute;
  bottom: 3rem;
  text-align: center;
  width: 100%;
  z-index: -2; 
}
