.ksb-bildung-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.ksb-bildung-card {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.ksb-bildung-card--unavailable {
    background: #fcfcfd;
}

.ksb-bildung-card__header,
.ksb-bildung-card__footer {
    background: #e9e9e9;
}

.ksb-bildung-card__header {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: .7rem .85rem;
}

.ksb-bildung-card__badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    min-width: 0;
}

.ksb-bildung-card__date {
    color: #333;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.ksb-bildung-card__date::before {
    content: "";
    border: 2px solid currentColor;
    border-radius: 3px;
    display: inline-block;
    height: .72rem;
    margin-right: .35rem;
    position: relative;
    top: .12rem;
    width: .72rem;
}

.ksb-bildung-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem .85rem 1.15rem;
}

.ksb-bildung-card__title {
    color: #050505;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 .9rem;
}

.ksb-bildung-card__facts {
    display: grid;
    gap: .6rem;
    margin: 0 0 .75rem;
}

.ksb-bildung-card__facts div {
    display: grid;
    gap: .25rem;
    grid-template-columns: minmax(7rem, .75fr) minmax(0, 1fr);
}

.ksb-bildung-card__facts dt {
    color: #2b2f33;
    font-size: .86rem;
    font-weight: 800;
}

.ksb-bildung-card__facts dd {
    color: #3f4348;
    font-size: .86rem;
    margin: 0;
}

.ksb-bildung-badge {
    background: #fff;
    border: 2px solid #5f78ff;
    border-radius: 4px;
    color: #050505;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    padding: .32rem .42rem;
    text-decoration: none;
}

.ksb-bildung-badge::before {
    content: "!";
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    font-size: .58rem;
    height: .72rem;
    justify-content: center;
    margin-right: .28rem;
    width: .72rem;
}

.ksb-bildung-badge--cancelled {
    border-color: #d63b4a;
}

.ksb-bildung-badge--bookable {
    border-color: #2f8f5b;
}

.ksb-bildung-badge--bookable:hover,
.ksb-bildung-badge--bookable:focus {
    color: #050505;
    text-decoration: none;
}

.ksb-bildung-card__description {
    color: #1f2937;
}

.ksb-bildung-card__description p:last-child {
    margin-bottom: 0;
}

.ksb-bildung-accordion__panel {
    border-top: 1px solid #eaecf0;
    margin-top: .45rem;
    padding-top: .55rem;
}

.ksb-bildung-accordion__panel[hidden] {
    display: none;
}

.ksb-bildung-accordion__panel .ksb-bildung-card__description {
    margin-top: .5rem;
}

.ksb-bildung-dates {
    display: grid;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ksb-bildung-dates li {
    background: #fcfcfd;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    display: grid;
    gap: .15rem;
    font-size: .84rem;
    padding: .5rem;
}

.ksb-bildung-dates span {
    color: #475467;
}

.ksb-bildung-card__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-start;
    margin-top: auto;
    min-height: 3rem;
    padding: .7rem .85rem;
}

.ksb-bildung-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    width: 100%;
}

.ksb-bildung-card__action {
    appearance: none;
    background: transparent;
    border: 0;
    color: #2b2f33;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.2;
    padding: .15rem 0;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.ksb-bildung-card__action:hover,
.ksb-bildung-card__action:focus {
    color: #000;
}

.ksb-bildung-card__action:focus {
    outline: 2px solid #5f78ff;
    outline-offset: 3px;
}

.ksb-bildung-card__action::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: .92rem;
    margin-right: .35rem;
    width: .92rem;
}

.ksb-bildung-card__action--dates::before {
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: inset 0 .22rem 0 currentColor;
}

.ksb-bildung-card__action--content::before {
    background:
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.7px) .18rem .5rem / .25rem .25rem no-repeat,
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.7px) .43rem .5rem / .25rem .25rem no-repeat,
        radial-gradient(circle, currentColor 0 1.5px, transparent 1.7px) .68rem .5rem / .25rem .25rem no-repeat;
    border: 2px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 .22rem 0 #e9e9e9;
}

.ksb-bildung-card__action--details::before {
    content: "i";
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    font-size: .58rem;
    font-weight: 800;
    height: .72rem;
    justify-content: center;
    margin-right: .35rem;
    width: .72rem;
}

.ksb-bildung-card__action--details {
    margin-left: auto;
}

@media (max-width: 24rem) {
    .ksb-bildung-card__action--details {
        margin-left: 0;
    }
}

.ksb-bildung-empty {
    border-left: 4px solid #5f78ff;
    padding-left: .75rem;
}

@media (max-width: 42rem) {
    .ksb-bildung-list {
        gap: 1rem;
    }

    .ksb-bildung-card__header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .ksb-bildung-card__date {
        text-align: left;
        white-space: normal;
    }

    .ksb-bildung-card__facts div {
        grid-template-columns: 1fr;
    }
}
