/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f3eee4;
}

/* TYPO */
h1 {
  text-align: center;
  padding-bottom: 2rem;
  font-family: var(--font-primary);
  font-size: 3.5rem;

  /* FIX: ligger over billeder */
  position: relative;
  z-index: 10;
}

h2 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 900;
}

p,
li {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

/* LIST */
ol {
  list-style: none;
  padding: 0;
  padding-bottom: 40px;
}

.howItWorks_card ol {
  padding-left: 15px;
  text-indent: -15px;
  line-height: 1.5;
}

.listeTop {
  padding-top: 12px;
}

/* SECTION SPACING */
.whatIsBackup {
  margin-bottom: 20px;
}

/* IMAGES */
.two_people {
  width: 100%;
  display: block;
  border-radius: 30px 30px 0 0;
  box-shadow: 5px 5px 0 rgba(164, 156, 140, 0.7);
  margin: 0 auto;

  /* FIX: fjernet overlap op på h1 */
  margin-top: 0;

  position: relative;
  z-index: 1;
}

.group-image {
  width: 100%;
  display: block;
  border-radius: 30px 30px 0 0;
  box-shadow: 5px 5px 0 rgba(164, 156, 140, 0.7);
  margin: 0 auto;
}

/* CARDS */
.about-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 30px;
  border-radius: 30px;
  border: 3.5px solid #4f4d4d;
  background: #f9f7f4;
  box-shadow: 5px 5px 0 rgba(164, 156, 140, 0.7);

  /* overlap KUN på billedet */
  margin-top: -80px;

  position: relative;
  z-index: 2;
}

.about-card p {
  margin-bottom: 15px;
}

.p_top {
  padding-top: 12px;
}

.howItWorks_card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 30px;
  border-radius: 30px;
  border: 3.5px solid #4f4d4d;
  background: #f9f7f4;
  box-shadow: 5px 5px 0 rgba(164, 156, 140, 0.7);
  margin-bottom: 40px;

  position: relative;
  z-index: 2;
}

/* ------------------------- */

@media (min-width: 1024px) {
  .whatIsBackup {
    display: flex;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-card {
    grid-column: 1;
    margin-top: 0;
    margin-right: -80px; /* overlap ind over billedet */
    z-index: 2;
    order: -1;
  }

  .two_people {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
    position: relative;
    object-fit: cover;
    height: 30vh;
    border-radius: 0px 30px 30px 0px;
  }
  /* ---------------------------- */

  .howItWorks_section {
    display: flex;
    flex-direction: row-reverse;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .howItWorks_card {
    grid-column: 1;
    margin-top: 0;
    /* margin-right: -80px; overlap ind over billedet */
    z-index: 2;
    order: -1;
    width: 700px;
  }

  .group-image {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
    position: relative;
    object-fit: cover;
    height: 30vh;
    border-radius: 30px 0px 00px 30px;
    margin-right: -80px; /* overlap ind over billedet */
  }
}
