/* ===================================================================
   „JA, HIER ARBEITET EINE MASCHINE MIT" — DIE EINZELTEILE, TEIL 2

   Die sechs Schritte, die gefundenen Fehler, die Grenzen, die Sorgen
   und das Ergebnis.
   =================================================================== */

:root[data-thema] .ki-schritte {
    margin: 0;
    padding: 0;
    list-style: none;
}

:root[data-thema] .ki-schritt {
    position: relative;
    display: flex;
    gap: 1.3rem;
    padding: 0 0 2rem 0;
}

:root[data-thema] .ki-schritt::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 2.4rem;
    bottom: 0;
    width: 1px;
    background: var(--k-rand-seite);
}

:root[data-thema] .ki-schritt:last-child::before {
    display: none;
}

:root[data-thema] .ki-schritt-nr {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--k-vertieft-tief);
    color: var(--k-text-still);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    z-index: 1;
}

:root[data-thema] .ki-schritt--pruefung .ki-schritt-nr {
    background:
        linear-gradient(var(--k-vertieft-tief), var(--k-vertieft-tief)) padding-box,
        var(--k-verlauf) border-box;
    border: 1px solid transparent;
    color: var(--k-text);
}

:root[data-thema] .ki-schritt h3 {
    margin: 0.25rem 0 0.5rem;
    color: var(--k-text);
    font-size: 1.05rem;
    font-weight: 700;
}

:root[data-thema] .ki-schritt p {
    max-width: 62ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.95rem;
    line-height: 1.7;
}

:root[data-thema] .ki-fehler-gitter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.3rem;
}

:root[data-thema] .ki-fehler {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-gross);
    background: var(--k-vertieft);
}

:root[data-thema] .ki-fehler-marke {
    align-self: flex-start;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.7rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-pille);
    background: var(--k-vertieft);
    color: var(--k-text-still);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

:root[data-thema] .ki-fehler--mensch .ki-fehler-marke {
    color: var(--k-text);
}

:root[data-thema] .ki-fehler h3 {
    margin: 0 0 0.7rem;
    color: var(--k-text);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
}

:root[data-thema] .ki-fehler p {
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.93rem;
    line-height: 1.68;
}

:root[data-thema] .ki-fehler code {
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: var(--k-vertieft-tief);
    color: var(--k-text);
    font-size: 0.88em;
}

:root[data-thema] .ki-fehler-folge {
    margin-top: auto !important;
    padding-top: 0.95rem;
    color: var(--k-text-still) !important;
    font-size: 0.87rem !important;
}

:root[data-thema] .ki-grenzen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.1rem 2rem;
}

:root[data-thema] .ki-grenze {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 0;
}

:root[data-thema] .ki-grenze-zeichen {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--k-vertieft);
    color: var(--k-text);
    font-size: 0.8rem;
}

:root[data-thema] .ki-grenze h3 {
    margin: 0 0 0.4rem;
    color: var(--k-text);
    font-size: 1rem;
    font-weight: 700;
}

:root[data-thema] .ki-grenze p {
    max-width: 46ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.92rem;
    line-height: 1.68;
}

:root[data-thema] .ki-sorgen {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

:root[data-thema] .ki-sorge {
    position: relative;
    padding: 1.5rem 1.6rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
}

:root[data-thema] .ki-sorge-frage {
    margin: 0 0 0.65rem;
    color: var(--k-text);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.4;
}

:root[data-thema] .ki-sorge p {
    max-width: 68ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.96rem;
    line-height: 1.75;
}

:root[data-thema] .ki-ergebnis-gitter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 1.2rem;
    margin: 2rem 0 2.6rem;
}

:root[data-thema] .ki-ergebnis {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.35rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
}

:root[data-thema] .ki-ergebnis strong {
    color: var(--k-text);
    font-size: 1.02rem;
    font-weight: 700;
}

:root[data-thema] .ki-ergebnis span {
    color: var(--k-text-leise);
    font-size: 0.9rem;
    line-height: 1.62;
}

@media (max-width: 720px) {
    :root[data-thema] .ki-fehler {
        padding: 1.4rem 1.25rem;
    }

    :root[data-thema] .ki-sorge {
        padding: 1.25rem 1.3rem;
    }
}
