/*** Hero ***/
#hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10% 14% 100px 14%;
}

h1 span.auszeichnung {
  color: var(--red);
}

#hero img {
    width: 40%;
    margin: 80px 0px 0px 0px;
}

#hero p.emphasis {
    padding: 24px 0px 52px 0px;
}

.field{
  display: flex;
  justify-content: center;
}

.field::after {
    content: '';
    width: 220px;
    height: 16px;
    margin-top: 9px;
    position: absolute;
    background: var(--green);
    z-index: -1;
}

.intro::before {
  content: url(img/zitat.svg);
  position: absolute;
  margin: -55px 0px 0px -45px;
  z-index: -1;
}

.emoji {
  font-size: 30px;
  position: absolute;
  margin-left: 5px;
}


/*** Skills & Experience ***/
#skills, #experience {
    width: 100%;
    display: flex;
    flex-direction: row;
}

#skills > div, #experience > div {
    width: 50%;
}

.skillset, .exp-detail {
    margin-top: 60px;
}

.skillset p:not(:last-of-type) {
    margin-bottom: 20px;
}

.exp-detail p:first-of-type {
    margin-bottom: 60px;
}

#skills .center {
  text-align: left;
}




/*** CV ***/
#cv {
    width: 100%;
    display: flex;
    flex-direction: row;
}

#cv h2 {
    width: 23%;
}

#cv > div {
    width: 54%;
}


/* Timeline */
.timeline {
    position: relative;
    margin-top: 40px;
    z-index: -1;
  }
  .timeline::before {
    content: '';
    width: 2px;
    height: 95%;
    position: absolute;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        to bottom,
        var(--grey1),
        var(--grey1) 10px,
        var(--green) 10px,
        var(--green) 20px
        );
  }
  .timeline-item {
    width: 100%;
    margin-bottom: 100px;
  }
  .timeline-item .timeline-content {
    padding: 0px 30px 10px 80px;
  }
  
  .timeline-item::after {
    content: '';
    display: block;
    clear: both;
  }
  .timeline-content {
    position: relative;
  }
  
  .timeline-img {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 50%;
    position: absolute;
    margin-left: -20px;
  }

  #cv .emphasis {
      margin-bottom: 15px;
  }

#cv .timeline-content p:nth-of-type(3) {
    margin-bottom: 40px;
}

  .place {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
  }

  .place img {
      width: 15px;
      height: 100%;
      margin-top: 3px;
  }

  .place p {
    margin-left: 10px;
}

/*** media queries **/
@media only screen and (max-width: 1100px) {
  #hero img {
    width: 60%;
  }

  .skillset, .exp-detail {
      margin-top: 32px;
  }   
  #cv > div {
    width: 64%;
  }
}

@media only screen and (max-width: 850px) {
  #hero {
    margin: 20% 14% 100px 14%;
  }

  #hero h1 {
    order: 1;
  }

  #hero p.emphasis {
    order: 2;

  }

  #hero .intro {
    order: 4;
  }

  #hero img {
    order: 3;
    width: 100%;
    margin: 20px 0 120px 0;
  }
  
  #skills, #experience {
    flex-direction: column;
  }

  #skills > div, #experience > div {
    width: 100%;
  }

  .exp-detail {
    order: 2;
  }

  .exp-hl {
    order: 1;
  }

  .exp-hl h2.right {
    text-align: left;
  }

  #skills .center {
    text-align: center;
  }

  #cv {
    flex-direction: column;
  }

  #cv h2 {
    width: 100%;
  }

  #cv > div {
    width: 100%;
  }
}


@media only screen and (max-width: 600px) {
  .timeline-item .timeline-content {
    padding: 0px 30px 10px 40px;
  }

  footer {
    padding-bottom: 90px;
  }
}
 
@media only screen and (max-width: 400px) {
  .exp-detail p:first-of-type {
    margin-bottom: 30px;
  }
  
  .timeline-img {
    width: 30px;
    height: 30px;
    margin-left: -15px;
  }
  
  .timeline-item .timeline-content {
    padding: 0px 30px 10px 40px;
  }
}