/* HSG Rade/Herbeck - Farben von rader-handball.de uebernommen:
   Rot #b50000, Schwarz, Weiss, Grau. Layout bewusst modern, die alte Seite
   wird nicht nachgebaut. Oswald selbst gehostet (kein Google-Fonts-CDN,
   siehe fonts/oswald-variable.woff2) - eine Datei deckt per Variable-Font
   die Schnitte 200-700 ab. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/fonts/oswald-variable.woff2") format("woff2-variations"), url("/fonts/oswald-variable.woff2") format("woff2");
}
:root {
  --red: #b50000;
  --red-dark: #8e0000;
  --red-soft: #fdf1f1;
  --red-line: #edc9c9;
  --ink: #16181a;
  --ink-2: #4c5358;
  --ink-3: #7d858b;
  --paper: #f2f3f4;
  --card: #fff;
  --line: #e0e3e5;
  --line-2: #c9ced2;
  --ok: #16714a;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 26px -18px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 4px 10px -6px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 8px;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --cond: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.55 var(--sans);
}
a { color: var(--red); }
a:hover { color: var(--red-dark); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* --- Kopf --- */
.top {
  background: #fff; border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 30; box-shadow: var(--shadow-sm);
}
.bar {
  max-width: 1060px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: var(--radius-sm); }
.brand strong { display: block; font-size: 17px; letter-spacing: .01em; }
.brand small { display: block; color: var(--ink-3); font-size: 12px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.top nav a:hover { background: var(--red-soft); color: var(--red); }
/* Konto-Bereich immer ganz rechts, optisch vom Hauptmenue abgesetzt */
.account {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  padding-left: 16px; border-left: 1px solid var(--line);
}
.account a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: var(--radius-sm); transition: background .15s, color .15s; }
.account a:hover { background: var(--red-soft); color: var(--red); }
/* Live-Rubrik auf der Startseite (einzige Stelle mit Live-Ticker) */
.live-card { border-color: var(--red-line); border-top: 3px solid var(--red); margin-bottom: 22px; }
.live-card > h2 { display: flex; align-items: center; gap: 9px; color: var(--red); }
.live-score { color: var(--red); display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.live-score.countdown { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* --- Grundraster --- */
main { max-width: 1060px; margin: 0 auto; padding: 0 20px; padding-block: 30px 56px; }
h1 {
  font-family: var(--cond); font-weight: 700; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.08;
  text-transform: uppercase; margin: 0; text-wrap: balance;
}
h1::after {
  content: ""; display: block; width: 52px; height: 5px; margin-top: 14px;
  background: var(--red); border-radius: 3px;
}
h1.home-title { color: var(--red); }
h2 {
  font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: 19px; margin: 34px 0 12px;
}
h3 { font-size: 14px; margin: 0 0 6px; }
.lede { color: var(--ink-2); max-width: 64ch; margin: 16px 0 4px; }
.fine { color: var(--ink-3); font-size: 12.5px; }
.plain { list-style: none; margin: 0; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card > h2 { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.card .inner { padding: 16px 18px; }

/* --- Spielliste --- */
.matches { list-style: none; margin: 0; padding: 0; }
.matches li {
  display: grid; grid-template-columns: 78px 126px 1fr auto;
  gap: 4px 14px; align-items: baseline;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.matches li:last-child { border-bottom: 0; }
.matches li:has(a.pair):hover { background: var(--paper); }
.matches a.pair { text-decoration: none; color: var(--ink-2); }
.matches a.pair:hover { text-decoration: underline; }
.when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tm { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.us { color: var(--ink); font-weight: 600; }
.vs { color: var(--ink-3); }
.res {
  font-family: var(--cond); font-size: 17px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.res.win { color: var(--ok); }
.res.loss { color: var(--ink-3); }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line);
}
.tag.grey { background: #f0f2f3; color: var(--ink-3); border-color: var(--line); }
.tag.live { background: var(--red); color: #fff; border-color: var(--red); }

/* Zustaendige Mannschaft rechtsbuendig neben dem Kartendatum (Dienstplan). */
.card > h2 .tag { float: right; }

/* Rezeptfoto-Popup (Dienstplan: Waffelteig). */
dialog.lightbox {
  border: none; border-radius: var(--radius); padding: 16px;
  max-width: min(92vw, 640px); box-shadow: var(--shadow);
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
dialog.lightbox img { max-width: 100%; display: block; border-radius: var(--radius-sm); margin-bottom: 12px; }
.recipe-photo { max-width: 100%; border-radius: var(--radius-sm); display: block; }

/* Editierbare Variante des Tags (Kiosk/Eigenregie je Spiel) - gleiche
   Optik wie .tag, aber ein <select> statt reinem Text. */
.tag-select {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 20px 3px 8px; border-radius: 999px;
  background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line);
}
.tag-select.grey { background: #f0f2f3; color: var(--ink-3); border-color: var(--line); }
.zustaendig select { font-size: 13px; }

/* Turnier-Hinweis: Ansetzung sagt "auswaerts", das Spiel ist trotzdem bei
   uns in der Halle. Eigene Zeile statt Seitenspalte, damit die Paarung
   nicht schmaler wird. */
.matches li .hint { grid-column: 1 / -1; font-size: 11px; color: var(--red); margin-top: 1px; }

/* Tages-Ueberschrift innerhalb einer Spielliste, statt Wochentag/Datum bei
   jedem einzelnen Spiel zu wiederholen. */
.matches li.daylabel {
  grid-template-columns: 1fr; padding: 12px 18px 4px; border-bottom: none;
  font-family: var(--cond); font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.matches li.daylabel:first-child { padding-top: 0; }
.matches li.daylabel:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 13px; }

/* Kompakte Liste fuer die Kacheln auf der Startseite */
.matches.compact li { grid-template-columns: 72px 1fr auto; row-gap: 0; }
.matches.compact li.daylabel { grid-template-columns: 1fr; }
.matches.compact .when { grid-column: 1; grid-row: 1; }
.matches.compact .tm { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.matches.compact .pair { grid-column: 2; grid-row: 1 / 3; }
.matches.compact .res, .matches.compact .tag { grid-column: 3; grid-row: 1 / 3; }

/* --- Kioskplan --- */
.daycard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.daycard.nokiosk { border-left-color: var(--line-2); box-shadow: none; background: transparent; }
.dayhead { display: flex; flex-wrap: wrap; gap: 16px 26px; padding: 15px 18px 13px; align-items: flex-start; }
.date { font-family: var(--cond); min-width: 128px; display: flex; align-items: baseline; gap: 7px; }
.date .wd { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.date .dm { font-size: 26px; font-variant-numeric: tabular-nums; }
.date .yr { font-size: 13px; color: var(--ink-3); }
.lbl { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.window { font-family: var(--cond); font-size: 23px; color: var(--red); font-variant-numeric: tabular-nums; }
.window .sep { color: var(--ink-3); padding: 0 6px; }
.window-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note { margin: 0; padding: 11px 18px 13px; font-size: 13px; color: var(--ink-2);
  background: var(--red-soft); border-top: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2); margin: 22px 0 24px; }
.stats div { flex: 1 1 140px; padding: 13px 18px 13px 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.stats b { display: block; font-family: var(--cond); font-size: 28px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--ink-3); }

/* --- Tabellen --- */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.self td { background: var(--red-soft); font-weight: 600; }
.staffel { margin: -6px 0 16px; text-transform: none; }

/* Vereinswappen: klein in Tabellen, gross im Scoreboard */
.crest { width: 20px; height: 20px; object-fit: contain; flex: none; border-radius: 3px; vertical-align: middle; }
.crest.big { width: 34px; height: 34px; }
td.team { display: flex; align-items: center; gap: 8px; }

/* --- Ticker --- */
.scoreboard {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.scoreboard .side { flex: 1 1 160px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.scoreboard .side.away { justify-content: flex-end; text-align: right; }
.scoreboard .big {
  font-family: var(--cond); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums;
}
.ticker { list-style: none; margin: 0; padding: 0; }
.ticker li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ticker .min { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.ticker .who { display: flex; align-items: center; gap: 8px; }
.ticker .sc { font-family: var(--cond); font-size: 16px; font-variant-numeric: tabular-nums; }
.ticker li.goal .sc { color: var(--red); }
.ticker li.marker { background: var(--paper); border-radius: 6px; padding: 8px 12px; margin: 4px 0; border-bottom: none; }
.ticker li.marker .who { font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.card-icon { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.card-icon.yellow { background: #f4c518; border: 1px solid #c99e0a; }
.card-icon.red { background: var(--red); border: 1px solid var(--red-dark); }
.card-icon.blue { background: #1a5fd6; border: 1px solid #123e8f; }
.card-icon.with-two {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 8px; font-weight: 700; line-height: 1;
}
.card-icon.yellow.with-two { color: #5c4600; }
.card-icon.red.with-two, .card-icon.blue.with-two { color: #fff; }
.two-min {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 14px; border-radius: 3px; font-family: var(--mono); font-size: 10px;
  font-weight: 700; background: var(--ink-2); color: #fff;
}

/* --- Filter, Buttons --- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.filters .sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 2px; }
select, button, .btn {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.97); }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.on:hover { background: #000; border-color: #000; }
select { border-radius: var(--radius-sm); }

.tw input[type=text], .tw input[type=email] {
  width: 100%; min-width: 88px; padding: 5px 7px; font-size: 13px; border-radius: 6px;
}
.w-day { width: 132px; }
.w-amount { width: 64px; }
.w-note { flex: 1 1 140px; min-width: 120px; }

/* --- Bestand --- */
.stock-item { margin-bottom: 16px; }
.stock-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.stock-count { display: flex; align-items: center; gap: 8px; }
.stock-count .count { font-family: var(--cond); font-size: 26px; font-variant-numeric: tabular-nums; }
.stock-form { flex-wrap: wrap; margin-bottom: 10px; }
.movements { display: flex; flex-direction: column; gap: 2px; }
.delta-plus { color: var(--ok); font-weight: 600; }
.delta-minus { color: var(--red); font-weight: 600; }

/* --- Finanzen --- */
.finance-chart-wrap { padding: 14px 18px; background: var(--card); }
.finance-chart { width: 100%; height: auto; max-height: 170px; display: block; }
/* eigener Name, nicht ".dot" - die Klasse gibt es schon fuer den
   pulsierenden Live-Punkt (siehe oben), sonst wuerden die Legenden-Punkte
   hier mitblinken. */
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.legend-dot.ok { background: var(--ok); }
.legend-dot.bad { background: var(--red); }

/* --- Formulare, Login --- */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 18px 0; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=file] {
  font: inherit; font-size: 14px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
}
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=date]:focus {
  outline: 2px solid var(--red); outline-offset: 1px;
}
form.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
.msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; max-width: 480px; }
.msg.ok { background: #eaf7f0; color: var(--ok); border: 1px solid #bfe4cf; }
.msg.err { background: var(--red-soft); color: var(--red-dark); border: 1px solid var(--red-line); }
.account form { margin: 0; }
.linklike {
  background: none; border: none; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer; padding: 8px 13px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.linklike:hover { background: var(--red-soft); color: var(--red); }

/* --- Fuss --- */
footer { border-top: 1px solid var(--line-2); background: #fff; }
.fcols { max-width: 1060px; margin: 0 auto; padding: 26px 20px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
footer h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em;
  font-size: 13px; margin: 14px 0 6px; }
footer h3:first-child { margin-top: 0; }

@media (max-width: 640px) {
  .matches li { grid-template-columns: 1fr auto; }
  .matches .when, .matches .tm { grid-column: 1; }
  .matches a.pair { grid-column: 1 / 3; }
  .shifts { margin-left: 0; }
  /* Konto-Zeile ueber die Reiter, nicht dahinter versteckt */
  .bar { flex-direction: column; align-items: stretch; }
  .account { order: 1; margin-left: 0; border-left: none; padding-left: 0; justify-content: flex-end; }
  .top nav { order: 2; }
}

@media (max-width: 480px) {
  th, td { padding: 7px 6px; font-size: 12.5px; }
}

/* --- Bestand (Zeilenliste) + Kosten-Dashboard ------------------------------ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 20px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--line-2);
  border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi.bad { border-top-color: var(--red); }
.kpi.ok { border-top-color: var(--ok); }
.kpi.warn { border-top-color: var(--red); background: var(--red-soft); }
.kpi-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi-num { font-family: var(--cond); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) { .kpis-3 { grid-template-columns: 1fr 1fr 1fr; } .kpis-3 .kpi { padding: 10px 10px; } .kpis-3 .kpi-num { font-size: 22px; } }

.reorder-card { margin-bottom: 18px; border-color: var(--red-line); border-top: 3px solid var(--red); }
.reorder-list { margin: 0; padding: 4px 18px 10px; list-style: none; }
.reorder-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reorder-list li:last-child { border-bottom: 0; }
.reorder-list a { font-weight: 600; }
.reorder-n { margin-left: auto; font-variant-numeric: tabular-nums; }

.new-item { margin-bottom: 8px; }
.new-item > summary, .srow-more > summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--red); }
.new-item > summary { padding: 13px 18px; }
.new-item > summary::-webkit-details-marker, .srow-more > summary::-webkit-details-marker { display: none; }
.new-item .form { padding: 4px 18px 16px; }

.group-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.group-h .fine { font-weight: 400; }
.stock-list { display: flex; flex-direction: column; gap: 8px; }
.srow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 16px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok);
  border-radius: var(--radius); padding: 11px 16px; scroll-margin-top: 90px; }
.srow.st-knapp { border-left-color: #d98a00; }
.srow.st-leer { border-left-color: var(--red); background: var(--red-soft); }
.srow-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sbar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.st-knapp .sbar i { background: #d98a00; }
.st-leer .sbar i { background: var(--red); }
.srow-count { display: flex; align-items: center; gap: 8px; min-width: 88px; justify-content: flex-end; }
.srow-count .count { font-family: var(--cond); font-size: 28px; font-variant-numeric: tabular-nums; }
.srow-quick .btn { min-width: 52px; }
.srow-more { grid-column: 1 / -1; }
.srow-more > summary { font-size: 13px; padding-top: 6px; }
.srow-more .inner { padding: 10px 0 2px; }
.edit-form { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); align-items: flex-end; }
.mini { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-3); }
.mini input { min-width: 0; }

.cover-card { margin-bottom: 20px; }
.cover-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cover-num { font-family: var(--cond); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.cover-bar { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; }
.cover-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--ok)); border-radius: 6px; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 8px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hbar-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 14px; }
.hbar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.hbar.grey i { background: var(--line-2); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 0 0 6px; }
.mini-table td { padding: 7px 0; border-top: 1px solid var(--line); }
.mini-table .n { text-align: right; font-variant-numeric: tabular-nums; padding-left: 10px; }
.srow-more .stock-form input.w-amount { width: 150px; }
.srow-more .stock-form .w-note { flex: 1 1 160px; min-width: 120px; }
.mini-table .n { white-space: nowrap; }

/* Kiosk: vorlaeufige Spiele (Halle bei handball.net noch offen) */
.daycard.tentative { border-left-color: var(--line-2); border-left-style: dashed; }
.pending-list { border-top: 1px dashed var(--line-2); }
.pending-list li:not(.daylabel) { opacity: .85; }

/* Kiosk: Verantwortliche je Mannschaft */
.contacts { margin: 0 0 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 22px; }
.contact-team h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.contact-team ul { margin: 0; padding: 0; list-style: none; }
.contact-team li { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
.contact-team li:first-child { border-top: 0; }
.contact-team .phone { font-variant-numeric: tabular-nums; }
.contact-edit { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.contact-edit > summary { cursor: pointer; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.contact-row { flex-wrap: wrap; margin-bottom: 8px; }
.contact-row input { flex: 1 1 150px; min-width: 0; }
.contact-new { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }

/* Verantwortliche: je Mannschaft ein eigener Block, Reihenfolge links oben nach rechts unten */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 22px; }
.contact-card { border-top: 3px solid var(--red); }
.contact-card > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.contact-card > h2 .fine { font-weight: 400; }
.contact-card ul { margin: 0; padding: 4px 18px 12px; list-style: none; }
.contact-card li { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact-card li:first-child { border-top: 0; }
.contact-card .phone { font-variant-numeric: tabular-nums; }
.contact-edit-card > summary { cursor: pointer; list-style: none; padding: 13px 18px; font-weight: 600; color: var(--red); }
.contact-edit-card > summary::-webkit-details-marker { display: none; }
.contact-edit-card .inner { padding-top: 0; }

.contact-card .empty { margin: 0; padding: 12px 18px 16px; }

/* Dienstplan: Infos für Thekenkräfte */
.infocard { margin: 0 0 26px; border-top: 3px solid var(--red); }
.info-title { margin: 0 0 14px; font-size: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.shift-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 6px; background: var(--card); }
.shift-block h4 { margin: 0 0 10px; }
.shift-time { display: inline-block; font-family: var(--cond); font-size: 22px; letter-spacing: .02em; color: var(--red); }
.todo { margin: 0; padding: 0; list-style: none; }
.todo li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.todo li:first-child { border-top: 0; }
.todo li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 11px; border: 2px solid var(--red); border-radius: 3px; }
.loc { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; line-height: 1.7; background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); white-space: nowrap; }
.info-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--card); }
.callout.warn { border-left-color: var(--red); background: var(--red-soft); }
.callout h4 { margin: 0 0 6px; font-size: 15px; }
.callout ul { margin: 0; padding: 0; list-style: none; }
.callout li { padding: 4px 0; font-size: 14.5px; line-height: 1.45; }

/* Kiosk: Anker-Sprung zum Spieltag nicht unter den Kopf rutschen lassen */
.daycard { scroll-margin-top: 84px; }

.info-edit { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.info-edit > summary { cursor: pointer; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.info-edit textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 13.5px/1.5 var(--mono); background: var(--card); color: var(--ink); resize: vertical; }
.info-edit code { font-family: var(--mono); font-size: 12px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.persons { margin: 0 0 8px; padding: 6px 10px; background: var(--paper); border-radius: var(--radius-sm); font-size: 14px; }
.persons b { font-family: var(--cond); font-size: 20px; color: var(--red); margin-right: 2px; }

/* Spielplan: Sprung zum Spieltag nicht unter den Kopf rutschen lassen */
[id^="tag-"] { scroll-margin-top: 84px; }

/* Live-Video je Spiel */
.live-video { margin: 16px 0 8px; }
.live-video video { width: 100%; max-height: 70vh; background: #000; border-radius: 12px; display: block; }
.cam-stream { margin: 14px 0; }
.cam-stage { display: none; }
.cam-stage.fullscreen { display: block; position: fixed; inset: 0; z-index: 10000; background: #000; }
.cam-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.cam-live { background: #b50000; color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.cam-status { flex: 1; font-size: 14px; }
.cam-bar .btn { background: #fff; color: #000; border-color: #fff; }
.cam-active #live-video { display: none; }
