/* ===== Kontakt CTA (11a) – AES Consulting ===== */
.aes-cta {
  --cta-ink: var(--ink);
  --cta-on: #03101a;
  --cta-cyan: var(--cyan-strong);
  --cta-display: "Sora", system-ui, sans-serif;
  --cta-body: "DM Sans", system-ui, sans-serif;
  --cta-ease: cubic-bezier(.2, .7, .25, 1);
  padding: 112px 0;
  font-family: var(--cta-body);
  background: linear-gradient(180deg, #0c1724, #08111d);
}
.aes-cta *, .aes-cta *::before, .aes-cta *::after { box-sizing: border-box; }
.aes-cta p, .aes-cta h2 { margin: 0; }
.aes-cta__shell { width: min(1128px, calc(100% - 40px)); margin: 0 auto; }

/* Banner – kein overflow:hidden, damit der Kopf über den Rand ragt */
.aes-cta__banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  min-height: 480px;
  margin-top: 60px;
  border-radius: 32px;
  background: linear-gradient(135deg, #62bdf0, #01b0ef 70%);
  box-shadow: 0 40px 100px rgba(1, 176, 239, .18);
}
.aes-cta__deco { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; pointer-events: none; }
.aes-cta__glow {
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 900px; margin: -450px 0 0 -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 55%);
}
/* Ring blendet aus, bevor die Arme im Foto ausblenden */
.aes-cta__rings {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 190px, transparent 285px);
          mask-image: linear-gradient(180deg, #000 190px, transparent 285px);
}
.aes-cta__halo, .aes-cta__ring, .aes-cta__ring-outer {
  position: absolute; left: calc(100% - 225px); top: 215px; border-radius: 50%;
}
.aes-cta__halo {
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), rgba(255, 255, 255, .12) 45%, transparent 68%);
}
.aes-cta__ring {
  width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 70%);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, .2), 0 0 0 36px rgba(255, 255, 255, .07), 0 0 0 72px rgba(255, 255, 255, .045), 0 0 0 108px rgba(255, 255, 255, .025);
}
.aes-cta__ring-outer { width: 520px; height: 520px; margin: -260px 0 0 -260px; border: 1px solid rgba(255, 255, 255, .18); }
.aes-cta__logo {
  position: absolute; left: -30px; bottom: -30px; width: 480px; height: auto;
  opacity: .1; filter: brightness(0) invert(1);
}

.aes-cta__content { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 72px; }
.aes-cta__title {
  font-family: var(--cta-display); font-weight: 700;
  font-size: 4rem; line-height: 1; letter-spacing: -.055em;
  color: var(--cta-on); text-wrap: balance;
}
.aes-cta__title em { font-style: normal; color: #fff; }
.aes-cta__text { margin-top: 22px !important; max-width: 440px; font-size: 1.2rem; line-height: 1.5; color: var(--cta-on); text-wrap: pretty; }
.aes-cta__note { margin-top: 14px !important; font-family: var(--cta-display); font-weight: 600; font-size: 1rem; color: var(--cta-on); }
.aes-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* Dunkler runder Button (falls die Site schon eine Klasse hat: diese verwenden) */
.aes-cta__btn {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 8px 8px 8px 26px;
  border: 1px solid #08111d; border-radius: 999px;
  background: #08111d; color: #fff;
  font-family: var(--cta-display); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background .25s var(--cta-ease), color .25s var(--cta-ease);
}
.aes-cta__btn-arrow { flex: none;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: transform .25s var(--cta-ease);
}
.aes-cta__btn:hover { background: transparent; color: #08111d; }
.aes-cta__btn:hover .aes-cta__btn-arrow { flex: none; transform: rotate(45deg); }
.aes-cta__mail {
  font-family: var(--cta-display); font-weight: 600; font-size: 1rem;
  color: var(--cta-on); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid rgba(3, 16, 26, .5);
}
.aes-cta__mail:hover { color: #fff; border-color: #fff; }
.aes-cta a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Foto: ragt oben 80px über den Banner, blendet unten weich aus */
.aes-cta__photo { position: relative; }
.aes-cta__photo img {
  position: absolute; right: -10px; bottom: 0;
  width: 470px; height: 560px; object-fit: cover; object-position: center top;
  border-bottom-right-radius: 32px;
  filter: drop-shadow(0 20px 40px rgba(3, 16, 26, .28));
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 66%, transparent 96%);
}

/* ---------- Tablet + Mobile (≤ 980px): Foto oben, Text darunter ---------- */
@media (max-width: 980px) {
  .aes-cta { padding: 64px 0; }
  .aes-cta__shell { width: calc(100% - 32px); }
  .aes-cta__banner {
    max-width: 560px; margin-left: auto; margin-right: auto;
    display: flex; flex-direction: column; min-height: 0; margin-top: 56px;
    border-radius: 26px; box-shadow: none;
    background: linear-gradient(180deg, #62bdf0, #01b0ef);
  }
  .aes-cta__deco { border-radius: 26px; }
  .aes-cta__glow { left: 50%; top: 175px; width: 460px; height: 460px; margin: -230px 0 0 -230px; background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 60%); }
  .aes-cta__rings {
    -webkit-mask-image: linear-gradient(180deg, #000 170px, transparent 270px);
            mask-image: linear-gradient(180deg, #000 170px, transparent 270px);
  }
  .aes-cta__halo, .aes-cta__ring-outer { display: none; }
  .aes-cta__ring {
    left: 50%; top: 175px; width: 280px; height: 280px; margin: -140px 0 0 -140px;
    border: 1px solid rgba(255, 255, 255, .28); background: none;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, .06), 0 0 0 88px rgba(255, 255, 255, .035);
  }
  .aes-cta__logo { display: none; }

  .aes-cta__photo { order: -1; height: 386px; margin-top: -54px; }
  .aes-cta__photo img {
    position: static; display: block; width: min(100%, 380px); height: 100%; margin: 0 auto;
    border-radius: 0; filter: none;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 90%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 90%);
  }
  .aes-cta__content { display: block; margin-top: -24px; padding: 0 22px 28px; }
  .aes-cta__title { font-size: 2.2rem; line-height: 1.02; letter-spacing: -.05em; }
  .aes-cta__text { margin-top: 14px !important; font-size: 1.02rem; }
  .aes-cta__desk { display: none; }
  .aes-cta__note { margin-top: 10px !important; font-size: .92rem; }
  .aes-cta__actions { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 22px; }
  .aes-cta__btn { justify-content: space-between; width: 100%; gap: 12px; padding-left: 20px; font-size: .9rem; }
  .aes-cta__mail { align-self: center; }
}

.aes-cta { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { .aes-cta *, .aes-cta *::before, .aes-cta *::after { transition: none !important; } }
