.text-section {
  background: var(--color-light, #f5f5f5);
  color: var(--color-black, #0a0909);
  overflow: hidden;
  padding: clamp(4rem, 6vw, 7rem) 0;
}

.text-section--theme-light {
  background: var(--color-light, #f5f5f5);
  color: var(--color-black, #0a0909);
}

.text-section--theme-base {
  background: var(--color-base, #e3ded6);
  color: var(--color-black, #0a0909);
}

.text-section--theme-dark {
  background: var(--color-black, #0a0909);
  color: var(--color-white, #ffffff);
}

.text-section-container {
  padding-right: clamp(1rem, 1.8vw, 2rem);
  padding-left: clamp(1rem, 1.8vw, 2rem);
}

.text-section-inner {
  width: 100%;
}

.text-section--width-small .text-section-inner {
  max-width: 52rem;
}

.text-section--width-default .text-section-inner {
  max-width: 74rem;
}

.text-section--width-wide .text-section-inner {
  max-width: 96rem;
}

.text-section--align-left .text-section-inner {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.text-section--align-center .text-section-inner {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.text-section--align-right .text-section-inner {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

.text-section-subheadline {
  margin: 0 0 0.75rem;
  color: currentColor;
  font-family: var(--font-headline);
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.text-section-headline {
  margin: 0;
  color: currentColor;
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 5vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.text-section-text {
  margin-top: clamp(1.5rem, 2.5vw, 3rem);
  color: currentColor;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.65rem);
  line-height: 1.32;
  opacity: 0.92;
}

.text-section--width-small .text-section-text {
  font-size: clamp(1rem, 1.2vw, 1.35rem);
}

.text-section-text p {
  margin-bottom: 1em;
  font-size: inherit;
  line-height: inherit;
}

.text-section-text p:last-child {
  margin-bottom: 0;
}

.text-section-text a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
  margin-top: clamp(2rem, 3vw, 3.5rem);
}

.text-section--align-left .text-section-actions {
  justify-content: flex-start;
}

.text-section--align-center .text-section-actions {
  justify-content: center;
}

.text-section--align-right .text-section-actions {
  justify-content: flex-end;
}

.text-section--theme-dark .button-main {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white, #ffffff);
}

.text-section--theme-dark .button-main:hover,
.text-section--theme-dark .button-main:focus-visible {
  background: var(--color-white, #ffffff);
  color: var(--color-black, #0a0909);
}

@media (max-width: 991.98px) {
  .text-section {
    padding: clamp(3.5rem, 9vw, 5rem) 0;
  }

  .text-section-headline {
    font-size: clamp(2.6rem, 10vw, 5rem);
  }

  .text-section-text {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

@media (max-width: 575.98px) {
  .text-section-container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .text-section-headline {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .text-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-section-actions .button-main {
    width: 100%;
  }

  .text-section--align-right .text-section-inner,
  .text-section--align-right .text-section-actions {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-section * {
    transition: none !important;
  }
}
