.akm-akr {
    --akm-green: #168344;
    --akm-green-dark: #0d6231;
    --akm-green-soft: #eaf7ef;
    --akm-ink: #17231c;
    --akm-muted: #5f6d64;
    --akm-line: #dce5df;
    --akm-white: #fff;
    --akm-error: #a51d26;
    position: relative;
    isolation: isolate;
    display: block;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    color: var(--akm-ink);
    font: inherit;
}

.akm-akr *,
.akm-akr *::before,
.akm-akr *::after {
    box-sizing: inherit;
}

.akm-akr button,
.akm-akr input {
    font: inherit;
}

.akm-akr__shell {
    position: relative;
    display: block;
    width: min(100%, 680px);
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: clamp(18px, 3.3vw, 30px);
    overflow: hidden;
    border: 1px solid var(--akm-line);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #f7faf8 100%);
    box-shadow: 0 14px 38px rgba(20, 54, 34, .09);
}

.akm-akr__header,
.akm-akr__step-head {
    text-align: center;
}

.akm-akr__eyebrow {
    margin: 0 0 6px;
    color: var(--akm-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.akm-akr__title {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.05rem);
    line-height: 1.15;
}

.akm-akr__intro {
    max-width: 580px;
    margin: 9px auto 0;
    color: var(--akm-muted);
    font-size: .94rem;
    line-height: 1.45;
}

.akm-akr__intro > * {
    margin-top: 0;
    margin-bottom: 8px;
}

.akm-akr__intro > *:last-child {
    margin-bottom: 0;
}

.akm-akr__progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 20px 0 19px;
}

.akm-akr__progress-item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #849087;
    font-size: .69rem;
    font-weight: 700;
}

.akm-akr__progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 13px;
    left: calc(50% + 15px);
    right: calc(-50% + 15px);
    height: 2px;
    background: var(--akm-line);
}

.akm-akr__progress-item b {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid var(--akm-line);
    border-radius: 50%;
    background: #fff;
    color: #718078;
    font-size: .74rem;
}

.akm-akr__progress-item.is-active b,
.akm-akr__progress-item.is-done b {
    border-color: var(--akm-green);
    background: var(--akm-green);
    color: #fff;
}

.akm-akr__progress-item.is-done:not(:last-child)::after {
    background: var(--akm-green);
}

.akm-akr__progress-item.is-active {
    color: var(--akm-ink);
}

.akm-akr__stage {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
}

.akm-akr__step {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    animation: akmAkrFade .2s ease;
}

.akm-akr__step[hidden] {
    display: none !important;
}

@keyframes akmAkrFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.akm-akr__step-head {
    margin-bottom: 17px;
}

.akm-akr__step-head h3 {
    margin: 4px 0 6px;
    font-size: clamp(1.2rem, 2.7vw, 1.55rem);
    line-height: 1.25;
}

.akm-akr__step-head p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--akm-muted);
    font-size: .92rem;
    line-height: 1.42;
}

.akm-akr__step-number {
    color: var(--akm-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.akm-akr__field-label {
    display: block;
    max-width: 420px;
    margin: 0 auto 7px;
    font-weight: 800;
}

.akm-akr__date {
    display: block;
    width: min(100%, 420px);
    min-height: 50px;
    margin: 0 auto;
    padding: 9px 13px;
    border: 1px solid #aebbb2;
    border-radius: 10px;
    background: #fff;
    color: var(--akm-ink);
}

.akm-akr__date:focus {
    outline: 3px solid rgba(22, 131, 68, .15);
    border-color: var(--akm-green);
}

.akm-akr__error {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--akm-error);
    font-size: .88rem;
    font-weight: 700;
}

.akm-akr__course-grid,
.akm-akr__levy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
}

.akm-akr__choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 102px;
    padding: 13px 39px 13px 13px;
    overflow: hidden;
    border: 1.5px solid var(--akm-line);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.akm-akr__choice:hover {
    border-color: #9db7a6;
    transform: translateY(-1px);
}

.akm-akr__choice.is-selected {
    border-color: var(--akm-green);
    background: var(--akm-green-soft);
    box-shadow: 0 0 0 2px rgba(22, 131, 68, .1);
}

.akm-akr__choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.akm-akr__choice-body {
    display: flex;
    min-width: 0;
    width: 100%;
    flex-direction: column;
}

.akm-akr__choice-title {
    display: block;
    min-width: 0;
    font-size: .93rem;
    font-weight: 800;
    line-height: 1.27;
    overflow-wrap: anywhere;
    word-break: normal;
}

.akm-akr__price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: auto;
    padding-top: 9px;
}

.akm-akr__regular-price {
    color: var(--akm-muted);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.akm-akr__choice-price {
    display: block;
    color: var(--akm-green-dark);
    font-size: 1.18rem;
    line-height: 1.05;
    white-space: nowrap;
}

.akm-akr__choice-kicker {
    margin-bottom: 4px;
    color: var(--akm-green);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.akm-akr__choice small {
    display: block;
    margin-top: 7px;
    color: var(--akm-muted);
    font-size: .77rem;
    line-height: 1.32;
}

.akm-akr__check {
    position: absolute;
    top: 11px;
    right: 11px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #dfe8e2;
    color: transparent;
    font-size: .74rem;
    font-weight: 900;
}

.akm-akr__choice.is-selected .akm-akr__check {
    background: var(--akm-green);
    color: #fff;
}

.akm-akr__actions {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    background: none;
}

.akm-akr__actions--end {
    justify-content: flex-end;
    margin-top: 21px;
}

.akm-akr__button,
.akm-akr__booking {
    display: inline-flex;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    padding: 9px 17px;
    border: 0;
    border-radius: 9px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.akm-akr__button--primary,
.akm-akr__booking {
    background: var(--akm-green);
    color: #fff;
}

.akm-akr__button--primary:hover,
.akm-akr__button--primary:focus-visible,
.akm-akr__booking:hover,
.akm-akr__booking:focus-visible {
    background: var(--akm-green-dark);
    color: #fff;
}

.akm-akr__button--secondary {
    border: 1px solid var(--akm-line);
    background: #fff;
    color: var(--akm-ink);
}

.akm-akr__summary {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--akm-line);
    border-radius: 13px;
    background: #fff;
}

.akm-akr__summary-row,
.akm-akr__summary-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 11px 13px;
}

.akm-akr__summary-row:not(:last-child) {
    border-bottom: 1px solid var(--akm-line);
}

.akm-akr__summary-row > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.akm-akr__summary-row small {
    display: block;
    margin-top: 2px;
    color: var(--akm-muted);
    font-size: .72rem;
}

.akm-akr__summary-row strong {
    white-space: nowrap;
}

.akm-akr__summary-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 8px;
    text-align: right;
}

.akm-akr__summary-price del {
    color: var(--akm-muted);
    font-size: .78rem;
    white-space: nowrap;
}

.akm-akr__summary-total {
    padding: 14px;
    background: var(--akm-green-soft);
    font-weight: 900;
}

.akm-akr__summary-total strong {
    color: var(--akm-green-dark);
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    white-space: nowrap;
}

.akm-akr__cost-note {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #d9e6dc;
    border-radius: 10px;
    background: #f5faf7;
    color: var(--akm-muted);
    font-size: .8rem;
    line-height: 1.42;
}

.akm-akr__cost-note > * {
    margin-top: 0;
    margin-bottom: 6px;
}

.akm-akr__cost-note > *:last-child {
    margin-bottom: 0;
}

.akm-akr__booking {
    width: 100%;
    margin-top: 12px;
    min-height: 48px;
}

.akm-akr__actions--result {
    justify-content: center;
    margin-top: 12px;
}

.akm-akr__text-button {
    border: 0;
    background: transparent;
    color: var(--akm-green-dark);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.akm-akr__footer {
    display: block;
    clear: both;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--akm-line);
    color: var(--akm-muted);
    font-size: .7rem;
    line-height: 1.4;
}

.akm-akr__footer p {
    margin: 0 0 4px;
}

.akm-akr__footer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 620px) {
    .akm-akr {
        margin: 16px 0;
    }

    .akm-akr__shell {
        padding: 17px 12px;
        border-radius: 15px;
    }

    .akm-akr__intro,
    .akm-akr__step-head p {
        font-size: .87rem;
    }

    .akm-akr__progress {
        margin: 17px 0 18px;
    }

    .akm-akr__progress-item span {
        font-size: .61rem;
    }

    .akm-akr__course-grid,
    .akm-akr__levy-grid {
        gap: 8px;
    }

    .akm-akr__choice {
        min-height: 88px;
        padding: 12px 38px 12px 12px;
    }

    .akm-akr__choice-title {
        font-size: .9rem;
    }

    .akm-akr__actions {
        gap: 8px;
        margin-top: 15px;
    }

    .akm-akr__button {
        min-width: 0;
        flex: 1 1 0;
        padding-inline: 11px;
    }

    .akm-akr__summary-row,
    .akm-akr__summary-total {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .akm-akr__summary-price {
        justify-content: flex-start;
        text-align: left;
    }

    .akm-akr__summary-row strong,
    .akm-akr__summary-total strong {
        white-space: normal;
    }

    .akm-akr__actions--result {
        flex-direction: column;
    }

    .akm-akr__actions--result .akm-akr__button,
    .akm-akr__actions--result .akm-akr__text-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .akm-akr__course-grid,
    .akm-akr__levy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Lehrplan-Box – optisch passend zum Kostenrechner */
.akm-curriculum {
    --akm-green: #168344;
    --akm-green-dark: #0d6231;
    --akm-green-soft: #eaf7ef;
    --akm-ink: #17231c;
    --akm-muted: #5f6d64;
    --akm-line: #dce5df;
    position: relative;
    isolation: isolate;
    display: block;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    color: var(--akm-ink);
    font: inherit;
}

.akm-curriculum *,
.akm-curriculum *::before,
.akm-curriculum *::after {
    box-sizing: inherit;
}

.akm-curriculum__shell {
    display: flex;
    width: min(100%, 680px);
    max-width: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(18px, 3.3vw, 30px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--akm-line);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #f7faf8 100%);
    box-shadow: 0 14px 38px rgba(20, 54, 34, .09);
}

.akm-curriculum__header {
    text-align: center;
}

.akm-curriculum__eyebrow {
    margin: 0 0 6px;
    color: var(--akm-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.akm-curriculum__title {
    margin: 0;
    color: var(--akm-ink);
    font-size: clamp(1.5rem, 3.5vw, 2.05rem);
    line-height: 1.15;
}

.akm-curriculum__intro {
    max-width: 580px;
    margin: 9px auto 0;
    color: var(--akm-muted);
    font-size: .94rem;
    line-height: 1.45;
}

.akm-curriculum__intro > * {
    margin-top: 0;
    margin-bottom: 8px;
}

.akm-curriculum__intro > *:last-child {
    margin-bottom: 0;
}

.akm-curriculum__list {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.akm-curriculum__item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--akm-line);
    border-radius: 12px;
    background: #fff;
}

.akm-curriculum__number,
.akm-curriculum__check {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 900;
}

.akm-curriculum__number {
    width: 30px;
    height: 30px;
    background: var(--akm-green-soft);
    color: var(--akm-green-dark);
    font-size: .8rem;
}

.akm-curriculum__check {
    width: 24px;
    height: 24px;
    background: var(--akm-green);
    color: #fff;
    font-size: .75rem;
}

.akm-curriculum__item-text {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--akm-ink);
    font-size: .91rem;
    font-weight: 750;
    line-height: 1.32;
}

.akm-curriculum__practice {
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid #d1e5d7;
    border-radius: 11px;
    background: var(--akm-green-soft);
    color: #365442;
    font-size: .82rem;
    line-height: 1.45;
}

.akm-curriculum__practice > * {
    margin-top: 0;
    margin-bottom: 6px;
}

.akm-curriculum__practice > *:last-child {
    margin-bottom: 0;
}

.akm-curriculum__link {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--akm-green);
    color: #fff !important;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: background .16s ease, transform .16s ease;
}

.akm-curriculum__practice + .akm-curriculum__link {
    margin-top: 12px;
}

.akm-curriculum__link:hover,
.akm-curriculum__link:focus {
    background: var(--akm-green-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Garantiert passende Höhen, wenn Rechner und Lehrplan gemeinsam ausgegeben werden. */
.akm-akr-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
    max-width: 1240px;
    margin: 22px auto;
    align-items: stretch;
}

.akm-akr-pair > .akm-akr,
.akm-akr-pair > .akm-curriculum {
    min-width: 0;
    height: 100%;
    margin: 0;
}

.akm-akr-pair .akm-akr__shell,
.akm-akr-pair .akm-curriculum__shell {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
}

@media (max-width: 980px) {
    .akm-akr-pair {
        grid-template-columns: minmax(0, 1fr);
        max-width: 680px;
    }

    .akm-akr-pair > .akm-akr,
    .akm-akr-pair > .akm-curriculum {
        height: auto;
    }
}

@media (max-width: 620px) {
    .akm-curriculum {
        margin: 16px 0;
    }

    .akm-curriculum__shell {
        padding: 17px 12px;
        border-radius: 15px;
    }

    .akm-curriculum__intro {
        font-size: .87rem;
    }

    .akm-curriculum__list {
        margin-top: 17px;
        gap: 7px;
    }

    .akm-curriculum__item {
        grid-template-columns: 27px minmax(0, 1fr) 22px;
        gap: 8px;
        min-height: 50px;
        padding: 9px 10px;
        border-radius: 10px;
    }

    .akm-curriculum__number {
        width: 27px;
        height: 27px;
        font-size: .75rem;
    }

    .akm-curriculum__check {
        width: 22px;
        height: 22px;
        font-size: .7rem;
    }

    .akm-curriculum__item-text {
        font-size: .86rem;
    }

    .akm-akr-pair {
        margin: 16px auto;
    }
}
