/*
 * WebseitenKiCheck CTA-Varianten
 * Bootstrap 5 / HeroBiz-kompatibel
 * Alle Klassen sind mit "wkcta-" gekapselt.
 */

:root {
  --wkcta-primary: var(--color-primary, #0ea2bd);
  --wkcta-primary-rgb: 14, 162, 189;
  --wkcta-blue: #166cff;
  --wkcta-blue-rgb: 22, 108, 255;
  --wkcta-navy: #10233f;
  --wkcta-heading: var(--color-secondary, #485664);
  --wkcta-text: #5f6f81;
  --wkcta-soft: #f5f9ff;
  --wkcta-white: #ffffff;
  --wkcta-radius: 28px;
  --wkcta-shadow: 0 28px 70px rgba(31, 54, 88, 0.14);
}

.wkcta-section {
  padding: 72px 0;
  overflow: hidden;
}

.wkcta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--wkcta-radius);
  padding: clamp(34px, 5vw, 72px);
  font-family: var(--font-default, "Open Sans", sans-serif);
}

.wkcta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--wkcta-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wkcta__eyebrow-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--wkcta-white);
  background: linear-gradient(135deg, var(--wkcta-primary), var(--wkcta-blue));
  box-shadow: 0 8px 22px rgba(var(--wkcta-blue-rgb), 0.26);
}

.wkcta__title {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--wkcta-heading);
  font-family: var(--font-primary, "Source Sans Pro", sans-serif);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.wkcta__title span {
  color: var(--wkcta-blue);
}

.wkcta__text {
  max-width: 760px;
  margin: 0;
  color: var(--wkcta-text);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.wkcta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 30px;
}

.wkcta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 13px 23px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.wkcta__button i {
  transition: transform 220ms ease;
}

.wkcta__button:hover {
  transform: translateY(-3px);
}

.wkcta__button:hover i {
  transform: translate(3px, -2px);
}

.wkcta__button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wkcta-primary), var(--wkcta-blue));
  box-shadow: 0 14px 30px rgba(var(--wkcta-blue-rgb), 0.28);
}

.wkcta__button--primary:hover {
  color: #fff;
  box-shadow: 0 20px 38px rgba(var(--wkcta-blue-rgb), 0.38);
}

.wkcta__button--white {
  color: #12325d;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.wkcta__button--white:hover {
  color: var(--wkcta-blue);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.wkcta__text-link,
.wkcta__micro-link {
  color: var(--wkcta-heading);
  font-weight: 700;
  text-decoration: none;
}

.wkcta__text-link i {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.wkcta__text-link:hover {
  color: var(--wkcta-blue);
}

.wkcta__text-link:hover i {
  transform: translateX(5px);
}


/* Variante 1: Spotlight
----------------------------------------------- */
.wkcta--spotlight {
  border: 1px solid rgba(var(--wkcta-primary-rgb), 0.14);
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--wkcta-primary-rgb), 0.13), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f7fbff 56%, #eef7ff 100%);
  box-shadow:
    0 35px 80px rgba(35, 64, 102, 0.14),
    0 8px 22px rgba(35, 64, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.wkcta--spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -110px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(var(--wkcta-blue-rgb), 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(var(--wkcta-blue-rgb), 0.035),
    0 0 0 95px rgba(var(--wkcta-primary-rgb), 0.025);
}

.wkcta__orb {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  animation: wkctaFloat 7s ease-in-out infinite;
}

.wkcta__orb--one {
  top: 18%;
  right: 6%;
  width: 18px;
  height: 18px;
  background: var(--wkcta-blue);
  box-shadow: 0 0 30px rgba(var(--wkcta-blue-rgb), 0.65);
}

.wkcta__orb--two {
  right: 29%;
  bottom: 10%;
  width: 11px;
  height: 11px;
  background: var(--wkcta-primary);
  animation-delay: -2.6s;
}

.wkcta__signal-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 24px 50px rgba(31, 66, 105, 0.15),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
  transform: rotate(1.2deg);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.wkcta__signal-card:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 32px 65px rgba(31, 66, 105, 0.21);
}

.wkcta__signal-card strong {
  margin: 18px 0 6px;
  color: var(--wkcta-heading);
  font-size: 1.18rem;
}

.wkcta__signal-card > span:not(.wkcta__signal-icon) {
  color: var(--wkcta-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.wkcta__signal-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--wkcta-primary), var(--wkcta-blue));
  box-shadow: 0 15px 28px rgba(var(--wkcta-blue-rgb), 0.28);
  font-size: 1.45rem;
}

.wkcta__signal-bars {
  display: flex;
  width: 100%;
  height: 72px;
  align-items: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.wkcta__signal-bars i {
  width: 20%;
  height: var(--bar-height);
  min-height: 12px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--wkcta-blue), rgba(var(--wkcta-primary-rgb), 0.36));
  box-shadow: 0 5px 12px rgba(var(--wkcta-blue-rgb), 0.13);
  transform-origin: bottom;
  animation: wkctaBars 1.2s cubic-bezier(.2,.8,.2,1) both;
}


/* Variante 2: Gradient + Glass
----------------------------------------------- */
.wkcta--gradient {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 25, 52, 0.94), rgba(18, 64, 128, 0.94)),
    linear-gradient(135deg, var(--wkcta-primary), var(--wkcta-blue));
  box-shadow:
    0 38px 90px rgba(10, 31, 68, 0.32),
    0 12px 28px rgba(var(--wkcta-blue-rgb), 0.18);
}

.wkcta--gradient::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--wkcta-radius) - 1px);
  pointer-events: none;
}

.wkcta__mesh {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.7;
}

.wkcta__mesh--one {
  top: -160px;
  right: 8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(52, 211, 255, 0.48), transparent 68%);
  animation: wkctaPulse 5.5s ease-in-out infinite;
}

.wkcta__mesh--two {
  bottom: -210px;
  left: -70px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 68%);
}

.wkcta__eyebrow--light,
.wkcta__title--light,
.wkcta__text-link--light {
  color: #fff;
}

.wkcta__text--light {
  color: rgba(255, 255, 255, 0.78);
}

.wkcta__live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #57f3c3;
  box-shadow: 0 0 0 7px rgba(87, 243, 195, 0.14);
}

.wkcta__live-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(87, 243, 195, 0.6);
  border-radius: 50%;
  animation: wkctaPing 2s ease-out infinite;
}

.wkcta__text-link--light:hover {
  color: #a9efff;
}

.wkcta__glass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  perspective: 900px;
}

.wkcta__glass-tile {
  min-height: 145px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.wkcta__glass-tile:nth-child(2),
.wkcta__glass-tile:nth-child(4) {
  transform: translateY(18px);
}

.wkcta__glass-tile:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px) rotateX(2deg);
}

.wkcta__glass-tile i {
  display: block;
  margin-bottom: 17px;
  color: #8be8ff;
  font-size: 1.55rem;
}

.wkcta__glass-tile span {
  display: block;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}


/* Variante 3: KI-Scanner
----------------------------------------------- */
.wkcta--scanner {
  border: 1px solid #e3ecf7;
  background:
    linear-gradient(rgba(22, 108, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 108, 255, 0.025) 1px, transparent 1px),
    #fff;
  background-size: 26px 26px;
  box-shadow: var(--wkcta-shadow);
}

.wkcta--scanner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5%;
  left: -11%;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--wkcta-primary-rgb), 0.14), transparent 70%);
}

.wkcta__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.wkcta__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wkcta-heading);
  font-size: 0.92rem;
  font-weight: 650;
}

.wkcta__checklist i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--wkcta-blue);
  background: rgba(var(--wkcta-blue-rgb), 0.1);
}

.wkcta__browser {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e6f4;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 35px 65px rgba(35, 60, 95, 0.18),
    0 8px 18px rgba(35, 60, 95, 0.08);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.wkcta__browser:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px);
  box-shadow: 0 43px 80px rgba(35, 60, 95, 0.24);
}

.wkcta__browser-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid #e7edf5;
  background: #f5f8fc;
}

.wkcta__browser-top > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8c5d5;
}

.wkcta__browser-top > span:first-child { background: #ff7676; }
.wkcta__browser-top > span:nth-child(2) { background: #ffc85c; }
.wkcta__browser-top > span:nth-child(3) { background: #5bd69a; }

.wkcta__browser-url {
  overflow: hidden;
  flex: 1;
  margin-left: 8px;
  padding: 7px 12px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  color: #8190a3;
  background: #fff;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wkcta__browser-body {
  position: relative;
  overflow: hidden;
  padding: 27px;
}

.wkcta__scanline {
  position: absolute;
  z-index: 3;
  top: -15%;
  right: 0;
  left: 0;
  height: 60px;
  border-bottom: 2px solid rgba(var(--wkcta-primary-rgb), 0.8);
  background: linear-gradient(180deg, transparent, rgba(var(--wkcta-primary-rgb), 0.08));
  box-shadow: 0 5px 20px rgba(var(--wkcta-primary-rgb), 0.17);
  pointer-events: none;
  animation: wkctaScan 4.8s ease-in-out infinite;
}

.wkcta__score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
  padding-bottom: 23px;
  border-bottom: 1px solid #e9eff6;
}

.wkcta__score-ring {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--wkcta-blue) 0 76%, #e8eff7 76% 100%);
  text-align: center;
}

.wkcta__score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.wkcta__score-ring strong,
.wkcta__score-ring small {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.wkcta__score-ring strong {
  color: var(--wkcta-heading);
  font-size: 1.48rem;
}

.wkcta__score-ring small {
  margin-top: 2px;
  color: #8997a8;
  font-size: 0.68rem;
}

.wkcta__score > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.wkcta__score > div:last-child span,
.wkcta__score > div:last-child small {
  color: #8291a3;
  font-size: 0.8rem;
}

.wkcta__score > div:last-child strong {
  margin: 3px 0;
  color: var(--wkcta-heading);
  font-size: 1.12rem;
}

.wkcta__result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  color: #5b6b7d;
  background: #f7faff;
  font-size: 0.84rem;
}

.wkcta__result-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wkcta__result-row i {
  color: var(--wkcta-primary);
}

.wkcta__result-row b {
  color: var(--wkcta-blue);
  font-size: 0.75rem;
  text-transform: uppercase;
}


/* Variante 4: kompakt und schwebend
----------------------------------------------- */
.wkcta--compact {
  display: grid;
  overflow: visible;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  padding: 28px 30px;
  border: 1px solid rgba(var(--wkcta-blue-rgb), 0.12);
  background:
    linear-gradient(90deg, rgba(var(--wkcta-primary-rgb), 0.08), transparent 33%),
    #fff;
  box-shadow:
    0 24px 50px rgba(31, 54, 88, 0.13),
    12px 12px 0 rgba(var(--wkcta-blue-rgb), 0.07);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.wkcta--compact:hover {
  transform: translateY(-5px);
  box-shadow:
    0 34px 65px rgba(31, 54, 88, 0.18),
    15px 15px 0 rgba(var(--wkcta-blue-rgb), 0.1);
}

.wkcta__compact-icon {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(135deg, var(--wkcta-primary), var(--wkcta-blue));
  box-shadow: 0 15px 30px rgba(var(--wkcta-blue-rgb), 0.27);
  font-size: 2rem;
}

.wkcta__compact-icon span {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: wkctaRadar 2.4s ease-out infinite;
}

.wkcta__compact-content h2 {
  margin: 0 0 5px;
  color: var(--wkcta-heading);
  font-family: var(--font-primary, "Source Sans Pro", sans-serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 600;
}

.wkcta__compact-content > p:last-child {
  max-width: 750px;
  margin: 0;
  color: var(--wkcta-text);
  line-height: 1.6;
}

.wkcta__compact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.wkcta__micro-link {
  color: #7b8999;
  font-size: 0.78rem;
}

.wkcta__micro-link:hover {
  color: var(--wkcta-blue);
}


/* Animationen
----------------------------------------------- */
@keyframes wkctaFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -13px, 0); }
}

@keyframes wkctaBars {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes wkctaPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.58; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

@keyframes wkctaPing {
  0% { transform: scale(0.65); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes wkctaScan {
  0%, 12% { transform: translateY(-20%); opacity: 0; }
  22% { opacity: 1; }
  76% { opacity: 1; }
  90%, 100% { transform: translateY(360px); opacity: 0; }
}

@keyframes wkctaRadar {
  0% { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}


/* Responsive
----------------------------------------------- */
@media (max-width: 991.98px) {
  .wkcta-section {
    padding: 48px 0;
  }

  .wkcta__signal-card,
  .wkcta__browser {
    transform: none;
  }

  .wkcta--compact {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wkcta__compact-action {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-left: 107px;
  }
}

@media (max-width: 575.98px) {
  .wkcta {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .wkcta__title {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .wkcta__actions,
  .wkcta__actions .wkcta__button {
    width: 100%;
  }

  .wkcta__text-link {
    padding-left: 3px;
  }

  .wkcta__glass-grid {
    grid-template-columns: 1fr;
  }

  .wkcta__glass-tile,
  .wkcta__glass-tile:nth-child(2),
  .wkcta__glass-tile:nth-child(4) {
    min-height: auto;
    transform: none;
  }

  .wkcta__score {
    align-items: flex-start;
  }

  .wkcta__result-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .wkcta--compact {
    grid-template-columns: 1fr;
    padding: 27px 22px;
    text-align: left;
  }

  .wkcta__compact-icon {
    width: 68px;
    height: 68px;
    border-radius: 19px;
  }

  .wkcta__compact-action {
    grid-column: auto;
    align-items: stretch;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wkcta *,
  .wkcta *::before,
  .wkcta *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
