@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Archivo", sans-serif;
  background-color: #f4efe9;
  color: #2f2f2f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  pointer-events: none;
}

section {
  display: grid;
  place-items: center;
}

.img-double-container,
.img--single,
footer,
.sponsor,
.block,
.single-block,
.section-block,
.img--block,
iframe,
.timeline-wrapper {
  width: 100%;
  max-width: 1260px;
}

.img-double {
  width: 50%;
  float: left;
}

.grid--center {
  display: grid;
  justify-content: center;
}

.h1-big {
  font-size: 50px;
  max-width: 700px;
}

h1 {
  text-align: center;
}

p {
  width: 80%;
  line-height: 32px;
  text-align: center;
  color: #2f2f2f;
  max-width: 630px;
}

a {
  color: #2f2f2f;
  text-decoration: none;
}

.arrow {
  font-size: 20px;
  color: #32a287;
}

br::selection {
  background-color: transparent;
}

.section-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin: auto;
}

.block {
  min-width: 100%;
  display: grid;
  place-items: center;
}

.img--block {
  width: 100%;
}

.colored {
  background-color: #eee7da !important;
}

.sponsor {
  padding: 0 !important;
  pointer-events: none;
  cursor: default;
}

.single {
  display: inline-block;
  max-width: 630px;
  width: 50%;
}

/* Desktop */ /* Desktop */ /* Desktop */ /* Desktop */ /* Desktop */ /* Desktop */ /* Desktop */

@media screen and (min-width: 750px) {
  .section--first {
    padding-top: 5.2em;
    margin-bottom: 0 !important;
  }

  .section--last {
    margin-bottom: 0px;
  }

  section {
    padding-bottom: 200px;
  }

  .arrow-down {
    margin: 20px;
  }

  .h1-big {
    font-size: 55px;
    max-width: 700px;
    margin-top: 150px !important;
    margin-bottom: 80px !important;
  }

  .h1-big-first {
    margin-top: 100px !important;
    margin-bottom: 15px !important;
  }

  h1 {
    margin-top: 60px;
    font-size: 32px;
    margin-bottom: 30px;
    display: grid;
    place-items: center;
  }

  p {
    font-size: 20px;
    line-height: 32px;
  }

  .block {
    position: relative;
    padding-bottom: 50px;
    align-content: start;
    height: 95%;
  }

  .single-block {
    margin-bottom: 0px;
  }

  .block .arrow {
    position: absolute;
    bottom: 0px;
  }

  .arrow {
    background: linear-gradient(currentColor 0 0) var(--p, 0) 100% / var(--d, 0)
      1.3px no-repeat;
    transition: 0.3s, background-position 0s 0.3s;
    line-height: 20px;
  }

  .preis {
    margin: 0 !important;
    position: relative;
    font-size: 20px;
    bottom: 0px;
    line-height: 30px;
    font-weight: bold;
    position: absolute;
    bottom: 0px;
    text-align: center;
  }

  .sponsor {
    margin-top: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .sponsor img {
    width: 70%;
    height: auto;
    padding-bottom: 2em;
  }

  .p-special {
    margin-top: 50px !important;
    margin-bottom: 20px !important;
  }

  .sponsor a {
    display: grid;
    justify-items: center;
    margin-bottom: 120px;
  }

  .contact a,
  .contact p {
    margin-left: 30px;
    font-size: 1em;
    text-align: left;
  }

  .contact .block {
    height: 100%;
    padding: 0;
    margin: 0;
  }

  .contact h1:first-child {
    margin-top: 0;
  }

  .contact h1 {
    font-size: 24px;
    margin-left: 30px;
    margin-bottom: 5px;
    text-align: left;
  }

  .contact-text {
    place-items: start;
  }

  .contact-text a {
    font-size: 16px;
    line-height: 24px;
  }

  .contact-text p {
    font-size: 16px;
    line-height: 24px;
  }

  .pdf a {
    padding: 1.5em;
  }

  .pdf a:hover {
    text-decoration: underline;
  }

  .map {
    display: grid;
    align-items: center;
    height: 600px;
    justify-items: center; /* new */
  }

  .section--first {
    margin-bottom: 180px;
  }

  .img--block {
    margin-bottom: 20px;
  }

  .h1-big {
    margin-top: 70px;
    margin-bottom: 30px;
  }

  .colored .h1-big {
    margin-top: 70px;
    margin-bottom: 55px;
  }

  .colored p {
    margin-top: 80px;
    margin-bottom: 50px;
  }

  .middle h1 {
    margin-top: 0px;
    margin-bottom: 80px;
  }

  .middle p {
    margin-top: 100px;
  }
}

/*  MOBILE        MOBILE       MOBILE          MOBILE      MOBILE          MOBILE*/
@media screen and (max-width: 750px) {
  .section--first {
    padding-top: 5em;
  }

  .h1-big {
    margin-top: 70px;
    margin-bottom: 55px;
    font-size: 30px;
    max-width: 420px;
  }

  .h1-big-first {
    margin-bottom: 15px !important;
  }

  section {
    padding-bottom: 80px;
  }

  .section-block {
    width: 100%;
    display: grid;
    place-items: center stretch;
    grid-template-areas: "block1" "block2";
  }

  .block {
    width: 100%;
    max-width: none;
  }

  .block1,
  .block2,
  .block-single {
    margin-top: 80px;
  }

  h1 {
    margin: 55px 0 10px 0;
    font-size: 22px;
    max-width: 350px !important;
  }

  p {
    line-height: 27px;
    font-size: 18px;
    text-align: center;
    color: #2f2f2f;
    width: 80%;
  }

  .p-l {
    margin-bottom: 30px !important;
  }

  .arrow {
    font-size: 18px;
    margin: 20px 0;
  }
  iframe {
    height: 400px;
  }
  .sponsor {
    margin-top: 50px;
    grid-template-areas: "sponsor-a sponsor-a";
    gap: 4em;
    margin-bottom: 100px;
  }

  .p-special {
    padding-top: 55px !important;
  }

  .sponsor a {
    display: grid;
    justify-items: center;
  }

  .sponsor img {
    width: 80%;
    padding-bottom: 2em !important;
  }

  .pdf a {
    padding: 1em;
  }
}

/* ANIMATION */

@keyframes fade-in-img {
  100% {
    width: 100%;
  }
}

img::selection {
  background-color: transparent;
}

.arrow:hover {
  --d: 100%;
  --p: 100%;
}

.black {
  transition: none;
  pointer-events: none;
}

.black:hover {
  text-decoration: none;
}

.animation {
  background-color: #f4efe9;
  width: 100%;
  height: 100%;
  position: fixed;
  animation: fade-out 3s 8s cubic-bezier(0, 0, 0.71, 0.27) forwards;
  z-index: 1000;
}

.gif {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  animation: fade-in-gif 9s 0.35s cubic-bezier(0, 0, 0.71, 0.27) backwards;
  opacity: 0;
}

h5 {
  padding-top: 20%;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f4efe9;
  animation: fade-in-text 8s 2.5s forwards;
}

.textLittleAnimation {
  font-size: 0.7em;
}

@media screen and (max-width: 750px) {
  h5 {
    font-size: 1em;
    top: 44%;
    margin-top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .gif {
    width: 65%;
  }
}
@keyframes fade-in-gif {
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-in-text {
  50% {
    color: #8e8e8e;
  }

  100% {
    color: transparent;
  }
}

@keyframes fade-out {
  100% {
    opacity: 0;
  }
}
