/* --- Grundlayout --- */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* sehr dunkles Grau */
    color: #000000; /* schwarz */
    margin-top: 5pxs;
}

h1 {
    color: #000000;
    font-size: 10px;
    text-align: center;
    margin: 0;
}

/* --- Tabelle --- */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto; /* wichtig für dynamische Spalten */
    background: #808080;
}

/* Tabellenzellen */
th, td {
    border: 2px solid #000000;
    padding: 6px 8px; /* etwas kompakter */
    text-align: left;
    font-size: 16px;

    /* wichtig für dynamische, aber lesbare Breite */
    white-space: nowrap;       /* verhindert unnötige Umbrüche */
    overflow: hidden;
    text-overflow: ellipsis;   /* "..." wenn zu lang */
}

/* optional: erlaubt Umbruch bei langen Texten in bestimmten Spalten */
td.wrap {
    white-space: normal;
}

/* Tabellenkopf */
th {
    background: #2F4F4F;
    color: #ffffff;
    white-space: nowrap;
}

/* Zebra-Streifen */
table tr:nth-child(even) {
    background-color: #ffffff;
}

table tr:nth-child(odd) {
    background-color: #B0B0B0;
}

/* Hover */
table tr:hover {
    background-color: #3366ff;
}

/* --- Formular --- */
form {
    margin-bottom: 20px;
}

/* Filter Button */
button {
    background-color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    color: black;
    border-radius: 6px;
    border: none;
    height: 40px;
    width: 150px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Filter Fenster Dropdown */
select {
    font-size: 18px;
    font-family: Arial, sans-serif;
    /* font-weight: bold; */
    padding: 8px 12px;
    height: 40px;
    width: 220px;
    background-color: #B0B0B0;
    color: #002000;
    border: 2px solid #555;
}

select:focus {
    outline: none;
    border-color: #888;
}

/* --- Sektorfarben (Zellen) --- */
td.sec-purple {
    background-color: #8e5cff; /* kräftiges Lila */
    color: #000;
}

td.sec-green {
    background-color: #4dff4d; /* helles Grün */
    color: #000;
}

td.sec-yellow {
    background-color: #ffe666; /* warmes Gelb */
    color: #000;
}

/* =========================================
   Header mit Titel links und Podest rechts
   ========================================= */

.header-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    /*margin-bottom: 10px;*/
}



/* =========================================
   Podeststatistik
   ========================================= */
   
.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top:0;
    margin-bottom: 10px;
    /*flex-wrap: wrap;*/
}

.filter-box {
    padding: 10px;
    min-width: 300px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.filter-row select {
    margin-top: 4px;
}

.podium-box {
    background: #2F4F4F;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 10px;
    
    min-width: 320px;
    max-width: 400px;
    flex-shrink: 0;
}

.podium-box h3 {
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.podium-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 12px;
}

.podium-table th {
    background: #2F4F4F;
    color: #ffffff;
    text-align: center;
}

.podium-table td {
    text-align: center;
}

.podium-table td:first-child,
.podium-table th:first-child {
    text-align: left;
    font-size: 16px;
    
}

.logo-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.logo-box svg {
	width: 100%;
    max-width: 1000px;
    height: 100%;
    
    transform-origin: center;
    /*animation: pulse 25s infinite ease-in-out;*/
}
/*
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
*/
.track-glow {
    opacity: 0;
    filter: blur(6px);
    animation: trackPulse 10s infinite;
}

@keyframes trackPulse {
    0%, 15%, 45%, 65%, 82%, 100% {
        opacity: 0;
    }

    22% {
        opacity: 0.08;
    }

    28% {
        opacity: 0.18;
    }

    33% {
        opacity: 0.05;
    }

    75% {
        opacity: 0.12;
    }
}

.vehicle-cell {
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.vehicle-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.car-logo {
    width: 40px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.car-name {
    font-weight: 500;
}
