.companyContainer {
    margin-top: 40px;
    margin-bottom: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 0 20px;
}

.companyBanner {
    width: 100%;
    height: 50dvh;
    min-height: 280px;

    background-image: url("/public/media/pictures/company.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 20px 0 60px;
    box-sizing: border-box;
}

/* Durchgehende Mittellinie des Zeitstrahls */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 50px;
    left: 50%;
    width: 4px;
    background: var(--blue);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Auslaufende gestrichelte Linie am Ende */
.timeline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 55px;
    border-left: 4px dashed var(--blue);
    transform: translateX(-50%);
}

/* Einzelner Timeline-Eintrag */
.timelineItem {
    position: relative;
    width: 50%;
    padding: 20px 45px;
    box-sizing: border-box;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

/* Linke Einträge (ungerade) */
.timelineItem:nth-child(odd) {
    left: -4px;
    justify-content: flex-end;
    text-align: right;
}

/* Rechte Einträge (gerade) */
.timelineItem:nth-child(even) {
    left: calc(50% + 4px);
    justify-content: flex-start;
    text-align: left;
}

/* Runder Icon-Knoten auf der Zeitstrahllinie */
.timelineIcon {
    position: absolute;
    top: 50%;
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    border: 4px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timelineItem:nth-child(odd) .timelineIcon {
    right: -36px;
    transform: translateY(-50%);
}

.timelineItem:nth-child(even) .timelineIcon {
    left: -36px;
    transform: translateY(-50%);
}

.timelineItem:hover .timelineIcon {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 77, 128, 0.35);
    border-color: var(--blue);
}

.timelineIcon img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.timelineItem:hover .timelineIcon img {
    transform: scale(1.08);
}

/* Inhalts-Karte */
.timelineContent {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 24px 28px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timelineItem:hover .timelineContent {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Kleine Verbindungspfeile von den Karten zum Icon */
.timelineItem:nth-child(odd) .timelineContent::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #ffffff;
}

.timelineItem:nth-child(even) .timelineContent::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffffff;
}

.timelineContent h2 {
    margin: 0 0 10px 0;
    color: var(--blue);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.timelineContent h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--blue);
    border-radius: 2px;
}

.timelineItem:nth-child(odd) .timelineContent h2::after {
    right: 0;
}

.timelineItem:nth-child(even) .timelineContent h2::after {
    left: 0;
}

.timelineContent p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Responsives Design für Mobilgeräte & Tablets */
@media screen and (max-width: 768px) {
    .timeline {
        padding: 10px 0 40px;
    }

    .timeline::before {
        left: 32px;
        transform: none;
    }

    .timeline::after {
        left: 32px;
        transform: none;
    }

    .timelineItem {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 10px;
        justify-content: flex-start !important;
        text-align: left !important;
        margin-bottom: 30px;
    }

    .timelineIcon {
        left: 0 !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        width: 56px;
        height: 56px;
    }

    .timelineItem:hover .timelineIcon {
        transform: translateY(-50%) scale(1.1) !important;
    }

    .timelineIcon img {
        height: 32px;
        width: 32px;
    }

    .timelineContent {
        max-width: 100%;
        padding: 20px;
    }

    .timelineItem:nth-child(odd) .timelineContent::after,
    .timelineItem:nth-child(even) .timelineContent::after {
        right: auto;
        left: -10px;
        border-left: none;
        border-right: 10px solid #ffffff;
    }

    .timelineItem:nth-child(odd) .timelineContent h2::after,
    .timelineItem:nth-child(even) .timelineContent h2::after {
        right: auto;
        left: 0;
    }

    .timelineContent h2 {
        font-size: 1.5rem;
    }

    .timelineContent p {
        font-size: 1rem;
    }
}

/* Bereich unterhalb der Timeline (Firmentext & Bild) */
.companyPicture {
    width: 100%;
    height: auto;
}

.companyText {
    margin-top: 60px;
    overflow: hidden;
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;

    font-size: 0.8rem;
}

.companyText p {
    margin: 16px 0;
    color: #334155;
    padding-right: 35px;
    padding-left: 35px;
}

.companyText > p:first-of-type {
    color: var(--darkGray);
    font-size: 1.5em;
    font-weight: bold;
}

