main {
  padding: 0;
  display: flex;
  flex-direction: column;

  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  overflow: hidden;
  margin: 20px;
  position: relative;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 20px rgba(70, 60, 179, 0.1);

  p {
    color: var(--primary-color);
  }

  h1 {
    margin-bottom: var(--big-gap);
  }

  img {
    position: relative;
    top: 20%;
    border: 3px solid #000;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }
}

article {
  display: flex;
  flex-direction: column;
  padding: 2em 10em;

  p {
    font-size: 1.5em;
    margin-bottom: var(--tiny-gap);
  }

  span {
    color: var(--primary-color);
  }

  h2 {
    font-size: 2em;
    margin-bottom: var(--tiny-gap);
  }
}

.article-headings {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--tiny-gap);
  width: 100%;
  margin-bottom: var(--big-gap);

  h1 {
    font-size: 4em;
  }

  p {
    font-size: 1.5em;
    margin-bottom: var(--tiny-gap);
    font-weight: bold;
  }
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: var(--tiny-gap);
  width: 100%;
  margin-bottom: var(--big-gap);

  p {
    font-size: 1.5em;
    margin-bottom: var(--tiny-gap);
  }

  span {
    color: var(--primary-color);
    font-weight: bold;
  }
}

.image-container {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: var(--big-gap);
  gap: var(--regular-gap, 20px);

  img {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 48%;
    height: auto;
    object-fit: cover;
  }

  img:only-child {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.divs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--big-gap) 6em;

  h2 {
    font-size: 2em;
    margin-bottom: var(--tiny-gap);
  }

  p {
    font-size: 1.5em;
    margin-bottom: var(--big-gap);
  }
}

.icon {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  fill: var(--primary-color);
  transition: transform 0.5s ease;
}

.footer {
  text-align: center;
  padding: var(--tiny-gap);
  background-color: #f8f8f8;
  margin-top: var(--tiny-gap);
  border-top: 1px solid #e7e7e7;

  p {
    margin: 0.5em 0;
    color: #555;
  }

  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-left: 1.0rem;
  }

  a:hover {
    text-decoration: underline;
  }
}

/* Scroll-Animationen */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation-Klassen beim scrollen */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-left.animated {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-right.animated {
  animation: slideInRight 0.8s ease forwards;
}

.fixed-background {
  width: 100dvw;
  height: 100dvh;
  position: fixed;
  top: 0;
  z-index: -1;

  .container {
    position: sticky;
    top: 0;
    width: 100dvw;
    height: 100dvh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--tiny-gap);
    max-width: 50%;
    text-align: center;
    margin: 0 auto;
  }

  h1 {
    font-size: 5em;
    hyphens: manual;
  }
  h2 {
    color: var(--primary-color);
  }
}

.header-image-container {
  margin-top: 100dvh;
  width: calc(100% - 2 * var(--big-gap));
  margin-left: var(--big-gap);
  margin-right: var(--big-gap);
}

.header-image-container img {
  position: relative;
  top: -150px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  width: calc(100dvw - 2 * var(--big-gap));

  transform: scale(0.8);

  box-shadow: 0 0px 20px 10px rgba(30, 26, 74, 0.1);
}

#mobile-image {
  display: none;
}

@media only screen and (max-width: 767px) {
  #desktop-image {
    display: none;
  }
  #mobile-image {
    display: block;
  }

  .fixed-background .container {
    max-width: 100%;
    padding: 0 var(--small-gap);
  }
  .fixed-background h1 {
    font-size: 3em;
  }
}

.card-container {
  display: flex;
  gap: var(--big-gap);
  align-items: stretch;
  justify-content: center;

  .card {
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: var(--big-padding);

    display: flex;
    flex-direction: column;
    gap: var(--small-gap);

    width: 33%;
    hyphens: auto;

    min-width: 250px;
  }
}

h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}
