/*=====================
        - Assets -

Font: Karla
Farbe: #323A45 / #848484

=======================*/

@font-face {
  font-family: karla;
  src: url("../fonts/Karla-Regular.ttf");
}

@font-face {
  font-family: karlabold;
  src: url("../fonts/Karla-Bold.ttf");
}

html {
  font-size: 10px;
  margin: 0 8%;
  scroll-behavior: smooth;
  font-family: karla;
}

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

img {
  width: 100%;
}

img:hover {
  opacity: 50%;
}

/*=====================
    - Header / Hero -
=======================*/

header {
  display: flex;
  align-items: center;
  justify-content: space-around;
  justify-content: space-between;
  width: 100%;
  height: 16vh;
}

header h1 a {
  font-size: 2rem;
  color: #323a45;
  font-weight: 900;
  font-family: karlabold;
  text-decoration: none;
}

header nav ul {
  display: inline-flex;
  justify-content: flex-end;
  list-style-type: none;
  gap: 4rem;
}

header nav ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #323a45;
  font-weight: 900;
}

header a:hover {
  color: rgb(247, 6, 6);
  opacity: 70%;
}

/*=============================
  - Main / Back-To-Top-Button -
==============================*/

#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgb(247, 6, 6);
  color: white;
  cursor: pointer;
  padding: 15px;
  font-style: karla;
  font-size: 18px;
}

/*=============================
    - Main / Hero Section -
==============================*/

main section figure article {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

figcaption.h2 {
  font-family: karlabold;
  opacity: 60%;
}

figcaption.p {
  color: #848484;
  line-height: 2rem;
  font-family: karla;
  opacity: 80%;
}

figcaption.price {
  opacity: 60%;
  font-family: karlabold;
  font-size: 1.2rem;
}

/*=============================
    - Main / .firstSixItems -
==============================*/

.firstSixItems {
  display: grid;
  align-content: center;
  justify-content: center;
  justify-content: space-between;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 3fr);
  margin: 4rem 0;
}

/*===============================
    - Main / .secondSixItems -
================================*/

.secondSixItems {
  display: grid;
  align-content: center;
  justify-content: center;
  justify-content: space-between;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 3fr);
  margin: 4rem 0;
}

/*=============================
    - Main / .thirdSixItems -
==============================*/

.thirdSixItems {
  display: grid;
  align-content: center;
  justify-content: center;
  justify-content: space-between;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 3fr);
  margin: 4rem 0;
}

/*====================================
    - Main / .fourthSixItems -
======================================*/

.fourthSixItems {
  display: grid;
  align-content: center;
  justify-content: center;
  justify-content: space-between;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 3fr);
  margin: 4rem 0;
}

/*============================
    - Main / .lastThreeItems -
==============================*/

.lastThreeItems {
  display: grid;
  align-content: center;
  justify-content: center;
  justify-content: space-between;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  margin: 3rem 0;
}

/*============================
        - Footer -
==============================*/

footer {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f1f1f1;
  width: 100%;
}

footer article {
  padding: 1rem;
  width: 80%;
}

footer h3 {
  margin-bottom: 1rem;
  color: #333;
}

footer p {
  margin: 0.5rem 0;
  color: #666;
}

footer a {
  display: block;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: #007bff;
  text-decoration: none;
  color: rgb(247, 6, 6);
  opacity: 70%;
}

footer .trademark {
  font-size: 0.875rem;
  color: #999;
}

/*============================
        - Media Queries -
==============================*/

@media only screen and (max-width: 600px) {
  html {
    font-size: 6px;
    margin: auto 12%;
  }

  header {
    height: 10vh;
    padding: 10px 0;
  }

  header h1 a {
    font-size: 1.7rem;
    display: flex;
    flex-direction: column;
  }

  header nav ul {
    gap: 2rem;
    display: flex;
    flex-direction: row;
    text-align: right;
  }

  #backToTop {
    bottom: 10px;
    right: 20px;
    padding: 10px;
    font-size: 14px;
  }

  .firstSixItems,
  .secondSixItems,
  .thirdSixItems,
  .fourthSixItems,
  .lastThreeItems {
    display: block;
    margin: 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .firstSixItems > *,
  .secondSixItems > *,
  .thirdSixItems > *,
  .fourthSixItems > *,
  .lastThreeItems > * {
    width: 80%;
    margin-bottom: 20px;
  }

  footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
    width: 100%;
  }
}

@media only screen and (min-width: 600px) {
  header {
    height: 16vh;
  }
}

@media only screen and (min-width: 768px) {
  .firstSixItems,
  .secondSixItems,
  .thirdSixItems,
  .fourthSixItems,
  .lastThreeItems {
    display: grid;
  }
}

@media only screen and (min-width: 1024px) {
  html {
    margin: auto 12%;
  }

  header {
    height: 16vh;
  }

  header h1 a {
    font-size: 2rem;
  }

  header nav ul {
    gap: 4rem;
  }

  #backToTop {
    display: block;
  }

  .firstSixItems,
  .secondSixItems,
  .thirdSixItems,
  .fourthSixItems,
  .lastThreeItems {
    margin: 4rem 0;
  }
}
