/* ---------------------------------------------------------
   Datei: assets/css/timeline.css
   Projekt: TimelineApp
   Funktion: Styles für alle Timeline-Ebenen
--------------------------------------------------------- */

/* Gesamtlayout */
body {
    background: #0d0e16;
    color: #f5d67a;
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Überschriften */
h1 {
    margin-top: 20px;
    font-size: 32px;
}
h2 {
    font-size: 18px;
    opacity: 0.8;
}

/* Container */
#timeline-container {
    margin-top: 40px;
    width: 100%;
}

/* Zeile der farbigen Segmente */
.segment-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 25px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: #f5d67a #1a1b24;
}

/* Scrollbalken für Chrome/Safari */
.segment-row::-webkit-scrollbar {
    height: 8px;
}
.segment-row::-webkit-scrollbar-track {
    background: #1a1b24;
}
.segment-row::-webkit-scrollbar-thumb {
    background: #d9b558;
}

/* Einzelnes Segment */
.segment-box {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #000;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: transform .15s;
}
.segment-box:hover {
    transform: scale(1.05);
}

/* Skala unterhalb */
.timeline-scale {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #d9b558;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.timeline-scale .tick {
    font-size: 14px;
    color: #d9b558;
}

/* Fehlermeldungen */
.timeline-error {
    color: #f0c674;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

/* Button-Leiste */
.timeline-buttons {
    margin-bottom: 20px;
}

.timeline-buttons button {
    background: #1c1d26;
    color: #f5d67a;
    border: 1px solid #f5d67a;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 15px;
    margin: 4px;
    cursor: pointer;
    transition: all .2s;
}

.timeline-buttons button.active {
    background: #f5d67a;
    color: #000;
}
.timeline-buttons button:hover {
    background: #f5d67a;
    color: #000;
}