/* ---------- GLOBAL ---------- */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

main a:link,
main a:visited {
    color: white !important;
    text-decoration: none !important;
}

main a:link *,
main a:visited * {
    color: white !important;
    text-decoration: none !important;
}

a {
    text-decoration: none;
}

main > a {
    display: inline-block;
    align-self: start;

}


html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    background-color: #000;
}

/* ZENTRALER SEITENCONTAINER */
.page {
    max-width: 68rem;
    margin: 0 auto;
    background-color: #fff;
}

/* ---------- HEADER ---------- */

.header-left h1 {
    margin: 0;
    font-family: "Roboto", sans-serif;

}

header {
    height: auto;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 3.3rem;
}

header img {
    width: 34.25px;
    height: 34.25px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between  ;
    gap:1.5rem;
    text-decoration: none;
    font-size: 1rem;
    margin-left: auto;
    margin-right:3.313rem;
    background-color: #fff;
    height: 80px;

}



nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}



header h1{
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    
}



/* ---------- HERO ---------- */

.MyJourney-container {
    height: 488px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    color: white;
    background-image: url("../images/blog-image-hero.png");
    background-position: 0% 30%;  /* weiter nach oben oder unten */
    margin-bottom: 80px;

}


.MyJourney-Text {
    margin: 0 0 2.75rem 3.3rem;
    max-width: 40rem;
    margin-left: 200px;
    background-color: rgba(20,20,20,0.55);
    border-radius: 15px;
    padding: 25px;

}

.MyJourney-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
        margin-left: 60px;

}

.MyJourney-container h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-left: 60px;
    letter-spacing: 0.08em; 
}

.MyJourney-container p {
    font-size: 1rem;
        margin-left: 60px;

}

/* ---------- MAIN GRID ---------- */



main{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;

  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 3.3rem);
  padding-block: 0 3.3rem;

  align-items: start;
  justify-items: stretch;
}


/* wichtig: KEIN max-width bei article */
article{
  padding-bottom: 50px;
  height: fit-content;
  width: 100%;
}

main img {
  width: 100%;
  height: 232px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

article a {
    display: inline-block;
        width: 100%;

}


article h2 {
    margin: 0.75rem 0 0.5rem;
    color: white;
}

.article-date {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: white;

}

.article-descr {
    margin: 0;
    color: white;

}




.ViewMore {
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    color: white;
    margin-bottom: 3.3rem;
    margin-top: -10px;

}

/* ---------- FOOTER ---------- */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #202020;
    width: 100%;
    width: 100v;
    height: 6.563rem;
    color: #D7D7D7;
    font-size: 0.75rem;
    text-align: center;
}

#p-Journal{
    font-weight: bold;
    color: #ECECEC;
    margin-bottom: 1.225rem;
}

#p-Copyright {
    color: #D7D7D7;
    margin-top: -0.625rem;
}

/* ---------- MOBILE ---------- */



@media (max-width: 900px) {

    main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 45rem;
        justify-items: center;
        gap: 6.5rem;
    }

    .MyJourney-container {
        background-position: center center;
        display: flex;
        
    }

    .MyJourney-Text {
        max-width: 44rem;
        margin: 0 auto;
        text-align: center;
        margin-left: 85px;
        margin-bottom: 20px;
    }

    article {
        max-width: 420px;
        margin: 0 auto;
    }

    .MyJourney-Text h1,
    .MyJourney-Text h3,
    .MyJourney-Text p {
    margin-left: 0;
    margin-right: 0;
}


}

@media (max-width: 480px) {

  /* ---------- RESET / BASIS ---------- */

  html,
  body {
    margin: 0;
    padding: 0;
    background: #000;
  }

  .page {
    max-width: 100%;
  }

  /* ---------- HEADER ---------- */

   header img{
        width: 24px;
        height: 24px;
    }

    

        header{
        height:auto;
        padding: 0rem 0;
    }

    .header-left{
        margin-left: 1.5rem;
        gap: .6rem;
    }

    header h1{
        margin:0;
        font-size:.85rem;
    }

    nav{
        margin-right: 1.5rem;
    }

    nav ul{
        gap: 1rem;
    }

   nav a {
    font-size: .75rem;
    margin-right: 0;
    white-space: nowrap;
}

  /* ---------- HERO ---------- */

  .MyJourney-container {
    min-height: auto;
    background-position: center center;
    
  }

  .MyJourney-Text {
    margin: 0 1.5rem 3rem ;
    line-height: 1.5;
    text-align: center;
    padding: 20px;
  }

  .MyJourney-container h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .MyJourney-Text h3 {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .MyJourney-container p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .MyJourney-Text h1,
.MyJourney-Text h3,
.MyJourney-Text p {
  margin-left: 0;
  margin-right: 0;
}

  /* ---------- GRID ---------- */

  main {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 0px;
    padding: 2rem 1rem;
    justify-items: center;
  }

  article {
    width: 80%;
    max-width: 56ch;
  }

  article img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .article-descr {
    width: 100%;
    margin-bottom: 2.5rem;
  }

}
