/* Eintracht Braunschweig Hockey — Blau/Gelb, mobile-first */
:root {
  --navy: #0b2e59;
  --blue: #005ca9;
  --blue-soft: #e8f1f9;
  --yellow: #ffd200;
  --yellow-soft: #fff6cc;
  --ink: #1a2733;
  --muted: #5b6b7a;
  --line: #d7e0ea;
  --ok: #1a7f37;
  --err: #c0392b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #f4f7fa; line-height: 1.45;
}
a { color: var(--blue); }
header.site {
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
header.site .brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: #fff; text-decoration: none; }
header.site .brand em { color: var(--yellow); font-style: normal; }
header.site nav { margin-left: auto; display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
header.site nav a { color: #cfe0f0; text-decoration: none; font-size: .95rem; }
header.site nav a:hover { color: var(--yellow); }
main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
footer.site {
  text-align: center; color: var(--muted); font-size: .8rem; padding: 1.4rem 1rem;
}
h1 { font-size: 1.4rem; margin: .4rem 0 1rem; color: var(--navy); }
h2 { font-size: 1.1rem; color: var(--navy); margin: 1.2rem 0 .5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: .9rem; box-shadow: 0 1px 2px rgba(11,46,89,.06);
}
.card.live { border-left: 5px solid var(--yellow); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem;
  border-radius: 99px; background: var(--blue-soft); color: var(--blue); text-transform: uppercase;
}
.badge.live { background: var(--yellow); color: var(--navy); }
.badge.done { background: #e6f4ea; color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .38rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: center; }
tr.leader td { background: var(--yellow-soft); font-weight: 700; }
.team { display: inline-flex; align-items: center; gap: .45rem; }
.team img { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; background: #fff; }
.match-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.match-row:last-child { border-bottom: none; }
.match-row .meta { color: var(--muted); font-size: .78rem; min-width: 4.5rem; }
.match-row .teams { flex: 1; min-width: 14rem; }
.match-row .score { font-weight: 800; font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.match-row .score .so { font-size: .75rem; color: var(--muted); font-weight: 400; }
button, .btn {
  background: var(--yellow); color: var(--navy); border: none; border-radius: 8px;
  padding: .5rem .9rem; font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button.secondary, .btn.secondary { background: var(--blue); color: #fff; }
button.ghost, .btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
button.danger { background: #fff; color: var(--err); border: 1px solid var(--err); }
input, select {
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; font-size: .95rem;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
form.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.field-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.field-card h3 { margin: 0 0 .4rem; font-size: .85rem; color: var(--blue); text-transform: uppercase; }
.field-card.king { border: 2px solid var(--yellow); background: #fffdf2; }
.score-form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.score-form input[type=number] { width: 3.4rem; text-align: center; font-size: 1.05rem; }
.score-form .so-label { font-size: .75rem; color: var(--muted); }
.notice { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .8rem; font-size: .9rem; }
.slideshow { text-align: center; }
.slideshow img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(11,46,89,.18); }
.slideshow .cap { color: var(--muted); margin-top: .5rem; }
.slideshow .nav { margin-top: .6rem; display: flex; gap: .6rem; justify-content: center; }
.slideshow .dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin: 0 3px; cursor: pointer; }
.slideshow .dots span.on { background: var(--yellow); }
@media (max-width: 640px) {
  .match-row .teams { min-width: 100%; }
  main { padding: .7rem; }
}
