/* ===== Deine nächsten Schritte (9b) – AES Consulting ===== */
.aes-next {
  --nx-ink: var(--ink);
  --nx-muted: var(--muted);
  --nx-slate-450: #7f91a3;
  --nx-cyan: var(--cyan);
  --nx-cyan-strong: var(--cyan-strong);
  --nx-on-cyan: #04121d;
  --nx-line: var(--line);
  --nx-cyan-a25: rgba(98, 189, 240, .25);
  --nx-display: "Sora", system-ui, sans-serif;
  --nx-body: "DM Sans", system-ui, sans-serif;
  --nx-ease: cubic-bezier(.2, .7, .25, 1);

  position: relative;
  overflow: hidden;
  padding: 112px 0;
  font-family: var(--nx-body);
  color: var(--nx-ink);
  background:
    radial-gradient(ellipse 40% 55% at 74% 60%, rgba(1, 176, 239, .1), transparent 70%),
    linear-gradient(180deg, #08111d, #0c1724);
}
.aes-next *, .aes-next *::before, .aes-next *::after { box-sizing: border-box; }
.aes-next p, .aes-next h2, .aes-next h3 { margin: 0; }
.aes-next__shell { margin-inline: auto; }
.aes-next, .aes-next__anchor { scroll-margin-top: 112px; }
.aes-next__anchor { position: absolute; top: 0; }

.aes-next__eyebrow {
  font-family: var(--nx-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nx-cyan);
}
.aes-next__title {
  margin-top: 18px !important;
  font-family: var(--nx-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.aes-next__title em { font-style: normal; color: var(--nx-cyan); }

.aes-next__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

/* ---------- Schritte ---------- */
.aes-next__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aes-next__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 40px;
}
.aes-next__step:last-child { padding-bottom: 0; }
.aes-next__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px; top: 64px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(98, 189, 240, .6), rgba(98, 189, 240, .2));
}
.aes-next__step:first-child::after { background: var(--nx-cyan); }
.aes-next__node {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--nx-cyan-a25);
  background: #0c1724;
  font-family: var(--nx-display); font-weight: 700; font-size: .95rem;
  color: var(--nx-cyan);
}
.aes-next__step.is-active .aes-next__node {
  border: 0;
  background: var(--nx-cyan-strong);
  color: var(--nx-on-cyan);
  box-shadow: 0 0 0 6px rgba(1, 176, 239, .14), 0 0 34px rgba(1, 176, 239, .4);
}
.aes-next__step > div { padding-top: 4px; }
.aes-next__step h3 {
  font-family: var(--nx-display); font-weight: 700;
  font-size: 1.75rem; line-height: 1.1; letter-spacing: -.04em;
}
.aes-next__step p { margin-top: 8px; font-size: 1.02rem; line-height: 1.5; color: var(--nx-muted); }
.aes-next__bar { display: none; }

/* ---------- Buchungskarte ---------- */
.aes-next__cardwrap { position: relative; }
.aes-next__card {
  position: relative;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: 26px;
  background: linear-gradient(145deg, #15354a, #0c1a28 70%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22), 18px 18px 0 #09131f;
}
.aes-next__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.aes-next__who { display: flex; align-items: center; gap: 14px; }
.aes-next__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; overflow: hidden; background: #13263a; color: transparent; font-size: 0; }
.aes-next__name { font-family: var(--nx-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.025em; }
.aes-next__sub { margin-top: 2px !important; font-size: .92rem; color: var(--nx-slate-450); }
.aes-next__pill {
  flex: none; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--nx-cyan-a25);
  font-family: var(--nx-display); font-weight: 600; font-size: .82rem;
  color: var(--nx-cyan); white-space: nowrap;
}
.aes-next__rule { height: 1px; margin: 26px 0 22px; border: 0; background: var(--nx-line); }
.aes-next__label {
  font-family: var(--nx-display); font-weight: 600; font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nx-slate-450);
}
.aes-next__selection + .aes-next__btn { margin-top: 26px; }
.aes-next__days + .aes-next__label { margin-top: 22px; }
.aes-next__days, .aes-next__slots { display: grid; gap: 10px; margin-top: 12px; }
.aes-next__days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aes-next__slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aes-next__days button, .aes-next__slots button {
  border: 1px solid var(--nx-line);
  background: rgba(5, 11, 18, .35);
  color: var(--nx-ink);
  font-family: var(--nx-display);
  cursor: pointer;
  transition: border-color .25s var(--nx-ease), background .25s var(--nx-ease), color .25s var(--nx-ease);
}
.aes-next__days button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 0; border-radius: 16px;
}
.aes-next__days button span:first-child { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.aes-next__days button span:last-child { font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.aes-next__slots button { padding: 12px 0; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.aes-next__days button:hover, .aes-next__slots button:hover { border-color: var(--nx-cyan); }
.aes-next__days button.is-on { border-color: var(--nx-cyan-strong); background: var(--nx-cyan-strong); color: var(--nx-on-cyan); }
.aes-next__slots button.is-on { border-color: var(--nx-cyan); background: rgba(1, 176, 239, .14); color: var(--nx-cyan); }
.aes-next button:focus-visible, .aes-next__btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Bestehender Primär-Button, mit zwei responsiven Textvarianten. */
.aes-next__btn { display: flex; width: 100%; justify-content: space-between; gap: 12px; margin-top: 26px; font-family: var(--nx-display); }
.aes-next__btn > .aes-next__btn-long, .aes-next__btn > .aes-next__btn-short { width: auto; height: auto; background: none; border-radius: 0; transform: none; }
.aes-next__btn > .aes-next__btn-short { display: none; }

.aes-next__mobile-meta { display: none; margin-top: 2px; font-size: .84rem; color: var(--nx-cyan); }
.aes-next .aes-next__preview-note { margin: 18px 0; color: var(--nx-muted); font-size: .82rem; line-height: 1.5; }
/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .aes-next { padding: 96px 0; }
  .aes-next__grid { grid-template-columns: 1fr; gap: 56px; }
  .aes-next__cardwrap { max-width: 620px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .aes-next { padding: 72px 0 64px; }
  .aes-next__eyebrow { font-size: .7rem; }
  .aes-next__title { margin-top: 14px !important; font-size: 2.2rem; line-height: 1.04; }
  .aes-next__grid { gap: 28px; margin-top: 28px; }

  /* Schritte als kompakte Fortschrittsleiste */
  .aes-next__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .aes-next__step { display: flex; flex-direction: column; gap: 10px; padding: 0; }
  .aes-next__step::after { display: none; }
  .aes-next__bar { display: block; height: 3px; border-radius: 3px; background: rgba(98, 189, 240, .18); }
  .aes-next__step:nth-child(2) .aes-next__bar { background: rgba(98, 189, 240, .35); }
  .aes-next__step.is-active .aes-next__bar { background: var(--nx-cyan-strong); }
  .aes-next__node, .aes-next__step.is-active .aes-next__node {
    width: auto; height: auto; display: block;
    border: 0; background: none; box-shadow: none;
    font-size: .8rem; color: var(--nx-cyan);
  }
  .aes-next__step > div { padding: 0; }
  .aes-next__step h3 { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.15; letter-spacing: -.02em; }
  .aes-next__step p { display: none; }

  .aes-next__card { padding: 22px 14px; border-radius: 22px; box-shadow: 0 28px 80px rgba(0, 0, 0, .22), 10px 10px 0 #09131f; }
  .aes-next__avatar { width: 48px; height: 48px; }
  .aes-next__name { font-size: 1.05rem; }
  .aes-next__sub { display: none; }
  .aes-next__pill { display: none; }
  .aes-next__who::after { content: none; }
  .aes-next__rule { margin: 18px 0 16px; }
  .aes-next__label { display: none; }
  .aes-next__days { gap: 6px; margin-top: 0; }
  .aes-next__days button { padding: 9px 0; border-radius: 14px; }
  .aes-next__days button span:first-child { font-size: .62rem; }
  .aes-next__days button span:last-child { font-size: 1.1rem; }
  .aes-next__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .aes-next__slots button { min-height: 44px; padding: 0; font-size: .92rem; }
  .aes-next__selection + .aes-next__btn { margin-top: 18px; }
  .aes-next__btn > .aes-next__btn-long { display: none; }
  .aes-next__btn > .aes-next__btn-short { display: inline; }
  .aes-next__mobile-meta { display: block; }
}


@media (prefers-reduced-motion: reduce) {
  .aes-next *, .aes-next *::before, .aes-next *::after { transition: none !important; }
}
