/* ------------------------------ general stuff ----------------------------- */

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-weight: 500;
    margin: 20px 0;
}

h1 {
    font-size: 36px;
}

h6 {
    font-size: 16px;
}

hr {
    margin: 40px 0px;
    height: 1px;
    border: 0;
    border-top: 2px solid #C7C8C9;
}

div#content {
    width: min(95%, 1200px);
    margin: 0 auto;
}

/* --------------------------- Basisinformationen --------------------------- */

.basis-infos__button {
    font-size: 16px;
    color: white;
    background-color: #6C757D;
    border-radius: 5px;
    padding: 10px;
    display: block;
    margin: 20px auto;
    border: none;
}

.basis-infos__collapsible {
    margin: 20px 0px 40px;
    border: 1px #DFDFDF transparent;
    border-radius: 3px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    text-align: center;
    word-wrap: break-word;
    line-height: 24px;
}

.basis-infos__info {
    color: #777777;
    border: 3px #777777 solid;
    padding: 10px;
    margin: 16px;
}

.basis-infos__info br {
    content: " ";
    display: block;
}

.basis-infos__heading {
    font-size: 30px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}


/* ------------------------- Timeline content nodes ------------------------- */

.timeline__heading {
    text-align: left;
    font-size: 24px;
    margin: 0;
    margin-bottom: 10px;
}

.timeline__date {
    font-size: 18px;
    font-weight: 500;
    font-family: poppins;
    color: #ff3636;
}

.timeline__content {
    border: 2px solid #333333;
    box-sizing: border-box;
    background-color: #fff;
    width: 45%;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
    position: relative;

    p {
        margin-top: 10px;
    }
}

.timeline__news {
    border: 2px solid #ff3636;
}

.timeline__future {
    border: 2px solid #dfdfde;
}

/* slight modifications to ul, e.g. for listing Ausschüsse / Beschlüsse */
.timeline__content ul {
    list-style: square; 
    margin-left: 20px; 
    padding: 0;
}


/* ----------------------------- Timeline itself ---------------------------- */

.timeline {
    position: relative;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

/* vertical timeline-line */
.timeline::before {
    position: absolute;
    content: "";
    width: 2px;
    background-color: #ff3636;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: growline 4s linear forwards;
    height: 0;
}

/* animate vertical timeline */
@keyframes growline {
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.timeline__node {
    position: relative;
    margin-bottom: 10px;
    overflow:hidden; 
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Slightly shifted down */
    transition: opacity 0.3s ease-in, transform 0.3s ease-in; /* Smooth animation */
}

/* added via js */
.timeline__node.visible {
    opacity: 1;
    transform: translateY(0); /* Moves into place */
}

.timeline__node:nth-child(odd) .timeline__content {
    float: left;
}
.timeline__node:nth-child(even) .timeline__content{
    float: right;
}

/* red dot on timeline */
.timeline__node::before {
    position: absolute;
    content: "";
    width: 25px;
    height: 25px;
    background-color: #ff3636;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.timeline__node.visible:before {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Move all timeline content to the left */
    .timeline__content {
        float: left !important;
        text-align: left !important;
        width: calc(100% - 40px);
        box-sizing: border-box;
        margin-bottom: 30px; /* Add spacing between items */
        margin-left: 35px;
        margin-right: 20px;
    }

    /* Adjust timeline line position */
    .timeline::before {
        left: 13px; /* Ensure the line is visible to the left */
        background-color: #ff3636;
    }

    /* Adjust dots position */
    .timeline__node::before {
        left: 13px; /* Align dots with the timeline line */
        top: 50%; /* Center the dots vertically relative to the item */
    }
}
