/* Container für die gesamte vertikale Timeline */
.tm-vertical-timeline {
    position: relative;
    width: 90%;
    margin: 50px auto;
    padding: 20px 0;
}

/* Vertikale Mittellinie */
.tm-vertical-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ccc;
    transform: translateX(-50%);
    z-index: 0;
}

/* Zeile für jedes Timeline-Event */
.tm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0;
}

/* Timeline-Inhaltsspalte */
.tm-col {

    position: relative;
    width: 45%;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Linke Spalte */
.tm-col-left {
    margin-right: 30px;
    background-color: #e0f7fa;
}

/* Rechte Spalte */
.tm-col-right {
    margin-left: 30px;
    background-color: #fff3e0;
}

/* Pseudo-Triangle für die linke Spalte */
.tm-col-left::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent #e0f7fa transparent transparent;
    transform: translateY(-50%);
}

/* Pseudo-Triangle für die rechte Spalte */
.tm-col-right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #fff3e0;
    transform: translateY(-50%);
}

/* Hover-Effekt auf den Inhalt */
.tm-col:hover {
    transform: scale(1.02);
}

/* Hervorhebung des Dreiecks beim Hover */
.tm-col-left:hover::before {
    border-color: transparent #333 transparent transparent;
}
.tm-col-right:hover::after {
    border-color: transparent transparent transparent #333;
}

/* Zentrale Spalte für Datum/Uhrzeit */
.tm-center {
	margin-left: 30px;
	margin-right: 30px;
    width: 80px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* Pfeile für die Mitte */
/* Pfeil nach links */
.tm-arrow-left {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: -20px;
    border-top: 10px solid blue; /* Oben transparent */
    border-bottom: 10px solid transparent; /* Unten transparent */
    border-right: 10px solid transparent; /* Pfeil nach rechts */
    border-left: 10px solid transparent; /* Pfeil nach links */
    transform: translateY(-50%) rotate(90deg); /* Drehe den Pfeil um 90 Grad nach rechts */
    z-index: 100;
}

/* Pfeil nach rechts */
.tm-arrow-right {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    right: -20px;
    border-top: 10px solid blue; /* Oben transparent */
    border-bottom: 10px solid transparent; /* Unten transparent */
    border-right: 10px solid transparent; /* Pfeil nach rechts */
    border-left: 10px solid transparent; /* Pfeil nach links */
    transform: translateY(-50%) rotate(-90deg); /* Drehe den Pfeil um -90 Grad nach links */
    z-index: 100;
}

/* Pfeil nach unten */
.tm-arrow-middle {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(180deg); /* Drehe den Pfeil nach unten */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid red; /* Pfeil nach unten */
    z-index: 100;
}


/* Responsive Verhalten */
@media (max-width: 768px) {
    .tm-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-col,
    .tm-center {
        width: 100%;
        margin: 5px 0;
        text-align: left;
    }

    .tm-center {
        text-align: center;
    }

    /* Dreiecke auf kleinen Bildschirmen ausblenden */
    .tm-col-left::before,
    .tm-col-right::after {
        display: none;
    }

    /* Pfeile auf kleinen Bildschirmen ausblenden */
    .tm-arrow-left, .tm-arrow-right, .tm-arrow-middle {
        display: none;
    }
}
