html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Black.woff") format("woff");
}

@font-face {
  font-family: "Nunito Sans Reg";
  src: url("fonts/NunitoSans-Regular.woff") format("woff");
}

@font-face {
  font-family: "Nunito Sans Semi";
  src: url("fonts/NunitoSans-SemiBold.woff") format("woff");
}

body {
  background-color: #1f1f1f;
  color: #f2e8de;
  letter-spacing: 0.1rem;
  font-family: Nunito Sans Reg;
}

h1,
h2 {
  font-family: Lato;
}

h3 {
  font-family: Nunito Sans Semi;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: white;
}

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.main {
  overflow: hidden;
}

/* home */

.home {
  position: relative;
  overflow: hidden;
}

.home_container {
  position: relative;
  padding-top: 4rem;
  row-gap: 3rem;
}

.home_section {
  text-align: center;
}

.home_title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.home_subtitle {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.home_details {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 6rem;
  margin-top: 3rem;
}

.home_details-block {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 400;
  color: hsl(219, 4%, 55%);
}

.home_details-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.home_details-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: hsl(219, 4%, 55%);
}

/* container yellow  */

.block_section {
  row-gap: 6rem;
  text-align: center;

  transition: 0.2s ease-in-out;
  padding: 2rem;

  /*
    height: 500px;
    margin: 0 auto;



    margin-bottom: 3rem; */
}

.block-section-title {
  padding-bottom: 1.5rem;
  font-size: 1.5rem;
}

.block-section-description {
  font-size: 0.85rem;
  padding: 0 1.5rem;
  line-height: 1.8rem;
  text-align: left;
}

.container_color {
  color: #f2e8de;
  border-radius: 4px;
  background: #1f1f1f;
  box-shadow: -17px -17px 33px #d9f24f, 17px 17px 33px #d9f24f;
}

/* extra pages */

.offerpages {
  overflow: hidden;
  position: relative;
}

.offerpages_block {
  text-align: center;
  margin: 0 2rem;
}

.offerpages_description {
  text-align: left;
  margin: 2rem 10rem;
  line-height: 1.7;
}

.footer {
  position: relative;
  overflow: hidden;
}

.footer_container {
  row-gap: 2.5rem;
  position: relative;
}

.footer_logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: hsl(219, 8%, 95%);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: 0.3s;
}

.footer_logo i {
  font-size: 1.5rem;
  font-weight: 500;
}

.footer_logo:hover {
  color: hsl(219, 69%, 56%);
}

.footer_title {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer_links {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer_link,
.footer_social-link {
  color: var(--text-color);
  transition: 0.3s;
}

.footer_link:hover,
.footer_social-link:hover {
  color: hsl(219, 8%, 75%);
}

.footer_social {
  display: flex;
  column-gap: 1.5rem;
}

.footer_social-link {
  font-size: 1.25rem;
}

.footer_copy {
  display: block;
  margin-top: 4.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(219, 4%, 55%);
}

.legal__pages {
  text-align: left;
}

/* scroll bar */

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(219, 4%, 16%);
  border-radius: 1rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(219, 4%, 24%);
  border-radius: 1rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(219, 4%, 32%);
}

/* breakpoints  */

@media screen and (max-width: 320px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .home_details {
    column-gap: 2rem;
  }

  .nachricht_container {
    grid-template-rows: max-content 180px;
  }

  .nachricht_img {
    width: 340px;
  }

  .logos_container {
    gap: 2.5rem;
  }
}

@media screen and (min-width: 576px) {
  .nachricht_container {
    grid-template-rows: initial;
    grid-template-columns: 0.5fr;
    justify-content: center;
  }

  .nachricht_img {
    position: relative;
    bottom: initial;
    right: initial;
  }

  .nachricht_data {
    margin-bottom: 4rem;
  }
}

@media screen and (min-width: 767px) {
  .section {
    padding: 7rem 0 2rem;
  }

  .nav {
    height: calc(var(3.5rem) + 1.5rem);
  }

  .nav_toggle,
  .nav_close {
    display: none;
  }

  .nav_list {
    flex-direction: row;
    column-gap: 3rem;
    padding-top: 0;
  }

  .nav_link {
    font-size: 1.2rem;
    text-transform: initial;
  }

  .block_section {
    grid-template-columns: repeat(1, 2fr);
  }

  .logos_container {
    gap: 4rem 8 rem;
  }

  .footer_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* enter font sizes without root */
@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

@media screen and (min-width: 1040px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .shape_big {
    width: 500px;
    height: 500px;
  }

  .shape_small {
    width: 400px;
    height: 400px;
  }

  .home_container {
    padding-top: 2rem;
  }

  .home_details {
    column-gap: 7rem;
  }

  .home_details-icon {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .block_section {
    column-gap: 6rem;
    align-items: center;
    padding: 4rem;
  }

  .block-section-title {
    font-size: 2.5rem;
  }

  .leistungen_container {
    width: 950px;
    padding-top: 3rem;
  }

  .leistungen_card {
    width: 400px;
    border-radius: 1.25rem;
    margin-bottom: 5rem;
  }

  .leistungen_img {
    width: 180px;
    margin: 2rem 1rem;
    justify-content: center;
    align-items: center;
  }

  .leistungen_data-group {
    margin: 0 4rem;
    font-size: 0.85rem;
  }

  .nachricht_container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5rem;
    align-items: center;
    padding-bottom: 2rem;
  }

  .nachricht_data,
  .nachricht_title {
    text-align: initial;
  }

  .nachricht_data {
    margin-bottom: 0;
  }

  .nachricht_description {
    padding-right: 6rem;
  }

  .nachricht_img {
    width: 450px;
  }

  .logos_container {
    grid-template-columns: repeat(6, max-content);
  }

  .logos_img {
    width: 50px;
  }

  .footer_container {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }

  .footer_logo {
    column-gap: 0.5rem;
  }

  .footer_logo i {
    font-size: 2rem;
  }

  .footer_title {
    margin-bottom: 1.5rem;
  }

  .footer_links {
    row-gap: 0.75rem;
  }

  .footer_social-link {
    font-size: 1.5rem;
  }

  .footer_copy {
    margin-top: 8rem;
    padding-top: 1rem;
  }
}

@media screen and (max-width: 767px) {
  .nav_menu {
    position: fixed;
    background-color: hsla(0, 0, 100%, 0.1);
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(96px);
    transition: 0.3s;
    -webkit-backdrop-filter: blur(96px);
  }

  .show-menu {
    right: 0;
  }

  .button__details {
    margin-bottom: 2rem;
  }

  .offerpages_description {
    margin: 2rem 3rem;
  }
}

.light {
  background-color: white;
  color: black;
}
