.event-ticker {
    padding: 22px 15px;
    font-weight: bold;
    text-align: center;
    font-family: sans-serif;
    transition: opacity 0.4s ease, background-color 0.4s ease;
    opacity: 1;

    /* HIER KORRIGIERT FÜR DIE LINKE SIDEBAR: */
    position: fixed;
    top: 0;
    left: 250px; /* HIER EINTRAGEN: Breite deines linken Menüs (z.B. 250px oder 16rem) */
    width: calc(100% - 250px); /* Nimmt die restliche Breite des Bildschirms ein */
    
    z-index: 10000; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    box-sizing: border-box; 
    border-radius: 0; 
}

.event-ticker.hidden {
    opacity: 0;
    background-color: transparent !important;
    pointer-events: none;
}

.event-good { background-color: #28a745; color: white; }
.event-bad { background-color: #dc3545; color: white; }
.event-normal { background-color: #eaeaea; color: #333; border: 1px solid #ccc; }

/* --- DYNAMISCHE KAUF-EFFEKTE --- */
.ubahn-card button.affordable, 
.station-card button.affordable {
    background-color: #009640 !important;
    color: white;
}
.ubahn-card button.affordable:hover, 
.station-card button.affordable:hover {
    background-color: #007a33 !important;
}
.ubahn-card button.success-flash, 
.station-card button.success-flash {
    transform: scale(0.96); /* Der Button zieht sich ganz kurz minimal zusammen */
    filter: brightness(0.85); /* Wird für einen Wimpernschlag etwas dunkler */
}

.floating-feedback {
    position: absolute;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 10;
    animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* --- TOAST INFOMELDUNGEN --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background-color: #f58220; 
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: sans-serif;
    animation: slideUp 0.3s ease-out;
}

.toast-message.toast-good {
    background-color: #28a745 !important;
    border-left: 5px solid #1e7e34;
}

.toast-message.toast-bad {
    background-color: #dc3545 !important;
    border-left: 5px solid #bd2130;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- SIEGES-MODAL URKUNDE --- */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.win-modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 30px #ff9900;
    color: #333;
}

.urkunde {
    border: 4px double #ff9900;
    background: #fffdf2;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.urkunde h3 {
    color: #b51c1c;
    font-size: 1.6rem;
}

.win-close-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#passengers-display {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-shadow: inherit;
}
/* Schafft Platz für den fixierten Ticker ganz oben */
.main-content {
    padding-top: 70px; /* Verschiebt den Inhalt nach unten, damit das H1 sichtbar bleibt */
}

/* css/ubahn-effects.css – Diskreter Reset-Button */
.reset-btn {
    background-color: #6c757d; /* Neutrales Grau */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}

.reset-btn:hover {
    background-color: #c82333; /* Wird beim Drüberfahren warnend rot */
}

.reset-btn:active {
    transform: scale(0.95); /* Knopfdruck-Effekt */
}
