.bobuli-ranking-page,
.bobuli-ranking,
.bobuli-ranking-header,
.bobuli-select,
.bobuli-table {
    font-family: 'Poppins', sans-serif;
}

.bobuli-back {
    margin-bottom: 1em;
}

.bobuli-error {
    color: #c0392b;
    font-style: italic;
}

.bobuli-no-results {
    color: #666;
    font-style: italic;
    padding: 1em 0;
}

/* Loading Indicator */
.bobuli-loading {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
}

.bobuli-loading::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #ddd;
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: bobuli-spin 0.7s linear infinite;
}

@keyframes bobuli-spin {
    to { transform: rotate(360deg); }
}

.bobuli-last-updated {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5em;
}


/* Seite 2: sticky Navigation */
.bobuli-ranking-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 8px 0 0;
}

.bobuli-heading {
    margin-bottom: 0.6em;
    text-align: center;
}

.bobuli-comp-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 0.1em;
    line-height: 1.2;
}

/* Seite 2: Saison-Label */
.bobuli-season-label {
    font-size: 0.9em;
    font-weight: 300;
    color: #555;
    margin: 0 0 0.5em;
}

.bobuli-season-select {
    margin-bottom: 0.5em;
}

.bobuli-station-select {
    margin-bottom: 0.5em;
}

.bobuli-select {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.bobuli-league-select {
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e0e0e0;
}


/* Ranking-Tabelle */
.bobuli-ranking-page,
.bobuli-ranking {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .bobuli-ranking-page,
    .bobuli-ranking {
        width: auto;
        position: static;
        left: auto;
        margin-left: 0;
        padding: 0;
    }
}

.bobuli-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    table-layout: fixed;
    margin: 0;
}

.bobuli-table th,
.bobuli-table td {
    padding: 5px 4px !important;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    overflow: hidden;
    line-height: 1.3;
}

.bobuli-table th {
    background: #f5f5f5;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8em;
}

.bobuli-table .col-rank {
    width: 10%;
    text-align: center;
}

.bobuli-table .col-name {
    width: auto;
}

.bobuli-table .col-points {
    width: 15%;
    text-align: right;
    white-space: nowrap;
}

.bobuli-table .col-ftz {
    width: 20%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bobuli-table .col-matchdays {
    width: 10%;
    text-align: center;
}

.bobuli-city {
    display: block !important;
    font-size: 0.78em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}

.bobuli-matchday-count {
    display: block !important;
    font-size: 0.78em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}

/* Zebra-Striping */
.bobuli-table tbody tr:nth-child(odd) {
    background: #fff;
}

.bobuli-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

/* Fettschrift: Platz, Name, Punkte immer fett */
.bobuli-table td.col-rank,
.bobuli-table td.col-name,
.bobuli-table td.col-points {
    font-weight: 600;
}

/* Stadtname innerhalb col-name nicht fett */
.bobuli-table td.col-name .bobuli-city {
    font-weight: normal;
}

/* Top-3 Hervorhebung entfernen */
.bobuli-table .bobuli-top-three td {
    font-weight: inherit;
}

.bobuli-table .bobuli-top-three td.col-rank,
.bobuli-table .bobuli-top-three td.col-name,
.bobuli-table .bobuli-top-three td.col-points {
    font-weight: 600;
}
