:root {
  --ink: #645656;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Mars";
  src:
          url("./fonts/Mars/Fonts-WOFF2/MarsStandardWeb-Medium.woff2") format("woff2"),
          url("./fonts/Mars/Fonts-WOFF/MarsStandardWeb-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page);
  color: var(--ink);

  font-family: "Mars", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-synthesis: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing {
  position: relative;

  width: 100%;
  min-height: 100svh;

  background: var(--page);
}

.brand {
  position: absolute;
  z-index: 2;

  top: clamp(4.2rem, 10.4vh, 8.7rem);
  left: clamp(2.2rem, 6.7vw, 7.1rem);

  width: clamp(19rem, 38vw, 37rem);
  margin: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.visual {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.visual img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.visual-left {
  left: 0;
  top: 34.2vh;

  width: min(32.4vw, 31rem);
}

.visual-left img {
  object-position: center center;
}

.visual-right {
  right: 0;
  top: 15.35vh;

  width: min(22vw, 21rem);
}

.visual-right img {
  object-position: 50% 29%;
}

.contact {
  position: absolute;
  z-index: 3;

  top: calc(34.2vh + min(26.7vw, 27.2rem));

  left: min(30.2vw, 29rem);

  display: flex;

  gap: 1rem;

  white-space: nowrap;

  font-family: "Mars", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.separator {
  font-weight: 500;
}

@media (max-width: 950px) {

  .landing {
    position: relative;

    min-height: auto;
    overflow: visible;

    display: grid;
    grid-template-columns: 1fr;

    gap: clamp(2rem, 7vw, 4rem);

    padding:
            clamp(1.5rem, 5vw, 3rem)
            0
            clamp(2rem, 6vw, 4rem);
  }


  /* Absolute Positionierung aufheben */

  .brand,
  .visual,
  .contact {
    position: static;
    transform: none;
  }


  /* Reihenfolge */

  .brand {
    order: 1;
  }

  .visual-right {
    order: 2;
  }

  .contact {
    order: 3;
  }

  .visual-left {
    order: 4;
  }


  /* Logo */

  .brand {
    width: min(82vw, 30rem);

    margin:
            1rem
            0
            1rem
            clamp(1.5rem, 8vw, 3.5rem);
  }


  /* Rechtes Bild */

  .visual-right {
    justify-self: end;

    width: min(58vw, 19rem);
  }


  /* Kontakt zwischen den Bildern */

  .contact {
    justify-self: center;

    display: flex;
    justify-content: center;
    align-items: baseline;

    flex-wrap: wrap;

    gap: 0.55rem 0.8rem;

    padding: 0.5rem 1.25rem;

    font-size: 0.92rem;
    text-align: center;
  }


  /* Linkes Bild */

  .visual-left {
    justify-self: start;

    width: min(78vw, 28rem);
  }
}

@media (max-width: 390px) {

  .landing {
    gap: 2rem;
  }

  .brand {
    width: 87vw;
    margin-left: 1.25rem;
  }

  .visual-right {
    width: 62vw;
  }

  .contact {
    width: 100%;
    padding-inline: 1rem;

    font-size: 0.86rem;
    gap: 0.45rem 0.65rem;
  }

  .visual-left {
    width: 82vw;
  }
}

@media (prefers-reduced-motion: no-preference) {

  .visual img {
    transition: transform 0.6s ease;
  }

  .visual:hover img {
    transform: scale(1.015);
  }
}