.com-zeitachse {
    --zeitachse-color: #1C5AA6;
    --zeitachse-date-size: 23px;
    --zeitachse-title-size: 22px;
    --zeitachse-title-weight: 700;
    --zeitachse-text-size: 20px;
    --zeitachse-text-weight: 400;
    --zeitachse-padding-top: 22px;
    --zeitachse-padding-right: 30px;
    --zeitachse-padding-bottom: 5px;
    --zeitachse-padding-left: 30px;
    --zeitachse-item-gap: 20px;
    width: 100%;
    margin: 0 0 40px;
    color: inherit;
}


.com-zeitachse__intro {
    margin: 0 0 36px;
}

.com-zeitachse__timeline {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 0 0;
    box-sizing: border-box;
}

.com-zeitachse__timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: var(--zeitachse-color);
}

.com-zeitachse__item {
    position: relative;
    display: grid;
    grid-template-columns: calc(50% - 45px) 90px calc(50% - 45px);
    align-items: start;
    width: 100%;
    margin: 0 0 var(--zeitachse-item-gap);
    box-sizing: border-box;
}

.com-zeitachse__item:last-child {
    margin-bottom: 0;
}

.com-zeitachse__card {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: var(--zeitachse-padding-top) var(--zeitachse-padding-right) var(--zeitachse-padding-bottom) var(--zeitachse-padding-left);
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
    text-align: left;
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__card {
    grid-column: 1;
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__card {
    grid-column: 3;
}

/* White speech-bubble tip with the same fine grey outline as the card. */
.com-zeitachse__card::before,
.com-zeitachse__card::after {
    content: "";
    position: absolute;
    top: 37px;
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__card::before {
    right: -14px;
    border-width: 13px 0 13px 14px;
    border-color: transparent transparent transparent #d9d9d9;
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__card::after {
    right: -12px;
    border-width: 12px 0 12px 13px;
    border-color: transparent transparent transparent #fff;
    top: 38px;
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__card::before {
    left: -14px;
    border-width: 13px 14px 13px 0;
    border-color: transparent #d9d9d9 transparent transparent;
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__card::after {
    left: -12px;
    border-width: 12px 13px 12px 0;
    border-color: transparent #fff transparent transparent;
    top: 38px;
}

.com-zeitachse__dot {
    position: absolute;
    z-index: 2;
    top: 35px;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translateX(-50%);
    border: 4px solid var(--zeitachse-color);
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.com-zeitachse__connector {
    position: absolute;
    z-index: 1;
    top: 49px;
    width: 45px;
    height: 3px;
    background: var(--zeitachse-color);
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__connector {
    left: calc(50% + 14px);
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__connector {
    right: calc(50% + 14px);
}

.com-zeitachse__date {
    padding-top: 33px;
    color: inherit;
    font-size: var(--zeitachse-date-size);
    line-height: 1.35;
    font-weight: 400;
    white-space: nowrap;
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__date {
    grid-column: 3;
    padding-left: 22px;
    text-align: left;
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__date {
    grid-column: 1;
    grid-row: 1;
    padding-right: 22px;
    text-align: right;
}

.com-zeitachse__item-title {
    margin: 0 0 14px;
    font-size: var(--zeitachse-title-size);
    line-height: 1.35;
    font-weight: var(--zeitachse-title-weight);
}

.com-zeitachse__item:nth-child(odd) .com-zeitachse__item-title {
    text-align: right;
}

.com-zeitachse__item:nth-child(even) .com-zeitachse__item-title {
    text-align: left;
}

.com-zeitachse__text {
    font-size: var(--zeitachse-text-size);
    line-height: 1.55;
    font-weight: var(--zeitachse-text-weight);
}

/* Respect the explicit alignment selected in the Joomla editor, even if
   the active site template contains its own paragraph alignment rules. */
.com-zeitachse [style*="text-align: left"] { text-align: left !important; }
.com-zeitachse [style*="text-align: right"] { text-align: right !important; }
.com-zeitachse [style*="text-align: center"] { text-align: center !important; }
.com-zeitachse [style*="text-align: justify"] { text-align: justify !important; }
.com-zeitachse [style*="text-align: start"] { text-align: start !important; }
.com-zeitachse [style*="text-align: end"] { text-align: end !important; }

.com-zeitachse__text > :first-child,
.com-zeitachse__intro > :first-child {
    margin-top: 0;
}

.com-zeitachse__text > :last-child,
.com-zeitachse__intro > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .com-zeitachse__intro {
        margin-bottom: 28px;
    }

    .com-zeitachse__timeline {
        max-width: none;
        padding: 12px 0 0 46px;
    }

    .com-zeitachse__timeline::before {
        top: 12px;
        bottom: 0;
        left: 15px;
        transform: none;
    }

    .com-zeitachse__item,
    .com-zeitachse__item:nth-child(odd),
    .com-zeitachse__item:nth-child(even) {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 0 var(--zeitachse-item-gap);
    }

    .com-zeitachse__date,
    .com-zeitachse__item:nth-child(odd) .com-zeitachse__date,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__date {
        order: 1;
        padding: 0 0 10px;
        font-size: var(--zeitachse-date-size);
        text-align: left;
    }

    .com-zeitachse__card,
    .com-zeitachse__item:nth-child(odd) .com-zeitachse__card,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__card {
        order: 2;
        width: 100%;
        min-height: 0;
        padding: var(--zeitachse-padding-top) var(--zeitachse-padding-right) var(--zeitachse-padding-bottom) var(--zeitachse-padding-left);
    }

    .com-zeitachse__dot {
        top: 0;
        left: -31px;
        width: 26px;
        height: 26px;
        transform: none;
        border-width: 4px;
    }

    .com-zeitachse__connector,
    .com-zeitachse__item:nth-child(odd) .com-zeitachse__connector,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__connector {
        top: 12px;
        left: -6px;
        right: auto;
        width: 27px;
        height: 3px;
    }

    .com-zeitachse__card::before,
    .com-zeitachse__card::after {
        top: 18px;
    }

    .com-zeitachse__item:nth-child(odd) .com-zeitachse__card::before,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__card::before {
        left: -14px;
        right: auto;
        border-width: 13px 14px 13px 0;
        border-color: transparent #d9d9d9 transparent transparent;
    }

    .com-zeitachse__item:nth-child(odd) .com-zeitachse__card::after,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__card::after {
        top: 19px;
        left: -12px;
        right: auto;
        border-width: 12px 13px 12px 0;
        border-color: transparent #fff transparent transparent;
    }

    .com-zeitachse__item-title,
    .com-zeitachse__item:nth-child(odd) .com-zeitachse__item-title,
    .com-zeitachse__item:nth-child(even) .com-zeitachse__item-title {
        margin-bottom: 10px;
        font-size: var(--zeitachse-title-size);
        text-align: left;
    }

    .com-zeitachse__text {
        font-size: var(--zeitachse-text-size);
        line-height: 1.55;
        font-weight: var(--zeitachse-text-weight);
    }
}
