/* Historie / Zeitstrahl */

.historyHero {
    background-color: hsl(0 0% 20%);
    color: white;
    padding: 120px 0 44px;
}

@media (min-width: 1001px) {
    .historyHero {
        padding-top: 150px;
    }
}

.historyHeroInner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.historyHero h1 {
    margin: 0;
    font-size: 35px;
    font-weight: 800;
}

.historyHero p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: hsl(0 0% 70%);
}

.historyWrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 20px 70px;
}

.historyIntro h2 {
    margin: 0;
    font-size: 24px;
}

.historyIntro p {
    margin: 8px 0 0;
    line-height: 24px;
}

.historyTimeline {
    position: relative;
    margin-top: 26px;
    padding: 6px 0 0;
}

.historyTimeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #7DED48;
    border-radius: 2px;
    transform: translateX(-50%);
}

.historyItem {
    position: relative;
    width: 50%;
    padding: 18px 34px;
    box-sizing: border-box;
}

.historyItem:nth-child(odd) {
    left: 0;
    padding-right: 54px;
}

.historyItem:nth-child(even) {
    left: 50%;
    padding-left: 54px;
}

.historyTime {
    position: absolute;
    top: 18px;
    font-weight: 800;
    font-size: 13px;
    color: #333;
    background-color: white;
    border: 2px solid #7DED48;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.historyItem:nth-child(odd) .historyTime {
    left: calc(100% + 16px);
}

.historyItem:nth-child(even) .historyTime {
    right: calc(100% + 16px);
}

.historyMarker {
    position: absolute;
    left: 100%;
    top: 22px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #7DED48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 3;
}

.historyItem:nth-child(even) .historyMarker {
    left: 0;
    transform: translateX(-50%);
}

.historyMarker i {
    color: #333;
    font-size: 14px;
}

.historyCard {
    background-color: white;
    border-radius: 14px;
    border: 1px solid hsla(0 0% 0% / 0.08);
    filter: drop-shadow(0 14px 22px hsla(0 0% 0% / 0.12));
    padding: 16px 16px 14px;
}

.historyMeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.historyYear {
    font-weight: 800;
    color: #333;
}

.historyTag {
    background-color: #7DED48;
    color: black;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.historyCard h3 {
    margin: 0;
    font-size: 20px;
}

.historyCard p {
    margin: 8px 0 0;
    line-height: 24px;
}

.historyMediaBlocks {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.historyMediaBlock {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid hsla(0 0% 0% / 0.08);
    filter: drop-shadow(0 14px 22px hsla(0 0% 0% / 0.10));
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    background-color: white;
}

.historyMediaBlock img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.historyMediaText {
    padding: 10px 12px;
}

.historyMediaLabel {
    font-size: 12px;
    font-weight: 800;
    color: #5a6e8c;
    margin-bottom: 6px;
}

.historyMediaText p {
    margin: 0;
    line-height: 24px;
}

.historyCta {
    margin-top: 34px;
    border-radius: 14px;
    border: 1px solid hsla(0 0% 0% / 0.08);
    filter: drop-shadow(0 14px 22px hsla(0 0% 0% / 0.10));
    padding: 18px 16px;
    background-color: white;
}

.historyCta h2 {
    margin: 0;
    font-size: 22px;
}

.historyCta p {
    margin: 8px 0 0;
    line-height: 24px;
}

.historyCtaButtons {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

a.historyCtaLink {
    text-decoration: none;
}

/* Button-Stil wie auf der Startseite (home.css) – lokal für Historie */
.button1 {
    font-size: 18px;
    background-color: #7DED48;
    color: black;
    text-decoration: none;
    border: none;
    width: 350px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}

.button1:hover {
    color: white;
}

@media (max-width: 700px) {
    .button1 {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .historyHero h1 {
        font-size: 28px;
    }

    .historyHero {
        padding-top: 120px;
    }

    .historyTimeline:before {
        left: 12px;
        transform: none;
    }

    .historyItem {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        padding-top: 34px;
    }

    /* Wichtig: odd/even Overrides aus Desktop zurücksetzen, sonst bleibt left:50% aktiv */
    .historyItem:nth-child(odd),
    .historyItem:nth-child(even) {
        left: 0;
        padding-left: 30px;
        padding-right: 0;
    }

    .historyMarker,
    .historyItem:nth-child(even) .historyMarker {
        left: 12px;
        transform: translateX(-50%);
    }

    .historyTime,
    .historyItem:nth-child(even) .historyTime {
        left: 30px;
        right: auto;
        top: 6px;
    }

    .historyMarker,
    .historyItem:nth-child(even) .historyMarker {
        top: 16px;
    }

    .historyMediaBlock {
        grid-template-columns: 1fr;
    }

    .historyMediaBlock img {
        height: 200px;
    }
}

@media (max-width: 420px) {
    .historyHero h1 {
        font-size: 26px;
    }

    .historyWrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .historyCard h3 {
        font-size: 18px;
    }
}
