@keyframes ki-zeile {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ki-aus {
  to {
    opacity: 0;
  }
}
@keyframes ki-ein {
  to {
    opacity: 1;
  }
}
@keyframes ki-tipp {
  50% {
    transform: scale(.97);
  }
}
.ki-ed .ki-seq {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 56px);
  counter-reset: none;
}
.ki-ed .ki-seq-schritt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ki-ed .ki-seq-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  background: var(--gold-bg);
  color: var(--ink);
  font:
    700 1rem/1"Dystopian",
    "Dystopian Fallback",
    sans-serif;
  position: relative;
  z-index: 1;
}
.ki-ed .ki-seq-schritt::after {
  content: "";
  position: absolute;
  left: 40px;
  right: calc(-1*clamp(28px, 3.5vw, 56px));
  top: 20px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s ease .4s;
}
.ki-ed .ki-seq-schritt:last-child::after {
  display: none;
}
.ki-ed .ki-seq-schritt.visible::after {
  transform: scaleX(1);
}
.ki-ed .ki-seq-schritt h3 {
  font-family:
    "Dystopian",
    "Dystopian Fallback",
    sans-serif;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem);
  font-weight: 700;
  margin: 6px 0 0;
  color: var(--ink);
}
.ki-ed .ki-seq-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .97rem;
  max-width: 36ch;
}
.ki-ed .ki-m {
  background: var(--ki-karte);
  border: 1px solid var(--line-strong);
  padding: 18px 18px 16px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ki-ed .ki-m::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}
.ki-ed .ki-m p {
  margin: 0;
}
.ki-ed .ki-m-chip {
  font:
    700 .68rem/1.4"Manrope",
    "Manrope Fallback",
    sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ki-ed .ki-m-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.ki-ed .ki-m-text {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}
.ki-ed .ki-m-btn {
  position: relative;
  margin-top: 6px;
  background: var(--gold);
  color: #171717;
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 14px;
  text-align: center;
  display: grid;
}
.ki-ed .ki-m-btn > span {
  grid-area: 1/1;
}
.ki-ed .ki-m-nach {
  opacity: 0;
}
.ki-ed .ki-m-hinweis {
  font-size: .8rem;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .ki-ed .ki-seq-schritt .ki-m-zeile {
    opacity: 0;
    transform: translateY(6px);
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-zeile {
    animation: ki-zeile .5s ease forwards;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-zeile:nth-of-type(2) {
    animation-delay: .9s;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-zeile:nth-of-type(3) {
    animation-delay: 1.4s;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-zeile:nth-of-type(4) {
    animation-delay: 1.9s;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-vor {
    animation: ki-aus .3s ease 2.4s forwards;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-nach {
    animation: ki-ein .3s ease 2.4s forwards;
  }
  .ki-ed .ki-seq-schritt.visible .ki-m-btn {
    animation: ki-tipp .35s ease 2.2s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ki-ed .ki-seq-schritt::after {
    transition: none;
    transform: scaleX(1);
  }
}
.ki-ed .ki-mehr-liste {
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}
.ki-ed .ki-mehr {
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: 96px;
}
.ki-ed .ki-mehr > summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  min-height: 48px;
}
.ki-ed .ki-mehr > summary::-webkit-details-marker {
  display: none;
}
.ki-ed .ki-mehr > summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1/span 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat;
  transition: border-color .2s ease, background-size .2s ease;
}
.ki-ed .ki-mehr[open] > summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 0 no-repeat;
}
.ki-ed .ki-mehr > summary:hover::after {
  border-color: var(--gold);
}
.ki-ed .ki-mehr > summary:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 4px;
}
.ki-ed .ki-mehr-h {
  grid-column: 1;
  margin: 0;
  font-family:
    "Dystopian",
    "Dystopian Fallback",
    sans-serif;
  font-size: clamp(1.15rem, 1.02rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.ki-ed .ki-mehr-h .accent {
  color: inherit;
}
.ki-ed .ki-mehr-kurz {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 64ch;
}
.ki-ed .ki-mehr-inhalt {
  padding: 4px 0 44px;
}
.ki-ed .ki-mehr-inhalt.ki-split {
  display: grid;
}
.ki-ed .ki-mehr-lead {
  max-width: 68ch;
  margin: 0 0 8px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.ki-ed .ki-mehr-inhalt .ki-ig,
.ki-ed .ki-mehr-inhalt .ki-tabelle--breit,
.ki-ed .ki-mehr-inhalt .ki-zwei,
.ki-ed .ki-mehr-lead + .card,
.ki-ed .ki-mehr-lead + .ki-ig,
.ki-ed .ki-mehr-lead + .ki-tabelle,
.ki-ed .ki-mehr-lead + .ki-zwei {
  margin-top: 28px;
}
.ki-ed .ki-mehr-inhalt .ki-ig-gruppe:first-child {
  border-top: 0;
  padding-top: 0;
}
.ki-ed .ki-mehr--solo {
  max-width: 68ch;
  margin: 28px auto 0;
  border-top: 1px solid var(--line-strong);
}
.ki-ed .ki-mehr--solo > summary {
  padding: 16px 0;
}
.ki-ed .ki-mehr--solo > summary::after {
  width: 36px;
  height: 36px;
}
.ki-ed .ki-mehr--solo .ki-mehr-h {
  font-family:
    "Manrope",
    "Manrope Fallback",
    sans-serif;
  font-size: 1.02rem;
}
.ki-ed .ki-mehr--solo .ki-mehr-inhalt {
  padding: 0 0 24px;
}
.ki-ed .ki-mehr--solo .ki-striche {
  margin: 0;
}
@media (max-width: 1024px) {
  .ki-ed .ki-seq {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 40px;
  }
  .ki-ed .ki-seq-schritt {
    padding-left: 64px;
  }
  .ki-ed .ki-seq-nr {
    position: absolute;
    left: 0;
    top: 0;
  }
  .ki-ed .ki-seq-schritt::after {
    left: 20px;
    right: auto;
    top: 40px;
    width: 1px;
    height: calc(100% + 36px - 40px);
    background: var(--gold);
    transform-origin: top;
    transform: scaleY(0);
  }
  .ki-ed .ki-seq-schritt.visible::after {
    transform: scaleY(1);
  }
  .ki-ed .ki-seq-text {
    max-width: none;
  }
  .ki-ed .ki-m {
    min-height: 0;
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .ki-ed .ki-seq-schritt::after {
    transform: scaleY(1);
  }
}
@media (max-width: 768px) {
  .ki-ed .ki-mehr > summary {
    padding: 20px 0;
    gap: 4px 16px;
  }
  .ki-ed .ki-mehr-inhalt {
    padding-bottom: 32px;
  }
}
