/* =========================================================
   Unterseite - Gründungsgeschichte - Zeitstrahl
   ---------------------------------------------------------
   Zweck:
   Visualisiert die Geschichte der AöL als interaktiven
   Zeitstrahl mit abwechselnder Anordnung links/rechts.
   Alle Rows mit der Klasse .zeitstrahl werden automatisch
   als Timeline-Items dargestellt.
   ---------------------------------------------------------
   Dateiname: page-gruendungsgeschichte-zeitstrahl.css
   Ort: /custom/css/unterseiten/page-gruendungsgeschichte-zeitstrahl.css
   Autor: Wimmer IT-Services
   ========================================================= */


/* ---------------------------------------------
   ZEITSTRAHL WRAPPER - ZENTRALE LINIE
   --------------------------------------------- */

.zeitstrahl-ueberschrift h2,
.zeitstrahl-ueberschrift .column_container p {
    text-align: center !important;
}

/* Container für die zentrale Linie - wird durch JS hinzugefügt */
.zeitstrahl-wrapper {
    position: relative;
}

/* Zentrale vertikale Linie - HINTER den Kreisen */
.zeitstrahl-wrapper::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(84, 174, 49, 0) 0%,
        rgba(84, 174, 49, 1) 5%,
        rgba(84, 174, 49, 1) 95%,
        rgba(84, 174, 49, 0) 100%
    );
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
    z-index: 0;
}


/* ---------------------------------------------
   ZEITSTRAHL ITEMS - GRUNDSTRUKTUR
   --------------------------------------------- */
.zeitstrahl {
    position: relative !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-bottom: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Spalten innerhalb der Zeitstrahl-Items */
.zeitstrahl .row_col_wrap_12 {
    display: flex !important;
    flex-direction: column !important; /* Vertikal: Bild über Text */
    align-items: flex-start !important;
    position: relative;
    width: 46% !important;
    margin: 0 !important;
    z-index: 5;
    background-color: #fff !important;
    border-radius: 15px !important;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important; */
    transition: all 0.3s ease !important;
    padding: 20px !important;
    gap: 20px !important;
    overflow: hidden !important;
}

.zeitstrahl:hover .row_col_wrap_12 {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important; */
}


/* ---------------------------------------------
   ABWECHSELNDE ANORDNUNG
   --------------------------------------------- */

/* GERADE ITEMS (2., 4., 6., ...) - LINKS VOM STRAHL = RECHTSBÜNDIG */
.zeitstrahl:nth-of-type(even) .row_col_wrap_12 {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-items: flex-end !important; /* Rechtsbündig */
}

/* UNGERADE ITEMS (1., 3., 5., ...) - RECHTS VOM STRAHL = LINKSBÜNDIG */
.zeitstrahl:nth-of-type(odd) .row_col_wrap_12 {
    margin-left: auto !important;
    margin-right: 0 !important;
    align-items: flex-start !important; /* Linksbündig */
}


/* ---------------------------------------------
   KREISPUNKTE AUF DER LINIE
   --------------------------------------------- */
.zeitstrahl::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #54ae31;
    border: 5px solid #fff;
    border-radius: 50%;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(84, 174, 49, 0.2);
    transition: all 0.3s ease;
}

/* Hover-Effekt für Kreispunkte */
.zeitstrahl:hover::after {
    background-color: #3d8a23;
    box-shadow: 0 0 0 6px rgba(84, 174, 49, 0.3);
    transform: translateX(-50%) scale(1.15);
}


/* ---------------------------------------------
   CONTENT-BOXEN
   --------------------------------------------- */
.zeitstrahl .vc_col-sm-4,
.zeitstrahl .vc_col-sm-8 {
    background-color: transparent !important;
    position: relative;
    z-index: 5;
    padding: 0 !important;
}

/* Column-Inner transparent machen */
.zeitstrahl .vc_column-inner {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* ---------------------------------------------
   BILDER IM ZEITSTRAHL
   --------------------------------------------- */
.zeitstrahl .vc_col-sm-4 {
    display: flex !important;
    width: 100% !important;
    max-width: 500px !important; /* Maximale Bildbreite */
    order: 1 !important; /* Bild immer zuerst */
}

.zeitstrahl .img-with-aniamtion-wrap {
    margin-bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
}

.zeitstrahl .img-with-aniamtion-wrap .inner,
.zeitstrahl .img-with-aniamtion-wrap .hover-wrap,
.zeitstrahl .img-with-aniamtion-wrap .hover-wrap-inner {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
}

.zeitstrahl .img-with-aniamtion-wrap img {
    border-radius: 10px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
}


/* ---------------------------------------------
   TEXT-SPALTE
   --------------------------------------------- */
.zeitstrahl .vc_col-sm-8 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 500px !important; /* Text maximal so breit wie Bild */
    order: 2 !important; /* Text immer nach dem Bild */
}

.zeitstrahl .vc_col-sm-8 .wpb_wrapper {
    width: 100% !important;
}

/* Text rechtsbündig bei geraden Items (links vom Strahl) */
.zeitstrahl:nth-of-type(even) .vc_col-sm-8 {
    align-items: flex-end !important;
    text-align: right !important;
}

/* Text linksbündig bei ungeraden Items (rechts vom Strahl) */
.zeitstrahl:nth-of-type(odd) .vc_col-sm-8 {
    align-items: flex-start !important;
    text-align: left !important;
}


/* ---------------------------------------------
   TYPOGRAFIE
   --------------------------------------------- */
.zeitstrahl h3 {
    margin-top: 0 !important;
    color: #54ae31 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

.zeitstrahl p {
    margin-bottom: 0 !important;
    line-height: 1.7 !important;
    color: #636363 !important;
    font-size: 16px !important;
    width: 100% !important;
}

.zeitstrahl a {
    color: #54ae31 !important;
    text-decoration: underline !important;
}

.zeitstrahl a:hover {
    color: #3d8a23 !important;
}


/* ---------------------------------------------
   ANIMATION BEIM SCROLLEN
   --------------------------------------------- */
.zeitstrahl {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.zeitstrahl.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------
   RESPONSIVE DESIGN - DESKTOP (unter 1400px)
   --------------------------------------------- */
@media screen and (max-width: 1399px) {
    .zeitstrahl h3 {
        font-size: 22px !important;
    }
}


/* ---------------------------------------------
   RESPONSIVE DESIGN - SMALL DESKTOP (unter 1200px)
   --------------------------------------------- */
@media screen and (max-width: 1199px) {
    .zeitstrahl .row_col_wrap_12 {
        padding: 18px !important;
        gap: 18px !important;
    }
    
    .zeitstrahl .vc_col-sm-4 {
        max-width: 400px !important; /* Kleinere max-width */
    }
    
    .zeitstrahl .vc_col-sm-8 {
        max-width: 400px !important; /* Text folgt Bildbreite */
    }
}

/* ---------------------------------------------
   RESPONSIVE DESIGN - TABLET (unter 999px)
   --------------------------------------------- */
@media screen and (max-width: 999px) {
    .zeitstrahl-ueberschrift h2,
    .zeitstrahl-ueberschrift .column_container p {
        text-align: left !important;
    }

    .zeitstrahl-wrapper .col, body .vc_row-fluid .wpb_column {
        margin-bottom: 0px !important;
    }

    .zeitstrahl .column_container .wpb_content_element {
         margin-top: 10px !important;
    }

    /* Zentrale Linie nach links verschieben */
    .zeitstrahl-wrapper::before {
        left: 40px !important;
        margin-left: 0 !important;
    }
    
    .zeitstrahl::after {
        left: 40px !important;
        transform: translateX(-50%);
        top: 40px !important;
    }
    
    /* Alle Items linksbündig */
    .zeitstrahl .row_col_wrap_12 {
        width: calc(100% - 80px) !important;
        margin-left: 80px !important;
        margin-right: 0 !important;
        align-items: flex-start !important;
        /* padding: 15px !important; */
        /* gap: 12px !important; */
    }
    
    .zeitstrahl:nth-of-type(even) .row_col_wrap_12,
    .zeitstrahl:nth-of-type(odd) .row_col_wrap_12 {
        margin-left: 80px !important;
        margin-right: 0 !important;
        align-items: flex-start !important;
    }
    
    /* Text auf Tablet/Mobile immer linksbündig */
    .zeitstrahl:nth-of-type(even) .vc_col-sm-8,
    .zeitstrahl:nth-of-type(odd) .vc_col-sm-8 {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .zeitstrahl .vc_col-sm-4 {
        max-width: 100% !important; /* Volle Breite auf Tablet */
    }
    
    .zeitstrahl .vc_col-sm-8 {
        max-width: 100% !important; /* Text volle Breite auf Tablet */
    }
}


/* ---------------------------------------------
   RESPONSIVE DESIGN - MOBILE (unter 768px)
   --------------------------------------------- */
@media screen and (max-width: 768px) {
    .zeitstrahl-wrapper::before {
        left: 25px !important;
    }
    
    .zeitstrahl::after {
        left: 25px !important;
        width: 24px;
        height: 24px;
        transform: translateX(-50%);
    }
    
    .zeitstrahl .row_col_wrap_12 {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        padding: 12px !important; /* Noch kleineres Padding */
        gap: 10px !important; /* Noch kleinerer Gap */
    }
    
    .zeitstrahl:nth-of-type(even) .row_col_wrap_12,
    .zeitstrahl:nth-of-type(odd) .row_col_wrap_12 {
        margin-left: 60px !important;
    }
    
    .zeitstrahl h3 {
        font-size: 20px !important;
    }
    
    .zeitstrahl p {
        font-size: 15px !important;
    }
}


/* ---------------------------------------------
   SEHR KLEINE BILDSCHIRME (unter 480px)
   --------------------------------------------- */
@media screen and (max-width: 480px) {
    .zeitstrahl-wrapper::before {
        left: 20px !important;
    }
    
    .zeitstrahl::after {
        left: 20px !important;
        width: 20px;
        height: 20px;
        transform: translateX(-50%);
        top: 35px !important;
    }
    
    .zeitstrahl .row_col_wrap_12 {
        width: calc(100% - 50px) !important;
        margin-left: 50px !important;
        padding: 10px !important; /* Minimales Padding */
        gap: 8px !important; /* Minimaler Gap */
    }
    
    .zeitstrahl:nth-of-type(even) .row_col_wrap_12,
    .zeitstrahl:nth-of-type(odd) .row_col_wrap_12 {
        margin-left: 50px !important;
    }
    
    .zeitstrahl h3 {
        font-size: 18px !important;
    }
    
    .zeitstrahl p {
        font-size: 14px !important;
    }
}


/* ---------------------------------------------
   SPEZIELLE ANPASSUNGEN
   --------------------------------------------- */

/* Entfernt Standard-Padding der WordPress-Container */
.zeitstrahl.wpb_row {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Verhindert Overflow */
body .zeitstrahl {
    overflow: visible !important;
}