/* SCM – SC 1997 Memmelsdorf · Turnen
   Vereinsgrün #008a56 aus dem alten Layout, neu interpretiert */

:root {
  --green: #008a56;
  --green-600: #00774a;
  --green-700: #005f3b;
  --green-900: #063d29;
  --green-50: #eaf6f0;
  --green-100: #d3ede0;
  --lime: #7ccf1c;
  --gold: #e3a611;
  --silver: #9aa6ae;
  --bronze: #c07a3c;
  --bg: #f3f6f4;
  --card: #ffffff;
  --ink: #17251e;
  --ink-2: #3b4a42;
  --muted: #6b7a72;
  --line: #e1e8e4;
  --danger: #c0392b;
  --warn: #b7791f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 6px 20px rgba(10, 40, 25, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg);
}
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 750; }
h2 { font-size: 1.1rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.warn { color: var(--warn); font-weight: 600; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(100deg, var(--green-700), var(--green) 55%, #0a9a62);
  color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 50, 30, .25);
}
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; flex: none; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1rem; }
.brand small { font-size: .75rem; opacity: .8; }

.mainnav { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: space-between; }
.mainnav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.mainnav a, .mainnav summary {
  display: block; padding: 8px 12px; border-radius: 8px; color: rgba(255,255,255,.9);
  font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mainnav a:hover, .mainnav summary:hover { background: rgba(255,255,255,.12); color: #fff; }
.mainnav a.active, .mainnav .has-sub.active > details > summary { background: rgba(255,255,255,.2); color: #fff; }
.mainnav summary { list-style: none; }
.mainnav summary::-webkit-details-marker { display: none; }
.mainnav summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -1px; }
.has-sub { position: relative; }
.has-sub .sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.has-sub .sub a { color: var(--ink); font-weight: 500; }
.has-sub .sub a:hover { background: var(--green-50); color: var(--green-700); }
.has-sub .sub a.active { background: var(--green-100); color: var(--green-700); }

.userbox { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green-700); display: grid; place-items: center; font-weight: 800; }
.who { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.15; font-weight: 600; }
.who small { opacity: .75; font-weight: 400; }
.userbox .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.userbox .btn-ghost:hover { background: rgba(255,255,255,.12); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Seite ---------- */
.page { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 20px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-head p { margin: 0; max-width: 70ch; }
.page-head.slim { margin-bottom: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer { display: flex; justify-content: center; gap: 18px; padding: 18px; color: var(--muted); font-size: .82rem; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 6px; }
.card:not(.flush) > .card-head { padding: 0 0 8px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--green-50); border-color: var(--green-100); color: var(--green-700); }
.flash-error { background: #fdecea; border-color: #f5c6c0; color: #8e2a1f; }
.flash-info { background: #eef4fb; border-color: #d4e3f5; color: #23466e; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .92rem var(--font); cursor: pointer; text-decoration: none !important; line-height: 1.2; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(0,138,86,.3); }
.btn-primary:hover { background: var(--green-600); }
.btn-secondary { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.btn-secondary:hover { background: var(--green-100); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #f6f8f7; }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--green-50); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 6px 11px; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; padding: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--green-50); color: var(--green-700); }
.icon-btn.danger:hover { background: #fdecea; color: var(--danger); }
form.inline { display: inline; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #eef1ef; color: var(--ink-2); font-size: .75rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.tag-green { background: var(--green-100); color: var(--green-700); }
.tag .ico { width: 13px; height: 13px; }
a.tag:hover { text-decoration: none; background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 28px; margin-bottom: 18px;
  border-radius: 18px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 85% -40%, rgba(124,207,28,.45), transparent 55%),
    linear-gradient(120deg, var(--green-900), var(--green) 70%);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 2rem; margin-bottom: 4px; }
.hero p { margin: 0; opacity: .9; font-size: 1.05rem; }
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-photo img { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); background: #fff; display: block; }
.hero-runner { flex: none; width: min(420px, 40%); background: #fff; border-radius: 14px; padding: 8px 14px 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.hero-runner img { display: block; width: 100%; height: auto; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,40,25,.12); }
.stat img { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; }
.stat strong { display: block; font-size: 1.6rem; line-height: 1; color: var(--green-700); }
.stat span { color: var(--muted); font-size: .85rem; }

.wk-list { list-style: none; margin: 0; padding: 0; }
.wk-list li + li { border-top: 1px solid var(--line); }
.wk-list a { display: flex; align-items: center; gap: 14px; padding: 10px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.wk-list a:hover { background: var(--green-50); }
.date-badge { flex: none; width: 54px; text-align: center; border-radius: 10px; background: var(--green-50); color: var(--green-700); font-size: .72rem; text-transform: uppercase; font-weight: 700; padding: 5px 0; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.25rem; }
.date-badge i { display: block; font-style: normal; font-weight: 500; opacity: .7; }
.wk-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wk-info small { color: var(--muted); }
.wk-count { color: var(--muted); font-size: .82rem; }

/* ---------- Bestwerte ---------- */
.best-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.best { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.best img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.best .lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.best strong { font-size: 1.45rem; color: var(--green-700); line-height: 1.2; }
.best small { display: block; color: var(--muted); font-size: .78rem; }
.best-total { background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid var(--green-100); }

/* ---------- Wettkampfkopf ---------- */
.wk-head { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px; align-items: start; }
.wk-picker label > span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.wk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.wk-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.wk-facts dd { margin: 2px 0 0; font-weight: 650; }
.wk-facts dd small { display: block; font-weight: 400; color: var(--muted); }
.wk-note { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: #fbf8ec; border-left: 3px solid var(--gold); border-radius: 8px; color: #5b4a14; }

/* ---------- Tabellen ---------- */
.table-tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools .spacer { flex: 1; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 10px; color: var(--muted); }
.search input { padding-left: 34px !important; width: 260px; max-width: 100%; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { background: #f7faf8; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 700; position: sticky; top: 0; z-index: 1; }
table.data tbody tr:hover td { background: #f8fbf9; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.dim td { color: var(--muted); }
table.data tr.dim .thumb { filter: grayscale(1); opacity: .6; }
table.data .c { text-align: center; }
table.data .num { font-variant-numeric: tabular-nums; font-weight: 600; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--green-700); }
th.sorted-asc::after { content: " ▲"; font-size: .7em; }
th.sorted-desc::after { content: " ▼"; font-size: .7em; }
.row-actions { white-space: nowrap; text-align: right; width: 1%; }
.thumb { width: 38px; height: 38px; max-width: none; border-radius: 50%; object-fit: cover; display: block; background: #fff; border: 1px solid var(--line); }
img.mini { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

table.results thead th { text-align: center; }
table.results thead th:first-child { text-align: left; }
table.results th.geraet { padding: 8px 6px 6px; }
table.results th.geraet img { display: block; margin: 0 auto 3px; width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; border: 1px solid var(--line); }
table.results th.geraet span { display: block; }
table.results tr.sub th { font-size: .7rem; padding: 5px 8px; }
table.results td.p { color: var(--muted); font-size: .82rem; }
table.results td:nth-child(n) { white-space: nowrap; }
table.results td.total { color: var(--green-700); font-weight: 800; font-size: 1rem; background: var(--green-50); }
table.results th.total { background: var(--green-50); }
table.results tr.me td { background: #fff8e1 !important; }
.person { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.person img { width: 32px; height: 32px; max-width: none; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.rang { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: 800; color: #fff; padding: 0 4px; }
.rang-1 { background: var(--gold); }
.rang-2 { background: var(--silver); }
.rang-3 { background: var(--bronze); }

/* ---------- Filter-Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.chip b { margin-left: 4px; color: var(--muted); font-weight: 600; }
.chip:hover { text-decoration: none; border-color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.active b { color: rgba(255,255,255,.8); }

/* ---------- Formulare ---------- */
.form h2 { margin-top: 4px; margin-bottom: 12px; }
.form h2:not(:first-child) { margin-top: 22px; }
.form.narrow { max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > span { font-weight: 650; font-size: .86rem; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .78rem; }
.field small.error { color: var(--danger); font-weight: 600; }
.field .hint { color: var(--green-600); font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #cfd8d3; border-radius: var(--radius-sm); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,138,86,.15); }
select[multiple] { min-height: 140px; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: var(--radius-sm); }
.check-list .check { margin: 4px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.form-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 10px; }
.input-row { display: flex; gap: 8px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-edit img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green-50); background: #fff; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.apparatus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 150px; gap: 12px; margin: 6px 0 18px; }
.apparatus { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 0; margin: 0; background: #fbfcfb; }
.apparatus legend { display: flex; align-items: center; gap: 8px; font-weight: 750; padding: 0 6px; }
.apparatus legend img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.apparatus input[data-wertung] { font-size: 1.15rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.total-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--green-50); border-color: var(--green-100); padding: 12px; }
.total-box img { width: 48px; height: 48px; object-fit: contain; }
.total-box span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.total-box strong { font-size: 1.7rem; color: var(--green-700); font-variant-numeric: tabular-nums; }

/* ---------- Login ---------- */
.login-page { background:
  radial-gradient(circle at 15% 10%, rgba(124,207,28,.25), transparent 40%),
  linear-gradient(160deg, var(--green-900), var(--green) 60%, #11a56b); }
.login-page .footer, .login-page .footer a { color: rgba(255,255,255,.75); }
.login-wrap { min-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px 20px 0 0; padding: 32px 32px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; }
.login-card .form { text-align: left; margin-top: 18px; }
.login-logo img { border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.login-card h1 { margin-top: 12px; margin-bottom: 2px; }
.login-card .fineprint { font-size: .76rem; color: var(--muted); margin: 16px 0 0; }
.login-runner { width: 100%; max-width: 420px; background: #fff; border-radius: 0 0 20px 20px; padding: 0 16px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); border-top: 1px dashed var(--line); }
.login-runner img { display: block; width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .best-grid { grid-template-columns: repeat(3, 1fr); }
  .apparatus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .total-box { grid-column: span 2; flex-direction: row; gap: 14px; }
  .wk-head { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--green-700); padding: 10px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
  .mainnav.open { display: flex; }
  .mainnav > ul { flex-direction: column; align-items: stretch; }
  .has-sub .sub { position: static; box-shadow: none; background: rgba(255,255,255,.08); margin: 4px 0 4px 12px; }
  .has-sub .sub a { color: rgba(255,255,255,.9); }
  .has-sub .sub a:hover, .has-sub .sub a.active { background: rgba(255,255,255,.15); color: #fff; }
  .userbox { border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; }
}
@media (max-width: 860px) {
  .grid-2, .grid-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .wk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-wrap: wrap; padding: 22px; }
  .hero-runner { width: 100%; }
  .best-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .page { padding: 16px 16px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .apparatus-grid { grid-template-columns: 1fr; }
  .total-box { grid-column: auto; }
  .hero h1 { font-size: 1.5rem; }
  .brand small { display: none; }
  .search input { width: 100%; }
  .table-tools .search { flex: 1 1 100%; }
  .login-card { padding: 26px 20px 18px; }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; font-size: 11px; }
  .topbar, .footer, .table-tools, .no-print, .page-head .actions, .wk-picker, .hero-actions, .chips { display: none !important; }
  .page { padding: 0; max-width: none; }
  .card, .hero, .stat, .best { box-shadow: none; border: 1px solid #ccc; }
  .hero { background: #fff !important; color: #000; }
  .hero-runner { display: none; }
  table.data thead th { position: static; }
  table.data th, table.data td { padding: 4px 6px; }
  table.results th.geraet img { width: 26px; height: 26px; }
  .table-scroll { overflow: visible; }
}

/* Feinschliff Mobil */
.stat > div { min-width: 0; }
.stat span { display: block; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat img { width: 42px; height: 42px; }
  .stat strong { font-size: 1.35rem; }
  .apparatus { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .apparatus legend { grid-column: 1 / -1; }
}
