/* ==========================================================================
   AES — "Die richtige Begleitung" (Foto-Bühne mit Option 01 / 02 → 03)
   Ebenen (z-index): 1 Fotowand + Raster · 3 Karten · 4 Severin freigestellt
                     5 Bodenverlauf · 6 Option-03-Frage
   Breakpoints: Desktop > 1040px · Tablet 861–1040px · Mobile ≤ 860px
   ========================================================================== */

.aes-guide {
  --g-cyan: var(--cyan, #62bdf0);
  --g-ink: var(--ink, #f5f8fb);
  --g-muted: var(--muted, #96a7b7);
  --g-slate-150: #cbd7df;
  --g-slate-450: #8395a4;
  --g-line: var(--line, rgba(255, 255, 255, .105));
  --g-line-strong: var(--line-strong, rgba(98, 189, 240, .35));
  --g-night: #08111d;
  --g-display: "Sora", sans-serif;
  --g-body: "DM Sans", sans-serif;

  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background:
    radial-gradient(ellipse 44% 30% at 50% 52%, #12304d, rgba(13, 32, 52, .45) 55%, transparent 80%),
    linear-gradient(180deg, #0c1724, var(--g-night));
}

/* ---------- Kopf ---------- */
.aes-guide__head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
}
.aes-guide__eyebrow {
  margin: 0;
  font-family: var(--g-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-cyan);
}
.aes-guide__title {
  margin: 22px 0 0;
  font-family: var(--g-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--g-ink);
  text-wrap: balance;
}
.aes-guide__title em {
  display: block;
  font-style: normal;
  color: var(--g-cyan);
  text-wrap: balance;
}
.aes-guide__lead {
  margin: 14px 0 0;
  font-family: var(--g-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--g-muted);
  text-wrap: pretty;
}

/* ---------- Bühne ---------- */
.aes-guide__stage {
  position: relative;
  height: 790px;
  margin-top: 48px;
}

/* Wand + Raster: gemeinsamer Verlauf oben, damit keine harte Kante entsteht */
.aes-guide__backdrop {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.aes-guide__wall,
.aes-guide__person {
  position: absolute;
  left: 50%;
  top: 0;
  width: 820px;
  height: 714px;
  transform: translateX(-50%);
  object-fit: cover;
  filter: saturate(.8) grayscale(.12);
}
.aes-guide__wall {
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 52% at 50% 42%, #000 45%, transparent 100%);
}
.aes-guide__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 34% 36% at 50% 40%, rgba(98, 189, 240, .16), transparent 70%);
}
.aes-guide__grid {
  position: absolute;
  inset: 0;
  opacity: .9;
  background-image:
    linear-gradient(rgba(98, 189, 240, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 189, 240, .16) 1px, transparent 1px);
  background-size: 54px 54px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 46% 52% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 46% 52% at 50% 40%, #000 20%, transparent 75%);
}

/* Severin freigestellt — liegt VOR den Karten, voll deckend bis unter die Arme */
.aes-guide__person {
  z-index: 4;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.aes-guide__fade {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 590px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--g-night) 60%);
  pointer-events: none;
}

/* ---------- Karten ---------- */
.aes-guide__card {
  position: absolute;
  z-index: 3;
  /* Innenkante bleibt immer 140px neben der Mitte → Arm überlappt max. ~72px, Polster 88px */
  width: min(440px, calc(50% - 140px));
  border: 1px solid var(--g-line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22), 7px 7px 0 #081420;
}
.aes-guide__card--left {
  left: 0;
  top: 96px;
  background: linear-gradient(145deg, #15354a, #0c1a28 70%);
  transform: rotate(-1deg);
}
.aes-guide__card--right {
  right: 0;
  top: 140px;
  background: linear-gradient(145deg, #122638, #0a1724);
  transform: rotate(.65deg);
}
/* Innenabstand zur Person hin grösser, weil dort der Arm über der Karte liegt */
.aes-guide__card--left  .aes-guide__body,
.aes-guide__card--left  .aes-guide__foot { padding-right: 88px; padding-left: 36px; }
.aes-guide__card--right .aes-guide__body,
.aes-guide__card--right .aes-guide__foot { padding-left: 88px; padding-right: 36px; }

.aes-guide__body { padding-top: 36px; padding-bottom: 30px; }
.aes-guide__option {
  margin: 0;
  font-family: var(--g-display);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--g-ink);
  white-space: nowrap;
}
.aes-guide__option span { color: var(--g-cyan); }
.aes-guide__claim {
  margin: 22px 0 0;
  font-family: var(--g-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--g-slate-150);
}
.aes-guide__foot {
  padding-top: 22px;
  padding-bottom: 24px;
  border-top: 1px solid var(--g-line);
  background: rgba(5, 11, 18, .35);
}
.aes-guide__label {
  margin: 0;
  font-family: var(--g-display);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-slate-450);
}
.aes-guide__question {
  margin: 10px 0 0;
  font-family: var(--g-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--g-ink);
}

/* ---------- Option 03 (sitzt unten an den Armen) ---------- */
.aes-guide__next {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 0;
  width: min(640px, 100%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.aes-guide__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--g-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-slate-450);
}
.aes-guide__kicker::before,
.aes-guide__kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--g-line-strong);
}
.aes-guide__next-title {
  margin: 0;
  font-family: var(--g-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--g-ink);
  text-wrap: balance;
}
.aes-guide__next-title em { font-style: normal; color: var(--g-cyan); }
.aes-guide__down {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(98, 189, 240, .4);
  color: var(--g-cyan);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 0 0 5px rgba(98, 189, 240, .1);
  transition: transform .25s cubic-bezier(.2, .7, .25, 1), border-color .25s cubic-bezier(.2, .7, .25, 1);
}
.aes-guide__down:hover { transform: translateY(3px); border-color: var(--g-cyan); }
.aes-guide__down:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  .aes-guide { padding: 96px 0; }
  .aes-guide__head { gap: 48px; }
  .aes-guide__title { font-size: 2.3rem; }
  /* Beide Bildebenen deckungsgleich verkleinern (Seitenverhältnis 1600:1394) */
  .aes-guide__stage { height: 600px; }
  .aes-guide__wall,
  .aes-guide__person { width: 620px; height: 540px; }
  .aes-guide__fade { top: 450px; height: 150px; }
  .aes-guide__card { width: calc(50% - 100px); }
  .aes-guide__card--left  { top: 72px; }
  .aes-guide__card--right { top: 105px; }
  .aes-guide__body { padding-top: 28px; padding-bottom: 24px; }
  .aes-guide__option { font-size: 2rem; }
  .aes-guide__claim { margin-top: 16px; font-size: 1.08rem; }
  .aes-guide__question { font-size: .96rem; }
  .aes-guide__card--left  .aes-guide__body,
  .aes-guide__card--left  .aes-guide__foot { padding-right: 84px; padding-left: 24px; }
  .aes-guide__card--right .aes-guide__body,
  .aes-guide__card--right .aes-guide__foot { padding-left: 84px; padding-right: 24px; }
  .aes-guide__next-title { font-size: 1.9rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .aes-guide { padding: 80px 0; }
  .aes-guide__head { grid-template-columns: 1fr; gap: 0; }
  .aes-guide__eyebrow { font-size: .7rem; }
  .aes-guide__title { margin-top: 16px; font-size: 2.05rem; }
  .aes-guide__title em { display: inline; }
  .aes-guide__lead { margin-top: 16px; font-size: 1rem; }

  /* Bühne wird normaler Fluss: Foto oben, Karten darunter */
  .aes-guide__stage { height: auto; margin-top: 24px; }
  .aes-guide__photo {
    position: relative;
    height: 420px;
    margin: 0 -20px; /* = seitlicher Shell-Abstand auf Mobile, ggf. anpassen */
  }
  .aes-guide__wall,
  .aes-guide__person { width: 560px; height: 488px; }
  .aes-guide__wall {
    -webkit-mask-image: radial-gradient(ellipse 46% 50% at 50% 42%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 46% 50% at 50% 42%, #000 40%, transparent 100%);
  }
  .aes-guide__person {
    z-index: 3;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 90%);
            mask-image: linear-gradient(180deg, #000 60%, transparent 90%);
  }
  .aes-guide__glow { background: radial-gradient(ellipse 50% 40% at 50% 34%, rgba(98, 189, 240, .16), transparent 70%); }
  .aes-guide__grid {
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%);
  }
  .aes-guide__fade { display: none; }

  .aes-guide__card,
  .aes-guide__card--left,
  .aes-guide__card--right {
    position: relative;
    z-index: 4;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
  }
  .aes-guide__card--left  { margin-top: -110px; }
  .aes-guide__card--right { margin-top: 22px; }
  .aes-guide__card--left  .aes-guide__body,
  .aes-guide__card--right .aes-guide__body { padding: 26px 22px 22px; }
  .aes-guide__card--left  .aes-guide__foot,
  .aes-guide__card--right .aes-guide__foot { padding: 18px 22px 20px; }
  .aes-guide__option { font-size: 2.2rem; }
  .aes-guide__claim { font-size: 1.12rem; }
  .aes-guide__label { font-size: .6rem; }
  .aes-guide__question { margin-top: 8px; font-size: .98rem; }

  .aes-guide__next {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    transform: none;
    gap: 16px;
    margin-top: 64px;
  }
  .aes-guide__kicker { font-size: .7rem; gap: 10px; }
  .aes-guide__kicker::before,
  .aes-guide__kicker::after { width: 24px; }
  .aes-guide__next-title { font-size: 1.65rem; line-height: 1.12; }
}

@media (prefers-reduced-motion: reduce) {
  .aes-guide__down { transition: none; }
}

/* Keep the site's reveal effect without shifting the two matching image layers. */
.aes-guide__card--left.reveal.visible { transform: rotate(-1deg); }
.aes-guide__card--right.reveal.visible { transform: rotate(.65deg); }
.aes-guide__next.reveal { transform: translate(-50%, 30px); }
.aes-guide__next.reveal.visible { transform: translateX(-50%); }
@media (max-width: 860px) {
  .aes-guide > .section-shell { width: calc(100% - 40px); }
  .aes-guide__next.reveal { transform: translateY(30px); }
  .aes-guide__next.reveal.visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aes-guide__next.reveal { transform: translateX(-50%); }
  .aes-guide__card--left.reveal { transform: rotate(-1deg); }
  .aes-guide__card--right.reveal { transform: rotate(.65deg); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .aes-guide__next.reveal { transform: none; }
}
