.spice-learning-module {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #303030;
}

.spice-learning-module *,
.spice-learning-module *::before,
.spice-learning-module *::after {
    box-sizing: border-box;
}

.spice-learning-module__header {
    position: relative;
    padding: 42px 46px 36px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    box-shadow: 0 7px 26px rgba(0,0,0,.025);
    overflow: hidden;
}

.spice-learning-module__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 46px;
    width: 58px;
    height: 3px;
    background: #333333;
}

.spice-learning-module__eyebrow,
.spice-learning-module__progress-kicker,
.spice-learning-module__step-label,
.spice-learning-module__overview-label,
.spice-learning-module__note-label {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #96989a;
}

.spice-learning-module__eyebrow { margin-bottom: 13px; }

.spice-learning-module__title {
    margin: 0;
    max-width: 900px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
    color: #303030;
}

.spice-learning-module__intro {
    max-width: 820px;
    margin: 17px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: #7c7f81;
}

.spice-learning-module__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 24px;
    align-items: start;
    margin-top: 18px;
}

.spice-learning-module__main { min-width: 0; }
.spice-learning-module__steps { display: grid; gap: 15px; }

.spice-learning-module__step {
    position: relative;
    padding: 30px 32px 28px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(0,0,0,.02);
    scroll-margin-top: 110px;
    transition: border-color .18s ease, background .18s ease;
}

.spice-learning-module__step.is-complete {
    background: #fafafa;
    border-color: #d5d5d5;
}

.spice-learning-module__step-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.spice-learning-module__number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 50%;
    background: #f3f3f3;
    color: #55585a;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
}

.spice-learning-module__step.is-complete .spice-learning-module__number {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.spice-learning-module__step-heading { min-width: 0; }
.spice-learning-module__step-label { margin-bottom: 6px; }

.spice-learning-module__step-title {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.025em;
    color: #303030;
}

.spice-learning-module__step-text {
    margin: 20px 0 0 64px;
    font-size: 14px;
    line-height: 1.75;
    color: #6f7274;
}

.spice-learning-module__step-text code,
.spice-learning-module__note-text code {
    padding: 2px 5px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #f5f5f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .92em;
}

.spice-learning-module__figure {
    margin: 22px 0 0 64px;
}

.spice-learning-module__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    object-position: left top;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: #f5f5f5;
}

.spice-learning-module__caption {
    display: block;
    margin: 9px 2px 0;
    font-size: 10px;
    line-height: 1.55;
    color: #96989a;
}

.spice-learning-module__note {
    margin: 20px 0 0 64px;
    padding: 15px 17px;
    border-left: 3px solid #555555;
    background: #f5f5f5;
    border-radius: 0 9px 9px 0;
}

.spice-learning-module__note-label { margin-bottom: 6px; color: #7d8082; }
.spice-learning-module__note-text { margin: 0; font-size: 13px; line-height: 1.65; color: #66696b; }

.spice-learning-module__step-footer {
    display: flex;
    justify-content: flex-end;
    margin: 24px 0 0 64px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.spice-learning-module__complete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 15px;
    border: 1px solid #3d3d3d;
    border-radius: 9px;
    background: #333333;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.spice-learning-module__complete:hover { background: #1f1f1f; }
.spice-learning-module__complete:focus-visible { outline: 2px solid #444444; outline-offset: 3px; }
.spice-learning-module__complete-icon { font-size: 12px; }

.spice-learning-module__complete.is-spice-complete,
.spice-learning-module__complete:disabled {
    border-color: #d0d0d0;
    background: #f2f2f2;
    color: #666666;
    cursor: default;
}

.spice-learning-module__progress {
    position: sticky;
    top: 92px;
    padding: 24px 22px;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 14px;
}

.spice-learning-module__progress-value {
    margin-top: 10px;
    font-size: 36px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -.05em;
    color: #303030;
}

.spice-learning-module__progress-track {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfdfdf;
}

.spice-learning-module__progress-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #333333;
    transition: width .24s ease;
}

.spice-learning-module__progress-current {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #747678;
}

.spice-learning-module__overview-label {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dddddd;
}

.spice-learning-module__overview {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.spice-learning-module__overview-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #747678;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.spice-learning-module__overview-item > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ececec;
    font-size: 9px;
    font-weight: 750;
}

.spice-learning-module__overview-item strong {
    min-width: 0;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 650;
    color: #5f6264;
}

.spice-learning-module__overview-item.is-active {
    border-color: #d5d5d5;
    background: #ffffff;
}

.spice-learning-module__overview-item.is-active strong { color: #303030; }
.spice-learning-module__overview-item.is-complete > span { background: #333333; color: #ffffff; }
.spice-learning-module__overview-state { width: 7px; height: 7px; border: 1px solid #b7b7b7; border-radius: 50%; }
.spice-learning-module__overview-item.is-complete .spice-learning-module__overview-state { border-color: #333333; background: #333333; }

.spice-learning-module__done-message {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    margin-top: 16px;
    padding: 12px 10px;
    border-top: 1px solid #dddddd;
    color: #454748;
}
.spice-learning-module__done-message[hidden] { display: none !important; }
.spice-learning-module__done-message > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #333333; color: #ffffff; font-size: 11px; }
.spice-learning-module__done-message strong { font-size: 11px; line-height: 1.4; }

@media (max-width: 900px) {
    .spice-learning-module__layout { grid-template-columns: 1fr; }
    .spice-learning-module__progress { position: static; grid-row: 1; }
    .spice-learning-module__main { grid-row: 2; }
    .spice-learning-module__overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 580px) {
    .spice-learning-module__header { padding: 35px 26px 30px; border-radius: 14px; }
    .spice-learning-module__header::before { left: 26px; }
    .spice-learning-module__title { font-size: 28px; }
    .spice-learning-module__step { padding: 25px 22px 23px; border-radius: 13px; }
    .spice-learning-module__step-head { grid-template-columns: 41px minmax(0,1fr); gap: 13px; }
    .spice-learning-module__number { width: 39px; height: 39px; }
    .spice-learning-module__step-title { font-size: 20px; }
    .spice-learning-module__step-text,
    .spice-learning-module__figure,
    .spice-learning-module__note,
    .spice-learning-module__step-footer { margin-left: 0; }
    .spice-learning-module__overview { grid-template-columns: 1fr; }
    .spice-learning-module__progress { padding: 21px 19px; }
    .spice-learning-module__complete { width: 100%; }
}

/* Optional video/audio media inside an instruction step. */
.spice-learning-module__video-figure,
.spice-learning-module__audio-figure {
    margin: 22px 0 0 64px;
}

.spice-learning-module__video {
    display: block;
    width: 100%;
    max-height: 620px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: #111111;
}

.spice-learning-module__audio {
    display: block;
    width: 100%;
    min-height: 44px;
}

.spice-learning-module__video-caption,
.spice-learning-module__audio-caption {
    display: block;
    margin: 9px 2px 0;
    font-size: 10px;
    line-height: 1.55;
    color: #96989a;
}

@media (max-width: 580px) {
    .spice-learning-module__video-figure,
    .spice-learning-module__audio-figure {
        margin-left: 0;
    }
}

.spice-learning-module__gallery {
    margin: 22px 0 0 64px;
}
.spice-learning-module__gallery .spice-learning-module__figure {
    margin: 0;
}
@media (max-width: 580px) {
    .spice-learning-module__gallery { margin-left: 0; }
}

/* SPICE learning-module activities */
.spice-learning-module__activity,
.spice-learning-module__finish-wrap {
    margin: 22px 0 0 64px;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #fafafa;
}

.spice-learning-module__question {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;
    color: #333333;
}

.spice-learning-module__choices {
    display: grid;
    gap: 9px;
}

.spice-learning-module__choice {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.spice-learning-module__choice:hover { border-color: #bdbdbd; background: #fdfdfd; }
.spice-learning-module__choice input { position: absolute; opacity: 0; pointer-events: none; }
.spice-learning-module__choice-mark {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #bfc1c2;
    border-radius: 50%;
    background: #ffffff;
}
.spice-learning-module__choice input[type="checkbox"] + .spice-learning-module__choice-mark { border-radius: 5px; }
.spice-learning-module__choice input:checked + .spice-learning-module__choice-mark { border-color: #333333; background: #333333; box-shadow: inset 0 0 0 4px #ffffff; }
.spice-learning-module__choice input[type="checkbox"]:checked + .spice-learning-module__choice-mark { box-shadow: inset 0 0 0 3px #ffffff; }
.spice-learning-module__choice input:focus-visible + .spice-learning-module__choice-mark { outline: 2px solid #333333; outline-offset: 2px; }
.spice-learning-module__choice-text { font-size: 13px; line-height: 1.55; color: #5f6264; }

.spice-learning-module__dropdown-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(190px, .8fr);
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #e7e7e7;
}
.spice-learning-module__dropdown-row:first-child { padding-top: 0; }
.spice-learning-module__dropdown-row:last-of-type { border-bottom: 0; }
.spice-learning-module__dropdown-prompt { font-size: 13px; line-height: 1.55; color: #55585a; font-weight: 600; }
.spice-learning-module__dropdown-row select {
    width: 100%;
    min-height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #ffffff;
    color: #45484a;
    font: inherit;
    font-size: 12px;
}

.spice-learning-module__check,
.spice-learning-module__finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 17px;
    border: 1px solid #333333;
    border-radius: 9px;
    background: #333333;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.spice-learning-module__check:hover,
.spice-learning-module__finish:hover { background: #1f1f1f; transform: translateY(-1px); }
.spice-learning-module__check:disabled,
.spice-learning-module__finish:disabled { cursor: default; transform: none; opacity: .62; }
.spice-learning-module__finish { min-width: 190px; animation: spice-learning-module-pulse 2.7s ease-in-out infinite; }
.spice-learning-module__finish.is-complete { animation: none; }
@keyframes spice-learning-module-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(40,40,40,0)} 50%{box-shadow:0 0 0 7px rgba(40,40,40,.07)} }

.spice-learning-module__feedback {
    margin-top: 13px;
    padding: 11px 13px;
    border-left: 3px solid #777777;
    border-radius: 0 7px 7px 0;
    background: #f0f0f0;
    color: #66696b;
    font-size: 12px;
    line-height: 1.55;
}
.spice-learning-module__feedback.is-correct { border-left-color: #363636; background: #f3f3f3; color: #414345; }
.spice-learning-module__feedback.is-wrong { border-left-color: #8b8b8b; background: #f5f5f5; }

.spice-learning-module__step[data-step-type="mc"].is-complete .spice-learning-module__number,
.spice-learning-module__step[data-step-type="dropdown"].is-complete .spice-learning-module__number,
.spice-learning-module__step[data-step-type="completion"].is-complete .spice-learning-module__number { background:#333333; border-color:#333333; color:#ffffff; }

.spice-learning-module__done-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dddddd;
    color: #4b4d4f;
    font-size: 11px;
}
.spice-learning-module__done-message[hidden] { display:none !important; }
.spice-learning-module__done-message > span { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#333333; color:#ffffff; }

@media (max-width: 700px) {
    .spice-learning-module__activity,
    .spice-learning-module__finish-wrap { margin-left: 0; }
    .spice-learning-module__dropdown-row { grid-template-columns: 1fr; gap: 8px; }
}
.spice-learning-module__mc-question {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}
.spice-learning-module__mc-question:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.spice-learning-module__mc-question .spice-learning-module__question { padding: 0; }

/* ============================================================
   Eingebettete Tabellen innerhalb eines Lernschritts
   ============================================================ */
.spice-learning-module__tables {
    display: grid;
    gap: 16px;
    margin: 22px 0 0;
}
.spice-learning-module__embedded-table-wrap {
    min-width: 0;
}
.spice-learning-module__embedded-table-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 650;
    color: #34383a;
}
.spice-learning-module__embedded-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid #dfe2e4;
    border-radius: 11px;
    background: #fff;
}
.spice-learning-module__embedded-table {
    width: 100%;
    min-width: 480px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}
.spice-learning-module__embedded-table th,
.spice-learning-module__embedded-table td {
    min-width: 110px;
    padding: 13px 15px;
    border: 0;
    border-right: 1px solid #e5e7e9;
    border-bottom: 1px solid #e5e7e9;
    vertical-align: top;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    color: #62696d;
    overflow-wrap: anywhere;
}
.spice-learning-module__embedded-table th {
    background: #f3f4f5;
    color: #34393c;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 760;
    letter-spacing: .035em;
}
.spice-learning-module__embedded-table tr:last-child > * { border-bottom: 0; }
.spice-learning-module__embedded-table tr > *:last-child { border-right: 0; }
.spice-learning-module__embedded-table tbody tr:not(:first-child):hover td { background: #fafafa; }
.spice-learning-module__embedded-table span { display: block; min-width: 1px; }
.spice-learning-module__embedded-table.is-compact th,
.spice-learning-module__embedded-table.is-compact td { padding: 9px 11px; font-size: 12px; }
.spice-learning-module__embedded-table.is-compact th { font-size: 10px; }
.spice-learning-module__embedded-table-caption {
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.55;
    color: #92989b;
}
@media (max-width: 700px) {
    .spice-learning-module__tables { margin-left: 0; }
    .spice-learning-module__embedded-table { min-width: 460px; }
}

/* SPICE v0.41.14: optional continuation after media */
.spice-after-media-editor { margin: 18px 0 10px; padding: 14px 16px; border: 1px solid #dfe3e6; border-radius: 10px; background: #fafbfb; }
.spice-after-media-label { display:block; margin-bottom: 10px; color:#757d82; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.spice-after-media-text { margin-top: 16px; }

/* Additional repeatable media/text segments. */
.spice-extra-content__section{margin:20px 0;max-width:100%;}
.spice-extra-content__figure{margin:12px 0 8px;max-width:100%;}
.spice-extra-content__figure img,.spice-extra-content__figure video{max-width:100%;height:auto;display:block;border-radius:10px;}
.spice-extra-content__figure audio{max-width:100%;width:100%;}
.spice-extra-content__figure figcaption{margin-top:8px;color:#505962;font-size:.9rem;}
.spice-extra-content__text{margin:14px 0;line-height:1.65;}

.spice-extra-content__details{position:relative;display:inline-block;margin:6px 0}
.spice-extra-content__info{cursor:pointer;border:1px solid #d8dade;border-radius:50%;background:white;color:#666;font-size:14px}
.spice-extra-content__details-text{display:none;position:absolute;bottom:100%;left:0;max-width:320px;min-width:180px;background:#fff;padding:10px;border:1px solid #ddd;box-shadow:0 8px 30px #0002;z-index:2}
.spice-extra-content__details:hover .spice-extra-content__details-text,.spice-extra-content__details:focus-within .spice-extra-content__details-text{display:block}

/* v0.41.42: align repeated media and continuation with existing text indentation. */
.spice-learning-module .spice-after-media-editor, .spice-learning-module .spice-extra-content { margin-left:64px; width:calc(100% - 64px); box-sizing:border-box; }
.spice-learning-module .spice-extra-content__text-panel, .spice-learning-module .spice-extra-content__media-panel { box-sizing:border-box; width:100%; }
@media(max-width:580px) { .spice-learning-module .spice-after-media-editor, .spice-learning-module .spice-extra-content { margin-left:0; width:100%; } }


/* v0.41.43: repeated screenshot captions/details/text must share one left edge */
.spice-extra-content__figure,
.spice-extra-content__details,
.spice-extra-content__caption,
.spice-extra-content__text { box-sizing:border-box; width:100%; max-width:100%; text-align:left !important; }
.spice-extra-content__figure { display:block; margin:12px 0 8px; }
.spice-extra-content__figure img,
.spice-extra-content__figure video,
.spice-extra-content__figure audio { display:block; margin:0; }
.spice-extra-content__caption,
.spice-extra-content__details,
.spice-extra-content__text,
.spice-extra-content__details-text { margin-left:0 !important; padding-left:0 !important; }
.spice-extra-content__details { display:block; }

/* 0.41.44: repeat media uses same layout constraints as the original screenshots. */
.spice-extra-content__section > .spice-extra-content__figure,
.spice-extra-content__section > .spice-extra-content__text {
  min-width: 0;
  box-sizing: border-box;
}
.spice-extra-content__figure > img,
.spice-extra-content__figure > video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: left top;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #f5f5f5;
}
.spice-extra-content__figure > audio { display: block; width: 100%; }

/* The first after-media paragraph is indented by 64px. The serialized
   extra section is a direct sibling (not wrapped in .spice-extra-content). */
.spice-learning-module__step > .spice-extra-content__section {
  margin: 20px 0 0 64px;
  width: calc(100% - 64px);
  max-width: calc(100% - 64px);
  box-sizing: border-box;
}
.spice-learning-module__step > .spice-extra-content__section > .spice-extra-content__text {
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #6f7274;
}
.spice-learning-module__step > .spice-extra-content__section .spice-extra-content__figure {
  width: 100%;
  margin: 0 0 8px;
}
@media (max-width:580px) {
  .spice-learning-module__step > .spice-extra-content__section {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* 0.41.68 – Einleitung optional ausblenden, andere Inhalte unverändert. */
.spice-learning-module__header[hidden]{display:none!important}

/* 0.41.69: Ungefüllte weitere Medien-/Textabschnitte beanspruchen keine Frontend-Höhe. */
.spice-extra-content__section:empty, .spice-after-media-text:empty { display:none; }
