@import url('./constants.css');

.accordion {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: auto;
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
}
.accordion-headline {
    margin-top: 30px;
    font-size: 22px;
    text-align: center;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--color-red);
}
.accordion-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-direction: column;
    transition: background 0.3s;
}
.accordion-item.extensible:hover {
    background: #e0f0ff;
    cursor: pointer;
}
.accordion-item::before {
    display: none;
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-red);
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    z-index: 1;
}
.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.accordion-content {
    flex: 1;
}
.accordion-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}
.accordion-description {
    font-size: .9em;
    color: #666;
}
.accordion-details {
    display: none;
    margin-top: 10px;
    font-size: .9em;
    color: #444;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}
.accordion-item.active .accordion-details {
    display: block;
}
.toggle-indicator {
    font-size: 18px;
    color: var(--color-red);
    transition: transform 0.3s;
}
.accordion-item.active .toggle-indicator {
    transform: rotate(180deg);
}