:root {
  --section-spacer-small: 40px;
  --section-spacer-large: 100px;
  --accent-color: #565fa0;
}
* {
  padding: 0;
  margin: 0;
  position: relative;
}
body {
  font-family: 'Fira Code';
  font-size: 16px;
  line-height: 1.5;
}
body.overflow-h {
  overflow: hidden;
}
ol,
ul,
li {
  list-style: none;
}
h1 {
  margin-bottom: var(--section-spacer-small);
}
a {
  text-decoration: none;
  color: currentColor;
}

.textlink {
  background: linear-gradient(0deg, var(--accent-color), var(--accent-color))
    no-repeat right bottom / 0 var(--bg-h);
  transition: background-size 350ms;
  --bg-h: 100%;
  color: var(--accent-color);
  padding: 2px 5px;
}

.textlink:where(:hover, :focus-visible) {
  background-size: 100% var(--bg-h);
  background-position-x: left;
  color: white;
}

.content__cta {
  border-top: 2px solid rgba(23, 27, 38, 0.75);
  padding-top: var(--section-spacer-large);
  margin-top: var(--section-spacer-large);
}

.button {
  background: var(--accent-color);
  color: white;
  padding: 20px;
  border-radius: 6px;
}

.button.full {
  display: block;
  margin: 0 20px;
  transition: opacity 0.5s ease-in;
  text-align: center;
}

.button.full span:nth-child(2) {
  display: none;
}

.button.full:hover {
  opacity: 0.8;
}

.button.full::after {
  content: '';
  background-image: url(/images/pfeil_weiss.svg);
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  display: none;
  height: 30px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.button.full:hover::after {
  transform: translateX(20px) translateY(-50%);
}
p:not(:last-of-type) {
  margin-bottom: var(--section-spacer-small);
}
.container {
  margin: auto;
  width: 100%;
  max-width: 1200px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.header__hero {
  display: flex;
}

.header__hero img {
  aspect-ratio: 3 / 2;
}

.header__hero.centered {
  justify-content: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-spacer-small);
}
.header__topbar {
  padding: 20px 10px 0;
  display: flex;
  align-items: center;
}
.header__main-navigation {
  margin-left: auto;
  display: none;
  gap: var(--section-spacer-small);
}

.header__main-navigation.open {
  gap: var(--section-spacer-small);
  position: absolute;
  inset: 0;
  background: #171b26;
  height: 100vh;
  z-index: 300;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.header__main-navigation a {
  box-shadow: inset 0 0 0 0 var(--accent-color);
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 2px 5px;
}

.header__main-navigation a:hover {
  box-shadow: inset 150px 0 0 0 var(--accent-color);
  color: white;
}

.header__burger {
  height: 21px;
  width: 30px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
}

.header__burger span {
  content: '';
  background-color: black;
  position: absolute;
  height: 3px;
  width: 100%;
  border-radius: 10px;
  transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  transition-duration: 400ms;
}

.header__burger span:nth-child(1) {
  top: 0;
}

.header__burger span:nth-child(2) {
  top: 9px;
}

.header__burger span:nth-child(3) {
  bottom: 0;
}

.header__burger.open span {
  background-color: white;
}

.header__burger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

main {
  margin-bottom: var(--section-spacer-large);
}

.content__intro {
  padding: 20px 10px 0;
  margin-bottom: var(--section-spacer-small);
}

.content__intro p {
  text-align: justify;
}

.content__brands {
  margin-bottom: var(--section-spacer-large);
}

.content__brands ul {
  display: grid;
  gap: var(--section-spacer-small);
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  padding: 20px var(--section-spacer-large) 0;
}

.content__bestsellers {
  padding: 20px 10px 0;
  margin-bottom: var(--section-spacer-large);
  display: grid;
  gap: var(--section-spacer-small);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.content__bestsellers-item {
  aspect-ratio: 1 / 1;
  background-color: #171b26;
  display: grid;
  place-content: center;
  color: white;
}

.content__bestsellers-item img {
  background-size: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.content__bestsellers-item h2 {
  position: absolute;
  inset: 0;
  background-color: rgba(23, 27, 38, 0.75);
  z-index: 200;
  padding: 20px;
}

.content__bestsellers-item-soon h2 {
  background-color: rgba(23, 27, 38, 0.99);
}

.content__bestsellers-item-link {
  display: grid;
  place-content: center;
  height: 100%;
}

footer {
  background-image: url(/images/pexels-erik-mclean-7635126.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: white;
}

footer::before {
  content: '';
  display: block;
  background-color: #171b26;
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--section-spacer-small);
  padding: var(--section-spacer-small);
  margin-bottom: var(--section-spacer-small);
}

.footer__brand p {
  font-size: 1.5rem;
}

.footer__newsletter {
  margin: 0 0 var(--section-spacer-small);
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0 25%;
}

.footer__legal {
  background-color: #171b26;
  margin: auto;
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer__legal > .container {
  width: 100%;
  max-width: 1200px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.footer__legal-links {
  display: flex;
  gap: var(--section-spacer-small);
  justify-content: center;
  margin-top: var(--section-spacer-small);
}

.footer__legal-links a {
  box-shadow: inset 0 0 0 0 var(white);
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 2px 5px;
}

.footer__legal-links a:hover {
  box-shadow: inset 150px 0 0 0 white;
  color: var(--accent-color);
}

.glossar__list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--section-spacer-small) / 2);
}

@media screen and (min-width: 800px) {
  .header__topbar {
    padding: 20px 0;
  }
  .header__main-navigation {
    display: flex;
  }
  .header__hero img {
    aspect-ratio: 16 / 6;
  }
  .header__burger {
    display: none;
  }
  .content__brands ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .content__bestsellers {
    grid-template-columns: repeat(3, 1fr);
  }
  .button.full {
    text-align: left;
  }
  .button.full span:nth-child(2) {
    display: inline-block;
  }
}

@media screen and (min-width: 1024px) {
  header {
    margin-bottom: var(--section-spacer-large);
  }
  .content__intro {
    padding: 20px var(--section-spacer-large) 0;
  }

  .content__bestsellers {
    padding: 0;
  }

  .footer__brand {
    flex-direction: row;
  }

  .footer__brand p {
    font-size: 2rem;
  }

  .footer__legal > .container {
    flex-direction: row;
  }

  .footer__legal-links {
    margin-left: auto;
    margin-top: 0;
  }

  .button.full {
    padding-right: 100px;
    margin: 0 var(--section-spacer-large);
  }

  .button.full::after {
    display: block;
  }
}

@media screen and (min-width: 1200px) {
  .button.full {
    width: 50vw;
    margin: 0 auto;
  }
}
