:root {
    --page-width: 1180px;
    --text: #111;
    --muted: #444;
    --line: #d7d7d7;
    --header: #f2f2f2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 24px;
    color: var(--text);
    background: #e9e9e9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.page {
    width: min(var(--page-width), 100%);
    margin: 0 auto;
    background: white;
    padding: 26px 30px 18px;
    box-shadow: 0 2px 18px rgba(0,0,0,.12);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

.subtitle {
    font-size: 16px;
    font-weight: 700;
}

.meta {
    text-align: right;
    min-width: 130px;
    line-height: 1.45;
    font-size: 16px;
    font-weight: 700;
}

.table-wrap { overflow-x: auto; }

.terminliste {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.terminliste th,
.terminliste td {
    padding: 3px 6px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.terminliste thead th {
    background: var(--header);
    font-size: 12px;
    text-align: left;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.terminliste tbody tr:nth-child(even) { background: #fafafa; }
.terminliste tbody tr:hover { background: #f6f6f6; }

.date { width: 120px; white-space: nowrap; font-weight: 700; }
.time { width: 64px; white-space: nowrap; text-align: left; }
.event { font-weight: 100; }
.team { width: 130px; }
.last { width: 120px; white-space: nowrap; }
.year { width: 82px; text-align: center; white-space: nowrap; }
.place { width: 70px; text-align: center; }
.empty { text-align: center; padding: 20px !important; color: var(--muted); }
.footer {
    margin-top: 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

@media print {
    body { background: white; padding: 0; font-size: 11px; }
    .page { width: 100%; box-shadow: none; padding: 10mm; }
    .terminliste th, .terminliste td { padding: 2px 4px; border-bottom: none; }
    .terminliste thead th { border-top: none; }
    .table-wrap { overflow: visible; }
}

@media (max-width: 800px) {
    body { padding: 0; background: white; }
    .page { box-shadow: none; padding: 18px 12px; }
    .report-header { display: block; }
    .meta { text-align: left; margin-top: 8px; }
}
