/* =======================================================
   1. GLOBALE STRUKTUR & ÜBERSCHRIFTEN
   ======================================================= */
.section-title {
    margin-top: 40px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    font-family: sans-serif;
}

/* =======================================================
   2. DAS GLOBALE HAUPTZIEL (MILLIARDEN-ANZEIGE)
   ======================================================= */
.mega-goal-box {
    background: #1a1a1a;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #ff9900;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
}

.mega-goal-box h2 {
    color: #ff9900; 
    margin: 0 0 10px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem; 
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
    letter-spacing: 1px;
}

.goal-bar {
    background-color: #333;
    height: 60px;       
    border-radius: 6px; 
}

.goal-bar .progress-bar {
    line-height: 60px;  
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;  
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* =======================================================
   3. DASHBOARD-GRID (OBERER BEREICH)
   ======================================================= */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 25px !important;
    margin-bottom: 35px !important;
}

.stat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-sizing: border-box;
}

.stat-header {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.stat-footer {
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
    margin-top: 10px;
    font-family: sans-serif;
}

.stat-footer-text {
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
    margin-top: 5px;
    font-family: sans-serif;
}

/* =======================================================
   4. BOX-SPEZIFISCHE AKZENTE & LED
   ======================================================= */
.money-box {
    border-top: 4px solid #f58220; 
}

.led-display {
    background-color: #1a1a1a;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    text-align: right;
    margin: 5px 0;
}

.led-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff9900; 
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
    letter-spacing: 2px;
}

.led-currency {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;
    color: #ff9900;
    font-weight: bold;
}

.satisfaction-box {
    border-top: 4px solid #009640; 
}

.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 6px; 
    height: 60px;       
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.15); 
    margin: 5px 0;      
    box-sizing: border-box;
}

.progress-bar {
    height: 100%;
    line-height: 60px;  
    font-size: 1.6rem;  
    font-family: 'Courier New', Courier, monospace; 
    color: white;
    font-weight: bold;
    text-align: center;
    background-color: #28a745;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.clicker-box {
    border-top: 4px solid #e1141c; 
}

.validator-btn {
    background-color: #e1141c;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border: 3px solid #b51c1c;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 #8a1115;
    transition: transform 0.05s ease;
    width: 100%;
    box-sizing: border-box;
}

.validator-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* =======================================================
   5. SAUBERES BETRIEBSPROTOKOLL (GANZE BREITE & DEZENT)
   ======================================================= */
.event-log-box {
    border-top: 4px solid #005293 !important; /* Wiener-Linien-Blau */
    grid-column: 1 / -1 !important; /* Erstreckt sich über die gesamte Breite */
    transition: background-color 0.3s ease;
}

/* Sanfte, transparente Farbakzente statt knalligen Overlays */
#event-ticker.event-good {
    border-top: 4px solid #009640 !important; 
    background-color: rgba(0, 150, 64, 0.04) !important; /* Noch ein Stück unauffälliger */
}

#event-ticker.event-bad {
    border-top: 4px solid #e1141c !important; 
    background-color: rgba(225, 20, 28, 0.04) !important; /* Noch ein Stück unauffälliger */
}

.log-display {
    background-color: #1a1a1a;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    text-align: left;
    margin: 5px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.log-current {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ff9900; 
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
    line-height: 1.3;
}

/* Dezentere, einheitliche Verlaufsschrift (Nicht zu groß, nicht zu bunt) */
.stat-footer-log {
    font-family: sans-serif;
    font-size: 0.88rem !important; /* Perfektes Mittelmaß */
    color: #555555 !important;    /* Ruhiges, gut lesbares Dunkelgrau für ALLES */
    margin-top: 12px;
    max-height: 110px; 
    overflow-y: auto;
    padding-right: 5px;
    width: 100%;
}

.history-item {
    padding: 5px 0;
    border-bottom: 1px dashed #e5e7eb;
    text-align: left;
    line-height: 1.4;
}

.history-item:last-child {
    border-bottom: none;
}

/* Ignoriert alle farblichen Extrawürste aus dem JavaScript, damit es einfarbig bleibt */
.history-item span, 
.history-item small {
    font-size: inherit !important;
    color: inherit !important; /* Erzwingt das dezente Grau für den gesamten Text */
    font-weight: normal !important;
}

/* Scrollbar dezent stylen */
.stat-footer-log::-webkit-scrollbar {
    width: 4px;
}
.stat-footer-log::-webkit-scrollbar-thumb {
    background: #dbe0e6;
    border-radius: 2px;
}

/* =======================================================
   6. RESPONSIVE ANPASSUNG (MOBIL-ANSICHT)
   ======================================================= */
@media screen and (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important; /* Boxen stapeln sich auf Handys */
    }
    .event-log-box {
        grid-column: 1 !important;
    }
}

/* =======================================================
   PULS-ANIMATIONEN FÜR DAS BETRIEBSPROTOKOLL
   ======================================================= */

.pulse-good { animation: pulseGreen 0.8s ease-out; }
.pulse-bad { animation: pulseRed 0.8s ease-out; }
.pulse-milestone { animation: pulseGold 0.8s ease-out; }

@keyframes pulseGreen {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
    30% { transform: scale(1.015); box-shadow: 0 0 25px rgba(0, 150, 64, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
}

@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
    30% { transform: scale(1.015); box-shadow: 0 0 25px rgba(225, 20, 28, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
}

@keyframes pulseGold {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
    30% { transform: scale(1.015); box-shadow: 0 0 25px rgba(255, 153, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
}
