/* Öffentliche Ergebnisseite (Internet): schlicht wie eine Ergebnisliste, immer hell (schwarz auf weiß), Handy zuerst */
:root { color-scheme: light; }
:root {
  --bg: #ffffff;
  --paper: #fff;
  --ink: #16181d;
  --muted: #5f6672;
  --line: #dde0e5;
  --zebra: #f6f7f9;
  --head: #eceef1;
  --accent: #b8322a;
  --hover: #f0f2f5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.top .logo { height: 44px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.site { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--muted); letter-spacing: .02em; }

main { padding-top: 20px; padding-bottom: 48px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 28px 0 8px; }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.back:hover { color: var(--ink); }
.empty { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; }

/* Auswahl-Listen (Schießen, Ranglisten) */
.menu { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; min-height: 52px; }
.menu a:hover { background: var(--hover); }
.menu .t { flex: 1; min-width: 0; }
.menu .t b { display: block; font-weight: 600; }
.menu .t small { display: block; color: var(--muted); font-size: 13px; }
.menu .n { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu .chev { color: var(--muted); font-size: 20px; line-height: 1; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--hover); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.pri:hover { background: #333; }

/* Rangliste */
.rk { margin: 0 0 28px; }
.rk h2 { margin: 0 0 2px; }
.rk .sub { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; font-size: 15px; }
.tbl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--head); font-size: 13px; font-weight: 600; color: var(--muted); }
tbody tr:nth-child(even):not(.sep):not(.member) { background: var(--zebra); }
.pl { width: 1%; white-space: nowrap; text-align: right; font-weight: 600; }
.v, .tot { width: 1%; white-space: nowrap; text-align: right; }
.tot { font-weight: 700; }
td.deck, .vals .deck { color: var(--muted); font-style: italic; }
.nm small { display: block; color: var(--muted); font-size: 13px; }
.vals { display: none; color: var(--muted); font-size: 13px; margin-top: 2px; }
.vals span + span::before { content: " · "; font-style: normal; }
tr.sep td { background: var(--paper); font-weight: 600; font-size: 13px; color: var(--muted); padding-top: 14px; }
tr.member td { font-size: 14px; padding-top: 3px; padding-bottom: 3px; border-bottom: 0; }
tr.member td.nm { padding-left: 24px; }
tr.member.nc td { color: var(--muted); }
tr.member .tot { font-weight: 400; }
tr.team td { border-top: 1px solid var(--line); }

/* Handy: Einzelwerte unter dem Namen statt in Spalten */
@media (max-width: 640px) {
  h1 { font-size: 21px; }
  th.v, td.v { display: none; }
  .vals { display: block; }
  tr.member .vals { display: none; }
  th, td { padding: 8px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .top, .back, .actions, .noprint { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .tbl { border: 0; border-radius: 0; }
  table { font-size: 9pt; }
  th, td { padding: 3pt 4pt; }
  th.v, td.v { display: table-cell !important; }
  .vals { display: none !important; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
  .rk + .rk { break-before: page; }
  .rk h2 { break-after: avoid; }
}
