/* ==========================
   Grund-Ticker
   ========================== */
.ticker {
    width: 100%;
    overflow: hidden;
    background: #111; /* dunkler Hintergrund */
    color: #eee;      /* heller Text */
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.ticker__content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Farben für Event-Ticker */
.event-positive { color: #4caf50; font-weight: 600; }
.event-negative { color: #f44336; font-weight: 600; }
.event-neutral  { color: #bdbdbd; font-weight: 600; }

/* Trenner zwischen Events */
.event-separator {
    color: #666;
    margin: 0 8px;
}

/* ==========================
   Tabelle Events
   ========================== */
.events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

.events-table th,
.events-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #eee; /* heller Text für dunkles Theme */
}

.events-table th {
    background-color: #1a1a1a;
    color: #eee;
}

/* Hover-Effekt */
.events-table tbody tr:hover {
    background-color: #444;
}

/* ==========================
   Event-Hintergrundfarben
   ========================== */
.events-table tbody tr.event-positive {
    background-color: #1b2e1b; /* dunkles grün */
}

.events-table tbody tr.event-negative {
    background-color: #3e1b1b; /* dunkles rot */
}

.events-table tbody tr.event-neutral {
    background-color: #2b2b2b; /* dunkles grau */
}

/* Event-Textfarben innerhalb der Zeilen */
.events-table tbody tr.event-positive td,
.events-table tbody tr.event-negative td,
.events-table tbody tr.event-neutral td {
    color: #eee; /* hell, gut sichtbar */
}

/* ==========================
   Statusfarben
   ========================== */
.status-active { 
    color: #4caf50; 
    font-weight: 600; 
}

.status-ended { 
    color: #9e9e9e; 
    font-weight: 600; 
}

/* ==========================
   Prozentfarben (in Tabelle)
   ========================== */
.event-positive td:nth-child(3) { color: #4caf50; font-weight: 600; }
.event-negative td:nth-child(3) { color: #f44336; font-weight: 600; }
.event-neutral td:nth-child(3)  { color: #bdbdbd; font-weight: 600; }

/* ==========================
   Optional: Responsive Table
   ========================== */
@media screen and (max-width: 768px) {
    .events-table th, .events-table td {
        font-size: 12px;
        padding: 6px;
    }
}
