/* ==========================================
Historie Slider-System (Vorschlag 1)
========================================== */

.history-slider-container {
margin: 50px auto;
max-width: 100%;
box-sizing: border-box;
}

/* HORIZONTALE ZEITLEISTE */
.history-timeline-nav {
position: relative;
margin-bottom: 40px;
padding: 10px 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

/* Die durchlaufende Linie hinter den Zahlen */
.history-timeline-line {
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background-color: #e0e0e0;
z-index: 1;
transform: translateY(-50%);
}

.history-timeline-nav ul {
display: flex;
justify-content: space-between;
list-style: none;
padding: 0;
margin: 0;
position: relative;
z-index: 2;
width: max-content;
min-width: 100%;
gap: 15px;
}

.history-timeline-nav li {
flex: 1;
text-align: center;
}

/* Die runden Jahres-Buttons auf der Linie */
.history-slider-btn {
display: inline-block;
background-color: #ffffff;
border: 2px solid #e0e0e0;
border-radius: 20px;
padding: 6px 16px;
font-size: 14px;
font-weight: bold;
color: #888888;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}

.history-slider-btn:hover {
border-color: #a0a0a0;
color: #333333;
}

/* Aktives Jahr auf der Zeitleiste */
.history-slider-btn.is-active {
background-color: #666666;
border-color: #666666;
color: #ffffff;
transform: scale(1.05);
}

/* INHALTS-BOXEN */
.history-slide-wrapper {
background-color: #f9f9f9;
border-radius: 4px;
padding: 30px;
min-height: 200px;
box-sizing: border-box;
}

.history-slide-box {
display: none;
opacity: 0;
transform: translateY(15px);
transition: opacity 0.4s ease, transform 0.4s ease;
max-width: 800px;
margin: 0 auto;
}

.history-slide-box.is-active {
display: block;
opacity: 1;
transform: translateY(0);
}

.history-slide-text h2 {
margin-top: 0;
margin-bottom: 15px;
font-size: 24px;
}

.history-slide-text p {
margin: 0;
line-height: 1.6;
}

/* LAYOUT FÜR JAHRE MIT BILDERN (Desktop) */
.history-slide-box.has-image {
display: none;
max-width: 900px;
}

.history-slide-box.has-image.is-active {
display: flex;
gap: 40px;
align-items: center;
}

.history-slide-box.has-image .history-slide-text {
flex: 1.3;
}

.history-slide-box.has-image .history-slide-media {
flex: 1;
}

.history-slide-media img {
max-width: 100%;
height: auto;
display: block;
border-radius: 2px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ==========================================
RESPONSIVE DESIGN
========================================== */

@media (max-width: 768px) {
.history-slide-wrapper {
padding: 20px;
}

.history-slide-box.has-image.is-active {
flex-direction: column;
gap: 20px;
}

.history-slide-box.has-image .history-slide-media {
width: 100%;
}
}

/* ==========================================================================
   Erweiterung für Pfeil-Buttons (Desktop Scroll)
   ========================================================================== */

.history-timeline-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

/* Den eigentlichen Nav-Bereich anpassen, damit er zwischen den Pfeilen sitzt */
.history-timeline-outer .history-timeline-nav {
    flex: 1;
    margin-bottom: 0; /* Margin wandert auf den Outer-Container */
    scrollbar-width: none; /* Versteckt Scrollbalken in Firefox */
}

/* Versteckt Scrollbalken in Chrome, Safari, Edge */
.history-timeline-outer .history-timeline-nav::-webkit-scrollbar {
    display: none;
}

/* Die Pfeil-Buttons stylen */
.history-nav-arrow {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #666666;
}

.history-nav-arrow:hover {
    background: #666666;
    border-color: #666666;
    color: #ffffff;
}

/* Auf mobilen Geräten brauchen wir die Pfeile nicht dringend, da man wischt */
@media (max-width: 768px) {
    .history-nav-arrow {
        display: none; /* Optional: Schaltet Pfeile auf Mobile aus */
    }
    .history-timeline-outer {
        gap: 0;
    }
}