/* Druckansicht – auf Papier optimiert (A4, kompakte Tabellen). */

:root {
  --ink: #16203a;
  --line: #cdd4e0;
  --muted: #5b6478;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 1000px;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary { background: #0c2349; border-color: #0c2349; color: #fff; }

.print-header { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.print-header h1 { margin: 0; font-size: 1.5rem; }
.print-header p { margin: 3px 0; color: var(--muted); }
.stand { font-size: .8rem; }

h2 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

h3 { font-size: .95rem; margin: 0 0 4px; }

table.schedule, table.standings {
  width: 100%;
  border-collapse: collapse;
}

table.schedule th, table.schedule td,
table.standings th, table.standings td {
  border: 1px solid var(--line);
  padding: 3px 6px;
  text-align: center;
  vertical-align: top;
}

table.schedule th, table.standings th { background: #eef1f7; }
table.schedule td:nth-child(5) { text-align: left; }
table.standings .left { text-align: left; }
.score-cell { font-weight: 700; white-space: nowrap; }
.diff-neg { color: #c0392b; font-weight: 700; }
.goals { color: var(--muted); font-size: .75rem; margin-top: 2px; }

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.group-block { break-inside: avoid; }

.tv-note {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

@media print {
  .no-print { display: none !important; }
  body { padding: 0; font-size: 10.5px; }
  a { color: inherit; text-decoration: none; }
  section { break-inside: auto; }
  tr { break-inside: avoid; }
  @page { margin: 14mm 12mm; }
}
