/* Better Affiliate CTA Buttons - Frontend */
.bcta-cta {
  --bcta-main: #16a34a;
  --bcta-main-dark: #15803d;
  --bcta-soft: rgba(22, 163, 74, 0.10);
  position: relative;
  margin: 26px 0;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: inherit;
  color: #111827;
}

.bcta-cta * {
  box-sizing: border-box;
}

.bcta-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bcta-cta__content {
  flex: 1 1 auto;
  min-width: 0;
}

.bcta-cta__provider {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bcta-main-dark);
}

.bcta-cta__title {
  display: block;
  margin: 0 0 5px;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.22;
  font-weight: 900;
  color: #111827;
}

.bcta-cta__subtitle {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
}

.bcta-cta__badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bcta-main);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.bcta-cta__icon {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bcta-soft);
  font-size: 24px;
}

.bcta-cta__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bcta-cta__button,
.bcta-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border: 0;
  border-radius: 11px;
  background: var(--bcta-main);
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.bcta-cta__button:hover,
.bcta-cta__button:focus,
.bcta-inline-button:hover,
.bcta-inline-button:focus {
  background: var(--bcta-main-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.bcta-cta__button--secondary {
  background: #111827;
}

.bcta-cta__button--secondary:hover,
.bcta-cta__button--secondary:focus {
  background: #374151;
}

.bcta-cta__notice {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.bcta-color-green { --bcta-main: #16a34a; --bcta-main-dark: #15803d; --bcta-soft: rgba(22, 163, 74, 0.11); }
.bcta-color-blue { --bcta-main: #2563eb; --bcta-main-dark: #1d4ed8; --bcta-soft: rgba(37, 99, 235, 0.11); }
.bcta-color-orange { --bcta-main: #f97316; --bcta-main-dark: #ea580c; --bcta-soft: rgba(249, 115, 22, 0.13); }
.bcta-color-red { --bcta-main: #dc2626; --bcta-main-dark: #b91c1c; --bcta-soft: rgba(220, 38, 38, 0.11); }
.bcta-color-purple { --bcta-main: #7c3aed; --bcta-main-dark: #6d28d9; --bcta-soft: rgba(124, 58, 237, 0.11); }
.bcta-color-black { --bcta-main: #111827; --bcta-main-dark: #000000; --bcta-soft: rgba(17, 24, 39, 0.10); }

.bcta-style-bonus {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.bcta-style-bonus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bcta-main);
}

.bcta-style-dark {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.bcta-style-dark .bcta-cta__title,
.bcta-style-dark .bcta-cta__subtitle,
.bcta-style-dark .bcta-cta__notice {
  color: #ffffff;
}

.bcta-style-dark .bcta-cta__subtitle,
.bcta-style-dark .bcta-cta__notice {
  opacity: .78;
}

.bcta-style-dark .bcta-cta__provider {
  color: #d1fae5;
}

.bcta-style-outline {
  border: 2px solid var(--bcta-main);
  box-shadow: none;
  background: #ffffff;
}

.bcta-style-double .bcta-cta__actions {
  min-width: 260px;
}

.bcta-style-compact {
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.bcta-style-compact .bcta-cta__button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.bcta-style-compact .bcta-cta__title {
  font-size: 17px;
}

.bcta-inline-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 14px;
  box-shadow: none;
}

@media (max-width: 768px) {
  .bcta-cta {
    padding: 18px;
    border-radius: 14px;
  }

  .bcta-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .bcta-cta__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .bcta-cta__actions,
  .bcta-style-double .bcta-cta__actions {
    width: 100%;
    min-width: 0;
  }

  .bcta-cta__button {
    width: 100%;
  }
}

/* Neue Varianten ab Version 1.1.0 */
.bcta-style-compact-center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding: 26px 28px;
  border: 2px solid var(--bcta-main);
  border-radius: 16px;
  box-shadow: none;
  text-align: center;
}

.bcta-style-compact-center .bcta-cta__compact-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.bcta-style-compact-center .bcta-cta__provider {
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: .05em;
}

.bcta-style-compact-center .bcta-cta__title {
  margin: 0 0 2px;
  font-size: 18px;
  text-align: center;
}

.bcta-style-compact-center .bcta-cta__subtitle {
  margin: -4px 0 2px;
  text-align: center;
}

.bcta-style-compact-center .bcta-cta__button {
  min-width: min(100%, 360px);
  min-height: 54px;
  padding-left: 28px;
  padding-right: 28px;
  font-size: 16px;
  border-radius: 11px;
}

.bcta-style-compact-center .bcta-cta__notice {
  margin-top: 4px;
  text-align: center;
}

.bcta-style-facts {
  padding: 30px 34px;
  border: 2px solid var(--bcta-main);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.bcta-style-facts .bcta-cta__facts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: center;
  gap: 28px;
}

.bcta-style-facts .bcta-cta__facts-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

.bcta-style-facts .bcta-cta__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: var(--bcta-soft);
  overflow: hidden;
}

.bcta-style-facts .bcta-cta__logo-img {
  display: block;
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.bcta-style-facts .bcta-cta__logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 3px solid var(--bcta-main);
  border-radius: 18px;
  color: var(--bcta-main-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
}

.bcta-style-facts .bcta-cta__provider {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: .03em;
  color: var(--bcta-main);
}

.bcta-style-facts .bcta-cta__title {
  margin: 7px 0 0;
  font-size: clamp(17px, 2vw, 21px);
}

.bcta-style-facts .bcta-cta__subtitle {
  margin-top: 6px;
}

.bcta-style-facts .bcta-cta__facts-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcta-style-facts .bcta-cta__facts-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
  color: #1f2937;
}

.bcta-style-facts .bcta-cta__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--bcta-main);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.bcta-style-facts .bcta-cta__facts-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.bcta-style-facts .bcta-cta__facts-actions .bcta-cta__button {
  width: 100%;
  min-height: 58px;
  font-size: clamp(16px, 2vw, 20px);
  border-radius: 11px;
}

.bcta-style-facts .bcta-cta__notice {
  margin-top: 24px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .bcta-style-compact-center {
    max-width: 100%;
    padding: 22px 18px;
  }

  .bcta-style-compact-center .bcta-cta__button {
    width: 100%;
    min-width: 0;
  }

  .bcta-style-facts {
    padding: 22px 18px;
  }

  .bcta-style-facts .bcta-cta__facts-inner {
    display: block;
  }

  .bcta-style-facts .bcta-cta__facts-header {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }

  .bcta-style-facts .bcta-cta__logo {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .bcta-style-facts .bcta-cta__logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 12px;
  }

  .bcta-style-facts .bcta-cta__facts-actions {
    margin-top: 22px;
  }

  .bcta-style-facts .bcta-cta__facts-list li {
    font-size: 16px;
  }
}
