/* TBT Wettkampfkalender – Frontend v2 */

.tbt-kalender-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: #1e1e1e;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.tbt-header {
    background: #0f2d6b;
    border-radius: 14px 14px 0 0;
    padding: 30px 32px 26px;
    position: relative;
    overflow: hidden;
}
.tbt-header::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #1a3d8a;
    pointer-events: none;
}
.tbt-header::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #152f72;
    pointer-events: none;
}
.tbt-club {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 8px;
    position: relative;
}
.tbt-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.15;
    position: relative;
}
.tbt-title-year {
    color: #6fa8ff;
}
.tbt-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 12.5px;
    margin: 0;
    position: relative;
}
.tbt-header-stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
}
.tbt-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
}
.tbt-stat-number {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.tbt-stat-label {
    color: rgba(255,255,255,0.45);
    font-size: 10px;
    margin-top: 2px;
}

/* ── Filter bar ──────────────────────────────────────────────────────── */
.tbt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 32px;
    background: #f3f6fc;
    border-left: 1px solid #d8e3f6;
    border-right: 1px solid #d8e3f6;
}
.tbt-filter-btn {
    padding: 5px 15px;
    border: 1.5px solid #c8d5ee;
    border-radius: 20px;
    background: #fff;
    color: #1e4b99;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tbt-filter-btn:hover  { background: #0f2d6b; color: #fff; border-color: #0f2d6b; }
.tbt-filter-btn.active { background: #0f2d6b; color: #fff; border-color: #0f2d6b; }

/* ── Timeline ────────────────────────────────────────────────────────── */
.tbt-timeline {
    border: 1px solid #d8e3f6;
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    background: #fff;
}

.tbt-month-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: #f8faff;
    border-top: 1px solid #e4ebf9;
    border-bottom: 1px solid #e4ebf9;
}
.tbt-month-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fa8ff;
    flex-shrink: 0;
}
.tbt-month-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3a64b0;
}

.tbt-event-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eef2fb;
    background: #fff;
    transition: background 0.12s;
}
.tbt-event-row:last-child { border-bottom: none; }
.tbt-event-row:hover { background: #f8faff; }

/* Date block */
.tbt-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 18px 6px;
    border-right: 1px solid #eef2fb;
}
.tbt-day {
    font-size: 24px;
    font-weight: 700;
    color: #0f2d6b;
    line-height: 1;
}
.tbt-weekday {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ab0d4;
    margin-top: 2px;
}

/* Accent bar */
.tbt-accent-bar {
    width: 3px;
    background: #e4ebf9;
    flex-shrink: 0;
    transition: background 0.12s;
}
.tbt-event-row:hover .tbt-accent-bar { background: #3a64b0; }

/* Event body */
.tbt-event-body {
    flex: 1;
    padding: 14px 20px;
    min-width: 0;
}
.tbt-event-top {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 5px;
}
.tbt-event-title {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0;
    color: #0f1f3d;
    line-height: 1.3;
}
.tbt-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #6b7c99;
    margin: 2px 0 0;
}
.tbt-location svg { flex-shrink: 0; }
.tbt-description {
    font-size: 12px;
    color: #5a6880;
    margin: 5px 0 0;
    line-height: 1.55;
}

/* Badges */
.tbt-badge {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}
.tbt-badge--kreis       { background: #e4f0e8; color: #1e6130; }
.tbt-badge--bezirk      { background: #e3eeff; color: #0f2d6b; }
.tbt-badge--landes      { background: #fff3db; color: #7a4d00; }
.tbt-badge--bundes      { background: #fde8e8; color: #8c1f1f; }
.tbt-badge--international { background: #f0eaff; color: #4a22a0; }
.tbt-badge--default     { background: #f0f0f1; color: #44444a; }

/* Link button */
.tbt-event-action {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 4px;
    flex-shrink: 0;
}
.tbt-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #fff;
    border: 1.5px solid #3a64b0;
    border-radius: 7px;
    color: #0f2d6b;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tbt-link-btn:hover { background: #0f2d6b; color: #fff; border-color: #0f2d6b; }
.tbt-link-btn svg { flex-shrink: 0; }

/* Empty state */
.tbt-empty {
    border: 1px solid #d8e3f6;
    border-top: none;
    border-radius: 0 0 14px 14px;
    text-align: center;
    padding: 48px;
    color: #9ab0d4;
    background: #fff;
}

/* Footer note */
.tbt-footer-note {
    font-size: 10.5px;
    color: #b0bdd4;
    text-align: right;
    margin-top: 10px;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tbt-header { padding: 22px 20px 20px; border-radius: 10px 10px 0 0; }
    .tbt-title { font-size: 22px; }
    .tbt-header-stats { gap: 8px; }
    .tbt-stat { padding: 7px 12px; }
    .tbt-filter-bar { padding: 10px 16px; }
    .tbt-month-header { padding: 8px 16px; }
    .tbt-date-block { min-width: 50px; }
    .tbt-day { font-size: 19px; }
    .tbt-event-body { padding: 12px 12px; }
    .tbt-event-action { padding: 12px 12px 12px 4px; }
    .tbt-link-btn { padding: 6px 10px; font-size: 11px; }
}
